:root {
    --mcd-red: black;
    --mcd-yellow: #ffbc0d;
    --bg-white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
}

.content-wrapper {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    padding-top: 4rem;
    padding-bottom: 10rem;
}

.shop-top-actions {
    margin-bottom: 1.5rem;
}

.back-button {
    color: #6b7280;
    text-decoration: underline;
}

.back-button:hover {
    color: #1f2937;
}

header {
    margin-bottom: 3rem;
}

.site-title-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

header h1 {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.025em;
    margin: 0;
}

header p {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #6b7280;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card-link {
    color: inherit;
    text-decoration: none;
}

#loading {
    grid-column: 1 / -1;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.2s ease;
    transform: scale(1);
    display: block;
    cursor: pointer;
}

.product-image img.loaded {
    opacity: 1;
}

.product-card:hover .product-image img.loaded {
    transform: scale(1.1);
}

.product-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

footer {
    margin-top: 90px;
    text-align: center;
}

footer a {
    color: #6b7280;
    text-decoration: underline;
}

footer a:hover {
    color: #1f2937;
}
