body{
    margin:0;
    font-family:'Inter',sans-serif;
    background:#f6f7f9;
}

/* ================= TOPBAR ================= */

.topbar{
    position:sticky;
    top:0;
    background:white;
    padding:16px 28px;
    display:flex;
    align-items:center;
    gap:24px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    z-index:1000;
}

.left{
    display:flex;
    flex-direction:column;
    min-width:170px;
}

.brand-row{
    display:flex;
    align-items:center;
    gap:8px;
}

.brand{
    font-size:24px;
    font-weight:800;
    color:#0aad0a;
}

.badge{
    background:#e6f9e6;
    color:#0aad0a;
    font-size:11px;
    padding:4px 8px;
    border-radius:20px;
}

.location-dropdown{
    font-size:13px;
    margin-top:4px;
    cursor:pointer;
    position:relative;
}

.location-menu{
    display:none;
    position:absolute;
    top:28px;
    background:white;
    padding:8px;
    border-radius:10px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.location-menu.active{
    display:block;
}

/* SEARCH */

.search-container{
    flex:1;
    max-width:650px;
}

.search-box{
    position:relative;
}

.search-box input{
    width:100%;
    padding:16px 55px 16px 45px;
    border-radius:30px;
    border:none;
    background:#f1f3f6;
    font-size:15px;
}

.search-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
}

.filter-btn{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:none;
    cursor:pointer;
}

/* CART */

.cart-btn{
    position:relative;
    background:#0aad0a;
    color:white;
    border:none;
    padding:12px 16px;
    border-radius:14px;
    cursor:pointer;
}

.cart-count{
    position:absolute;
    top:-6px;
    right:-6px;
    background:red;
    font-size:10px;
    padding:4px 6px;
    border-radius:50%;
}

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

.category-section{
    padding:20px 24px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:14px;
}

.category-card{
    background:white;
    border-radius:14px;
    padding:10px;
    text-align:center;
    text-decoration:none;
    color:#222;
    box-shadow:0 3px 10px rgba(0,0,0,0.04);
}

.category-image{
    background:#f1f3f6;
    padding:12px;
    border-radius:12px;
    margin-bottom:6px;
}

.category-image img{
    width:50px;
    height:50px;
}

.category-card p{
    font-size:12px;
    font-weight:600;
    margin:0;
}

/* ================= PRODUCTS ================= */

.products{
    padding:24px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:16px;
}

.card{
    background:white;
    border-radius:14px;
    padding:12px;
    box-shadow:0 4px 14px rgba(0,0,0,0.05);
}

.card img{
    width:100%;
    height:130px;
    object-fit:cover;
    border-radius:10px;
}

.card-body h4{
    font-size:13px;
    margin:8px 0;
}

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

.price{
    font-weight:700;
}

.add-btn{
    background:#0aad0a;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    text-decoration:none;
    font-size:12px;
}

.qty-box{
    background:#0aad0a;
    border-radius:20px;
    padding:3px 10px;
    color:white;
}

/* ================= OVERLAY ================= */

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.35);
    opacity:0;
    pointer-events:none;
    transition:0.3s ease;
    z-index:9998;
}

.overlay.active{
    opacity:1;
    pointer-events:auto;
}

/* ================= CART DRAWER ================= */

.cart-drawer{
    position:fixed;
    top:0;
    right:-360px;
    width:340px;
    height:100%;
    background:white;
    box-shadow:-8px 0 30px rgba(0,0,0,0.15);
    transition:right 0.35s ease;
    z-index:9999;
    display:flex;
    flex-direction:column;
}

.cart-drawer.open{
    right:0;
}

.drawer-header{
    padding:16px;
    border-bottom:1px solid #eee;
    display:flex;
    justify-content:space-between;
}

.drawer-body{
    flex:1;
    overflow-y:auto;
    padding:16px;
}

.drawer-footer{
    padding:16px;
    border-top:1px solid #eee;
}


.floating-cart{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0aad0a;
    color: white;
    padding: 16px 28px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 9997;
    min-width: 320px;
}

.floating-cart:hover{
    transform: translateX(-50%) scale(1.03);
}


.drawer-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
    padding-bottom:10px;
    border-bottom:1px solid #eee;
}

