/* ================= HERO SLIDER ================= */

.hero-section{
    background:#f8f9fa;
}

#megaSlider{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

#megaSlider .carousel-inner,
#megaSlider .carousel-item{
    height:620px;
    background:#fff;
}

.slider-image-wrapper{
    width:100%;
    height:470px;
    background:#fff;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.slider-img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
}

.slider-text{
    height:150px;
    background:#fff;
    text-align:center;
    padding:20px 24px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.slider-text h2{
    font-weight:700;
    font-size:clamp(20px,3vw,40px);
    line-height:1.3;
    margin:0 0 10px 0;
    max-width:95%;
}

.slider-text p{
    font-size:clamp(14px,1.2vw,18px);
    line-height:1.6;
    margin:0;
    max-width:95%;
}

/* ================= TABLET SLIDER ================= */

@media (max-width:991px){
    #megaSlider .carousel-inner,
    #megaSlider .carousel-item{
        height:520px;
    }

    .slider-image-wrapper{
        height:390px;
    }

    .slider-text{
        height:130px;
        padding:16px 18px;
    }
}

/* ================= MOBILE SLIDER ================= */

@media (max-width:576px){
    .hero-section{
        padding-top:20px !important;
        padding-bottom:20px !important;
    }

    #megaSlider{
        border-radius:18px;
    }

    #megaSlider .carousel-inner,
    #megaSlider .carousel-item{
        height:auto !important;
        background:#fff;
    }

    .slider-image-wrapper{
        height:220px !important;
        background:#fff;
    }

    .slider-img{
        width:100%;
        height:100%;
        object-fit:contain;
    }

    .slider-text{
        height:auto !important;
        min-height:90px;
        padding:14px 12px;
        background:#fff;
    }

    .slider-text h2{
        font-size:18px;
        line-height:1.3;
        margin:0 0 5px 0;
    }

    .slider-text p{
        font-size:13px;
        line-height:1.4;
        margin:0;
    }
}

/* ================= CATEGORY SECTION ================= */

.category-section{
    background:linear-gradient(135deg,#c8c8c8,#f1f1f1);
    color:#fff;
}

.category-section h2{
    color:#000 !important;
}

.category-section .text-muted{
    color:#fff !important;
}

.category-section .category-card{
    width:100%;
    max-width:280px;
    margin:auto;
    position:relative;
    overflow:hidden;
    border-radius:12px;
}

.category-section .category-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.category-section .category-card:hover img{
    transform:scale(1.08);
}

.category-section .category-overlay{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    background:rgba(0,0,0,.6);
    color:#fff;
    text-align:center;
    padding:10px 0;
}

.category-section .category-overlay h5{
    margin:0;
    font-weight:700;
}

@media (max-width:576px){
    .category-section .category-card{
        max-width:90%;
    }

    .category-section .category-card img{
        height:220px;
    }
}

/* ================= PRODUCT SECTION ================= */

.product-section{
    background:linear-gradient(135deg,#f8f9fb,#eef1f5);
    position:relative;
}

.section-title{
    font-size:32px;
    font-weight:800;
    color:#111;
    letter-spacing:.2px;
}

/* heading row fix without changing html */
.product-section .d-flex.justify-content-between.align-items-center.mb-4{
    flex-wrap:nowrap !important;
}

.product-section .section-title{
    margin:0;
    white-space:nowrap;
}

.view-all-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:6px 12px;
    font-size:13px;
    font-weight:600;
    border-radius:20px;
    text-decoration:none;
    background:#111;
    color:#fff;
    transition:.3s;
    white-space:nowrap;
}

.view-all-btn:hover{
    background:#c40000;
    color:#fff;
}

.view-all-btn i{
    font-size:12px;
}

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

.product-card{
    width:100%;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:all .35s ease;
    border:1px solid rgba(0,0,0,.05);
    display:flex;
    flex-direction:column;
    min-height:100%;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 45px rgba(0,0,0,.14);
}

.image-link{
    display:block;
    text-decoration:none;
}

.product-card .image-wrapper{
    width:100%;
    height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    overflow:hidden;
    padding:10px;
    border-bottom:1px solid #f1f1f1;
}

.product-card .image-wrapper img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
    transition:transform .4s ease;
}

.product-card:hover .image-wrapper img{
    transform:scale(1.06);
}

/* ================= PRODUCT INFO ================= */

