/* ====================================
   HerbalBazaar Main Stylesheet
==================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#2E7D32;
    --primary-light:#4CAF50;
    --accent:#8BC34A;
    --bg:#F8FFF8;
    --text:#222222;
    --text-light:#666666;
    --white:#ffffff;
    --shadow:0 5px 20px rgba(0,0,0,0.08);
    --radius:15px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 15px;
}

/* Top Bar */
.top-bar{
    background:var(--primary);
    color:var(--white);
    padding:8px 0;
    font-size:14px;
}

.top-bar-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

/* Header */
.header{
    background:var(--white);
    padding:15px 0;
    box-shadow:var(--shadow);
    position:sticky;
    top:0;
    z-index:1000;
}

.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.logo{
    font-size:32px;
    font-weight:800;
    color:var(--primary);
}

.logo span{
    color:var(--accent);
}

/* Search */
.search-box{
    flex:1;
    display:flex;
    max-width:500px;
}

.search-box input{
    width:100%;
    padding:12px 15px;
    border:2px solid #e0e0e0;
    border-right:none;
    border-radius:50px 0 0 50px;
    outline:none;
}

.search-box button{
    background:var(--primary);
    color:var(--white);
    border:none;
    padding:0 20px;
    border-radius:0 50px 50px 0;
    cursor:pointer;
}

/* Header Icons */
.header-icons{
    display:flex;
    gap:15px;
}

.icon-btn{
    position:relative;
    width:45px;
    height:45px;
    border-radius:50%;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

.icon-btn:hover{
    background:var(--primary);
    color:var(--white);
}

.icon-btn span{
    position:absolute;
    top:-5px;
    right:-5px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:var(--accent);
    color:var(--white);
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Navbar */
.navbar{
    background:var(--white);
    border-top:1px solid #eee;
}

.nav-menu{
    display:flex;
    justify-content:center;
    gap:35px;
    padding:15px 0;
    list-style:none;
}

.nav-menu a{
    font-weight:600;
    transition:.3s;
    position:relative;
}

.nav-menu a:hover,
.nav-menu .active{
    color:var(--primary);
}

.nav-menu a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:.3s;
}

.nav-menu a:hover::after,
.nav-menu .active::after{
    width:100%;
}

/* Hero */
.hero{
    background:linear-gradient(135deg,#E8F5E9,#F1F8E9);
    padding:80px 0;
}

.hero-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:50px;
}

.hero-text h1{
    font-size:56px;
    line-height:1.2;
    margin-bottom:20px;
}

.hero-text h1 span{
    color:var(--primary);
}

.hero-text p{
    font-size:18px;
    color:var(--text-light);
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 30px;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.btn-primary{
    background:var(--primary);
    color:var(--white);
}

.btn-primary:hover{
    background:#256528;
    transform:translateY(-2px);
}

.btn-outline{
    border:2px solid var(--primary);
    color:var(--primary);
}

.btn-outline:hover{
    background:var(--primary);
    color:var(--white);
}

/* Section Title */
.section{
    padding:70px 0;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:38px;
    color:var(--primary);
    margin-bottom:10px;
}

.section-title p{
    color:var(--text-light);
}

/* Categories */
.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.category-card{
    background:var(--white);
    padding:30px 20px;
    border-radius:var(--radius);
    text-align:center;
    box-shadow:var(--shadow);
    transition:.3s;
}

.category-card:hover{
    transform:translateY(-8px);
}

.category-card i{
    font-size:45px;
    color:var(--primary);
    margin-bottom:15px;
}

/* Products */
.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.product-card{
    background:var(--white);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s;
    position:relative;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-badge{
    position:absolute;
    top:15px;
    left:15px;
    background:#ff5722;
    color:var(--white);
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
}

.product-image{
    height:250px;
    background:#f7f7f7;
    display:flex;
    align-items:center;
    justify-content:center;
}

.product-image img{
    width:80%;
    height:80%;
    object-fit:contain;
}

.product-info{
    padding:20px;
}

.product-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:10px;
}

.product-rating{
    color:#FFC107;
    margin-bottom:10px;
}

.product-price{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
}

.new-price{
    font-size:24px;
    font-weight:700;
    color:var(--primary);
}

.old-price{
    color:#999;
    text-decoration:line-through;
}

.product-actions{
    display:flex;
    gap:10px;
}

.add-cart{
    flex:1;
    background:var(--primary);
    color:var(--white);
    border:none;
    padding:12px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
}

.wishlist{
    width:45px;
    border:none;
    background:#f5f5f5;
    border-radius:10px;
    cursor:pointer;
}

/* Features */
.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.feature-card{
    background:var(--white);
    padding:35px 25px;
    border-radius:var(--radius);
    text-align:center;
    box-shadow:var(--shadow);
}

.feature-card i{
    font-size:50px;
    color:var(--primary);
    margin-bottom:20px;
}

/* Newsletter */
.newsletter{
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    color:var(--white);
    border-radius:25px;
    padding:50px 30px;
    text-align:center;
}

.newsletter-form{
    max-width:600px;
    margin:30px auto 0;
    display:flex;
    background:var(--white);
    border-radius:50px;
    overflow:hidden;
}

.newsletter-form input{
    flex:1;
    padding:15px 20px;
    border:none;
    outline:none;
}

.newsletter-form button{
    background:var(--accent);
    color:var(--white);
    border:none;
    padding:0 30px;
    font-weight:700;
    cursor:pointer;
}

/* Footer */
.footer{
    background:#1B1B1B;
    color:#ccc;
    padding:70px 0 20px;
    margin-top:70px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    margin-bottom:40px;
}

.footer h3{
    color:var(--white);
    margin-bottom:20px;
}

.footer-links{
    list-style:none;
}

.footer-links li{
    margin-bottom:10px;
}

.footer-links a:hover{
    color:var(--accent);
}

.social-links{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.social-links a{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#333;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

.social-links a:hover{
    background:var(--primary);
}

.footer-bottom{
    border-top:1px solid #333;
    padding-top:20px;
    text-align:center;
}

/* Responsive */
@media(max-width:991px){
    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-text h1{
        font-size:42px;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:768px){
    .header-content{
        flex-wrap:wrap;
    }

    .search-box{
        order:3;
        width:100%;
        max-width:none;
    }

    .nav-menu{
        flex-wrap:wrap;
        gap:15px;
    }

    .hero-text h1{
        font-size:34px;
    }

    .section-title h2{
        font-size:30px;
    }
}

@media(max-width:576px){
    .footer-grid{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        justify-content:center;
    }

    .newsletter-form{
        flex-direction:column;
        border-radius:15px;
    }

    .newsletter-form button{
        padding:15px;
    }
}