/*SHOP*/

.shop {
    background-color: var(--cream);
    min-height: 80vh;
    padding: 60px 40px;
    text-align: center;
}

.shop h1 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    justify-content: center;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    width: 300px;
    height: 421px;
    border: 2px solid var(--brown);
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-image {
    width: 269px;
    height: 289px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--brown);
}

.product-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.product-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
}

.product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 1px;
}


/* =========================================================
   MOBILE VIEW  (keep this block at the very bottom)
   Phones get a 2-column grid of fluid cards (the usual
   shopping-app layout). Cards shrink/grow with the screen
   instead of being locked to 300px.
========================================================= */
@media (max-width: 768px) {

    .shop {
        padding: 28px 14px 48px;
        min-height: 0;
    }

    .shop h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin-bottom: 22px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        justify-content: stretch;
        gap: 12px;
    }

    .product-card {
        width: 100%;
        height: auto;
        padding: 8px;
        gap: 8px;
        border-width: 1.5px;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.12s ease;
    }

    /* touch feedback instead of hover */
    .product-card:active {
        transform: scale(0.97);
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-name {
        font-size: 0.9rem;
        line-height: 1.25;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-desc {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .product-price {
        font-size: 1rem;
        padding-top: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
    }
    .product-card:active {
        transform: none;
    }
}