.drawer-item-info{
    font-size:14px;
}

.delete-btn{
    background:#ffeaea;
    color:#ff4d4d;
    padding:6px 10px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    transition:0.2s;
}

.delete-btn:hover{
    background:#ff4d4d;
    color:white;
}


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


.hero {
    padding: 40px 28px;
    background: linear-gradient(135deg,#f7fff7,#eef9ff);
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    color: #555;
    margin-bottom: 18px;
}

.hero a {
    background: #0aad0a;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}
.hero-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    background: linear-gradient(135deg,#e8fff0,#f6fff8);
    border-radius: 20px;
    margin: 30px;
    gap: 40px;
}

.hero-left h1{
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-left p{
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.hero-btn{
    background: #0aad0a;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s ease;
}

.hero-btn:hover{
    background: #088c08;
}

.hero-right img{
    width: 100%;
    max-width: 400px;
}

/* Mobile */
@media (max-width: 768px){
    .hero-section{
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .hero-right img{
        max-width: 250px;
    }
}

/* ================= OFFER SLIDER ================= */

.offer-slider{
    margin: 20px 30px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.slides{
    display: flex;
    transition: transform 0.5s ease;
}

.slide{
    min-width: 100%;
    padding: 40px;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 22px;
}

/* Different background per slide */
.slide:nth-child(1){
    background: linear-gradient(135deg,#ff7e5f,#feb47b);
}
.slide:nth-child(2){
    background: linear-gradient(135deg,#43cea2,#185a9d);
}
.slide:nth-child(3){
    background: linear-gradient(135deg,#ff512f,#dd2476);
}


.offer-strip {
    background: #0aad0a;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.offer-text {
    display: inline-block;
    padding-left: 100%;
    animation: slide 18s linear infinite;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
/* Mobile */
@media (max-width: 768px){
    .slide{
        font-size: 16px;
        padding: 30px 15px;
        
    }
}


/* ================= TOP DEALS ================= */
.top-deals {
    padding: 30px 24px;
}

.deal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.deal-card {
    min-width: 180px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.top-deals{
    padding: 10px 30px 30px;
}

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

.section-header h2{
    font-size: 20px;
    font-weight: 700;
}

.section-header a{
    font-size: 14px;
    color: #0aad0a;
    text-decoration: none;
    font-weight: 600;
}

.deals-scroll{
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.deals-scroll::-webkit-scrollbar{
    display: none;
}

.deal-card{
    min-width: 180px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition: 0.25s ease;
}

.deal-card:hover{
    transform: translateY(-5px);
}

.deal-card img{
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
}

.deal-info h4{
    font-size: 14px;
    margin: 8px 0 4px;
}

.deal-price{
    font-weight: 700;
    color: #0aad0a;
}

/* Mobile */
@media (max-width: 768px){
    .deal-card{
        min-width: 150px;
    }
}

.checkout-btn {
    display: block;
    width: 100%;
    background: #0aad0a;
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.checkout-btn:hover {
    background: #088c08;
}


/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px){

    /* Reduce padding */
    .topbar {
        padding: 12px 15px;
        gap: 12px;
    }

    .brand {
        font-size: 20px;
    }

    .search-box input {
        padding: 14px 45px;
        font-size: 14px;
    }

    /* Categories smaller */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 10px;
    }

    .category-image img {
        width: 45px;
        height: 45px;
    }

    .category-card p {
        font-size: 11px;
    }

    /* PRODUCTS: 2 per row */
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .card {
        padding: 10px;
        border-radius: 14px;
    }

    .card img {
        height: 110px;
    }

    .card h4 {
        font-size: 13px;
        min-height: 32px;
    }

    .price {
        font-size: 13px;
    }

    .add-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Floating cart full width */
    .floating-cart {
        width: 100%;
        left: 0;
        transform: none;
        bottom: 0;
        border-radius: 0;
        padding: 14px;
        justify-content: space-between;
    }
}


@media (max-width: 768px){
    .left {
        min-width: auto;
    }

    .search-container {
        max-width: 100%;
    }

    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}


@media (max-width: 768px){

    .hero-section {
        flex-direction: column;
        padding: 20px 15px;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 22px;
    }

    .hero-right img {
        width: 100%;
        height: auto;
        margin-top: 15px;
    }
}


/* ================= PREMIUM MOBILE NAV ================= */

.mobile-nav{
    display: none;
}

@media (max-width: 768px){

    .mobile-nav{
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        height: 65px;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(12px);
        border-radius: 20px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        z-index: 9999;
        padding: 0 10px;
    }

    .nav-item{
        text-decoration: none;
        color: #777;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-item.active{
        color: #0aad0a;
        transform: translateY(-6px);
    }

    .nav-indicator{
        position: absolute;
        bottom: 8px;
        height: 4px;
        width: 50px;
        background: #0aad0a;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    body{
        padding-bottom: 100px;
    }
}

.nav-cart-badge{
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50px;
    font-weight: 600;
}


/* PRODUCT CARD UPGRADE */

.card {
    background: white;
    border-radius: 18px;
    padding: 14px;
    position: relative;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4d4d;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
}

.card-content h4 {
    font-size: 14px;
    margin: 5px 0;
    font-weight: 600;
}

.rating {
    font-size: 12px;
    color: #f5a623;
    margin-bottom: 6px;
}

.stock-warning {
    font-size: 12px;
    color: #ff4d4d;
    margin-bottom: 8px;
}

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

.price {
    font-weight: 700;
    font-size: 15px;
}

.add-btn {
    background: #0aad0a;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: 0.2s ease;
}

.add-btn:hover {
    background: #099209;
}

.qty-box {
    background: #0aad0a;
    color: white;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 13px;
}



/* ================= CHECKOUT PAGE ================= */

.checkout-body {
    font-family: 'Inter', sans-serif;
    background: #f6f7f9;
    padding: 40px 20px;
}

.checkout-container {
    max-width: 650px;
    margin: auto;
}

.checkout-title {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}

.checkout-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.checkout-form textarea {
    resize: none;
    height: 80px;
}

.payment-option {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.place-order-btn {
    width: 100%;
    background: #0aad0a;
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.place-order-btn:hover {
    background: #099209;
}


/* ================= SUCCESS PAGE ================= */

.success-body {
    font-family: 'Inter', sans-serif;
    background: #f6f7f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.success-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 400px;
}

.success-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.success-btn {
    display: inline-block;
    margin-top: 20px;
    background: #0aad0a;
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.track-body{
    background:#f6f7f9;
    font-family:Inter,sans-serif;
}

.track-container{
    background:white;
    max-width:600px;
    margin:80px auto;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 40px rgba(0,0,0,0.08);
    text-align:center;
}

.progress-bar{
    display:flex;
    justify-content:space-between;
    margin-top:40px;
}

.step{
    flex:1;
    padding:12px;
    border-radius:20px;
    background:#eee;
    margin:0 5px;
    font-size:14px;
}

.step.active{
    background:#0aad0a;
    color:white;
}

.cancel-btn{
    display:inline-block;
    margin-top:20px;
    padding:10px 18px;
    background:red;
    color:white;
    border-radius:10px;
    text-decoration:none;
}


.admin-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-top:30px;
}

.admin-card{
    background:white;
    padding:30px;
    border-radius:16px;
    text-align:center;
    font-weight:600;
    text-decoration:none;
    color:#222;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    transition:0.3s;
}

.admin-card:hover{
    transform:translateY(-5px);
}

.logout{
    background:#ffeded;
}


.topbar-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.login-btn{
    background:#0aad0a;
    color:white;
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.profile-dropdown{
    position:relative;
}

.profile-btn{
    background:#f1f3f6;
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
}

.profile-menu{
    display:none;
    position:absolute;
    top:40px;
    right:0;
    background:white;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    border-radius:10px;
    overflow:hidden;
}

.profile-menu a{
    display:block;
    padding:10px 15px;
    text-decoration:none;
    color:#333;
}

.profile-menu a:hover{
    background:#f6f7f9;
}

.profile-dropdown:hover .profile-menu{
    display:block;
}


.add-btn{
    transition: all 0.2s ease;
}

.add-btn:active{
    transform: scale(0.9);
}

.qty-box button{
    background:none;
    border:none;
    color:white;
    font-size:16px;
    cursor:pointer;
}

