/* ==========================================
   1. GLOBAL STYLES & RESET
   ========================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body{
    background: #f8f8f8;
    color: #333;
    overflow-x: hidden;
}

/* ==========================================
   2. LAYOUT COMPONENTS (Header, Hero, Navigation)
   ========================================== */
.top-bar{
    background: #0b5d1e;
    color: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}

header{
    background: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img{
    width: 180px;
    height: auto;
}

nav ul{
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a{
    text-decoration: none;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover{
    color: #0b5d1e;
}

/* HERO SLIDER */
.hero{
    position: relative;
    height: 700px;
    overflow: hidden;
}

.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 1s;
}

.slide.active{
    opacity: 1;
}

.slide img{
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.45);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    width: 800px;
    max-width: 90%;
}

.hero-content h1{
    font-size: 70px;
    margin-bottom: 20px;
}

.hero-content p{
    font-size: 24px;
    margin-bottom: 25px;
}

/* SEARCH SECTION */
.search-section{
    padding: 20px;
    background: #f8f8f8;
}

.search-box{
    max-width: 700px;
    margin: auto;
    display: flex;
}

.search-box input{
    flex: 1;
    padding: 15px;
    border: 2px solid #0b5d1e;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.search-box button{
    padding: 15px 25px;
    border: none;
    background: #0b5d1e;
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}

.title{
    text-align: center;
    font-size: 42px;
    margin: 60px 0 30px;
    color: #0b5d1e;
}

/* ==========================================
   3. PRODUCT & CATEGORY GRIDS (Fixed Uneven Alignment)
   ========================================== */
.category-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 5%;
}

.category-card{
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    text-align: center;
    transition: .3s;
}

.category-card:hover{
    transform: translateY(-10px);
}

.category-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.category-card h3{
    margin-top: 15px;
}

/* PRODUCT GRID */
.product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 5%;
}

