/* Aapna Dukan — original design, plain CSS only, no external fonts or images.
   Palette: deep leaf-green + warm cream + white. No brand copied from anyone. */
*{box-sizing:border-box}
:root{--green:#0f7a4d;--green-dark:#0a5c3a;--green-soft:#e6f4ec;--cream:#f7f5ef;--ink:#1e2a24;--muted:#66706a;--line:#e5e7e0;--white:#fff;--orange:#e8590c;--radius:16px;--shadow:0 2px 10px rgba(20,40,30,.08)}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;margin:0;background:var(--cream);color:var(--ink);line-height:1.45}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #7fbfa1;outline-offset:2px}
.hidden{display:none!important}

/* Header */
.topbar{position:sticky;top:0;z-index:20;background:var(--green);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.topbar-row{max-width:1100px;margin:0 auto;padding:12px 14px 8px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.brand{display:flex;gap:10px;align-items:center;flex:1;min-width:220px}
.brand-mark{width:46px;height:46px;display:grid;place-items:center;font-size:26px;background:rgba(255,255,255,.18);border-radius:14px;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.2}
.brand-name{font-size:22px;font-weight:800;letter-spacing:-.2px}
.brand-sub{font-size:12.5px;opacity:.9}
.topbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.translate{background:#fff;color:var(--green-dark);border:0;padding:10px 14px;border-radius:999px;font-weight:700;min-height:44px}
.authbtn{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.4);padding:10px 14px;border-radius:999px;font-weight:700;min-height:44px}
.auth-name{color:#fff;font-weight:700;align-self:center}
.auth-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,94vw);max-height:90vh;overflow:auto;background:#fff;color:var(--ink);border-radius:20px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:18px;z-index:50}
.auth-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.auth-head h2{margin:0}
.auth-note{color:var(--muted);font-size:14px}
.auth-tabs{display:flex;gap:8px;margin:8px 0}
.auth-tabs button{flex:1;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--cream);font-weight:700;min-height:44px}
.auth-tabs button.active{background:var(--green);color:#fff;border-color:var(--green)}
.cartbtn{background:#fff;color:var(--ink);border:0;padding:10px 14px;border-radius:999px;font-weight:700;min-height:44px;display:flex;align-items:center;gap:7px}
.cart-count{background:var(--green);color:#fff;min-width:24px;height:24px;border-radius:999px;display:grid;place-items:center;padding:0 6px;font-size:13px}
.cart-total{color:var(--green-dark)}
.search-row{max-width:1100px;margin:0 auto;padding:0 14px 12px}
.search-box{display:flex;align-items:center;gap:9px;background:#fff;border-radius:12px;padding:0 14px;box-shadow:0 1px 6px rgba(0,0,0,.12)}
.search-box input{border:0;outline:none;width:100%;padding:13px 0;font-size:16px;color:var(--ink)}
.search-box input::placeholder{color:#8a9490}

/* Shop layout: vertical category sidebar on the LEFT, products on the right */
.shop-layout{max-width:1100px;margin:0 auto;padding:14px;display:flex;gap:18px;align-items:flex-start}
.cat-sidebar{flex:0 0 220px;position:sticky;top:132px;max-height:calc(100vh - 150px);overflow:auto;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.cat-heading{font-size:17px;font-weight:850;padding:4px 6px 10px}
.cat-toggle{display:none}
.cat-list{display:flex;flex-direction:column;gap:8px}
.cat-list button{width:100%;text-align:left;padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--white);font-weight:650;min-height:44px}
.cat-list button.active{background:var(--green);color:#fff;border-color:var(--green)}

/* Main + hero */
.shop-layout main{flex:1;min-width:0;padding:0}
.shop-layout .grid{grid-template-columns:repeat(2,1fr)}
@media(min-width:900px){.shop-layout .grid{grid-template-columns:repeat(3,1fr)}}
.hero{background:linear-gradient(135deg,#dff3e6,#fff7e0);border:1px solid var(--line);border-radius:20px;padding:18px 20px;margin-bottom:16px}
.hero-eyebrow{margin:0 0 4px;font-weight:800;color:var(--green-dark);font-size:13px;letter-spacing:.4px;text-transform:uppercase}
.hero h2{margin:0;font-size:clamp(20px,4.5vw,30px);line-height:1.2}
.hero-sub{margin:6px 0 0;color:#43514a}
.note{margin:12px 0 0;background:rgba(255,255,255,.75);padding:10px 12px;border-radius:12px;font-size:14px}
.note:empty{display:none}
.warning{background:#fff3cd;border:1px solid #f0c36d;padding:12px 14px;border-radius:12px}
.loading{text-align:center;padding:36px 12px;color:var(--muted);font-size:17px}

/* Sections + product cards */
.cat-section{margin:22px 0 8px}
.cat-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.cat-head h3{margin:0;font-size:20px}
.cat-count{color:var(--muted);font-size:13px;white-space:nowrap}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.grid{grid-template-columns:repeat(4,1fr)}}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;min-width:0}
.card-visual{height:104px;border-radius:12px;display:grid;place-items:center;font-size:52px}
.tint-0{background:#eaf6ec}.tint-1{background:#fff3d6}.tint-2{background:#ffece8}.tint-3{background:#e8f1fe}.tint-4{background:#fdf0f6}.tint-5{background:#eef7e8}
.card-name{font-weight:750;font-size:15px;line-height:1.3;min-height:2.6em}
.card-unit{color:var(--muted);font-size:13px}
.card-price{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:auto}
.price{font-weight:850;font-size:17px}
.mrp{color:#8a9490;text-decoration:line-through;font-size:13px}
.off{background:#ffe8e0;color:#b3401e;font-weight:800;font-size:12px;padding:2px 7px;border-radius:999px}
.card-action{margin-top:4px}
.variant-row{display:flex;flex-direction:column;gap:5px;margin-top:2px}
.variant-label{color:var(--muted);font-size:12px;font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{background:var(--white);color:var(--ink);border:1px solid var(--line);padding:6px 10px;border-radius:999px;font-size:12.5px;font-weight:700;min-height:34px}
.chip.active{background:var(--green);color:#fff;border-color:var(--green)}
.add{width:100%;background:var(--white);color:var(--green-dark);border:2px solid var(--green);padding:9px 10px;border-radius:10px;font-weight:800;min-height:44px}
.add:hover{background:var(--green-soft)}
.step{display:flex;align-items:center;justify-content:space-between;background:var(--green);color:#fff;border-radius:10px;padding:3px;min-height:44px}
.step button{background:rgba(255,255,255,.2);color:#fff;border:0;width:38px;height:38px;border-radius:8px;font-size:20px;font-weight:800}
.step strong{min-width:24px;text-align:center}
.out-note{color:#b3401e;font-weight:700;font-size:13px;text-align:center;padding:10px 0}
.empty-state{text-align:center;padding:38px 14px;background:var(--white);border:1px dashed var(--line);border-radius:16px;color:var(--muted)}
.empty-state b{display:block;color:var(--ink);font-size:18px;margin-bottom:4px}

/* Cart drawer */
.overlay{position:fixed;inset:0;background:rgba(10,25,18,.5);z-index:30}
.drawer{position:fixed;right:0;top:0;bottom:0;width:min(420px,94vw);background:#fff;box-shadow:-6px 0 28px rgba(0,0,0,.25);padding:18px;overflow:auto;z-index:40}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.drawer-head h2{margin:0}
.close-btn{background:var(--cream);border:1px solid var(--line);width:44px;height:44px;border-radius:999px;font-size:18px}
.cart-row{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-row .mini{width:44px;height:44px;display:grid;place-items:center;font-size:24px;background:var(--green-soft);border-radius:12px}
.cart-row b{display:block;line-height:1.3}
.cart-row small{color:var(--muted)}
.cart-row .line-total{font-weight:800}
.cart-row .step{min-width:112px}
.totals{margin:14px 0;padding:12px;background:var(--cream);border-radius:12px}
.total-row{display:flex;justify-content:space-between;padding:3px 0}
.total-row.grand{font-weight:850;font-size:18px;border-top:1px solid var(--line);margin-top:6px;padding-top:9px}
.min-order{background:#fff3cd;border:1px solid #f0c36d;padding:10px 12px;border-radius:10px;font-size:14px}
.field-label{display:block;font-weight:700;margin-top:10px;font-size:14px}
input,textarea{width:100%;padding:12px;margin:6px 0;border:1px solid #cbd2ce;border-radius:10px;font-size:16px}
.wa{background:#1faa53;color:#fff;border:0;padding:14px;width:100%;border-radius:12px;font-weight:850;font-size:16px;margin-top:12px;min-height:50px}
.wa:disabled{opacity:.55;cursor:not-allowed}
.order-msg{color:#43514a;font-size:14px}
/* Dark footer, screenshot layout style (original design only) */
.site-footer{background:#12261d;color:#e8efe9;margin-top:28px;padding:0 0 26px}
.footer-terms{max-width:1100px;margin:0 auto;padding:18px 14px 0}
.terms-btn{width:100%;display:flex;justify-content:space-between;align-items:center;background:none;border:0;border-bottom:1px solid rgba(255,255,255,.18);color:#fff;padding:12px 0;font-size:20px;font-weight:800;min-height:44px;text-align:left}
.terms-btn span:last-child{font-size:26px;font-weight:400}
.terms-body{color:#c8d6cc;font-size:14px;line-height:1.6;margin:12px 0 4px}
.footer-grid{max-width:1100px;margin:0 auto;padding:22px 14px 0;display:grid;grid-template-columns:1.2fr 1fr;gap:24px}
.footer-brand{display:flex;gap:14px;align-items:flex-start}
.footer-mark{width:52px;height:52px;flex:none;display:grid;place-items:center;font-size:28px;background:rgba(255,255,255,.14);border-radius:50%}
.footer-name{font-size:22px;font-weight:850;color:#fff}
.footer-tagline{color:#c8d6cc;font-size:14px;margin-top:4px}
.footer-contact{display:flex;flex-direction:column;gap:8px;font-size:15px}
.footer-line a{color:#f5c518;text-decoration:none;font-weight:700}
.footer-line a:hover{text-decoration:underline}
.footer-divider{max-width:1100px;margin:22px auto 0;border:0;border-top:1px solid rgba(255,255,255,.18)}
.footer-copy{max-width:1100px;margin:0 auto;padding:16px 14px 0;color:#aebbb1;font-size:13px}
.footer-discreet{max-width:1100px;margin:0 auto;padding:6px 14px 0;text-align:right}
.footer-discreet a{color:#aebbb1;font-size:12px;text-decoration:none}
.footer-discreet a:hover{color:#e8efe9;text-decoration:underline}
@media(max-width:640px){
  .footer-grid{grid-template-columns:1fr}
  .terms-btn{font-size:18px}
}

/* Mobile (narrow screens): vertical category list ABOVE the products,
   collapsed by default. Tap "Categories" to expand/collapse it; the
   button always shows the currently selected category. Never horizontal
   pills, and products keep full width (no squeezed sidebar column). */
@media(max-width:899px){
  .shop-layout{flex-direction:column}
  .cat-sidebar{flex:none;width:100%;position:static;max-height:none}
  .cat-heading{display:none}
  .cat-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;background:var(--green-soft);border:1px solid var(--line);border-radius:10px;padding:11px 14px;font-weight:800;min-height:44px;text-align:left}
  .cat-list{display:none;margin-top:10px}
  .cat-sidebar.open .cat-list{display:flex}
  .shop-layout main{width:100%}
}

/* Mobile: cart as bottom sheet */
@media(max-width:640px){
  .topbar-row{padding-bottom:6px}
  .brand-sub{display:none}
  .drawer{left:0;right:0;top:auto;width:100%;max-height:88vh;border-radius:20px 20px 0 0}
  .card-visual{height:88px;font-size:44px}
  .grid{gap:10px}
}

/* Moving horizontal category strip (above the products, in addition to
   the left vertical sidebar). CSS animation only: the track holds two
   identical copies of the list and slides right-to-left, so a -50%
   shift loops seamlessly. Slow: one full loop takes 36 seconds.
   Hovering or focusing the strip pauses it so a moving category can
   be tapped. */
.cat-marquee{overflow:hidden;margin:0 0 14px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.cat-marquee-track{display:flex;width:max-content;animation:marquee 36s linear infinite}
.cat-marquee:hover .cat-marquee-track,.cat-marquee:focus-within .cat-marquee-track{animation-play-state:paused}
.marquee-group{display:flex;gap:8px;padding-right:8px;flex:none}
.marquee-group button{white-space:nowrap;padding:9px 16px;border-radius:999px;border:1px solid var(--line);background:var(--white);font-weight:700;min-height:42px;transition:background-color .18s,color .18s,transform .15s}
.marquee-group button.active{background:var(--green);color:#fff;border-color:var(--green)}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Light, CSS-only animations (no libraries, no images, no web fonts).
   Kept subtle and fast so slow phones and networks stay smooth. */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes cardIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes drawerIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@keyframes modalIn{from{opacity:0;transform:translate(-50%,-46%) scale(.98)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.topbar{animation:fadeIn .4s ease both}
.hero{animation:fadeUp .45s ease both}
.card{animation:cardIn .3s ease;transition:transform .18s ease,box-shadow .18s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(20,40,30,.14)}
.add:active,.chip:active,.wa:active,.translate:active,.authbtn:active,.cartbtn:active,.cat-list button:active,.marquee-group button:active,.cat-toggle:active{transform:scale(.97)}
.cat-list button{transition:background-color .18s,color .18s,transform .15s}
.drawer:not(.hidden){animation:drawerIn .25s ease}
.auth-modal:not(.hidden){animation:modalIn .25s ease}
@media(max-width:640px){.drawer:not(.hidden){animation:fadeUp .25s ease}}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .cat-marquee-track{animation:none!important}
}
