/* ================================
   PRODUCT GRID
================================ */

.featured-products {
    padding: 80px 0;
    background: #fff;
}

.featured-products .section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.featured-products .section-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-products .section-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}


/* ================================
   PRODUCT CARD
================================ */

.product-card {
    position: relative;
    background: #fff;
    overflow: hidden;
}


/* PRODUCT IMAGE */

.product-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:contain;

    transition:
        opacity .45s ease,
        transform .55s ease;

}

.primary-image{

    opacity:1;

    z-index:1;

}

.secondary-image{

    opacity:0;

    z-index:2;

}

.product-card:hover .primary-image{

    opacity:0;

    transform:scale(1.05);

}

.product-card:hover .secondary-image{

    opacity:1;

    transform:scale(1.05);

}


/* DISCOUNT */

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}


/* QUICK VIEW */

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.quick-view-btn {
    width: 100%;
    border: none;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 13px;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
}


/* PRODUCT INFO */

.product-info {
    padding: 15px 2px 5px;
}

.product-category {
    display: block;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.product-name{

    font-size:18px;

    font-weight:600;

    line-height:1.5;

    margin-bottom:12px;

    min-height:54px;

}

.product-name a {
    color: #222;
    text-decoration: none;
    transition:.25s;

}

.product-name a:hover {
    color: #777;
}


/* PRICE */

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.selling-price {
    font-size: 12px;
    font-weight: 700;
    color:#111;
}

.mrp {
    color: #999;
    font-size: 15px;
    text-decoration: line-through;
}


/* ADD TO CART */

.cart-btn{

    width:100%;

    height:48px;

    background:#111;

    color:#fff;

    border:none;

    border-radius:10px;

    font-size:13px;

    font-weight:600;

    letter-spacing:1px;

    cursor:pointer;

    transition:.3s;

}

.cart-btn:hover {
    background: #222;
}


/* RESPONSIVE */

@media (max-width: 1000px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .featured-products {
        padding: 50px 0;
    }

    .featured-products .section-title {
        font-size: 27px;
    }
}
/* ==========================================
   CARD SYSTEM
========================================== */

.card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:14px;
    padding:24px;
    transition:.25s ease;
}

.card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.card-title{
    margin:0;
    font-size:18px;
    font-weight:700;
    color:#111;
}

.card-body{
    color:#555;
    line-height:1.8;
}

.card-footer{
    margin-top:22px;

    display:flex;
    gap:12px;
}

.default-badge{

    background:#111;

    color:#fff;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

.address-type{

    background:#f3f3f3;

    color:#444;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}
/* ========================================
   OUT OF STOCK BUTTON
======================================== */

.out-of-stock-btn{

    background:#9ca3af;

    color:#ffffff;

    cursor:not-allowed;

    opacity:0.9;

    pointer-events:none;

}

.out-of-stock-btn:hover{

    background:#9ca3af;

    transform:none;

    box-shadow:none;

}