/* =========================================================
   ALL PRODUCTS
========================================================= */

.all-products-section{
    padding:70px 0;
    background:#fff;
}

.section-heading{
    text-align:center;
    margin-bottom:40px;
}

.section-subtitle{
    display:block;
    color:#9b4d73;
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
    margin-bottom:8px;
}

.section-heading h2{
    margin:0;
    font-family:'Playfair Display',serif;
    font-size:38px;
    color:#333;
}

.section-heading p{
    color:#777;
    margin-top:8px;
}

.products-grid{
    display:grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    gap:24px;
}

.product-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    overflow:hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:
        0 15px 35px
        rgba(0,0,0,.10);
}

.product-image-wrap{
    position:relative;
    aspect-ratio:4/5;
    background:#f7f7f7;
    overflow:hidden;
}

.product-image-link{
    display:block;
    width:100%;
    height:100%;
}

.product-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:
        transform .5s ease;
}

.product-card:hover .product-image{
    transform:scale(1.05);
}

.product-discount{
    position:absolute;
    top:12px;
    left:12px;
    background:#9b4d73;
    color:#fff;
    padding:5px 9px;
    border-radius:6px;
    font-size:11px;
    font-weight:700;
}

.sold-out-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#333;
    color:#fff;
    padding:5px 9px;
    border-radius:6px;
    font-size:11px;
    font-weight:700;
}

.wishlist{
    position:absolute;
    right:12px;
    top:12px;
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#fff;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.wishlist.active{
    color:#9b4d73;
}

.product-info{
    padding:16px;
}

.product-category{
    color:#999;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.8px;
    margin-bottom:5px;
}

.product-name{
    margin:0 0 8px;
    font-size:15px;
    line-height:1.4;
}

.product-name a{
    color:#333;
    text-decoration:none;
}

.product-rating{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:12px;
    margin-bottom:8px;
}

.stars{
    color:#e49b20;
    letter-spacing:1px;
}

.rating-number{
    color:#555;
    font-weight:600;
}

.review-count{
    color:#999;
}

.product-price{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:7px;
}

.selling-price{
    font-size:19px;
    font-weight:700;
    color:#9b4d73;
}

.old-price{
    font-size:13px;
    color:#999;
    text-decoration:line-through;
}

.stock-info{
    color:#4c8b63;
    font-size:11px;
    margin-bottom:12px;
}

.product-btn{
    display:block;
    width:100%;
    text-align:center;
    padding:10px;
    border-radius:8px;
    background:#9b4d73;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    border:0;
}

.product-btn:hover{
    background:#7f3d5d;
    color:#fff;
}

.product-btn.disabled{
    background:#ccc;
}

.no-products{
    grid-column:1/-1;
    text-align:center;
    padding:70px 20px;
    color:#777;
}

@media(max-width:1100px){

    .products-grid{
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

}

@media(max-width:768px){

    .all-products-section{
        padding:45px 0;
    }

    .section-heading h2{
        font-size:30px;
    }

    .products-grid{
        grid-template-columns:
            repeat(2, minmax(0,1fr));
        gap:12px;
    }

    .product-info{
        padding:12px;
    }

    .product-name{
        font-size:13px;
    }

    .selling-price{
        font-size:16px;
    }

}

@media(max-width:420px){

    .products-grid{
        gap:8px;
    }

    .product-info{
        padding:9px;
    }

    .wishlist{
        width:32px;
        height:32px;
        font-size:18px;
    }

}