:root{
  --green:#07833f;--green-2:#0aa957;--green-dark:#073d25;--mint:#eefaf1;--orange:#f59e0b;--red:#ef4444;--blue:#1da1f2;--purple:#a855f7;--ink:#101c16;--text:#18251d;--muted:#6f7d75;--line:#e8eee9;--page:#fbfdfa;--card:#fff;--shadow:0 18px 45px rgba(25,57,34,.10);--shadow-soft:0 10px 28px rgba(25,57,34,.075);--radius:28px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#e9f2ea;font-family:Tahoma,Arial,sans-serif;color:var(--text);-webkit-tap-highlight-color:transparent}.kh-app{min-height:100dvh;max-width:856px;margin:0 auto;background:var(--page);position:relative;padding-bottom:104px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.kh-topbar{height:92px;padding:calc(15px + env(safe-area-inset-top)) 24px 14px;display:grid;grid-template-columns:46px minmax(140px,1fr) auto 46px;align-items:center;gap:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);position:sticky;top:0;z-index:60}.kh-bell,.kh-menu{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-soft);color:#172c1e;text-decoration:none;font-size:22px;position:relative;font-weight:900}.kh-bell b{position:absolute;top:-5px;right:-3px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:12px;border:2px solid #fff}.kh-location{justify-self:start;direction:ltr;border:0;background:#eff8f1;border-radius:999px;padding:10px 14px;display:flex;align-items:center;gap:8px;color:#154c2c;font-weight:900;max-width:240px;box-shadow:inset 0 0 0 1px rgba(7,131,63,.05)}.kh-location strong{direction:rtl;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.kh-location i{font-style:normal}.kh-brand{text-decoration:none;color:var(--green);display:flex;align-items:center;gap:8px;justify-self:center;font-weight:900;line-height:1.02}.brand-leaf{width:42px;height:42px;border-radius:16px;background:#eefaf1;color:#0a944a;display:grid;place-items:center;font-size:28px;transform:rotate(-12deg)}.kh-brand strong{font-size:20px;text-align:left;letter-spacing:-.3px}.kh-menu{font-size:24px}
.kh-hero{margin:0 24px;background:#122119;border-radius:28px;min-height:438px;position:relative;overflow:hidden;color:#fff;padding:42px 48px;box-shadow:var(--shadow);isolation:isolate}.kh-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 76% 42%,rgba(255,255,255,.16),transparent 35%),linear-gradient(90deg,rgba(6,16,12,.95) 0%,rgba(13,29,20,.83) 42%,rgba(13,29,20,.18) 100%);z-index:-1}.kh-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.04) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.035) 50%,rgba(255,255,255,.035) 75%,transparent 75%);background-size:30px 30px;opacity:.12;z-index:-1}.hero-text{width:48%;min-height:340px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative;z-index:2}.hero-text h1{font-size:56px;line-height:1.18;margin:0 0 16px;font-weight:900;letter-spacing:-1.8px;color:#fff;text-shadow:0 6px 20px rgba(0,0,0,.24)}.hero-text h1 span{color:#b8ffbd}.hero-text p{font-size:19px;line-height:1.8;margin:0 0 30px;color:rgba(255,255,255,.94)}.hero-cta{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#fff;background:var(--orange);padding:16px 30px;border-radius:999px;font-size:20px;font-weight:900;box-shadow:0 18px 26px rgba(245,158,11,.30);transition:.18s}.hero-cta:active{transform:scale(.97)}.hero-cta span{font-size:34px;line-height:.5}.hero-basket{position:absolute;left:-8px;bottom:-1px;width:62%;height:100%;object-fit:cover;object-position:center;filter:saturate(1.12) contrast(1.03) drop-shadow(0 28px 40px rgba(0,0,0,.45));z-index:1}.hero-slider-dots{position:absolute;right:48px;bottom:32px;display:flex;gap:8px;z-index:3}.hero-slider-dots b,.hero-slider-dots i{display:block;height:10px;border-radius:999px;background:rgba(255,255,255,.46)}.hero-slider-dots b{width:28px;background:#fff}.hero-slider-dots i{width:10px}
.kh-content{padding:22px 24px 120px;background:var(--page)}.kh-actions-card{background:#fff;border-radius:var(--radius);padding:28px 26px 24px;box-shadow:var(--shadow);margin-bottom:26px}.kh-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.action-item{text-decoration:none;color:#1d2b22;text-align:center;font-size:17px;font-weight:900;display:flex;flex-direction:column;align-items:center;gap:12px}.action-item i{width:60px;height:60px;border-radius:22px;display:grid;place-items:center;font-style:normal;font-size:34px;background:#f4faf5;box-shadow:inset 0 0 0 1px rgba(0,0,0,.015)}.action-item.sale i{background:#fff2f2}.action-item.delivery i{background:#eefdf5}.action-item.chart i{background:#eef7ff}.action-item.grid i{background:#f7efff}.kh-search{margin-top:24px;position:relative}.kh-search span{position:absolute;left:22px;top:50%;transform:translateY(-50%);font-size:30px;color:#3b453e;z-index:1}.kh-search input{width:100%;height:58px;border:1px solid #dfe8e1;outline:0;border-radius:999px;background:#fff;padding:0 26px 0 64px;font-size:18px;color:#203027;box-shadow:inset 0 2px 7px rgba(0,0,0,.025)}.kh-search input::placeholder{color:#9aa49e}
.kh-categories{margin-bottom:28px}.cat-track{display:flex;gap:18px;overflow-x:auto;padding:4px 2px 14px;scrollbar-width:none}.cat-track::-webkit-scrollbar{display:none}.cat-tile{flex:0 0 142px;height:120px;border:1px solid #edf1ed;background:#fff;border-radius:24px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#243429;font-weight:900;font-size:17px}.cat-tile .cat-img{width:76px;height:56px;border-radius:20px;display:grid;place-items:center;overflow:hidden;background:#f6fbf7}.cat-tile .cat-img img{width:100%;height:100%;object-fit:contain;display:block}.cat-tile .cat-img.emoji{font-size:42px;background:#f2fbef}.cat-tile.active{border-color:var(--green);color:var(--green);box-shadow:0 14px 30px rgba(7,131,63,.15)}
.kh-deal{display:grid;grid-template-columns:230px 1fr auto;gap:18px;align-items:center;background:linear-gradient(90deg,#f7fff4,#edf8e9);border:1px solid #edf4ed;border-radius:26px;padding:18px 22px;margin-bottom:32px;overflow:hidden;box-shadow:0 8px 20px rgba(25,57,34,.04)}.deal-visual{height:118px;display:flex;align-items:center;justify-content:center}.deal-visual img{width:230px;height:124px;object-fit:cover;object-position:left center;border-radius:20px;filter:drop-shadow(0 12px 18px rgba(0,0,0,.10))}.deal-copy span{display:block;color:var(--orange);font-size:18px;font-weight:900;margin-bottom:8px}.deal-copy strong{display:block;color:#152a1d;font-size:28px;font-weight:900;line-height:1.4}.deal-copy small{display:block;color:var(--muted);font-size:17px;margin-top:10px}.kh-deal a{text-decoration:none;white-space:nowrap;background:var(--green);color:#fff;border-radius:999px;padding:13px 21px;font-size:17px;font-weight:900;box-shadow:0 12px 22px rgba(7,131,63,.22)}
.kh-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.kh-section-head a{color:var(--green);font-weight:900;text-decoration:none;font-size:18px}.kh-section-head h2{margin:0;color:#16241b;font-size:30px;font-weight:900;letter-spacing:-.6px}.kh-section-head em{font-style:normal;background:var(--green);color:#fff;border-radius:999px;padding:5px 13px;font-size:15px;margin-inline-start:8px;vertical-align:middle}.kh-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.kh-product{background:#fff;border:1px solid #edf1ed;border-radius:26px;box-shadow:var(--shadow-soft);overflow:hidden;min-height:328px;transition:.18s}.kh-product:active{transform:scale(.985)}.kh-product-img{height:190px;background:#fff;display:grid;place-items:center;padding:18px 14px}.kh-product-img img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 8px 10px rgba(0,0,0,.05))}.kh-product-img.empty{background:#f7fbf4}.kh-product-img.empty span{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#effaf1;color:var(--green);font-size:32px;font-weight:900}.kh-product-body{padding:0 18px 18px}.kh-product-body h3{margin:0 0 6px;color:#1b2b21;font-size:25px;font-weight:800;letter-spacing:-.3px}.kh-product-body p{margin:0;color:#707c75;font-size:18px}.kh-product-foot{margin-top:16px;display:flex;align-items:center;justify-content:space-between;direction:ltr}.kh-product-foot strong{direction:rtl;color:var(--green);font-size:20px;font-weight:900}.add-btn{width:52px;height:52px;border:0;border-radius:50%;background:var(--green);color:#fff;font-size:34px;line-height:1;display:grid;place-items:center;box-shadow:0 16px 24px rgba(7,131,63,.24);cursor:pointer}.add-btn:active{transform:scale(.94)}
.kh-bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(856px,100%);background:rgba(255,255,255,.96);backdrop-filter:blur(20px);border-top:1px solid rgba(0,0,0,.04);padding:12px 22px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:10px;z-index:70;box-shadow:0 -8px 28px rgba(24,52,31,.08)}.kh-bottom-nav a{text-decoration:none;color:#66746c;text-align:center;border-radius:22px;padding:10px 4px 9px;font-size:16px;font-weight:900;position:relative}.kh-bottom-nav a span{display:block;font-size:28px;margin-bottom:4px;line-height:1}.kh-bottom-nav a.active{background:#eefaf1;color:var(--green)}.kh-bottom-nav b{position:absolute;top:10px;left:26%;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--orange);color:#fff;font-size:12px;display:grid;place-items:center;border:2px solid #fff}.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%) translateY(18px);background:#10251a;color:#fff;padding:13px 18px;border-radius:999px;opacity:0;transition:.22s;z-index:100;font-weight:900;box-shadow:0 12px 28px rgba(0,0,0,.18)}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.empty{background:white;border-radius:18px;padding:24px;text-align:center;color:var(--muted)}
@media (max-width:760px){body{background:var(--page)}.kh-app{max-width:100%;box-shadow:none}.kh-topbar{height:78px;padding:calc(12px + env(safe-area-inset-top)) 16px 10px;grid-template-columns:42px minmax(120px,1fr) auto 42px}.kh-bell,.kh-menu{width:42px;height:42px}.kh-location{max-width:170px;padding:9px 12px}.kh-location strong{font-size:13px}.kh-brand strong{font-size:18px}.brand-leaf{width:36px;height:36px;font-size:24px}.kh-hero{margin:0;border-radius:0 0 24px 24px;min-height:400px;padding:34px 28px}.hero-text{width:54%;min-height:310px}.hero-text h1{font-size:46px}.hero-text p{font-size:16px}.hero-basket{width:62%}.kh-content{padding:18px 24px 112px}.kh-actions-card{padding:23px 18px}.kh-products{grid-template-columns:repeat(2,minmax(0,1fr))}.kh-product{min-height:320px}.kh-product-img{height:185px}.kh-deal{grid-template-columns:190px 1fr}.kh-deal a{grid-column:1/2;grid-row:2}.deal-copy strong{font-size:24px}.deal-visual img{width:200px}.kh-bottom-nav{padding-inline:18px}.kh-bottom-nav a{font-size:15px}}
@media (max-width:430px){.kh-topbar{height:74px;padding-inline:14px;gap:8px}.kh-location{max-width:154px}.kh-brand strong{font-size:17px}.kh-hero{min-height:300px;padding:22px 24px}.hero-text{width:58%;min-height:240px}.hero-text h1{font-size:31px;line-height:1.24;letter-spacing:-.7px}.hero-text p{font-size:12px;line-height:1.7;margin-bottom:18px}.hero-cta{padding:11px 18px;font-size:14px}.hero-cta span{font-size:26px}.hero-basket{left:-6%;width:65%;height:100%;object-fit:cover}.hero-slider-dots{right:24px;bottom:18px}.kh-content{padding:14px 16px 108px}.kh-actions-card{border-radius:24px;padding:22px 16px 18px;margin-bottom:20px}.kh-actions{gap:7px}.action-item{font-size:12px;gap:8px}.action-item i{width:43px;height:43px;border-radius:16px;font-size:24px}.kh-search{margin-top:18px}.kh-search input{height:48px;font-size:14px;padding-inline-start:54px}.kh-search span{font-size:24px;left:18px}.cat-track{gap:12px}.cat-tile{flex-basis:90px;height:92px;border-radius:20px;font-size:13px}.cat-tile .cat-img{width:58px;height:42px}.cat-tile .cat-img.emoji{font-size:32px}.kh-deal{grid-template-columns:110px 1fr;gap:10px;padding:14px;border-radius:22px;margin-bottom:26px}.deal-visual{height:92px}.deal-visual img{width:122px;height:92px;border-radius:16px}.deal-copy span{font-size:15px}.deal-copy strong{font-size:17px}.deal-copy small{font-size:13px}.kh-deal a{padding:10px 15px;font-size:13px}.kh-section-head h2{font-size:24px}.kh-section-head a{font-size:15px}.kh-products{gap:13px}.kh-product{border-radius:22px;min-height:265px}.kh-product-img{height:148px;padding:12px}.kh-product-body{padding:0 13px 14px}.kh-product-body h3{font-size:20px}.kh-product-body p{font-size:14px}.kh-product-foot strong{font-size:15px}.add-btn{width:44px;height:44px;font-size:29px}.kh-bottom-nav{padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:4px}.kh-bottom-nav a{font-size:12px;border-radius:18px}.kh-bottom-nav a span{font-size:24px}.toast{bottom:96px}}
@media (max-width:360px){.hero-text h1{font-size:27px}.hero-basket{opacity:.82}.kh-actions{grid-template-columns:repeat(2,1fr);gap:14px}.kh-products{grid-template-columns:1fr}.kh-deal{grid-template-columns:1fr}.deal-visual{display:none}.kh-deal a{grid-column:auto;grid-row:auto;width:max-content}.kh-location{max-width:125px}}
@media (min-width:900px){.kh-app{margin-top:16px;margin-bottom:16px;border-radius:34px}.kh-topbar{border-radius:34px 34px 0 0}.kh-bottom-nav{border-radius:26px 26px 0 0}}

/* v0.3.1 mobile polish: hero uses full background, product info always visible */
.kh-hero{
  background-image:linear-gradient(90deg,rgba(12,26,20,.92) 0%,rgba(12,26,20,.74) 45%,rgba(12,26,20,.18) 100%),url('../img/hero-basket.png');
  background-size:cover;
  background-position:center;
}
.hero-basket{display:none!important}
.hero-text{width:55%;position:relative;z-index:3}
@media (max-width:760px){
  .kh-hero{margin:0 14px;border-radius:0 0 26px 26px;min-height:330px;background-position:center right}
  .hero-text{width:62%;min-height:auto;padding-top:22px}
}
@media (max-width:430px){
  .kh-hero{min-height:282px;padding:22px 22px 18px;background-image:linear-gradient(90deg,rgba(8,22,16,.96) 0%,rgba(8,22,16,.76) 54%,rgba(8,22,16,.18) 100%),url('../img/hero-basket.png');background-position:center right;background-size:cover}
  .hero-text{width:64%;padding-top:12px}
  .hero-text h1{font-size:29px;line-height:1.22;margin-bottom:10px;text-shadow:0 3px 12px rgba(0,0,0,.35)}
  .hero-text p{font-size:12px;margin-bottom:14px;text-shadow:0 2px 8px rgba(0,0,0,.38)}
  .hero-cta{padding:10px 16px;font-size:13px}
  .hero-slider-dots{right:22px;bottom:15px}
  .kh-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .kh-product{min-height:238px!important;border-radius:20px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  .kh-product-img{height:132px!important;min-height:132px!important;padding:10px!important;display:grid!important;place-items:center!important}
  .kh-product-img img{max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important}
  .kh-product-body{padding:0 12px 12px!important;display:block!important;min-height:92px!important;background:#fff!important}
  .kh-product-body h3{display:block!important;margin:0 0 4px!important;font-size:18px!important;line-height:1.3!important;color:#18251d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kh-product-body p{display:block!important;font-size:12px!important;margin:0 0 8px!important;color:#718078!important}
  .kh-product-foot{margin-top:6px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important}
  .kh-product-foot strong{display:block!important;font-size:13px!important;line-height:1.25!important;color:var(--green)!important;white-space:nowrap}
  .add-btn{width:38px!important;height:38px!important;min-width:38px!important;font-size:25px!important}
}
@media (max-width:360px){
  .kh-actions{grid-template-columns:repeat(4,1fr)!important;gap:6px!important}
  .kh-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .kh-product{min-height:226px!important}
  .kh-product-img{height:120px!important;min-height:120px!important}
  .kh-product-body h3{font-size:16px!important}.kh-product-foot strong{font-size:12px!important}.add-btn{width:35px!important;height:35px!important;font-size:23px!important}
}
@media (min-width:761px){
  .kh-hero{background-position:center right;min-height:360px}.hero-text{width:50%;min-height:285px}.hero-text h1{font-size:44px}.hero-basket{display:none!important}
}

/* v0.3.2 — Khodar Design System premium mobile/app feel */
:root{
  --kh-primary:#0a8f49; --kh-primary-2:#21b66b; --kh-primary-soft:#eaf9ef;
  --kh-accent:#ff9f1c; --kh-cream:#fffaf1; --kh-ink:#13251b; --kh-muted:#7a887f;
  --kh-surface:#ffffff; --kh-page:#fbfdf8; --kh-line:#edf3ed;
  --kh-r-lg:28px; --kh-r-md:22px; --kh-r-sm:16px;
  --kh-shadow:0 24px 60px rgba(15,62,34,.12); --kh-shadow-soft:0 12px 34px rgba(15,62,34,.08);
}
body{background:linear-gradient(180deg,#edf7ef 0,#fbfdf8 42%);}
.kh-app{background:var(--kh-page)}
.kh-topbar{background:rgba(255,255,255,.88);box-shadow:0 10px 34px rgba(25,57,34,.055)}
.kh-location{background:#f4fbf5;color:#145934;border:1px solid rgba(10,143,73,.07)}
.brand-leaf{background:linear-gradient(135deg,#e7f9ee,#fff);box-shadow:inset 0 0 0 1px rgba(10,143,73,.08);}
.ds-hero{min-height:390px;border-radius:34px;margin:4px 24px 0;padding:44px 44px;background-image:linear-gradient(90deg,rgba(8,25,17,.94) 0%,rgba(8,25,17,.76) 45%,rgba(8,25,17,.20) 100%),url('../img/hero-basket.png')!important;background-position:center right!important;background-size:cover!important;box-shadow:0 28px 70px rgba(9,49,28,.24);}
.ds-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 17% 24%,rgba(255,255,255,.16),transparent 18%),linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0));z-index:-1}.ds-hero:after{content:"";position:absolute;inset:auto 32px 28px auto;width:86px;height:86px;border-radius:28px;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);z-index:1}.ds-hero .hero-text{width:min(55%,430px);min-height:300px}.ds-hero h1{font-size:48px;line-height:1.13;margin-bottom:14px;letter-spacing:-1.2px}.ds-hero p{font-size:17px;line-height:1.9;color:rgba(255,255,255,.90);margin-bottom:16px}.hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}.hero-pills span{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;backdrop-filter:blur(7px)}.hero-cta{background:linear-gradient(135deg,var(--kh-accent),#ffb84d);box-shadow:0 16px 32px rgba(255,159,28,.32)}
.kh-actions-card{margin-top:-18px;position:relative;z-index:3;border:1px solid rgba(10,143,73,.06);box-shadow:var(--kh-shadow)}
.action-item i{transition:.18s}.action-item:active i{transform:translateY(2px) scale(.97)}
.cat-tile,.kh-product,.kh-deal,.kh-actions-card{border:1px solid rgba(10,143,73,.06)}
.kh-product{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff,#fffdf8);box-shadow:var(--kh-shadow-soft)}
.kh-product:before{content:"طازج";position:absolute;top:14px;right:14px;z-index:2;background:#fff7e8;color:#b86500;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;box-shadow:0 6px 18px rgba(245,158,11,.12)}
.kh-product-img{background:linear-gradient(180deg,#ffffff 0,#fbfdf8 100%)}
.kh-product-img img{object-fit:contain!important;max-width:100%;max-height:100%;filter:drop-shadow(0 12px 14px rgba(22,45,28,.08))}
.add-btn{background:linear-gradient(135deg,var(--kh-primary),var(--kh-primary-2));transition:.18s}.add-btn.added{animation:addPulse .38s ease}@keyframes addPulse{50%{transform:scale(1.13)}}
.kh-bottom-nav{box-shadow:0 -18px 48px rgba(24,52,31,.10)}
.cart-overlay{position:fixed;inset:0;background:rgba(13,25,18,.24);backdrop-filter:blur(4px);z-index:88;opacity:0;pointer-events:none;transition:.22s}.cart-overlay.open{opacity:1;pointer-events:auto}.cart-drawer{position:fixed;left:50%;bottom:0;transform:translate(-50%,110%);width:min(856px,100%);max-height:82dvh;background:#fff;border-radius:30px 30px 0 0;box-shadow:0 -24px 70px rgba(13,40,24,.24);z-index:90;padding:10px 18px calc(18px + env(safe-area-inset-bottom));transition:.28s cubic-bezier(.2,.9,.2,1);display:flex;flex-direction:column}.cart-drawer.open{transform:translate(-50%,0)}.cart-handle{width:46px;height:5px;border-radius:999px;background:#d9e3dc;margin:0 auto 12px}.cart-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--kh-line);padding:0 0 12px}.cart-head h3{margin:0;font-size:22px;color:var(--kh-ink)}.cart-head button{width:38px;height:38px;border:0;border-radius:50%;background:#f3f7f3;font-size:25px;color:#24382b}.cart-head span{min-width:34px;height:34px;border-radius:999px;background:var(--kh-primary-soft);color:var(--kh-primary);display:grid;place-items:center;font-weight:900}.cart-items{overflow:auto;padding:12px 0;display:flex;flex-direction:column;gap:10px}.cart-item{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:#fbfdf8;border:1px solid var(--kh-line);border-radius:18px;padding:12px}.cart-item h4{margin:0 0 4px;font-size:16px;color:var(--kh-ink)}.cart-item small{color:var(--kh-muted);font-weight:900}.cart-qty{display:flex;align-items:center;gap:8px;direction:ltr}.cart-qty button{width:30px;height:30px;border:0;border-radius:50%;background:#fff;color:var(--kh-primary);font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.06)}.cart-summary{border-top:1px solid var(--kh-line);padding-top:12px;display:flex;align-items:center;gap:12px;justify-content:space-between}.cart-summary span{display:block;color:var(--kh-muted);font-size:13px}.cart-summary strong{font-size:22px;color:var(--kh-primary)}.cart-summary a{background:linear-gradient(135deg,var(--kh-primary),var(--kh-primary-2));color:#fff;text-decoration:none;border-radius:999px;padding:14px 24px;font-weight:900;box-shadow:0 14px 24px rgba(10,143,73,.24)}
@media (max-width:430px){
  .ds-hero{margin:0 12px;min-height:304px;border-radius:0 0 30px 30px;padding:24px 20px 20px;background-image:linear-gradient(90deg,rgba(7,22,15,.96) 0%,rgba(7,22,15,.78) 53%,rgba(7,22,15,.16) 100%),url('../img/hero-basket.png')!important;background-position:center right!important}.ds-hero .hero-text{width:68%;min-height:230px;padding-top:8px}.ds-hero h1{font-size:30px}.ds-hero p{font-size:12.5px;line-height:1.65}.hero-pills{gap:6px;margin-bottom:15px}.hero-pills span{font-size:10.5px;padding:5px 8px}.ds-hero:after{display:none}.kh-actions-card{margin-top:-12px}.kh-product:before{top:10px;right:10px;font-size:10px;padding:4px 7px}.cart-drawer{border-radius:26px 26px 0 0}.cart-summary{align-items:stretch}.cart-summary a{display:grid;place-items:center;padding-inline:18px}
}

/* v0.7.3 — Mobile Native Polish: remove web-page artifacts across all client PWA pages */
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-y:none}
body{touch-action:manipulation;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;max-width:100%}
.kh-app{width:100%;max-width:856px;overflow-x:hidden;min-height:100dvh}
.kh-content{overflow-x:hidden}
img{max-width:100%;height:auto}
.kh-topbar{padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right))}
.kh-bottom-nav{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.kh-search input,.subscribe-form input,.subscribe-form textarea,.subscribe-form select{font-size:16px!important}
@media(max-width:760px){
  body{background:var(--kh-page,#fbfdf8)}
  .kh-app{max-width:none;margin:0;border-radius:0;box-shadow:none;padding-bottom:calc(94px + env(safe-area-inset-bottom))}
  .kh-topbar{position:sticky;top:0;height:auto;min-height:74px;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:10px;grid-template-columns:42px minmax(0,1fr) auto 42px;gap:8px}
  .kh-brand strong{font-size:16px;line-height:1.05}.brand-leaf{width:38px;height:38px;border-radius:15px}
  .kh-location{max-width:100%;min-width:0}.kh-location strong{min-width:0;max-width:150px}
  .kh-content{padding-left:16px!important;padding-right:16px!important;padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
  .kh-bottom-nav{width:100%;left:0;right:0;transform:none;border-radius:26px 26px 0 0;z-index:80}
  .kh-bottom-nav a{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .simple-mobile-head,.driver-head{min-height:72px;height:auto;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;border-bottom:1px solid rgba(10,143,73,.06)}
  .selected-plan,.subscriber-hero,.subscribe-form,.history-card,.next-box,.kh-actions-card,.kh-deal,.plan-card,.demo-flow{border-radius:24px!important}
  .subscription-status-grid{grid-template-columns:1fr 1fr;gap:10px}
  .history-row{grid-template-columns:1fr;gap:3px;border-radius:16px;background:#fbfdf8;margin-bottom:8px;padding:12px!important;border-top:0!important}
}
@media(max-width:430px){
  .kh-topbar{grid-template-columns:40px minmax(0,1fr) auto 40px}.kh-bell,.kh-menu{width:40px;height:40px}.kh-brand{gap:5px}.brand-leaf{width:34px;height:34px;font-size:22px}.kh-location{padding:9px 10px}.kh-location strong{max-width:118px;font-size:12px}
  .kh-actions-card{padding:18px 14px!important}.kh-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.action-item{font-size:11.5px}.action-item i{width:44px!important;height:44px!important;font-size:24px!important;border-radius:16px!important}
  .cat-tile{flex-basis:92px!important;height:96px!important}.cat-tile .cat-img{width:58px!important;height:44px!important}.cat-tile{font-size:12.5px!important}
  .kh-section-head{align-items:center;gap:10px}.kh-section-head h2{font-size:23px!important;white-space:nowrap}.kh-section-head a{font-size:14px!important;white-space:nowrap}
  .kh-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}.kh-product{min-width:0}.kh-product-body h3{max-width:100%}
  .kh-bottom-nav{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));gap:3px}.kh-bottom-nav a{font-size:11px;padding:7px 2px}.kh-bottom-nav a span{font-size:22px}
  .subscription-status-grid{grid-template-columns:1fr}.quota-circle{width:136px;height:136px}.quota-circle strong{font-size:34px}
}
@media(max-width:360px){
  .kh-content{padding-left:12px!important;padding-right:12px!important}.kh-location strong{max-width:96px}.kh-actions{gap:5px}.action-item{font-size:10.5px}.action-item i{width:39px!important;height:39px!important;font-size:21px!important}.kh-product{min-height:220px!important}.kh-product-img{height:112px!important;min-height:112px!important}.kh-product-body{padding-inline:10px!important}.kh-product-body h3{font-size:15.5px!important}.kh-product-foot strong{font-size:11.5px!important}.add-btn{width:34px!important;height:34px!important;min-width:34px!important}
}

/* v0.7.3 — Critical mobile scroll fix for client PWA pages
   v0.7.3 made the app feel native, but the original .kh-app overflow:hidden
   could block vertical scrolling on some Android/iOS browsers. Keep horizontal
   clipping only and explicitly allow natural page scrolling. */
html,body{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  position:static!important;
}
body{
  touch-action:pan-y pinch-zoom!important;
  overscroll-behavior-y:auto!important;
}
.kh-app,
.logistics-app,
.form-screen,
.subscriber-app{
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch;
}
.kh-content{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:hidden!important;
}
.subscribe-form,
.selected-plan,
.subscriber-hero,
.subscription-status-grid,
.next-box,
.history-card{
  overflow:visible!important;
}


/* v0.8 — Store, add-ons, and mobile checkout */
.store-app{background:#fbfdf8}
.store-hero{margin:10px 18px 18px;border-radius:34px;min-height:320px;padding:28px;position:relative;overflow:hidden;color:#fff;background:linear-gradient(120deg,rgba(8,31,19,.96),rgba(8,31,19,.80) 52%,rgba(8,31,19,.18)),url('../img/hero-basket.png') center/cover no-repeat;box-shadow:0 22px 55px rgba(9,51,30,.22)}
.store-hero h1{font-size:42px;line-height:1.12;margin:14px 0 10px;letter-spacing:-1px}.store-hero h1 b{color:#ffd899}.store-hero p{max-width:520px;line-height:1.85;color:rgba(255,255,255,.88);margin:0 0 18px}.store-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.store-sub-card{position:absolute;left:22px;bottom:22px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.20);backdrop-filter:blur(12px);border-radius:22px;padding:15px 17px;min-width:240px;display:grid;gap:4px}.store-sub-card small{opacity:.75;font-weight:900}.store-sub-card strong{font-size:19px}.store-sub-card span{font-size:12px;opacity:.82;line-height:1.6}
.store-tools{padding:0 18px 12px}.search-wrap{height:56px;background:#fff;border:1px solid #e8f0e8;border-radius:22px;box-shadow:0 14px 32px rgba(20,70,38,.08);display:flex;align-items:center;gap:10px;padding:0 16px}.search-wrap input{border:0;outline:0;flex:1;font:inherit;font-weight:800;background:transparent;color:#163520}.store-chips{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:none}.store-chips::-webkit-scrollbar{display:none}.chip{border:0;background:#fff;color:#4b6354;border-radius:999px;padding:10px 14px;font-weight:900;white-space:nowrap;box-shadow:0 8px 22px rgba(20,70,38,.07);cursor:pointer}.chip.active{background:#0a8f49;color:#fff}
.store-section{padding:0 18px 110px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:10px 0 14px}.section-head span{color:#0a8f49;font-size:12px;font-weight:900;text-transform:uppercase}.section-head h2{margin:4px 0 0;font-size:23px}.section-head a{color:#0a8f49;text-decoration:none;font-weight:900}.store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.store-product{background:#fff;border:1px solid #e8f0e8;border-radius:26px;overflow:hidden;box-shadow:0 12px 30px rgba(22,64,35,.08);min-width:0}.store-product-img{height:145px;background:linear-gradient(180deg,#f4fbf5,#fff);display:grid;place-items:center;padding:12px}.store-product-img img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(34,70,44,.12))}.store-product-body{padding:13px}.store-product-body small{color:#7a8b80;font-weight:900}.store-product-body h3{margin:5px 0;font-size:17px;color:#14251b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-product-body p{margin:0;color:#708077;font-size:12px;line-height:1.6}.store-product-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:8px}.store-product-foot strong{font-size:14px;color:#0a7f42}.add-btn{border:0;background:linear-gradient(135deg,#ff9f1c,#ffc56f);color:#3d2600;border-radius:16px;width:40px;height:40px;display:grid;place-items:center;font-size:22px;font-weight:900;box-shadow:0 12px 26px rgba(255,159,28,.22);cursor:pointer;transition:.2s}.add-btn.added{transform:scale(.88) rotate(-8deg)}
.cart-mode-card,.success-panel{background:#fff;border:1px solid #e8f0e8;border-radius:28px;padding:22px;margin:14px 0 16px;box-shadow:0 15px 35px rgba(22,64,35,.08)}.cart-mode-card span{color:#0a8f49;font-weight:900;font-size:12px}.cart-mode-card h1{margin:5px 0 8px;font-size:25px}.cart-mode-card p{margin:0;color:#708077;line-height:1.8}.smart-cart-list{display:grid;gap:12px}.smart-cart-item{display:grid;grid-template-columns:74px 1fr auto;align-items:center;gap:10px;background:#fff;border:1px solid #e8f0e8;border-radius:24px;padding:10px;box-shadow:0 10px 26px rgba(22,64,35,.07)}.smart-cart-item img{width:74px;height:74px;object-fit:contain;background:#f4fbf5;border-radius:18px}.smart-cart-info h3{margin:0 0 3px;font-size:16px}.smart-cart-info p{margin:0 0 4px;color:#708077;font-size:12px}.link-danger{border:0;background:transparent;color:#ef4444;font-weight:900;padding:0;cursor:pointer}.smart-cart-controls{display:flex;align-items:center;gap:6px;grid-column:2/3}.smart-cart-controls button{width:32px;height:32px;border:0;border-radius:12px;background:#eff8f1;color:#0a7f42;font-weight:900;font-size:18px}.smart-cart-item>strong{grid-column:3/4;grid-row:1/3;color:#0a7f42}.smart-summary{background:#fff;border:1px solid #e8f0e8;border-radius:28px;padding:18px;margin:16px 0 100px;box-shadow:0 15px 35px rgba(22,64,35,.08)}.smart-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eef4ee}.smart-row.total{border:0;font-size:18px;font-weight:900}.smart-primary{display:block;text-align:center;text-decoration:none;border:0;width:100%;border-radius:20px;padding:15px;background:linear-gradient(135deg,#0a8f49,#18bd70);color:#fff;font-weight:900;margin-top:12px;cursor:pointer}.smart-primary.secondary{background:#edf7f0;color:#0a7f42}.smart-empty{text-align:center;background:#fff;border:1px solid #e8f0e8;border-radius:28px;padding:32px;margin:16px 0;box-shadow:0 15px 35px rgba(22,64,35,.08)}.smart-empty div{font-size:42px}.checkout-card{background:#fff;border:1px solid #e8f0e8;border-radius:28px;padding:18px;margin:14px 0;box-shadow:0 15px 35px rgba(22,64,35,.08)}.checkout-card h2{margin:0 0 14px}.checkout-grid{display:grid;gap:10px}.kh-field label{display:block;font-weight:900;margin-bottom:6px}.kh-field input,.kh-field select,.kh-field textarea{width:100%;border:1px solid #dfe9e0;border-radius:18px;padding:13px;font:inherit;background:#fbfdf8}.kh-field textarea{min-height:84px}.payment-options{display:grid;gap:10px}.payment-options label{display:flex;gap:9px;align-items:center;background:#f7fbf8;border:1px solid #e5efe6;border-radius:18px;padding:12px;font-weight:900}.success-panel{text-align:center;margin-top:60px}.success-icon{width:82px;height:82px;border-radius:50%;background:#dcfce7;color:#15803d;display:grid;place-items:center;font-size:44px;font-weight:900;margin:0 auto 16px}.order-code{display:inline-block;margin:14px auto;padding:10px 16px;border-radius:18px;background:#f3faf4;font-weight:900;color:#0a7f42}.success-actions{display:grid;gap:8px;max-width:360px;margin:0 auto}.label-extra-title,.packing-extra-title{background:#fff8e8!important;color:#8a5200!important;border-radius:10px;padding:5px 8px}
@media(min-width:760px){.store-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.checkout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-section,.store-tools{padding-left:24px;padding-right:24px}.store-hero{margin-left:24px;margin-right:24px}}
@media(max-width:560px){.store-hero{margin:8px 12px 16px;min-height:350px;padding:24px 20px 132px;border-radius:30px;background-position:center}.store-hero h1{font-size:34px}.store-hero p{font-size:14px}.store-sub-card{left:14px;right:14px;bottom:14px;min-width:0}.store-tools,.store-section{padding-left:12px;padding-right:12px}.store-grid{gap:10px}.store-product-img{height:122px}.store-product-body{padding:11px}.store-product-body h3{font-size:15px}.store-product-foot{align-items:end}.store-product-foot strong{font-size:12px}.add-btn{width:38px;height:38px}.smart-cart-item{grid-template-columns:64px 1fr}.smart-cart-item>strong{grid-column:2;grid-row:auto}.smart-cart-item img{width:64px;height:64px}.smart-cart-controls{grid-column:2}.section-head{align-items:start}.section-head h2{font-size:20px}}
