/* =========================
   PRODUCTS GRID
========================= */
.products-container{
    padding:12px;
}


.products-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:16px;
}

/* =========================
   PRODUCT CARD
========================= */
.product-card{
    position:relative;
    display:flex;
    flex-direction:column;

    background:#fff;
    border-radius:18px;

    overflow:hidden;
    text-decoration:none;
    color:#111827;

    border:1px solid #edf0f3;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;

    box-shadow:
        0 2px 6px rgba(0,0,0,.03),
        0 10px 24px rgba(0,0,0,.04);
}

.product-card:hover{
    transform:translateY(-3px);

    border-color:#e5e7eb;

    box-shadow:
        0 10px 20px rgba(0,0,0,.06),
        0 18px 40px rgba(0,0,0,.08);
}

/* =========================
   IMAGE AREA
========================= */
.product-thumb{
    position:relative;

    width:100%;
    aspect-ratio:1/1;

    background:#f8fafc;

    overflow:hidden;
}

.product-thumb img{
    width:100%;
    height:100%;

    object-fit:contain;

    transition:transform .25s ease;
}

.product-card:hover .product-thumb img{
    transform:scale(1.04);
}

/* =========================
   BADGES
========================= */
.product-badge{
    position:absolute;
    top:10px;
    left:10px;
    z-index:5;

    padding:5px 10px;

    border-radius:999px;

    font-size:11px;
    font-weight:700;
    letter-spacing:.2px;

    color:#fff;
}

.discount-badge,
.wholesale-badge{
    background:#f97316;
    color:#fff;

    box-shadow:0 4px 10px rgba(249,115,22,.25);
}

/* =========================
   PRODUCT INFO
========================= */
.product-info{
    display:flex;
    flex-direction:column;
    gap:8px;

    padding:12px;
}

/* =========================
   PRODUCT NAME
========================= */
.product-name{
    font-size:14px;
    font-weight:600;

    line-height:1.45;

    color:#111827;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;

    min-height:40px;
}

/* =========================
   PRICE
========================= */
.product-price{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.new-price{
    color:#ff6b00;
    font-size:18px;
    font-weight:800;
}

.old-price{
    color:#94a3b8;
    text-decoration:line-through;
    font-size:13px;
    font-weight:600;
}

/* =========================
   EMPTY STATE
========================= */
.empty-state{
    grid-column:1/-1;

    text-align:center;

    padding:50px 20px;

    color:#6b7280;

    font-size:15px;
    font-weight:500;
}

/* =========================
   BUYER POSTERS
========================= */

.buyer-poster{
    grid-column:1 / -1;

    position:relative;
    overflow:hidden;

    width:100%;
    min-height:260px;

    border-radius:22px;

    background:#fff;

    box-shadow:
        0 8px 24px rgba(0,0,0,.08);
}

/* Photoshop artwork fills entire banner */
.buyer-poster img{
    display:block;

    width:100%;
    height:260px;

    object-fit:cover;
    object-position:center;
}

/* CTA button overlay */
.poster-content{
    position:absolute;

    right:28px;
    bottom:24px;

    z-index:10;
}

/* CTA button */
.poster-content a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 30px;

    border-radius:999px;

    text-decoration:none;

    font-size:15px;
    font-weight:700;
    line-height:1;

    box-shadow:
        0 8px 20px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.poster-content a:hover{
    transform:translateY(-2px);

    box-shadow:
        0 12px 28px rgba(0,0,0,.25);
}

.mobile-only{
    display:none;
}

.desktop-only{
    display:block;
}


/* =========================
   MOBILE
========================= */
@media (max-width:640px){

    /* FULL APP FEEL */
.products-container{

    padding:
        8px
        8px
        90px;
}

    .desktop-only{
        display:none;
    }


    .mobile-only{
        display:block;
    }

.products-grid{
    grid-template-columns:repeat(2,1fr);
    gap:8px;
}
    body{
    background:#f5f5f5;
}


    /* CARD */
    .product-card{
        border-radius:14px;

        box-shadow:
            0 1px 3px rgba(0,0,0,.04),
            0 6px 14px rgba(0,0,0,.05);

        border:1px solid #f1f5f9;
    }

    /* IMAGE */
    .product-thumb{
        aspect-ratio:1/1;

        background:#f8fafc;
    }

    .product-thumb img{
        object-fit:cover;
    }

    /* INFO */
    .product-info{
        padding:10px;
        gap:6px;
    }

    /* NAME */
    .product-name{
        font-size:13px;
        line-height:1.35;

        min-height:36px;
    }

    /* PRICE */
    .new-price{
        font-size:17px;
    }

    .old-price{
        font-size:12px;
    }

    /* BADGES */
    .product-badge{
        top:8px;
        left:8px;

        font-size:10px;

        padding:4px 8px;
    }


    .desktop-only{
        display:none;
    }

    .mobile-only{
        display:block;
    }

    .buyer-poster{
        min-height:auto;
        border-radius:16px;
    }

    .buyer-poster img{
        width:100%;
        height:180px;

        object-fit:cover;
        object-position:center;
    }

    .poster-content{
        position:absolute;

        right:14px;
        bottom:14px;
    }

    .poster-content a{
        padding:10px 20px;

        font-size:13px;
    }

}
