:root{
  --accent:#18a34a;
  --accent-600:#15803d;
  --accent-700:#166534;
  --accent-50:#ecfdf5;
  --secondary:#ffd54f;
  --text:#0b1220;
  --muted:#64748b;
  --bg:#f6fffa;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(2,6,23,0.08);
  --radius:18px;
}

/* Reset & base */
*{box-sizing:border-box}
html,body{margin:0;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif}
body{background:var(--bg);min-height:100vh;position:relative;overflow-x:hidden}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(800px 600px at 10% 10%, rgba(34,197,94,0.18), transparent 60%),
    radial-gradient(700px 500px at 85% 15%, rgba(59,130,246,0.12), transparent 55%),
    radial-gradient(700px 500px at 30% 90%, rgba(234,179,8,0.12), transparent 55%),
    linear-gradient(180deg, #f6fffa 0%, #ffffff 60%, #f6fffa 100%);
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  opacity:.35;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='.08'%3E%3Cpath d='M0 60 H120'/%3E%3Cpath d='M60 0 V120'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='1.6' fill='%23000000' fill-opacity='.09'/%3E%3C/svg%3E");
  background-size:120px 120px;
  pointer-events:none;
}

a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* Header / Nav */
.lead-ribbon{background:#064e3b;color:#ecfdf5;padding:8px 0;font-weight:700}
.lead-ribbon .container{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.lead-ribbon a{color:#ecfdf5;text-decoration:underline}

.header{position:sticky;top:0;z-index:60;border-bottom:1px solid rgba(229,231,235,.9);backdrop-filter:saturate(170%) blur(10px);background:rgba(255,255,255,.86)}
.navbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px;font:900 18px/1 system-ui;color:#064e3b;white-space:nowrap}
.brand .logo{height:34px;width:auto;display:block}
.brand .name span{color:var(--accent)}

.search{min-width:0;max-width:560px;width:100%}
.search form{display:flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;background:#fff;box-shadow:0 1px 0 rgba(15,23,42,.04)}
.search input{flex:1;padding:11px 14px;border:0;outline:none;color:#111;background:#fff}
.search input::placeholder{color:#94a3b8}
.search button{border:0;background:var(--accent);color:#fff;padding:11px 14px;cursor:pointer;font-weight:800}
.search button:hover{background:var(--accent-600)}

.navlinks{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.navlinks a{padding:9px 10px;border-radius:999px;color:#0f3b2d;font-weight:800;display:inline-flex;align-items:center;gap:8px}
.navlinks a:hover{background:var(--accent-50)}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;background:var(--secondary);color:#3b3b3b;border-radius:999px;padding:0 7px;font-size:12px;font-weight:900}

.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1px solid var(--border);background:#fff;cursor:pointer}
.nav-toggle span{display:block;width:18px;height:2px;background:#0f3b2d;border-radius:2px;margin:2px 0}
.nav-open .nav-toggle{background:var(--accent-50)}

@media(max-width:980px){
  .navbar{grid-template-columns:auto 1fr auto;}
  .search{display:none}
  .nav-toggle{display:inline-flex}
  .navlinks{position:fixed;inset:0 0 0 auto;width:min(360px, 90vw);background:rgba(255,255,255,.95);backdrop-filter:saturate(170%) blur(14px);
    border-left:1px solid rgba(229,231,235,.9);padding:82px 18px 18px;flex-direction:column;align-items:stretch;gap:8px;
    transform:translateX(110%);transition:transform .22s ease;box-shadow:var(--shadow)}
  body.nav-open .navlinks{transform:translateX(0)}
  body.nav-open::after{opacity:.22}
  .navlinks a{justify-content:space-between}
}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;padding:10px 14px;border-radius:999px;font-weight:900;border:1px solid rgba(0,0,0,0);cursor:pointer;transition:transform .15s ease, background .15s ease, box-shadow .15s ease;white-space:nowrap;word-break:normal}
.btn:hover{transform:translateY(-1px);background:var(--accent-600);box-shadow:0 10px 22px rgba(34,197,94,.22)}
.btn:active{transform:translateY(0)}
.btn.secondary{background:#fff;color:#064e3b;border:1px solid var(--border);box-shadow:none}
.btn.secondary:hover{background:var(--accent-50);box-shadow:none}
.btn.ghost{background:transparent;border:1px solid var(--border);color:#0f3b2d}
.btn.ghost:hover{background:#fff}

/* Layout / Cards / Tables */
.grid{display:grid;gap:16px}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--card);border:1px solid rgba(229,231,235,.9);border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 18px rgba(2,6,23,.06)}
.p{padding:18px}
.breadcrumbs{font-size:14px;color:var(--muted);margin:12px 0}
.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden}
.table th,.table td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.table th{background:#f8fafc;color:#0b1220;font-weight:900}
.table tr:last-child td{border-bottom:0}

/* Hero */
.hero{
  margin:18px 0 26px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:28px;
  overflow:hidden;
  background:
    radial-gradient(900px 480px at 20% 15%, rgba(34,197,94,.28), transparent 62%),
    radial-gradient(900px 480px at 90% 0%, rgba(59,130,246,.18), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(236,253,245,.86) 100%);
  box-shadow:var(--shadow);
  position:relative;
}
.hero::after{
  content:"";
  position:absolute;
  right:-120px;
  top:-120px;
  width:320px;
  height:320px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 30%, rgba(34,197,94,.35), rgba(34,197,94,.0) 62%);
  filter:blur(1px);
}
.hero-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;padding:26px}
.hero h1{margin:0;font-size:38px;letter-spacing:-.03em;line-height:1.05}
.hero p{color:#0f172a;margin:10px 0 0;line-height:1.6}
.hero-cta{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:#ffffffcc;border:1px solid rgba(229,231,235,.9);font-weight:900;color:#0f3b2d}
.chip small{font-weight:800;color:var(--muted)}
.hero-side{display:flex;flex-direction:column;gap:12px}
.mini-card{background:rgba(255,255,255,.92);border:1px solid rgba(229,231,235,.9);border-radius:20px;padding:14px;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.mini-card .k{font-weight:900;color:#064e3b}
.mini-card .v{color:var(--muted);margin-top:6px;line-height:1.5}

@media(max-width:980px){
  .hero-inner{grid-template-columns:1fr;}
  .hero h1{font-size:32px}
}

/* New home hero layout */
.kicker{display:inline-flex;align-items:center;gap:8px;font-weight:950;color:#064e3b;background:rgba(236,253,245,.9);border:1px solid rgba(229,231,235,.9);padding:8px 12px;border-radius:999px}
.hero-grid{display:grid;grid-template-columns:1.2fr .9fr;gap:18px;padding:26px}
.hero-title{margin:10px 0 0;font-size:38px;letter-spacing:-.03em;line-height:1.05}
.hero-sub{color:#0f172a;margin:10px 0 0;line-height:1.6}
.hero-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.stat{background:rgba(255,255,255,.88);border:1px solid rgba(229,231,235,.9);border-radius:18px;padding:12px 14px;min-width:150px}
.stat-num{font-weight:950;font-size:18px;color:#064e3b}
.stat-label{color:var(--muted);font-weight:800;margin-top:2px}

.hero-card{background:rgba(255,255,255,.92);border:1px solid rgba(229,231,235,.9);border-radius:24px;overflow:hidden;box-shadow:0 18px 38px rgba(2,6,23,.08)}
.hero-card-top{display:flex;gap:8px;flex-wrap:wrap;padding:14px;border-bottom:1px solid rgba(229,231,235,.9);background:linear-gradient(135deg, rgba(236,253,245,.65), rgba(255,255,255,.9))}
.pill{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:#ffffffcc;border:1px solid rgba(229,231,235,.9);font-weight:900;color:#0f3b2d}
.hero-card-body{padding:14px}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mini{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(229,231,235,.9);border-radius:18px;padding:12px;background:#ffffffcc}
.mini-icon{width:36px;height:36px;border-radius:14px;display:grid;place-items:center;background:rgba(34,197,94,.14);font-weight:950}
.mini-title{font-weight:950}
.mini-sub{color:var(--muted);font-weight:800;margin-top:3px;line-height:1.35}
.hero-brands{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

.cat-card{transition:transform .15s ease, box-shadow .15s ease}
.cat-card:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(2,6,23,.09)}
.cat-icon{font-size:28px}
.cat-name{font-weight:950;margin-top:6px}

.cta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-radius:26px;background:linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.85));border:1px solid rgba(229,231,235,.9);box-shadow:0 18px 40px rgba(2,6,23,.08)}
.cta-title{margin:0;font-size:22px;letter-spacing:-.02em}
.cta-sub{margin:6px 0 0;color:var(--muted);font-weight:800;line-height:1.55}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}

@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-title{font-size:32px}
  .cta{flex-direction:column;align-items:flex-start}
  .mini-grid{grid-template-columns:1fr}
}

/* Sections */
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:20px 0 10px}
.section-title h2{margin:0;font-size:20px;letter-spacing:-.01em}
.section-title p{margin:0;color:var(--muted)}

.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.feature{background:rgba(255,255,255,.9);border:1px solid rgba(229,231,235,.9);border-radius:22px;padding:16px;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.feature .icon{width:40px;height:40px;border-radius:14px;background:rgba(34,197,94,.14);display:grid;place-items:center;font-weight:900;color:#064e3b;margin-bottom:10px}
.feature .t{font-weight:900}
.feature .d{color:var(--muted);margin-top:6px;line-height:1.55}
@media(max-width:980px){ .feature-grid{grid-template-columns:1fr} }

/* Sidebar filters */
.layout-products{display:grid;grid-template-columns:280px 1fr;gap:20px}
@media(max-width:1024px){ .layout-products{grid-template-columns:1fr} }
.sidebar{background:rgba(255,255,255,.92);border:1px solid rgba(229,231,235,.9);border-radius:22px;padding:14px}
.filters label{display:block;margin:10px 0 6px;color:#0f3b2d;font-weight:900}
.filters input,.filters select{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:14px;background:#fff;color:#111}
.filters .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* Alerts */
.alert{padding:10px 12px;border-radius:14px;margin:12px 0;border:1px solid transparent}
.alert.success{background:#ecfdf5;border-color:#bbf7d0;color:#065f46;font-weight:800}
.alert.error{background:#fff1f2;border-color:#fecdd3;color:#7f1d1d;font-weight:800}

/* Forms */
.form{background:rgba(255,255,255,.92);border:1px solid rgba(229,231,235,.9);border-radius:22px;padding:16px;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form label{font-weight:900;display:block;margin:10px 0 6px;color:#064e3b}
.form input,.form textarea,.form select{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:14px;background:#fff;color:#111}
.qty{display:flex;align-items:center;gap:6px}
.qty input{width:86px;text-align:center}
@media(max-width:640px){ .form .row{grid-template-columns:1fr} }

/* Products */
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:1100px){ .products-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:640px){ .products-grid{grid-template-columns:1fr} }

.product-card{display:flex;flex-direction:column;border-radius:22px;border:1px solid rgba(229,231,235,.9);overflow:hidden;background:rgba(255,255,255,.92);box-shadow:0 10px 24px rgba(2,6,23,.06)}
.product-thumb{height:190px;background:linear-gradient(135deg, rgba(236,253,245,.7), rgba(255,255,255,.9));border-bottom:1px solid rgba(229,231,235,.9);display:grid;place-items:center;position:relative}
.card-actions{position:absolute;top:10px;right:10px;display:flex;gap:8px;align-items:center}
.icon-btn{width:36px;height:36px;border-radius:999px;border:1px solid rgba(229,231,235,.9);background:#ffffffcc;display:grid;place-items:center;font-weight:950;color:#0f3b2d;cursor:pointer;line-height:1}
.icon-btn:hover{background:var(--accent-50)}
.icon-btn:active{transform:translateY(1px)}
.product-thumb img{max-width:90%;max-height:165px;object-fit:contain}
.product-body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:8px;word-break:normal}
.product-title{font-weight:950;min-height:40px;letter-spacing:-.01em;word-break:break-word}
.product-price{color:#064e3b;font-weight:950;font-size:18px}
.product-actions{display:flex;gap:8px;margin-top:auto;flex-wrap:wrap}
.product-actions .btn{white-space:nowrap;min-width:120px;justify-content:center;flex:1 1 120px;word-break:keep-all}
.card-actions-top{position:absolute;right:10px;top:10px;display:flex;gap:8px}
.icon-btn{width:38px;height:38px;border-radius:999px;border:1px solid rgba(229,231,235,.9);background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer}
.icon-btn:hover{background:var(--accent-50)}
.icon-btn svg{width:18px;height:18px}

/* Product detail */
.product-wrap{display:grid;grid-template-columns:1.05fr 1fr;gap:20px;align-items:start}
@media(max-width:1024px){ .product-wrap{grid-template-columns:1fr} }
.gallery{display:flex;flex-direction:column;gap:10px}
.gallery-main{width:100%;border:1px solid rgba(229,231,235,.9);border-radius:18px;background:rgba(255,255,255,.92);padding:10px;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.gallery-main img{width:100%;height:360px;object-fit:contain;display:block}
@media(max-width:1024px){ .gallery-main img{height:320px} }
@media(max-width:640px){ .gallery-main img{height:240px} }

.thumbs{display:flex;gap:10px;flex-wrap:wrap}
.thumb{width:70px;height:70px;border:1px solid var(--border);border-radius:16px;background:#fff;cursor:pointer;opacity:.85;padding:0;display:grid;place-items:center;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:contain;display:block}
.thumb.active,.thumb:hover{opacity:1;border-color:#86efac}
h1.product-title{margin:0 0 6px;line-height:1.25}
.meta-row{color:#475569;margin-top:4px}
.pill{display:inline-flex;align-items:center;gap:8px;background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:900}
.sep{opacity:.45;margin:0 6px}
.short-desc{margin-top:10px;line-height:1.6;color:#0f172a}
.price-row{display:flex;align-items:baseline;gap:12px;margin-top:12px}
.price{font-size:28px;font-weight:950;letter-spacing:-.01em}
.stock{font-size:13px;color:#065f46;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:2px 10px;font-weight:900}
.buy-row{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.buy-row input[type="number"]{width:110px}

/* Tabs */
.tabs{display:flex;gap:6px;border-bottom:1px solid rgba(229,231,235,.9);flex-wrap:wrap}
.tab{background:rgba(255,255,255,.92);border:1px solid rgba(229,231,235,.9);border-bottom:none;padding:10px 14px;border-top-left-radius:16px;border-top-right-radius:16px;font-weight:950;cursor:pointer}
.tab.active{background:#ffffff}
.tabpanes{padding-top:14px}
.pane{display:none}
.pane.show{display:block}
.muted{color:var(--muted)}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Empty */
.empty{display:grid;place-items:center;border:1px dashed rgba(229,231,235,.9);border-radius:22px;padding:26px;background:rgba(255,255,255,.76)}
.empty img{width:160px;opacity:.85;display:block;margin-bottom:10px}

/* Sticky CTA on product */
.sticky-cta{position:sticky;bottom:0;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(10px);
  border-top:1px solid rgba(229,231,235,.9);display:flex;gap:10px;justify-content:space-between;align-items:center;padding:10px 12px;margin-top:16px;border-radius:18px}

/* Autocomplete */
.autocomplete{position:relative}
.autocomplete-list{position:absolute;top:100%;left:0;right:0;background:rgba(255,255,255,.98);border:1px solid rgba(229,231,235,.9);border-radius:16px;box-shadow:var(--shadow);z-index:60;max-height:320px;overflow:auto}
.autocomplete-item{padding:10px 12px;display:flex;justify-content:space-between;gap:8px;font-weight:800}
.autocomplete-item small{color:var(--muted);font-weight:800}
.autocomplete-item:hover{background:var(--accent-50);cursor:pointer}

/* Profile menu */
.profile-menu{position:relative}
.profile-btn{display:flex;align-items:center;gap:8px;border:1px solid rgba(229,231,235,.9);background:#fff;border-radius:999px;padding:6px 10px;cursor:pointer}
.profile-btn:hover{background:var(--accent-50)}
.avatar-circle{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:var(--accent);color:#fff;font-weight:950}
.avatar-circle.lg{width:42px;height:42px}
.profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);background:rgba(255,255,255,.98);border:1px solid rgba(229,231,235,.9);border-radius:18px;min-width:240px;box-shadow:var(--shadow);display:none;overflow:hidden}
.profile-menu.open .profile-dropdown{display:block}
.profile-dropdown a{display:block;padding:11px 12px;color:#0f172a;font-weight:900}
.profile-dropdown a:hover{background:var(--accent-50)}
.profile-header{display:flex;gap:10px;padding:12px;border-bottom:1px solid rgba(229,231,235,.9);align-items:center}
.profile-meta .profile-name{font-weight:950}
.profile-meta .profile-email{font-size:12px;color:var(--muted);font-weight:800}

/* Animations */
/*
  Reveal animations
  - Default: visible (so the page never looks blank if JS fails)
  - When JS is enabled, <html> gets class `js` and we animate in.
*/
.reveal{opacity:1;transform:none}
html.js .reveal{opacity:0;transform:translateY(10px);transition:opacity .5s ease, transform .5s ease}
html.js .reveal.in{opacity:1;transform:translateY(0)}

/* Floating buttons */
.float-whatsapp{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;align-items:center;gap:10px;
  padding:12px 14px;border-radius:999px;background:#ffffffee;border:1px solid rgba(229,231,235,.9);box-shadow:var(--shadow);font-weight:950}
.wa-dot{width:10px;height:10px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.18)}
.float-whatsapp:hover{background:var(--accent-50)}

.to-top{position:fixed;right:16px;bottom:74px;z-index:80;width:44px;height:44px;border-radius:999px;border:1px solid rgba(229,231,235,.9);background:#ffffffee;box-shadow:var(--shadow);cursor:pointer;display:none;font-weight:950}
.to-top.show{display:block}

/* Footer */
.footer{margin-top:46px;background:#062a21;color:#e6fff0;padding:34px 0 24px}
.footer a{color:#fff6cc}
.footer-top{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:18px}
.footer h4{margin:0 0 10px;font-weight:950}
.footer ul{margin:0;padding-left:18px}
.footer li{margin:8px 0}
.footer-brand{display:flex;align-items:center;gap:12px}
.footer-logo{width:44px;height:44px;border-radius:12px;background:#fff;object-fit:contain}
.footer-name{font-weight:950;font-size:18px}
.footer-tagline{color:#b7f7d1;margin-top:4px;line-height:1.5}
.footer-contact{margin:0;color:#b7f7d1;line-height:1.8}
.footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12);color:#b7f7d1}
.footer-mini{display:flex;align-items:center;gap:8px}

@media(max-width:980px){
  .grid.cols-4{grid-template-columns:repeat(2,1fr)}
  .grid.cols-3{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .grid.cols-2,.grid.cols-4{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .float-whatsapp{right:12px}
  .to-top{right:12px}
}
