:root{
    --green:#1f6f50;
    --dark:#12372a;
    --orange:#ff7a00;
    --cream:#fff8ef;
    --text:#1f2937;
    --muted:#6b7280;
    --border:#e5e7eb;
    --white:#ffffff;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f8fafc;
    color:var(--text);
    line-height:1.6;
}

.container{width:92%;max-width:1200px;margin:auto}

/* Header */
.topbar{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:50;
}

.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:14px 0;
}

.logo-brand{display:flex;align-items:center;text-decoration:none;flex-shrink:0}
.site-logo{height:70px;width:auto;max-width:260px;object-fit:contain;display:block}

.search{display:flex;flex:1;max-width:520px}
.search input{width:100%;padding:13px;border:1px solid var(--border);border-radius:10px 0 0 10px}

.search button,.btn{
    background:var(--green);
    color:#fff;
    border:0;
    padding:13px 20px;
    border-radius:0 10px 10px 0;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    font-weight:700;
}

nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
nav a{color:var(--text);text-decoration:none;font-weight:700}
nav a:hover{color:var(--orange)}

/* Hero */
.hero{background:linear-gradient(135deg,var(--cream),#e9fff4);padding:80px 0}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:35px;align-items:center}

.badge{
    display:inline-block;
    background:#fff;
    color:var(--green);
    padding:8px 14px;
    border-radius:99px;
    font-weight:700;
    margin-bottom:12px;
}

.hero h1{font-size:54px;line-height:1.05;margin-bottom:18px;color:var(--dark)}
.hero p{font-size:18px;color:var(--muted);margin-bottom:24px}

.hero-card{
    background:#fff;
    padding:34px;
    border-radius:24px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.hero-card h3{font-size:28px;color:var(--dark)}
.hero-card ul{margin:18px 0 0 20px}

/* Sections */
.section{padding:55px 0}
.section-title{font-size:32px;color:var(--dark);margin-bottom:22px}

/* Grids */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}

/* Cards */
.card,.product{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.04);
    transition:.25s ease;
    overflow:hidden;
}

.card:hover,.product:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 35px rgba(0,0,0,.08);
}

.card{text-decoration:none;color:inherit}

.card img,.product img{
    width:100%;
    height:280px;
    object-fit:contain;
    background:#fff;
    border-radius:14px;
    padding:10px;
    display:block;
    transition:transform .3s ease;
}

.product:hover img{transform:scale(1.04)}

.card h3,.product h3{
    margin:14px 0 8px;
    color:var(--dark);
    font-size:18px;
    min-height:50px;
}

.product p,.card p{color:var(--muted);font-size:14px}

.price{
    font-size:24px;
    font-weight:800;
    color:var(--green);
    margin-top:12px;
    margin-bottom:10px;
}

.old{text-decoration:line-through;color:var(--muted);font-size:14px;margin-left:6px}

.product{
    display:flex;
    flex-direction:column;
    height:100%;
}

.product-actions{
    display:flex;
    gap:10px;
    margin-top:auto;
    flex-wrap:wrap;
}

.product-actions a,.product-actions button,.checkout-btn{
    background:var(--orange);
    color:white;
    border:0;
    border-radius:10px;
    padding:10px 14px;
    text-decoration:none;
    cursor:pointer;
    font-weight:700;
}

.product-actions a{
    flex:1;
    text-align:center;
}

