/* ===============================
   RESET & GLOBAL
================================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', sans-serif;
    background:#f5f6f8;
    color:#333;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    cursor:pointer;
    transition:0.3s ease;
}

img{
    max-width:100%;
    display:block;
}

/* ===============================
   OFFER STRIP
================================ */

.offer-strip{
    background:#111;
    color:#fff;
    text-align:center;
    padding:8px;
    font-size:14px;
}

/* ===============================
   HEADER
================================ */

.main-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    background:#84c225;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:22px;
    font-weight:700;
    color:white;
}

/* SEARCH BAR */

.search-bar{
    position:relative;
    width:35%;
}

.search-bar input{
    width:100%;
    padding:10px 15px;
    border:none;
    border-radius:30px;
    outline:none;
}

.live-search-results{
    position:absolute;
    top:45px;
    width:100%;
    background:white;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
    max-height:300px;
    overflow:auto;
    display:none;
    z-index:2000;
}

.search-item{
    padding:10px;
    border-bottom:1px solid #eee;
}

.search-item:hover{
    background:#f5f5f5;
}

/* NAVIGATION */

nav{
    display:flex;
    align-items:center;
    gap:20px;
}

nav a{
    color:white;
    font-weight:500;
}

nav a:hover{
    opacity:0.8;
}

/* CART BADGE */

.cart-link{
    position:relative;
}

#cart-count{
    position:absolute;
    top:-8px;
    right:-10px;
    background:red;
    color:white;
    font-size:12px;
    padding:3px 6px;
    border-radius:50%;
}

/* MOBILE MENU */

.menu-toggle{
    display:none;
    font-size:24px;
    color:white;
    cursor:pointer;
}

/* ===============================
   HERO SLIDER
================================ */

.hero-slider{
    position:relative;
    height:420px;
    overflow:hidden;
}

.slides{
    display:flex;
    transition:0.6s ease-in-out;
}

.slide{
    min-width:100%;
    position:relative;
}

.slide img{
    width:100%;
    height:420px;
    object-fit:cover;
}

.slide-overlay{
    position:absolute;
    top:50%;
    left:8%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    padding:30px;
    border-radius:12px;
    color:white;
}

.slide-overlay h1{
    font-size:36px;
    margin-bottom:10px;
}

.btn{
    display:inline-block;
    padding:10px 25px;
    background:#ff5722;
    color:white;
    border-radius:30px;
}

.btn:hover{
    background:#e64a19;
}

.slider-controls{
    position:absolute;
    top:50%;
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:0 20px;
    font-size:30px;
    color:white;
    cursor:pointer;
}

/* ===============================
   SEARCH SECTION
================================ */

.search-section{
    padding:30px;
    text-align:center;
}

.search-box{
    display:flex;
    justify-content:center;
    gap:10px;
}

.search-box input{
    width:400px;
    padding:12px;
    border-radius:30px;
    border:1px solid #ddd;
}

.search-box button{
    padding:12px 25px;
    border:none;
    border-radius:30px;
    background:#84c225;
    color:white;
}

/* ===============================
   CATEGORY GRID
================================ */

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    padding:40px;
}

.category-card{
    background:white;
    padding:20px;
    text-align:center;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    cursor:pointer;
}

.category-card:hover{
    transform:translateY(-8px);
}

/* ===============================
   FEATURED PRODUCTS
================================ */

.featured-section{
    padding:50px;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.product-card{
    background:white;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-card img{
    height:160px;
    object-fit:contain;
}

.price{
    font-weight:bold;
    margin:10px 0;
}

.product-card button{
    padding:8px 15px;
    border:none;
    border-radius:20px;
    background:#84c225;
    color:white;
}

.product-card button:hover{
    background:#6fa91e;
}

/* ===============================
   WHY SECTION
================================ */

.why-us{
    padding:50px;
    text-align:center;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-top:30px;
}

.why-card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

/* ===============================
   NEWSLETTER
================================ */

.newsletter{
    background:#84c225;
    padding:40px;
    text-align:center;
    color:white;
}

.newsletter-box{
    margin-top:15px;
    display:flex;
    justify-content:center;
    gap:10px;
}

.newsletter-box input{
    padding:12px;
    border:none;
    border-radius:30px;
    width:250px;
}

.newsletter-box button{
    padding:12px 25px;
    border:none;
    border-radius:30px;
    background:#ff5722;
    color:white;
}

/* ===============================
   FOOTER
================================ */

.main-footer{
    background:#222;
    color:white;
    padding:40px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:30px;
}

.footer-grid h4{
    margin-bottom:10px;
}

.footer-grid a{
    display:block;
    margin-bottom:5px;
    color:white;
}

.footer-grid a:hover{
    opacity:0.7;
}

.main-footer p{
    margin-top:20px;
    text-align:center;
    font-size:14px;
}

/* ===============================
   CART DRAWER
================================ */

.cart-drawer{
    position:fixed;
    right:-400px;
    top:0;
    width:350px;
    height:100%;
    background:white;
    box-shadow:-5px 0 15px rgba(0,0,0,0.2);
    transition:0.4s;
    z-index:2000;
    display:flex;
    flex-direction:column;
}

.cart-drawer.active{
    right:0;
}

#drawerOverlay{
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    top:0;
    left:0;
    display:none;
    z-index:1500;
}

#drawerOverlay.active{
    display:block;
}