.product-info{
    padding:18px 18px 20px;
    flex:1;
    display:flex;
    flex-direction:column;
}

.product-title{
    font-size:17px;
    font-weight:700;
    line-height:1.5;
    margin-bottom:10px;
    min-height:52px;
}

.product-title a{
    color:#111;
    text-decoration:none;
    transition:.3s;
}

.product-title a:hover{
    color:#c40000;
}

.old-price{
    color:#8a8a8a;
    font-size:14px;
    margin-bottom:4px;
}

.product-price{
    color:#c40000;
    font-size:22px;
    font-weight:800;
    margin-bottom:0;
    line-height:1.3;
}

.product-btn{
    width:100%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#111,#2b2b2b);
    color:#fff;
    padding:12px 18px;
    border-radius:14px;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    transition:all .3s ease;
    box-shadow:0 8px 18px rgba(0,0,0,.15);
    margin-top:auto;
}

.product-btn:hover{
    background:linear-gradient(135deg,#c40000,#ff2a2a);
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 14px 24px rgba(196,0,0,.28);
}

/* ================= EMPTY STATE ================= */

.empty-product-box{
    background:#fff;
    border-radius:18px;
    padding:40px 20px;
    box-shadow:0 8px 22px rgba(0,0,0,.08);
    color:#555;
}

/* ================= PRODUCT RESPONSIVE ================= */

@media (max-width:991px){
    .section-title{
        font-size:28px;
    }

    .product-card .image-wrapper{
        height:230px;
    }
}

@media (max-width:767px){
    .section-title{
        font-size:24px;
    }

    .product-title{
        font-size:16px;
        min-height:auto;
    }

    .product-price{
        font-size:20px;
    }

    .product-card .image-wrapper{
        height:220px;
    }

    .product-info{
        padding:16px;
    }
}

@media (max-width:576px){
    .product-section{
        padding-top:40px !important;
        padding-bottom:40px !important;
    }

    .product-section .d-flex.justify-content-between.align-items-center.mb-4{
        flex-wrap:nowrap !important;
        gap:8px !important;
    }

    .product-section .section-title{
        font-size:16px !important;
        margin:0 !important;
        white-space:nowrap !important;
    }

    .product-section .view-all-btn{
        padding:5px 9px !important;
        font-size:12px !important;
        white-space:nowrap !important;
    }

    .product-card{
        border-radius:18px;
    }

    .product-card .image-wrapper{
        height:180px;
        padding:10px;
    }

    .product-title{
        font-size:14px;
        min-height:auto;
    }

    .product-price{
        font-size:18px;
    }

    .product-info{
        padding:14px;
    }

    .product-btn{
        padding:11px 16px;
        font-size:14px;
        border-radius:12px;
    }
}

/* ================= POPUP ================= */

.lead-popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.72);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:16px;
    backdrop-filter:blur(3px);
}

.lead-popup-overlay.show{
    display:flex;
}

.lead-popup-box{
    width:100%;
    max-width:460px;
    background:#fff;
    border-radius:18px;
    padding:24px 20px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    position:relative;
    z-index:100000;
}

.lead-popup-box h3{
    font-size:24px;
    margin:0 0 8px;
    font-weight:700;
    color:#111;
}

.lead-popup-box p{
    margin:0 0 16px;
    color:#666;
    font-size:14px;
    line-height:1.6;
}

.form-group{
    margin-bottom:14px;
}

.form-group label{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:6px;
    color:#222;
}

.form-group input{
    width:100%;
    height:46px;
    border:1px solid #dcdcdc;
    border-radius:12px;
    padding:0 14px;
    font-size:14px;
    outline:none;
}

.form-group input:focus{
    border-color:#c40000;
    box-shadow:0 0 0 3px rgba(196,0,0,.10);
}

.lead-submit-btn{
    width:100%;
    border:none;
    height:48px;
    border-radius:12px;
    background:linear-gradient(135deg,#c40000,#ff2a2a);
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.lead-message{
    margin-top:12px;
    font-size:14px;
    text-align:center;
}

body.popup-open{
    overflow:hidden;
}

@media (max-width:576px){
    .lead-popup-box{
        padding:20px 16px;
        border-radius:16px;
    }

    .lead-popup-box h3{
        font-size:20px;
    }

    .form-group input{
        height:44px;
        font-size:13px;
    }

    .lead-submit-btn{
        height:46px;
        font-size:14px;
    }
}