.product-actions a:hover,.checkout-btn:hover{background:#e86f00}

/* Banner */
.banner{
    background:var(--dark);
    color:#fff;
    border-radius:22px;
    padding:35px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

/* Shop Page */
.shop-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:25px;
}

.shop-subtitle{color:var(--muted);font-size:15px}

.shop-sort{
    background:#fff;
    border:1px solid var(--border);
    padding:14px;
    border-radius:14px;
    display:flex;
    gap:10px;
    align-items:center;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.shop-sort label{font-weight:700}

.shop-sort select{
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
}

.category-pills{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.category-pills a{
    background:#fff;
    color:var(--dark);
    border:1px solid var(--border);
    padding:10px 16px;
    border-radius:999px;
    text-decoration:none;
    font-weight:700;
    transition:.25s ease;
}

.category-pills a.active,.category-pills a:hover{
    background:var(--green);
    color:#fff;
    border-color:var(--green);
}

.product-category{
    color:var(--orange) !important;
    font-size:12px !important;
    font-weight:800 !important;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-top:12px;
}

.pagination{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:40px;
}

.pagination a{
    background:#fff;
    border:1px solid var(--border);
    color:var(--dark);
    padding:10px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    transition:.25s ease;
}

.pagination a:hover,.pagination a.active{
    background:var(--orange);
    color:#fff;
    border-color:var(--orange);
}

/* Tables */
.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
}

.table th,.table td{padding:14px;border-bottom:1px solid var(--border);text-align:left}
.table th{background:#f3f7f5;color:var(--dark)}

/* Forms */
.form{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:25px;
}

.form input,.form textarea,.form select{
    width:100%;
    padding:13px;
    margin:8px 0 16px;
    border:1px solid var(--border);
    border-radius:10px;
}

.notice{
    background:#e8fff3;
    border:1px solid #9ee6bd;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

/* Footer */
.footer{
    background:#102a20;
    color:#d1fae5;
    margin-top:50px;
    padding:45px 0 20px;
}

.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:25px}
.footer h3,.footer h4{color:#ffffff;margin-bottom:10px}
.footer a{display:block;color:#d1fae5;text-decoration:none;margin:7px 0}
.footer a:hover{color:#ffffff}

.copyright{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.15);
    padding-top:18px;
    margin-top:25px;
}

/* Admin */
.admin-wrap{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.sidebar{background:#102a20;color:#fff;padding:25px}
.sidebar a{display:block;color:#fff;text-decoration:none;padding:10px 0}
.admin-main{padding:30px}

/* WhatsApp */
.whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#25D366;
    color:#ffffff !important;
    padding:14px 20px;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    font-size:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    z-index:9999;
    transition:all .3s ease;
}

.whatsapp-float:hover{
    background:#1EBE5D;
    transform:translateY(-2px);
}

/* Responsive */
@media(max-width:1000px){
    .grid-4{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:900px){
    .nav{flex-direction:column;align-items:stretch}
    .logo-brand{justify-content:center}
    .site-logo{height:60px;max-width:220px}
    .search{max-width:100%}
    nav{justify-content:center}
    .hero-grid,.footer-grid{grid-template-columns:1fr}
    .hero h1{font-size:38px}
    .grid-4{grid-template-columns:repeat(2,1fr)}
    .banner{flex-direction:column;align-items:flex-start}
}

@media(max-width:700px){
    .shop-header{display:block}
    .shop-sort{margin-top:15px;width:100%}
    .product img{height:220px}
}

@media(max-width:560px){
    .grid-4{grid-template-columns:1fr}
    .hero{padding:50px 0}
    .hero h1{font-size:32px}
    .site-logo{height:50px;max-width:180px}
    .card img,.product img{height:240px}
    .whatsapp-float{right:15px;bottom:15px;padding:12px 16px;font-size:14px}

/* Premium Homepage */
.premium-hero{
    position:relative;
    overflow:hidden;
}

.premium-hero:before{
    content:"";
    position:absolute;
    right:-120px;
    top:-120px;
    width:360px;
    height:360px;
    background:rgba(255,122,0,.12);
    border-radius:50%;
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:22px;
}

.hero-btn,
.secondary-hero-btn{
    border-radius:12px;
}

.secondary-hero-btn{
    background:var(--orange);
}

.trust-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:20px;
}

.trust-row span{
    background:#fff;
    border:1px solid var(--border);
    padding:8px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    color:var(--dark);
}

.premium-card{
    border:1px solid var(--border);
    position:relative;
    z-index:2;
}

.deal-label{
    display:inline-block;
    color:var(--orange);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    margin-bottom:8px;
}

.deal-box{
    background:#f8fafc;
    border:1px solid var(--border);
    border-radius:16px;
    padding:16px;
    margin:18px 0;
}

.deal-box strong{
    display:block;
    color:var(--orange);
    font-size:22px;
}

.deal-box span{
    color:var(--muted);
}

.stats-section{
    padding:30px 0;
    background:#fff;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.stats-grid div{
    text-align:center;
    padding:18px;
    border-right:1px solid var(--border);
}

.stats-grid div:last-child{
    border-right:0;
}

.stats-grid strong{
    display:block;
    color:var(--green);
    font-size:28px;
}

.stats-grid span{
    color:var(--muted);
    font-weight:700;
    font-size:14px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:22px;
}

.center-head{
    justify-content:center;
    text-align:center;
}

.small-link{
    color:var(--green);
    text-decoration:none;
    font-weight:900;
}

.category-card{
    min-height:100%;
}

.category-link{
    display:inline-block;
    margin-top:12px;
    color:var(--orange);
    font-weight:900;
}

.features-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.feature-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:24px;
    box-shadow:0 8px 25px rgba(0,0,0,.04);
}

.feature-icon{
    width:44px;
    height:44px;
    border-radius:14px;
    background:#e8fff3;
    color:var(--green);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    margin-bottom:14px;
}

.feature-box h3{
    color:var(--dark);
    margin-bottom:8px;
}

.feature-box p{
    color:var(--muted);
    font-size:14px;
}

.premium-banner span{
    color:#fbbf24;
    font-weight:900;
    text-transform:uppercase;
    font-size:13px;
}

.premium-banner h2{
    margin:6px 0;
}

.newsletter-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:32px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    box-shadow:0 12px 35px rgba(0,0,0,.05);
}

.newsletter-box h2{
    color:var(--dark);
}

.newsletter-box p{
    color:var(--muted);
}

.support-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

@media(max-width:900px){
    .section-head,
    .newsletter-box{
        display:block;
    }

    .small-link{
        display:inline-block;
        margin-top:10px;
    }

    .features-grid,
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .stats-grid div{
        border-right:0;
    }

    .support-actions{
        margin-top:15px;
    }
}

@media(max-width:560px){
    .features-grid,
    .stats-grid{
        grid-template-columns:1fr;
    }
}
}
/* Professional Retail Header */
.retail-header{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:999;
}

.retail-top{
    background:var(--dark);
    color:#d1fae5;
    font-size:13px;
    padding:8px 0;
}

.retail-top-inner{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
}

.retail-main-nav{
    display:flex;
    align-items:center;
    gap:24px;
    padding:16px 0;
}

.retail-logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.retail-logo img{
    height:70px;
    max-width:230px;
    object-fit:contain;
}

.retail-search{
    display:flex;
    flex:1;
    border:2px solid var(--green);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.retail-search input{
    flex:1;
    border:0;
    padding:14px 16px;
    font-size:15px;
    outline:none;
}

.retail-search button{
    background:var(--green);
    color:#fff;
    border:0;
    padding:0 24px;
    font-weight:800;
    cursor:pointer;
}

.retail-actions{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}

.retail-actions a{
    text-decoration:none;
    color:var(--dark);
    font-weight:800;
}

.cart-pill{
    background:var(--orange);
    color:#fff !important;
    padding:10px 14px;
    border-radius:999px;
}

.retail-category-bar{
    background:#f8fafc;
    border-top:1px solid var(--border);
}

.retail-category-inner{
    display:flex;
    gap:22px;
    align-items:center;
    overflow-x:auto;
    padding:11px 0;
}

.retail-category-inner a{
    color:var(--dark);
    text-decoration:none;
    font-weight:800;
    white-space:nowrap;
    font-size:14px;
}

.retail-category-inner a:hover{
    color:var(--orange);
}

@media(max-width:900px){
    .retail-main-nav{
        flex-direction:column;
        align-items:stretch;
    }

    .retail-logo{
        justify-content:center;
    }

    .retail-actions{
        justify-content:center;
    }

    .retail-top-inner{
        text-align:center;
        justify-content:center;
    }
}
/* Retail Shop Page */
.shop-hero{
    background:linear-gradient(135deg,#fff8ef,#e9fff4);
    border-bottom:1px solid var(--border);
    padding:45px 0;
}

.shop-hero h1{
    color:var(--dark);
    font-size:42px;
    margin:10px 0;
}

.shop-hero p{
    color:var(--muted);
    max-width:720px;
    font-size:17px;
}

.shop-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:22px;
}

.shop-toolbar h2{
    color:var(--dark);
    font-size:28px;
}

.shop-toolbar p{
    color:var(--muted);
}

.empty-state{
    background:#fff;
    border:1px solid var(--border);
    border-radius:20px;
    padding:40px;
    text-align:center;
}

.empty-state p{
    color:var(--muted);
    margin:8px 0 18px;
}

.retail-product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.retail-product-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
    transition:.25s ease;
}

.retail-product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 16px 40px rgba(0,0,0,.10);
}

.retail-image-wrap{
    position:relative;
    display:block;
    background:#fff;
    padding:18px;
    border-bottom:1px solid var(--border);
}

.retail-image-wrap img{
    width:100%;
    height:230px;
    object-fit:contain;
    display:block;
}

.sale-badge,
.featured-badge{
    position:absolute;
    left:14px;
    top:14px;
    z-index:2;
    font-size:11px;
    font-weight:900;
    padding:5px 9px;
    border-radius:999px;
}

.sale-badge{
    background:#fee2e2;
    color:#b91c1c;
}

.featured-badge{
    background:#e8fff3;
    color:var(--green);
}

.retail-product-body{
    padding:16px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.retail-product-body h3{
    font-size:16px;
    line-height:1.35;
    min-height:45px;
    margin:8px 0;
}

.retail-product-body h3 a{
    color:var(--dark);
    text-decoration:none;
}

.retail-product-body h3 a:hover{
    color:var(--orange);
}

.rating-row{
    display:flex;
    align-items:center;
    gap:7px;
    margin:6px 0;
}

.rating-row span{
    color:#f59e0b;
    font-size:13px;
    letter-spacing:1px;
}

.rating-row small{
    color:var(--muted);
    font-size:12px;
}

.stock-line{
    color:var(--green);
    font-weight:800;
    font-size:13px;
    margin-bottom:12px;
}

.retail-actions-row{
    display:flex;
    gap:10px;
    margin-top:auto;
}

.add-cart-btn,
.details-btn{
    text-align:center;
    text-decoration:none;
    font-weight:900;
    border-radius:10px;
    padding:11px 12px;
}

.add-cart-btn{
    flex:1;
    background:var(--orange);
    color:#fff;
}

.details-btn{
    background:#f3f7f5;
    color:var(--dark);
}

.add-cart-btn:hover{
    background:#e86f00;
}

.details-btn:hover{
    background:#e5e7eb;
}

@media(max-width:1100px){
    .retail-product-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:800px){
    .shop-toolbar{
        display:block;
    }

    .shop-sort{
        margin-top:15px;
    }

    .retail-product-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:560px){
    .shop-hero h1{
        font-size:32px;
    }

    .retail-product-grid{
        grid-template-columns:1fr;
    }

    .retail-image-wrap img{
        height:260px;
    }
}