.product-card{
    position: relative;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    text-align: center;
    transition: .3s;
    height: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover{
    transform: translateY(-10px);
}

.product-card img{
    width:100%;
    height:300px;
    object-fit:cover;
    object-position:center;
    border-radius:12px;
    display:block;
    background:#fff;
}
.product-card h3{
    font-size: 20px;
    margin: 10px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .price{
    font-size: 20px;
    font-weight: 600;
    color: #0b5d1e;
    margin-bottom: 5px;
}

.discount{
    color: red;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge{
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff5722;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 20px;
    z-index: 5;
}

.add-cart-btn{
    background: #0b5d1e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: auto;
    font-size: 16px;
    transition: 0.3s;
}

.add-cart-btn:hover{
    background: #28a745;
}

/* ==========================================
   4. SLIDERS & POPUPS
   ========================================== */
.product-slider-section{
    padding: 60px 5%;
    background: #fff;
}

.slider-container{
    position: relative;
    overflow: hidden;
}

.slider-track{
    display: flex;
    gap: 20px;
    transition: 0.5s ease;
}

.slide-card{
    min-width: 250px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    text-align: center;
}

.slide-card img{
    width:100%;
    height:300px;
    object-fit:cover;
    object-position:center;
    border-radius:10px;
}

.slide-card button{
    background: #0b5d1e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.slide-btn{
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: #0b5d1e;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev{ left: 0; }
.next{ right: 0; }

.product-popup{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.8);
    z-index: 99999;
}

.popup-content{
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.popup-content img{
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

#closePopup{
    float: right;
    font-size: 30px;
    cursor: pointer;
}

/* ==========================================
   5. PAGES (Cart, Product Detail, Checkout, Success)
   ========================================== */
.cart-container{
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.cart-item{
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.cart-item button{
    width: 35px;
    height: 35px;
    border: none;
    background: #0b5d1e;
    color: white;
    cursor: pointer;
}

.cart-total{
    text-align: center;
    margin-top: 40px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    width: 400px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cart-total h2{
    margin-bottom: 20px;
}

.cart-icon{
    display: inline-block;
    background: #0b5d1e;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 20px;
}

.cart-icon:hover{
    background: #28a745;
}

/* PRODUCT DETAILS PAGE */
.product-detail{
    display: flex;
    gap: 40px;
    padding: 50px;
}

.product-detail img{
    width: 400px;
    border-radius: 10px;
    object-fit: cover;
}

.detail-content{
    max-width: 500px;
}

/* CHECKOUT PAGE */
.checkout-form{
    width: 600px;
    max-width: 90%;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,.1);
}

.checkout-form input{
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* SUCCESS PAGE */
.success-box{
    width: 700px;
    max-width: 90%;
    margin: 100px auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
    text-align: center;
}

.success-box h1{
    font-size: 40px;
    margin-bottom: 20px;
    color: #0b5d1e;
}

.success-box p{
    font-size: 18px;
    margin-bottom: 25px;
}

/* ==========================================
   6. TRUST, BENEFITS, REVIEWS, STATS & FAQs
   ========================================== */
.trust{
    padding: 60px 5%;
    text-align: center;
    background: white;
}

.trust h2{
    color: #0b5d1e;
    font-size: 40px;
    margin-bottom: 30px;
}

.trust-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.trust-grid div{
    background: #f8f8f8;
    padding: 25px;
    border-radius: 15px;
}

.benefits{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 30px 5%;
    background: #fff;
}

.benefit-card{
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.reviews{
    padding: 60px 5%;
    background: #fff;
    text-align: center;
}

.reviews-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.review-card{
    background: #f8f8f8;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.review-card h4{
    margin-top: 10px;
    color: #0b5d1e;
}

.stats{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 60px 5%;
    background: #0b5d1e;
    color: white;
    text-align: center;
}

.stat-box h2{
    font-size: 45px;
    margin-bottom: 10px;
}

.stat-box p{
    font-size: 18px;
}

.faq{
    padding: 60px 5%;
    background: #fff;
}

.faq-box{
    max-width: 900px;
    margin: auto;
}

.faq-box h3{
    background: #0b5d1e;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.faq-box p{
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 5%;
}

.gallery-grid img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: .4s;
}

.gallery-grid img:hover{
    transform: scale(1.05);
}

.about{
    padding: 70px 10%;
    text-align: center;
}

.about h2{
    font-size: 40px;
    color: #0b5d1e;
    margin-bottom: 20px;
}

.about p{
    font-size: 18px;
    line-height: 1.8;
}

#contact{
    padding: 70px 10%;
    background: #f1f1f1;
    text-align: center;
}

#contact h2{
    font-size: 40px;
    color: #0b5d1e;
    margin-bottom: 20px;
}

#contact p{
    font-size: 18px;
    margin: 10px 0;
}

/* ==========================================
   7. BUTTONS, FLOATING ICONS & FOOTER
   ========================================== */
.btn{
    display: inline-block;
    padding: 15px 35px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
}

.btn:hover{
    background: #0b5d1e;
}

.order-btn{
    background: #0b5d1e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 10px 10px 0;
}

.order-btn:hover{
    background: #28a745;
}

footer{
    background: #0b5d1e;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 16px;
}

/* FLOATING SOCIAL BUTTONS */
.whatsapp, .call-btn, .instagram-btn, .facebook-btn, .youtube-btn{
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    z-index: 9999;
    transition: 0.3s;
}

.whatsapp:hover, .call-btn:hover, .instagram-btn:hover, .facebook-btn:hover, .youtube-btn:hover{
    transform: scale(1.1);
}

.whatsapp { bottom: 20px; background: #25D366; font-size: 30px; }
.call-btn { bottom: 95px; background: #0b5d1e; font-size: 24px; }
.instagram-btn { bottom: 170px; background: #E1306C; font-size: 24px; }
.facebook-btn { bottom: 245px; background: #1877F2; font-size: 24px; }
.youtube-btn { bottom: 320px; background: #FF0000; font-size: 24px; }

#topBtn{
    position: fixed;
    bottom: 395px;
    right: 20px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #222;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
}

/* ==========================================
   8. RESPONSIVE DESIGN (Media Queries)
   ========================================== */
@media(max-width: 768px){
    .top-bar{
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    header{
        flex-direction: column;
    }

    .logo img{
        width: 130px;
    }

    nav ul{
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .hero{
        height: 500px;
    }

    .slide img{
        height: 500px;
    }

    .hero-content h1{
        font-size: 35px;
    }

    .hero-content p{
        font-size: 16px;
    }

    .title{
        font-size: 30px;
    }

    .benefits{
        grid-template-columns: repeat(2,1fr);
    }
}

/* PREMIUM HOVER EFFECTS */

.category-card,
.product-card,
.slide-card,
.review-card,
.trust-grid div,
.benefit-card{
transition:all .3s ease;
}

.category-card:hover,
.product-card:hover,
.slide-card:hover,
.review-card:hover,
.trust-grid div:hover,
.benefit-card:hover{
transform:translateY(-8px);
box-shadow:0 12px 30px rgba(0,0,0,.15);
}

.product-card{
border:1px solid #eee;
}

.product-card img{
transition:.4s;
}

.product-card:hover img{
transform:scale(1.05);
}

.title{
font-weight:700;
letter-spacing:1px;
}