.cart-header{
    padding:15px;
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid #eee;
}

.cart-body{
    flex:1;
    overflow:auto;
    padding:15px;
}

.cart-footer{
    padding:15px;
    border-top:1px solid #eee;
}

.checkout-btn{
    display:block;
    background:#84c225;
    color:white;
    text-align:center;
    padding:10px;
    border-radius:5px;
}

/* ===============================
   CART PAGE
================================ */

.cart-page{
    padding:40px;
}

.cart-card{
    background:white;
    padding:20px;
    margin-bottom:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.cart-controls button{
    padding:5px 10px;
    margin:0 5px;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media(max-width:768px){

    .search-bar{
        display:none;
    }

    nav{
        display:none;
        flex-direction:column;
        background:#84c225;
        position:absolute;
        top:60px;
        right:0;
        width:200px;
        padding:15px;
    }

    .menu-toggle{
        display:block;
    }

    .hero-slider{
        height:300px;
    }

    .slide img{
        height:300px;
    }

    .slide-overlay h1{
        font-size:22px;
    }

    .search-box input{
        width:100%;
    }

    .cart-drawer{
        width:100%;
    }

    .cart-page{
        padding:20px;
    }

}

.shop-container{
    display:flex;
    padding:40px;
    gap:30px;
}

.sidebar{
    width:220px;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    padding:10px 0;
    cursor:pointer;
    border-bottom:1px solid #eee;
    transition:0.3s;
}

.sidebar li:hover{
    color:#84c225;
}

.active-cat{
    color:#84c225;
    font-weight:600;
}

.product-area{
    flex:1;
}

.products-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.sort-form select{
    padding:8px;
    border-radius:6px;
    border:1px solid #ccc;
}

.product-card{
    position:relative;
}

.badge-new{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff5722;
    color:white;
    padding:4px 8px;
    font-size:12px;
    border-radius:5px;
}

.no-products{
    text-align:center;
    padding:50px;
}

/* MOBILE */
@media(max-width:768px){

    .shop-container{
        flex-direction:column;
        padding:20px;
    }

    .sidebar{
        width:100%;
    }

    .products-topbar{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

}


.price-filter{
    display:flex;
    gap:10px;
    align-items:center;
}
.price-filter input[type=range]{
    width:120px;
}


.rating{
    margin:5px 0;
    font-size:16px;
    color:#f5a623;
}

.wishlist-btn{
    position:absolute;
    top:10px;
    right:10px;
    font-size:20px;
    cursor:pointer;
}

.quick-modal{
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    top:0;
    left:0;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:3000;
}
.quick-content{
    background:white;
    padding:30px;
    width:400px;
    border-radius:10px;
}

.checkout-container{
    display:flex;
    gap:40px;
    padding:40px;
    max-width:1200px;
    margin:auto;
}

.checkout-form{
    flex:2;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.checkout-form input,
.checkout-form textarea{
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:6px;
}

.form-row{
    display:flex;
    gap:15px;
}

.pay-btn{
    width:100%;
    padding:12px;
    background:#84c225;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
}

.order-summary{
    flex:1;
    background:#fafafa;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.summary-item{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
}

.summary-item img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.summary-total p{
    display:flex;
    justify-content:space-between;
    margin:5px 0;
}

.summary-total h4{
    display:flex;
    justify-content:space-between;
}

.secure-badge{
    margin-top:20px;
    font-size:14px;
    text-align:center;
    color:#555;
}

@media(max-width:900px){
    .checkout-container{
        flex-direction:column;
    }
}


.delivery-check{
    margin-bottom:20px;
}

.pin-box{
    display:flex;
    gap:10px;
}

.pin-box input{
    flex:1;
}

#deliveryStatus{
    margin-top:8px;
    font-weight:500;
}