/* Naturela — customer site (index.html + track.html). Loaded after /shared/ui.css, theme html[data-theme=forest].
   Figma bn4I1kanFeW1Hx34a3MIYM: Home 185:163, Store 208:4, menu 200:286 (1920 px frames). Values: Product/Plan/STABLE.md §4.
   Desktop (>= 1024 px): Home, Store, menu and header are the 1920 frames scaled by --u (1 Figma px). Below 1024: our mobile layout (390 is primary).
   --vw is the real layout width without the scrollbar (set in <head>), so --u never overshoots.
   Sections: 1 shell · 2 header · 3 menu · 4 bottom nav · 5 footer · 6 landing · 7 store + product card · 8 app views · 9 motion */

:root{--vw:100vw;--u:calc(min(var(--vw),1920px)/1920)}
/* --muted / --grey-label: the Figma greys (#C9CFC4, #B4B4B4) are 2.5:1 on the green; these keep 4.5:1 on cards and page */
html[data-theme=forest]{--muted:#EEF2EB;--grey-label:#F2F5EF;--danger:#FFBFAE;
  /* Figma 187:190 measured: the 112° page gradient sits under a 36 % #204C35 veil (ui.css omits the veil) */
  background:linear-gradient(180deg,rgba(7,27,18,0) 0%,rgba(7,27,18,0) 60%,rgba(7,27,18,.65) 94%,var(--page-end) 100%),
    radial-gradient(40% 30% at 34% 22%,rgba(79,148,80,.22),rgba(153,153,153,0)),
    linear-gradient(rgba(32,76,53,.36),rgba(32,76,53,.36)),var(--g-page);
  background-color:var(--page-end)}
/* app pages (store is 16–36k px tall): the gradient spans one Figma frame (4310), then the flat bottom colour; the landing keeps it page-long */
html[data-theme=forest]:has(>body.is-app){background-size:100% min(100%,max(100vh,calc(var(--u)*4310)));background-size:100% min(100%,round(up,max(100vh,calc(var(--u)*4310)),1px));background-repeat:no-repeat} /* whole px: a fractional edge leaks a 1 px light line */
html[data-theme=forest] .card{background:var(--g-glass),linear-gradient(140deg,#276F52 0%,#216C47 63%,#0B2118 123%)} /* a shade deeper than --g-deep so secondary text keeps 4.5:1 */
/* shop tokens (ui.css keeps the shared ones). Type scale in rem (follows the browser text size): 14 · 15 · 16 · 17 body · 18 · 19 reading · 22 · 24 h3 · 28 h2 · 34 h1 · 38 · 42 hero · 48.
   Desktop Figma sizes stay calc(var(--u)*N) (1:1 with the 1920 frame). Radii 10 · 12 · 16 · 20 · 26. --ease-in: exits (enters use --ease-out) */
html[data-theme=forest]{--fs-xs:.875rem;--fs-s:.9375rem;--fs-m:1rem;--fs-base:1.0625rem;--fs-l:1.125rem;--fs-lead:1.1875rem;--fs-xl:1.375rem;--fs-h3:1.5rem;--fs-h2:1.75rem;--fs-h1:2.125rem;--fs-h1-lg:2.375rem;--fs-hero:2.625rem;--fs-display:3rem;
  --r-xs:10px;--r-sm:12px;--r-md:var(--r-btn);--r-lg:20px;--r-xl:26px;
  --ink-deep:#0F2A1D;--ink-night:#06140D;--cream-ink:#23402F;--olive-deep:#5A5A2A;--page-end:#133B29;
  --g-bar:linear-gradient(140deg,#2B785A 0%,#24774C 63%,#133C29 123%);
  --ease-in:cubic-bezier(.55,0,1,.45)}

/* ================= 1 shell ================= */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
main#app{flex:1 0 auto;width:100%;overflow-x:clip;outline:none} /* width: margin:auto on a flex item would size it to the tab row's min-content */
body.is-app main#app{padding-top:88px}
html[data-theme=forest] body{font-size:var(--fs-base)} /* rem: the browser text-size setting reaches the store text (17 px at default) */
main#app{min-height:100vh;min-height:100svh} /* every view, not only while booting (.boot): the footer always waits below the fold, so a short view (empty cart, login) never pulls it up mid-screen when it lands (CLS 0.12 on #/cart at 390) */
.tiny{font-size:var(--fs-xs)}
.small{font-size:var(--fs-s)}
.skip{position:absolute;left:12px;top:-60px;z-index:200;padding:12px 18px;border-radius:var(--r-sm);background:var(--butter);color:var(--forest-ink);font-weight:600;text-decoration:none}
.skip:focus{top:12px}
.emblem{width:96px;height:auto;margin:0 auto;opacity:.4}

/* ================= 2 header (topbar slot) ================= */
.topbar{--hu:1px;position:absolute;top:0;left:0;right:0;z-index:40;height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:env(safe-area-inset-top) 8px 0;isolation:isolate}
.topbar::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(140deg,#2B785A 0%,#24774C 63%,#113525 123%);
  box-shadow:0 8px 26px rgba(7,27,18,.32);opacity:0;transition:opacity .28s var(--ease-out)}
body.is-app .topbar{position:fixed}
body.is-app .topbar::before{opacity:1}
.tb-menu{justify-self:start}
.tb-menu img{width:28px;height:auto}
/* the logo, two states (18.10): at the top of the page the full logo (emblem + НАТУРЕЛА, Design/Ours/Logo 2026-10-18) hangs from the bar;
   scrolled (html.scrolled) it crossfades into the emblem on its cream disc (olive on the forest green alone was ~1.3:1). The slot keeps the disc's size —
   the full logo is absolute, so the swap is opacity + transform only, scaled towards the disc's centre (--lo-y) */
.tb-logo{--lo-h:78px;--lo-top:-2px;--lo-y:29px;position:relative;display:grid;place-items:center;width:54px;height:54px;justify-self:center;border-radius:50%;transition:transform .16s var(--ease-out)}
.tb-disc{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:var(--paper-cream);box-shadow:0 3px 8px rgba(7,27,18,.3)}
.tb-disc img{display:block;width:auto;height:80%}
.tb-full{position:absolute;left:50%;top:var(--lo-top);width:auto;height:var(--lo-h);max-width:none;margin-left:calc(var(--lo-h)*-.516);transform-origin:50% var(--lo-y);
  filter:drop-shadow(0 4px 8px rgba(7,27,18,.35))}
.tb-full,.tb-disc{transition:opacity .25s var(--ease-out),transform .25s var(--ease-out)}
.tb-disc{opacity:0;transform:scale(.6)}
html.scrolled .tb-full{opacity:0;transform:scale(.6);pointer-events:none}
html.scrolled .tb-disc{opacity:1;transform:none}
.tb-right{justify-self:end;display:flex;align-items:center}
.tb-ic svg{width:26px;height:26px}
.tb-pill{position:relative;min-width:0;width:52px;height:36px;min-height:0;padding:0;margin-left:2px}
.tb-pill::after{content:"";position:absolute;inset:-6px -2px}
.ic-user{width:100%;height:100%;fill:none;stroke:var(--forest-ink);stroke-width:2;vector-effect:non-scaling-stroke}
.btn-pill svg.ic-user{width:100%;height:100%}
.menu-pill svg.ic-user{width:auto;height:80%} /* Figma 200:286: the menu icon is 34 × 43, larger than the header one */
/* phone app pages (18.10 fix): at the top the bar reaches 84 px (scaleY, compositor only) so the hanging full logo (3–81 px) sits inside it, not across its edge; scrolled it is 64 again */
@media (max-width:1023px){body.is-app .topbar::before{transform-origin:50% 0;transition:opacity .28s var(--ease-out),transform .28s var(--ease-out)} html:not(.scrolled) body.is-app .topbar::before{transform:scaleY(1.3125)}}
@media (max-width:350px){.tb-logo{--lo-h:64px;--lo-top:2px;--lo-y:25px;width:46px;height:46px}}
html[data-theme=forest] .iconbtn .count{min-width:22px;height:22px;border-radius:11px;font:700 13px/22px var(--font)} /* older customers: ui.css's .72rem was 11.5 px */
/* desktop: the Figma x offsets, but every item centred in the bar — top margins drifted once the 48 px tap minimum outgrew the scaled boxes (compact bar: 13 px low) */
@media (min-width:1024px){
  .topbar{--hu:var(--u);height:calc(var(--hu)*185);padding:0 max(0px,calc((var(--vw) - 1920px)/2))} /* wider than 1920 (2560): the items stay over the capped 1920 page, the green band spans the screen */
  /* compact bar past 12 px (html.scrolled): every size stays, the three items shrink with scale/translate (the press feedback keeps transform) and the green band scales from the top — compositor only, no layout per frame */
  body.is-app .topbar::before{opacity:0;transform-origin:50% 0;transition:opacity .28s var(--ease-out),transform .28s var(--ease-out)}
  html.scrolled body.is-app .topbar::before{opacity:1;transform:scaleY(.52)}
  html.scrolled body.is-app .topbar{pointer-events:none} /* the bar keeps its full box: only the shrunk items take clicks */
  html.scrolled body.is-app :is(.tb-menu,.tb-logo,.tb-right){pointer-events:auto;scale:.52}
  .tb-menu{transform-origin:0 50%}.tb-right{transform-origin:100% 50%}
  html.scrolled body.is-app .tb-menu{translate:calc(var(--u)*-24.7) calc(var(--u)*-44.4)} /* the compact Figma offsets: left 26.8, right 42.1, centre 48.1 */
  html.scrolled body.is-app .tb-logo{translate:0 calc(var(--u)*-44.4)}
  html.scrolled body.is-app .tb-right{translate:calc(var(--u)*38.9) calc(var(--u)*-44.4)}
  html.scrolled body.is-app :is(.tb-ic,.tb-pill)::after{content:"";position:absolute;inset:auto;left:50%;top:50%;width:max(100%,80px);height:max(100%,80px);transform:translate(-50%,-50%)} /* × .52 ≈ 42 px hit area */
  .tb-menu{margin:0 0 0 calc(var(--hu)*51.5);padding:calc(var(--hu)*8);border-radius:12px}
  .tb-menu img{width:calc(var(--hu)*45);height:calc(var(--hu)*34)}
  .tb-logo{--lo-h:clamp(104px,calc(var(--hu)*180),160px);--lo-top:calc(var(--hu)*-20);--lo-y:calc(var(--hu)*79);width:calc(var(--hu)*118);height:calc(var(--hu)*118)} /* the Figma 125 × 118 slot; the full logo 104–160 px, 14 u under the bar's top */
  .tb-right{margin:0 calc(var(--hu)*81) 0 0;gap:calc(var(--hu)*14)}
  .tb-ic{width:calc(var(--hu)*60);height:calc(var(--hu)*60)}
  .tb-ic svg{width:calc(var(--hu)*40);height:calc(var(--hu)*40);stroke-width:1.7}
  .tb-pill{width:calc(var(--hu)*99);height:calc(var(--hu)*54);border-radius:calc(var(--hu)*27);margin-left:calc(var(--hu)*6)}
  .tb-pill::after{inset:-4px}
  .tb-menu,.tb-logo,.tb-right{transition:scale .28s var(--ease-out),translate .28s var(--ease-out),transform .16s var(--ease-out),background-color .2s,filter .2s} /* transform: the press scale of ui.css */
  body.is-app main#app{padding-top:calc(var(--u)*185)}
  body.v-p main#app{padding-top:calc(var(--u)*185 + 36px)} /* the expanded logo hangs to ~10 px above the category link at 1280–1440 (18.10) */
}

/* ================= 3 menu overlay (menu-overlay · menu-row) ================= */
.menu{position:fixed;inset:0;z-index:60;overflow:auto;overscroll-behavior:contain;padding:calc(12px + env(safe-area-inset-top)) 0 32px;
  background:linear-gradient(147deg,#2B785A 0%,#24774C 63.2%,#0B2118 123.2%)}
.menu:not([hidden]){animation:menu-in .24s var(--ease-out)}
.menu.out{animation:menu-out .2s var(--ease-in) forwards;pointer-events:none} /* closeMenu: fades out the way it came, then [hidden] */
.menu-x{margin-left:10px}
.menu-x img{width:26px;height:26px}
#menunav{display:flex;flex-direction:column;gap:14px;margin-top:22px}
#menunav a{display:block;height:58px;line-height:58px;padding-left:28px;font:700 var(--fs-h1-lg)/58px var(--display);text-transform:uppercase;letter-spacing:.01em;
  color:var(--butter);text-decoration:none;text-shadow:var(--sh-text);white-space:nowrap;transition:background-color .2s}
#menunav a:hover{background:rgba(255,247,164,.07)}
#menunav a:active{background:rgba(255,247,164,.16);transition-duration:0s} /* press feedback on touch, where there is no hover */
#menunav a.on{background:url(/shared/brand/tex-menu-active.webp) center/100% 100% no-repeat;color:var(--forest-ink)}
#menunav a:focus-visible{outline-offset:-3px} /* full-width row: an outer ring would be cut at the screen edges */
#menunav a.on:focus-visible{outline-color:var(--forest-ink)}
.menu:not([hidden]) #menunav a{animation:row-in .22s var(--ease-out) backwards} /* 5 rows + the pill settle by 300 ms */
.menu:not([hidden]) #menunav a:nth-child(2){animation-delay:.02s}
.menu:not([hidden]) #menunav a:nth-child(3){animation-delay:.04s}
.menu:not([hidden]) #menunav a:nth-child(4){animation-delay:.06s}
.menu:not([hidden]) #menunav a:nth-child(5){animation-delay:.08s}
.menu-pill{width:min(308px,calc(100% - 56px));height:52px;margin:30px 0 0 28px;padding:0 18px 0 8px;justify-content:flex-start;gap:12px;animation:row-in .22s .08s var(--ease-out) backwards}
/* the pill says who it is (index.html renderPill): initial + first name + „Профил“; a guest gets the icon + „Вход / Регистрация“ */
.menu-pill.guest{padding-left:18px}
.menu-pill .mp-ini{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--forest-ink);color:var(--butter);font:700 var(--fs-xl)/1 var(--display);box-shadow:inset 0 -2px 0 rgba(0,0,0,.25)}
.menu-pill .mp-txt{display:flex;align-items:baseline;gap:10px;min-width:0;white-space:nowrap;overflow:hidden}
.menu-pill b{font:700 var(--fs-xl)/1.1 var(--display);overflow:hidden;text-overflow:ellipsis}
.menu-pill.guest b{font-size:var(--fs-l)}
.menu-pill small{font:600 var(--fs-s)/1 var(--font);letter-spacing:.08em;text-transform:uppercase;opacity:.82}
html.menu-open{overflow:hidden}
html.menu-open.sb{scrollbar-gutter:stable} /* desktop: the menu's overflow:hidden takes the scrollbar away; its lane stays (only when there was one), so the page and the header, which scales with --vw, keep their width */
@keyframes menu-in{from{opacity:0}to{opacity:1}}
@keyframes menu-out{to{opacity:0}}
@keyframes row-in{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@media (min-width:1024px){
  .menu{--cap:max(0px,calc((var(--vw) - 1920px)/2));padding:0 var(--cap)} /* > 1920: the rows and the ✕ stay over the capped page, the ✕ where the header's menu button is */
  .menu-x{position:absolute;left:calc(var(--u)*51.5 + var(--cap));top:calc(var(--u)*52.5);min-width:0;min-height:0;padding:calc(var(--u)*8)}
  .menu-x img{width:calc(var(--u)*32.7);height:calc(var(--u)*32.7)}
  #menunav{gap:calc(var(--u)*29);margin-top:calc(var(--u)*151)}
  #menunav a{height:calc(var(--u)*79);line-height:calc(var(--u)*79);padding-left:calc(var(--u)*139);font-size:calc(var(--u)*80);
    text-shadow:0 calc(var(--u)*4) calc(var(--u)*4) rgba(0,0,0,.25)}
  .menu-pill{width:max(270px,calc(var(--u)*308));height:max(44px,calc(var(--u)*54));margin:calc(var(--u)*31) 0 0 calc(var(--u)*139);border-radius:999px;padding:0 calc(var(--u)*24) 0 calc(var(--u)*8)} /* min 270: the label fits at 1024 */
  .menu-pill .mp-ini{width:max(34px,calc(var(--u)*42));height:max(34px,calc(var(--u)*42));font-size:max(18px,calc(var(--u)*24))}
  .menu-pill b{font-size:max(17px,calc(var(--u)*26))}
}

/* ================= 4 bottom nav (mobile only) ================= */
.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;padding-bottom:env(safe-area-inset-bottom);
  background:var(--g-bar);border-top:1px solid rgba(255,247,164,.16);box-shadow:0 -10px 28px rgba(7,27,18,.3)}
.bottomnav a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;
  color:var(--grey-label);font:500 var(--fs-s)/1.1 var(--font);text-decoration:none;transition:color .2s}
.bottomnav a::before{content:"";position:absolute;top:0;left:30%;right:30%;height:3px;border-radius:0 0 3px 3px;background:var(--butter);transform:scaleX(0);transition:transform .25s var(--ease-out)}
.bottomnav a.on{color:var(--butter);font-weight:600}
.bottomnav a.on::before{transform:none}
.bottomnav svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottomnav .count{position:absolute;top:5px;left:calc(50% + 5px);min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--butter);color:var(--forest-ink);
  font:700 13px/22px var(--font);text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.3)}
body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
@media (min-width:1024px){.bottomnav{display:none}body{padding-bottom:0}}
/* a focused control scrolls clear of the fixed header and the bottom nav (WCAG 2.4.11); the checkout bar adds its own (§8) */
html:has(body.is-app){scroll-padding-top:calc(76px + env(safe-area-inset-top))}
@media (max-width:1023px){html{scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom))}}
@media (min-width:1024px){html:has(body.is-app){scroll-padding-top:calc(var(--u)*185 + 12px)}}
@media (max-width:1023px) and (max-height:500px){html:has(body.is-app){scroll-padding:0}} /* the bars scroll with the page there */
/* typing (phone keyboard open): the nav and the checkout bar step aside, so a mistap never leaves the form and the field has the room */
body:has(:is(input:not([type=checkbox],[type=radio],[type=button],[type=submit]),select,textarea):focus) :is(.bottomnav,.co-bar){display:none}
/* short screens (phone landscape 844×390, 200 % zoom): header and nav scroll with the page instead of covering ~1/3 of it */
@media (max-width:1023px) and (max-height:500px){
  body.is-app .topbar{position:absolute}
  .bottomnav{position:static}
  html body,html body:has(.co-bar){padding-bottom:0} /* html: outranks §8 body:has(.co-bar) */
  html[data-theme=forest] .co-bar{display:none} /* the totals card is in the page */
}
/* very narrow (a 390 phone at 200 % zoom = 195 px): icons only, one card per row, so nothing collides or runs off */
@media (max-width:300px){
  .topbar{grid-template-columns:auto 1fr;padding:env(safe-area-inset-top) 4px 0}
  .tb-logo{display:none}
  .skip:not(:focus){top:-140px} /* its text wraps to 3 lines here: the hidden link peeked under the top edge */
  .tb-right{justify-self:end}
  .tb-pill{width:40px}
  .bottomnav a{font-size:0;gap:0} /* the label stays in the accessibility tree */
  .bottomnav a svg{width:28px;height:28px}
}

/* ================= 5 footer (footer-wordmark + legal links) ================= */
.site-foot{position:relative;z-index:3;margin-top:48px}
.foot-mark{height:46vw;max-height:469px;display:flex;justify-content:center;align-items:flex-end;padding-bottom:5vw;overflow:hidden;
  /* Figma 205:14 blends unpremultiplied (its clear end is #1F4933), so the fade is spelled out in steps */
  background:linear-gradient(180deg,rgba(31,73,51,0) 1.4%,rgba(53,90,62,0.1) 11.1%,rgba(76,108,74,0.2) 20.8%,rgba(98,125,85,0.3) 30.6%,rgba(121,143,96,0.4) 40.3%,rgba(143,160,108,0.5) 50.0%,rgba(165,177,119,0.6) 59.7%,rgba(188,195,130,0.7) 69.4%,rgba(210,212,141,0.8) 79.2%,rgba(233,230,153,0.9) 88.9%,rgba(255,247,164,1) 98.6%)}
.foot-mark img{display:block;width:84vw;height:auto;user-select:none;filter:drop-shadow(0 4px 6px rgba(31,73,51,.18))} /* the outlined wordmark (18.10), was the textured NATURELA text */
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;padding:6px 16px 18px;background:var(--butter);font-size:var(--fs-m)}
.foot-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:var(--forest-ink);text-decoration:none;font-weight:500}
.foot-links a:hover{text-decoration:underline}
html[data-theme=forest] .btn-danger{background:rgba(7,27,18,.35);border-color:rgba(255,191,174,.55)} /* the pink tint over the card was 3:1 */
.foot-links a:focus-visible,.la-glass :focus-visible{outline-color:var(--forest-ink)} /* the butter ring vanishes on butter */
.foot-copy{margin:0;padding:0 16px 14px;background:var(--butter);color:var(--forest-ink);text-align:center;font-size:var(--fs-xs)}
body.v-home .site-foot{margin-top:0}
@media (min-width:1024px){
  .site-foot{margin-top:calc(var(--u)*190)}
  .foot-mark{height:calc(var(--u)*469);max-height:none;padding-bottom:calc(var(--u)*62)}
  .foot-mark img{width:min(calc(var(--u)*1100),1000px)} /* ≤ ~1 × the 962 px master */
  .foot-links{gap:4px 18px;padding:4px 24px 10px;font-size:var(--fs-base)}
}

/* ================= 6 landing (hero · section-centered · section-split · section-sunny · glass-card) ================= */
.l-in{position:relative;max-width:1920px;margin:0 auto}
.l-hero,.l-after,.l-lower{position:relative}
.l-hero{z-index:2;padding:96px 20px 0}
.l-after{z-index:1;padding:0 20px calc(36vw + 40px);background:var(--g-sun-up)} /* bottom 36vw sits under .l-lower: .ll-milk's −36vw margin collapses through it */
.l-lower{z-index:2;padding:0 20px calc(46vw + 8px);margin-bottom:-46vw;background:var(--g-deep)}
.land h1,.land h2{text-shadow:var(--sh-text)}
.l-hero h1{font-size:var(--fs-hero);line-height:1;margin:0 0 16px;max-width:11ch}
.land p{color:#fff;text-shadow:var(--sh-text);font-size:var(--fs-l);line-height:1.45;margin:0 0 22px;max-width:34ch}
/* Naturela's own intro (Knowledge/Received 2026-09-26): name as an eyebrow, the tagline is the h1, two short paragraphs */
.land .lh-brand{margin:0 0 10px;color:var(--butter);font:600 var(--fs-s)/1.2 var(--font);letter-spacing:.3em;text-transform:uppercase}
@media (max-width:1023px){.land .lh-brand{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}} /* phone/tablet: the full header logo right above already says НАТУРЕЛА (18.10); kept for screen readers */
.lh-text p:has(+p){margin-bottom:12px}
.l-btn{min-height:56px;padding:0 28px;border-radius:var(--r-md);font-size:var(--fs-lead)}
.btn-sunny{color:var(--olive-ink);border-radius:var(--r-xs)} /* one radius at every width (desktop: calc(var(--u)*10), §6) */
.tex{width:fit-content;max-width:100%;background:var(--tex-heading) center/100% 100% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:none!important;filter:drop-shadow(0 4px 4px rgba(0,0,0,.25))}
/* art groups: the cut-out fills its box, the original blurred-ellipse SVG sits at the Figma offset (percent of the box) */
.art{position:relative;pointer-events:none}
.art img{position:absolute;max-width:none;user-select:none}
.art .art-main{inset:0;width:100%;height:100%}
.lh-art .art-shadow{left:-.926%;top:2.957%;width:106.83%;height:101.93%}
.la-basket .art-shadow{left:-7.35%;top:-3.5%;width:117.25%;height:112.36%}
.ll-milk .art-shadow{left:-4.26%;top:24.95%;width:108.45%;height:78.82%}
/* leaves: shadow on the wrapper so it stays screen-aligned while the image is rotated/flipped */
.lf{--lx:5px;--ly:9px;--lb:2px;position:absolute;display:block;pointer-events:none;filter:drop-shadow(var(--lx) var(--ly) var(--lb) rgba(0,0,0,.48))}
.lf img{display:block;width:100%;height:100%;max-width:none}
.lf-one img,.lf-low img,.lf-store img{transform:rotate(-165deg) scaleY(-1)}
.lh-art .lf-pair{left:-10.12%;top:5.76%;width:25.45%;height:20.86%;filter:blur(.6px) drop-shadow(var(--lx) var(--ly) var(--lb) rgba(0,0,0,.48))}
.lh-art .lf-one{left:-15.33%;top:60.19%;width:16.34%;height:17.51%}
/* mobile landing */
.lh-art{width:100vw;aspect-ratio:1;margin:6px 0 -20vw calc(14vw - 20px)}
.la-insp{position:relative;padding-top:24vw;padding-right:22vw}
.la-insp h2,.la-fav h2{font-size:var(--fs-h2);line-height:1.1;margin:0 0 10px}
.la-leaves{right:-3vw;top:18vw;width:34vw;aspect-ratio:400/328} /* the leaf pair where the Figma had a tomato (the shop sells none, 18.10) */
.la-leaves img{transform:rotate(24deg)}
.la-basket{width:88vw;aspect-ratio:1;margin:18px 0 8px -8vw}
@media (max-width:1023px){.la-basket .art-main{transform:scaleX(-1)}} /* phone: the milk basket (index.html <picture>), mirrored so it never reads as the lower section's */
.la-fav .l-btn{margin-top:4px}
@media (max-width:1023px){html[data-theme=forest] .la-fav h2,.la-fav p{color:var(--ink-deep);text-shadow:none}}
@media (min-width:1024px) and (max-width:1279px){.la-fav p{color:var(--ink-night)}} /* 19–23 px white on the light fade is 3.2:1 until the text is large */ /* on phones this block sits in the yellow half of the fade: white was 3:1 */
.la-moments{margin-top:56px;text-align:center}
.la-moments h2{font-size:var(--fs-h1);line-height:1.08;margin:0 auto 12px}
.la-moments p,.la-glass p{color:var(--forest-ink);text-shadow:none}
.la-moments p{color:var(--ink-deep)} /* the fade is darkest here: forest-ink is 3.4:1, this is 5.1:1 */
.la-moments p{margin:0 auto;max-width:30ch}
/* the butter texture on the pale photo read at ~1.5:1: here the glyphs are deep forest ink over the same texture, its grain showing through at 10 % (≥ 5:1 on the lightest grain), lifted by a thin butter edge like a pressed label */
.la-moments h2.tex{background:linear-gradient(rgba(15,42,29,.9),rgba(15,42,29,.9)),var(--tex-heading) center/100% 100% no-repeat,#163826;-webkit-background-clip:text;background-clip:text;
  filter:drop-shadow(0 2px 0 rgba(255,247,164,.8)) drop-shadow(0 0 12px rgba(255,231,110,.55))} /* dark ink for contrast, a butter rim and glow for the Figma warmth */
.la-row{display:grid;gap:22px;margin-top:28px}
.la-photo{width:100%;height:auto;aspect-ratio:784/417;object-fit:cover;border-radius:var(--r-lg);box-shadow:var(--sh-photo)}
.la-glass{position:relative;isolation:isolate;background:none;border-radius:var(--r-lg);padding:26px 22px 28px;color:var(--forest-ink)}
.la-glass::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:url(/shared/brand/tex-glass.webp) center/100% 100% no-repeat;opacity:.52}
.la-glass h3{color:var(--forest-ink);font-size:var(--fs-h3);line-height:1.12;margin:0 0 12px}
.la-glass p{font-size:var(--fs-base);margin:0 0 20px}
.ll-milk{width:96vw;aspect-ratio:1;margin:-36vw 0 0 4vw}
.ll-text{position:relative;margin-top:-6vw}
.ll-text h2{font-size:var(--fs-h1);line-height:1.08;margin:0 0 14px}
.lf-low{--lx:4px;--ly:8px;width:22vw;aspect-ratio:158/169;right:5vw;bottom:-6px}
.lh-install{position:relative;z-index:2;max-width:560px;margin:8px auto 0} /* install banner (Home, from the 2nd visit): in the hero's flow after the basket, never fixed over content */
@media (min-width:600px) and (max-width:1023px){
  .l-hero{padding:120px 40px 0}.l-after,.l-lower{padding-left:40px;padding-right:40px}
  .l-hero h1{font-size:60px}.lh-art{width:84vw;margin-left:calc(22vw - 40px)}
  .la-insp h2,.la-fav h2{font-size:var(--fs-h1-lg)}.la-moments h2,.ll-text h2{font-size:var(--fs-display)}
  .la-row{grid-template-columns:1fr 1fr;align-items:stretch}
}
/* desktop landing — the 1920 frame, every number is a Figma px × --u */
@media (min-width:1024px){
  .l-in{max-width:calc(var(--u)*1920)}
  .land p{max-width:none}
  .l-btn{min-width:calc(var(--u)*254);height:calc(var(--u)*75);min-height:0;padding:0 calc(var(--u)*24);border-radius:calc(var(--u)*22);font-size:max(var(--fs-m),calc(var(--u)*28))}
  .land .btn-sunny{border-radius:calc(var(--u)*10)}
  .land h1,.land h2,.land p{text-shadow:0 calc(var(--u)*4) calc(var(--u)*4) rgba(0,0,0,.25)}
  .tex{filter:drop-shadow(0 calc(var(--u)*4) calc(var(--u)*4) rgba(0,0,0,.25))}
  .lf{--lx:calc(var(--u)*12);--ly:calc(var(--u)*21);--lb:calc(var(--u)*4)}
  .lh-art .lf-pair{filter:blur(calc(var(--u)*1.45)) drop-shadow(var(--lx) var(--ly) var(--lb) rgba(0,0,0,.48))}
  /* hero 0–1251 */
  .l-hero{height:calc(var(--u)*1251);padding:0}
  .l-hero .l-in{height:100%}
  .lh-text{position:absolute;z-index:2;left:calc(var(--u)*139);top:calc(var(--u)*382);width:calc(var(--u)*745)} /* Figma top 471; the longer intro stays centred on the Figma block (y 676) */
  .l-hero h1{font-size:calc(var(--u)*90);line-height:.878;margin:0;max-width:none}
  .lh-text p{width:calc(var(--u)*652);font-size:calc(var(--u)*32);line-height:1.22;margin:calc(var(--u)*30) 0 0}
  .land .lh-brand{margin:0 0 calc(var(--u)*18);font-size:max(14px,calc(var(--u)*24))}
  .lh-text p+p{margin-top:calc(var(--u)*14)}
  .lh-text .l-btn{margin-top:calc(var(--u)*30)}
  .lh-art{position:absolute;left:calc(var(--u)*960);top:calc(var(--u)*182);width:calc(var(--u)*1285);margin:0}
  /* after hero 1251–3213 */
  .l-after{min-height:calc(var(--u)*1962);padding:calc(var(--u)*1154) 0 calc(var(--u)*144)}
  .la-insp{position:absolute;left:calc(var(--u)*684);top:calc(var(--u)*-952.5);width:calc(var(--u)*850);padding:0}
  .la-insp h2,.la-fav h2{font-size:calc(var(--u)*54);line-height:1.1;margin:0}
  .la-insp p{font-size:calc(var(--u)*36);line-height:1.3;margin:calc(var(--u)*5) 0 0}
  .la-leaves{--lx:calc(var(--u)*12);--ly:calc(var(--u)*21);--lb:calc(var(--u)*4);left:calc(var(--u)*1540);top:calc(var(--u)*-985);right:auto;width:calc(var(--u)*330)}
  .la-basket{position:absolute;left:calc(var(--u)*55);top:calc(var(--u)*-872);width:calc(var(--u)*829);margin:0}
  .la-fav{position:absolute;left:calc(var(--u)*1087);top:calc(var(--u)*-581);width:calc(var(--u)*760)}
  .la-fav p{font-size:calc(var(--u)*36);line-height:1.3;margin:calc(var(--u)*16) 0 0}
  .la-fav .l-btn{margin-top:calc(var(--u)*31)}
  .la-moments{margin-top:0}
  .la-moments h2{font-size:calc(var(--u)*92);line-height:1.1;margin:0 auto}
  .la-moments p{width:calc(var(--u)*990);max-width:none;font-size:calc(var(--u)*36);line-height:1.3;margin:calc(var(--u)*25) auto 0}
  .la-row{grid-template-columns:calc(var(--u)*784) calc(var(--u)*650);column-gap:calc(var(--u)*48);gap:0 calc(var(--u)*48);margin:calc(var(--u)*49) 0 0 calc(var(--u)*172)}
  .la-photo{height:calc(var(--u)*417);aspect-ratio:auto;border-radius:calc(var(--u)*22);box-shadow:calc(var(--u)*11) calc(var(--u)*10) calc(var(--u)*4) rgba(0,0,0,.4)}
  .la-glass{min-height:calc(var(--u)*417);border-radius:calc(var(--u)*22);padding:calc(var(--u)*40) calc(var(--u)*28);box-shadow:calc(var(--u)*11) calc(var(--u)*10) calc(var(--u)*4) rgba(0,0,0,.4)}
  .la-glass h3{font-size:calc(var(--u)*36);line-height:1;margin:0}
  .la-glass p{width:calc(var(--u)*506);font-size:max(var(--fs-m),calc(var(--u)*24));line-height:1.3;margin:calc(var(--u)*30) 0 0;text-shadow:none}
  .la-glass .l-btn{margin-top:calc(var(--u)*41)}
  /* lower section 3213–4310 (the footer overlaps its last 469) */
  .l-lower{height:calc(var(--u)*1097);padding:0;margin-bottom:calc(var(--u)*-469)}
  .l-lower .l-in{height:100%}
  .ll-milk{position:absolute;left:calc(var(--u)*979);top:calc(var(--u)*-279);width:calc(var(--u)*941);margin:0}
  .ll-text{position:absolute;left:calc(var(--u)*61);top:calc(var(--u)*110);width:calc(var(--u)*850);margin:0}
  .ll-text h2{font-size:calc(var(--u)*65);line-height:1.1;margin:0}
  .ll-text p{width:calc(var(--u)*743);font-size:calc(var(--u)*36);line-height:1.3;margin:calc(var(--u)*46) 0 0}
  .ll-text .l-btn{margin-top:calc(var(--u)*63)}
  .lf-low{left:calc(var(--u)*544.5);top:calc(var(--u)*443.5);right:auto;bottom:auto;width:calc(var(--u)*158)}
  @media (max-width:1365px){.lh-install .banner .small{display:none}} /* one row: the title, Инсталирай and ✕ fit between the text and the hero bottom */
  .lh-install{position:absolute;left:calc(var(--u)*139);bottom:calc(var(--u)*56);width:calc(var(--u)*800);max-width:none;margin:0} /* desktop: under the hero text, clear of the basket (x ≥ 960) */
  .lh-install .banner{flex-wrap:nowrap}
  .lh-install .banner .grow{flex-basis:0;min-width:0}
}

/* ================= 7 store: search · tabs · section-title · product-card · offer-card ================= */
.shop{position:relative}
.shop>.sr:first-child+.tabs,.shop>.tabs:first-child{margin-top:4px}
.tabs{gap:26px;padding:6px 4px 12px;margin:0 -16px;padding-left:20px;padding-right:20px}
@media (max-width:1023px){
  html[data-theme=forest] .tabs>a{font-size:var(--fs-l);letter-spacing:.03em}
  .tabs>a::before{content:"";position:absolute;inset:-6px -8px} /* 44 px touch target inside the row's padding */
}
.tabs>a:first-child{margin-left:auto}.tabs>a:last-child{margin-right:auto}
.search{display:flex;gap:8px;margin:14px 0 6px}
.search input{flex:1;min-height:52px;border-radius:999px;padding:0 20px;font-size:var(--fs-base);background:rgba(0,0,0,.2)}
.search .btn{min-height:52px;border-radius:999px;padding:0 22px}
.search .btn svg{width:22px;height:22px}
@media (max-width:519px){.search input{padding:0 16px;font-size:var(--fs-m)} /* the placeholder fits at 390 */ .search .btn{padding:0 15px}.search .btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (max-width:359px){.search input{font-size:var(--fs-s)}} /* the placeholder fits at 320 */
.sec{margin-top:34px}
.sec-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:var(--fs-h2);margin:0 0 16px}
.sec-title a{font:500 var(--fs-m) var(--font);text-shadow:none;color:var(--butter);padding:12px 0;margin:-12px 0} /* 44 px target, same layout */
.c-title{font-size:var(--fs-h2);margin:18px 0 16px}
.res-note{margin:16px 0 0;color:var(--muted)}
.shop-deco{display:none}
/* grid (18.10 responsive): the column count follows the width — --cols 2 phone · 3 from 700 · 4 from 1024 · 5 from 1360 · 6 from 1680, cards 218–300 px on desktop;
   the store is capped at 1920 − 2 × --side = 1624 px and centred. index.html render() reads --cols for the eager first row (eagerLeft). App pages (.page:not(.shop)) keep 4 in their 1200 px column */
html[data-theme=forest]{--cols:2;--gx:12px;--gy:20px;--gw:calc(var(--vw) - 32px);--side:16px}
@media (min-width:700px){html[data-theme=forest]{--cols:3;--gx:18px;--gy:26px}}
@media (min-width:1024px){html[data-theme=forest]{--cols:4;--gx:28px;--gy:48px;--side:clamp(32px,calc(32px + (var(--vw) - 1024px)*.1295),148px);--gw:calc(min(var(--vw),1920px) - 2*var(--side))}} /* --side: 32 at 1024 → the Figma 148 at 1920 */
@media (min-width:1360px){html[data-theme=forest]{--cols:5}}
@media (min-width:1680px){html[data-theme=forest]{--cols:6}}
@media (max-width:300px){html[data-theme=forest]{--cols:1}} /* one card per row; after the base --cols:2 so it wins */
.pgrid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:var(--gy) var(--gx);container-type:inline-size} /* the container: a card sizes from its own column (--k below) */
/* product-card — Figma 213:4, 468 × 675; every number × --k = one Figma px of this card = column width / 468.
   Column width = (grid width − gaps) / --cols; the grid width is 100cqi (container query units), or --gw (the same width from --vw) where cqi is missing (iOS 15) */
.pcard{--k:calc((var(--gw) - (var(--cols) - 1)*var(--gx))/var(--cols)/468);position:relative;display:flex;flex-direction:column;padding:calc(var(--k)*14);border-radius:calc(var(--k)*70);
  background:linear-gradient(115deg,#2B785A 0%,#24774C 63.2%,#0B2118 123.2%);box-shadow:calc(var(--k)*25) calc(var(--k)*30) calc(var(--k)*4) rgba(0,0,0,.1);
  transition:transform .35s var(--ease-out),box-shadow .35s var(--ease-out)}
@supports (width:1cqi){.pgrid .pcard{--k:calc((100cqi - (var(--cols) - 1)*var(--gx))/var(--cols)/468)}} /* .pgrid: the product page's big card (.pp-card) keeps its own --k */
.pc-glass{position:relative;flex:1;display:flex;flex-direction:column;min-height:calc(var(--k)*647);border-radius:calc(var(--k)*70);
  background:var(--g-glass);border:1px solid rgba(255,255,255,.3);padding:calc(var(--k)*457) 10px 12px}
.pc-glass::after{content:"";position:absolute;inset:-1px;border-radius:inherit;background:rgba(255,255,255,.05);opacity:0;transition:opacity .35s var(--ease-out);pointer-events:none}
.pc-frame{position:absolute;left:calc(var(--k)*35);top:calc(var(--k)*38);width:calc(var(--k)*375);height:calc(var(--k)*363);border:1px solid rgba(255,255,255,.4);
  border-radius:calc(var(--k)*40);display:grid;place-items:center}
.pc-emblem{width:44%;height:auto;opacity:.4}
.has-img .pc-emblem{display:none}
.pc-img,.pc-shadow{position:absolute;max-width:none;pointer-events:none}
.pc-img{left:0;top:calc(var(--k)*81);width:calc(var(--k)*440);height:calc(var(--k)*440);transition:transform .45s var(--ease-out)}
.pc-shadow{left:calc(var(--k)*31.3);top:calc(var(--k)*343.3);width:calc(var(--k)*382.9);height:calc(var(--k)*132.2)}
.pc-glass:not(.has-img) .pc-img,.pc-glass:not(.has-img) .pc-shadow{display:none}
.pc-tags{position:absolute;z-index:3;left:calc(var(--k)*20);top:calc(var(--k)*20);display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.pc-tags .badge{font-size:var(--fs-xs);padding:3px 9px}
.pc-body{display:flex;flex-direction:column;flex:1}
.pc-cat{color:var(--grey-label);font-size:var(--fs-s);line-height:1.3}
.pc-name{margin:2px 0 4px;font:700 var(--fs-base)/1.18 var(--display);color:var(--butter);text-shadow:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:2.36em} /* 3 lines + the producer under it: „Краве кисело мляко“ ×3 read apart */
.pc-prod{margin:0 0 6px;color:var(--grey-label);font-size:var(--fs-s);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-name a{color:inherit;text-decoration:none}
.pc-name a::after{content:"";position:absolute;z-index:1;inset:calc(var(--k)*-14 - 1px);border-radius:calc(var(--k)*70)}
.pc-name a:focus-visible{outline:none}
.pc-name a:focus-visible::after{outline:3px solid var(--accent-line);outline-offset:2px} /* ring the whole card, not the two-line name */
.pc-row{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;padding-right:46px;min-width:0}
.pc-wt{color:var(--grey-label);font-size:var(--fs-s);line-height:1.3}
.pc-price{font:700 var(--fs-lead)/1.2 var(--display);color:var(--butter);white-space:nowrap}
.pc-price s{font:400 var(--fs-xs) var(--font);color:var(--grey-label)}
.pc-add{position:absolute;z-index:2;right:calc(var(--k)*14 + 5px);bottom:calc(var(--k)*14 + 7px);width:44px;height:44px;background-image:url(/shared/brand/basket-btn.svg)} /* basket, not the Figma leaf: it must read as „add to cart“ */
.pc-add::after{content:"";position:absolute;inset:-4px;border-radius:50%}
.pcard.oos .pc-img,.pcard.oos .pc-emblem{opacity:.45}
.pcard.oos .pc-name{opacity:.75}
@media (hover:hover){
  .pcard:hover{transform:translateY(calc(var(--k)*-6))}
  .pcard:hover .pc-glass::after{opacity:1}
  .pcard:hover .pc-img{transform:scale(1.03)}
  .pcard:hover:has(.pc-name a:active){transform:translateY(calc(var(--k)*-6)) scale(.98)} /* a mouse press keeps the lift */
}
.pcard:has(.pc-name a:active){transform:scale(.98);transition-duration:.16s} /* the card's own press (its name link covers it); the basket keeps its own */
/* offer-card (corporate) */
.offers{display:grid;gap:14px}
.offer-card h3{margin:0;font-size:var(--fs-xl)}
.offer-card .chips{flex-wrap:wrap;overflow:visible;margin-top:12px}
.offer-card .chip{min-height:44px}
@media (min-width:700px){.offers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){
  .page.shop{max-width:calc(var(--u)*1920);margin:0 auto;padding:0}
  .shop .tabs,.shop>.sr:first-child+.tabs,.shop>.tabs:first-child{gap:calc(var(--u)*40);margin:calc(var(--u)*70 - 11px) 0 0;padding:11px var(--side)} /* 11 px: room for the 44 px tab hit area inside the scroll row, which clips */
  .shop .tabs>a{padding:0;text-shadow:0 calc(var(--u)*4) calc(var(--u)*4) rgba(0,0,0,.25)} /* the STABLE §3 text shadow: depth under the word, not a ghost row 20 px below */ /* size: ui.css forest tabs, 36 px @1920 */
  .shop .tabs>a::after{left:calc(var(--u)*-15);right:calc(var(--u)*-15);height:1px}
  .shop .search{width:max(520px,calc(var(--u)*760));margin:calc(var(--u)*40) auto 0}
  .shop .search input{min-height:max(52px,calc(var(--u)*72));font-size:max(17px,calc(var(--u)*24));padding:0 calc(var(--u)*32)}
  .shop .search .btn{min-height:max(52px,calc(var(--u)*72));padding:0 calc(var(--u)*34);font-size:max(17px,calc(var(--u)*24))}
  .shop .sec{margin-top:calc(var(--u)*110)}
  .shop .sec-title,.shop .c-title,.page.shop>h1{margin:0 var(--side) calc(var(--u)*70);font-size:calc(var(--u)*54);text-shadow:0 calc(var(--u)*4) calc(var(--u)*4) rgba(0,0,0,.25)}
  .shop .sec-title a{font-size:max(17px,calc(var(--u)*24))}
  .shop .res-note{margin:calc(var(--u)*40) var(--side) 0;font-size:max(17px,calc(var(--u)*24))}
  .shop .c-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}
  .shop .grid-c{margin-top:calc(var(--u)*98)}
  .shop .pgrid{margin:0 var(--side)} /* columns: §7 grid (--cols); the grid lines up with the titles */
  .shop .offers{margin:0 var(--side);gap:calc(var(--u)*40)}
  .shop .empty{margin:0 var(--side)}
  .shop-deco{display:block}
  .lf-store{--lx:calc(var(--u)*12);--ly:calc(var(--u)*21);--lb:calc(var(--u)*4);z-index:4;left:calc(var(--u)*1708);top:calc(var(--u)*323.5);width:calc(var(--u)*158);height:calc(var(--u)*169)}
  .lf-store-pair{--lx:calc(var(--u)*12);--ly:calc(var(--u)*21);--lb:calc(var(--u)*4);z-index:0;left:0;top:calc(var(--u)*2843);width:calc(var(--u)*327);height:calc(var(--u)*268)}
  /* card body (18.10): cards are 218–300 px now, not the 468 Figma card — the phone body (rem type, 44 px basket bottom-right) at every width; only the side padding follows the Figma 40 */
  .pc-glass{padding:calc(var(--k)*457) max(12px,calc(var(--k)*40)) max(12px,calc(var(--k)*34))}
}
/* desktop keeps the Figma sizes, but on 1024–1440 px screens no touch area drops under 44 px */
@media (min-width:1024px){
  .menu-pill{position:relative}
  .tb-ic{z-index:1} /* the compact pill's 44 px hit area must not steal the cart's edge */
  .tb-pill::after,.menu-x::before,.menu-pill::before,.pc-add::after,.shop .tabs>a::before{content:"";position:absolute;inset:auto;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
  #menunav a{height:max(44px,calc(var(--u)*79));line-height:max(44px,calc(var(--u)*79))}
  .l-btn{height:max(44px,calc(var(--u)*75))}
}

/* ================= 8 app views (no Figma: composed from the same slots) ================= */
.page{max-width:1200px;margin:0 auto;padding:0 16px 24px}
.page h1{font-size:var(--fs-h1);margin:6px 0 18px}
.page h2{font-size:var(--fs-h3)}
.card h3,.card .ch{font-size:var(--fs-xl)} /* .ch: a card heading that is an h2 (no h1 → h3 skip), at the h3 size */
.page .card>h3:first-child,.page .card>.ch:first-child{margin-bottom:10px}
.page .two{gap:16px}
.page .two>*{min-width:0} /* the column was sized by the cart line's min-content (333 px at 320): clipped totals */
@media (min-width:1024px){
  .page{padding:0 24px 24px}
  .page:not(.shop) h1{font-size:var(--fs-hero);margin:10px 0 26px}
  .page:not(.shop) .pgrid{--cols:4;--gx:24px;--gy:40px;--gw:calc(min(var(--vw),1200px) - 48px)} /* the 1200 px app column (product page „Още от…“) */
}
/* empty */
.empty{padding:40px 16px 28px}
.empty .emblem{margin-bottom:14px}
.empty-line{font:700 var(--fs-h3)/1.2 var(--display);color:var(--butter);margin:0 0 8px}
.empty .btn{margin-top:14px}
/* banner */
.banner{display:flex;gap:12px;align-items:center;padding:14px 12px 14px 18px;border-radius:var(--r-lg);background:var(--g-glass),var(--g-deep);border:1px solid rgba(255,247,164,.3);
  box-shadow:0 14px 34px rgba(0,0,0,.35);color:#fff;margin-bottom:16px}
.banner{flex-wrap:wrap}
.banner .grow{flex:1 1 220px} /* on a phone the text takes row one, Инсталирай + ✕ share row two */
.banner strong{color:var(--butter);font-family:var(--display);font-size:var(--fs-lead);overflow-wrap:normal} /* 19 px bold = large text: butter passes */
.banner .small{color:#fff}
.banner-float .banner{margin:0}
/* product page (product-hero · pack-list) */
.pp{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.pp-card{--k:calc((min(var(--vw),560px) - 32px)/468)}
.pp-card .pc-glass{min-height:calc(var(--k)*560);padding:0}
.pp-card:hover{transform:none}
.pp-card:hover .pc-img{transform:none}
.pp-card .pc-tags .badge{font-size:var(--fs-xs);padding:3px 10px}
.pp-cat a{color:var(--muted);text-decoration:none;font-size:var(--fs-m);letter-spacing:.04em;text-transform:uppercase;padding:12px 0} /* inline: taller target, same layout */
.pp-cat a:hover{color:var(--butter)}
.pp-head{display:flex;align-items:flex-start;gap:12px;margin:4px 0 6px}
.pp-head h1{flex:1;margin:0!important}
.fav{flex:none;width:52px;height:52px;border-radius:50%;border:1.5px solid rgba(255,247,164,.55);background:rgba(0,0,0,.16);color:var(--butter);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;transition:transform .18s var(--ease-out),background-color .2s}
.fav svg{width:26px;height:26px;fill:var(--butter);fill-opacity:0;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;transition:fill-opacity .2s var(--ease-out)} /* fill-opacity is a number, so it fades; none → a colour cannot */
.fav[aria-pressed=true]{background:rgba(255,247,164,.14)}
.fav[aria-pressed=true] svg{fill-opacity:1}
.fav:active{transform:scale(.9)}
.pp-producer{color:var(--muted);margin-bottom:12px}
.pp-desc{max-width:60ch}
.buy+.pp-desc{margin-top:20px} /* the description comes after the buy card (price and packs first on a phone) */
.buy{display:grid;gap:14px;margin-top:18px}
.buy-price{font:700 var(--fs-h1)/1.1 var(--display);color:var(--butter)}
.buy-price small{font:400 var(--fs-m) var(--font);color:var(--muted)}
.buy-row{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.buy-row .stepper{flex:none}
.buy-row .btn-primary{flex:1 1 170px;min-height:52px;font-size:var(--fs-lead)}
/* pack-list: kg products are sold as weighed, labelled packs (SPEC §11); one row = one piece */
.buy-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.buy-h{margin:0;font:700 var(--fs-h3)/1.15 var(--display);color:var(--butter)}
.buy-head .small{font-size:var(--fs-m)}
.packs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pack{display:flex;align-items:center;gap:12px;min-height:68px;padding:8px 8px 8px 16px;border-radius:var(--r-btn);border:1.5px solid var(--line);background:rgba(0,0,0,.16)}
.pack.mine{border-color:var(--butter);background:var(--accent-soft)}
.pk-g{flex:1;min-width:0;font:700 var(--fs-xl)/1.1 var(--display);color:#fff}
.pk-g small{display:block;margin-top:3px;font:400 var(--fs-s)/1.2 var(--font);color:var(--muted)}
.pack.mine .pk-g small{color:var(--butter);font-weight:600}
.pk-price{font:700 var(--fs-xl)/1.1 var(--display);color:var(--butter);white-space:nowrap}
.pk-btn{min-width:108px;min-height:48px!important;font-size:var(--fs-base)}
@media (max-width:350px){.pack{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:2px 6px;padding-left:12px}.pk-g{display:contents;white-space:nowrap}.pk-g small{grid-row:2;grid-column:1/3;margin:0;white-space:normal}.pk-price{font-size:var(--fs-l)}.pk-price{grid-row:1;grid-column:2}.pk-btn{grid-row:1/3;grid-column:3;min-width:0;padding:0 12px}} /* 320 (18.10 fix): „703 / г / +22 / точки“ broke into 4 lines; now „703 г · €11,21 · Добави“ on one line, the note under it (the weight is the anonymous first cell) */
.pp-more{margin-top:40px}
/* product page: delivery card in the right column (index.html delivCard) */
.pp-deliv{margin-top:20px}
.pd-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.pd-list li{display:flex;gap:14px;align-items:flex-start;color:var(--muted);font-size:var(--fs-m);line-height:1.4}
.pd-list b{display:block;margin-bottom:2px;font:700 var(--fs-l)/1.25 var(--display);color:var(--butter)}
.pd-list svg{flex:none;width:46px;height:46px;padding:11px;border-radius:50%;background:var(--accent-soft);border:1px solid rgba(255,247,164,.32);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);fill:none;stroke:var(--butter);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pp-more .sec-title{margin-top:0}
@media (min-width:900px){
  .pp{grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:48px;align-items:start}
  .pp-card{--k:calc(520px/468)}
  .pp-info{padding-top:12px}
}
/* cart-line · totals */
.lines{padding:4px 16px}
.cart-line{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.cart-line:last-child{border-bottom:0}
.cl-thumb{flex:none;position:relative;width:64px;height:64px;border-radius:var(--r-md);border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.12);display:grid;place-items:center;overflow:hidden}
.cl-thumb img{width:112%;height:112%;max-width:none;object-fit:contain}
.cl-thumb .pc-emblem{width:62%}
.cl-thumb.has-img .pc-emblem{display:none}
.cl-thumb:not(.has-img) .pc-img{display:none}
.cl-thumb .pc-img{position:static;width:112%;height:112%}
.cart-line .title{display:block;color:inherit;text-decoration:none;font:700 var(--fs-l)/1.2 var(--display);color:var(--butter)}
.cart-line .sub{color:var(--muted);font-size:var(--fs-s);margin-top:2px}
.cl-ctrl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:10px}
.cl-total{font:700 var(--fs-lead)/1.2 var(--display);color:var(--butter);white-space:nowrap;text-align:right}
.cart-line.gone .title,.cart-line.gone .cl-total{opacity:.6}
.cart-line .notice .link{min-height:44px}
.cl-ctrl>.btn-ghost:first-child{margin-left:-14px} /* a pack line has no stepper: the text lines up with the name */
.cl-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 0;border-bottom:1px dashed var(--line);font-size:var(--fs-base);color:var(--muted)} /* the 6 s „Премахнато · Върни“ row in the removed line's place */
.cl-undo:last-child{border-bottom:0}
.cl-undo strong{color:var(--butter);font-weight:600}
.cl-undo .btn{flex:none;min-height:48px;min-width:96px}
.thanks .t-sum{font:700 var(--fs-lead)/1.35 var(--display);color:var(--butter);margin:0}
.thanks .t-next{list-style:none;margin:0;padding:0;text-align:left;display:grid;gap:8px}
.thanks .t-next li{position:relative;padding-left:26px;font-size:var(--fs-base)}
.thanks .t-next li::before{content:'';position:absolute;left:4px;top:.5em;width:10px;height:10px;border-radius:50%;background:var(--butter)}
.contact-btns{display:grid;gap:10px;margin-top:14px}
.totals .kv{font-size:var(--fs-base)}
/* checkout */
.co-step :is(h2,h3){display:flex;align-items:center;gap:10px}
.co-step :is(h2,h3) .n{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--butter);color:var(--forest-ink);font:700 var(--fs-m) var(--font)}
.dates{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.alts{display:flex;flex-wrap:wrap;gap:8px}
.alts .chip{min-height:44px}
.segmented>*{min-height:48px;font-size:var(--fs-m);transition:background-color .2s var(--ease-out),color .2s var(--ease-out),transform .16s var(--ease-out)}
.segmented>:active:not(:disabled){transform:scale(.97)} /* press, as .btn:active */
.summary .kv.item{font-size:var(--fs-s);color:var(--ink)}
.thanks{text-align:center}
.thanks .tick{width:84px;height:84px;margin:4px auto 10px;border-radius:50%;display:grid;place-items:center;background:var(--butter);color:var(--forest-ink)}
.thanks .tick svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
/* orders */
.olist{padding:2px 16px}
.olist .price{font:700 var(--fs-l) var(--display);color:var(--butter)}
a.row .title{transition:color .2s var(--ease-out)} /* the order and notification rows: ui.css's a.row:hover colour fades like the other hovers */
a.row:active .title{color:var(--accent);transition-duration:0s} /* press feedback on touch, where there is no hover (as #menunav a:active, §3) */
.order-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.order-head h1{margin-bottom:10px!important}
.actions{display:grid;gap:10px}
/* points-hero */
.points-hero{text-align:center;padding:26px 20px}
.points-hero .big{font:700 88px/1 var(--display);color:var(--butter);text-shadow:var(--sh-text)}
.points-hero .progress{height:14px;margin-top:18px;background:rgba(0,0,0,.25)}
.points-hero .progress i{background:linear-gradient(90deg,#E8DE84,var(--butter))}
.tier .between :is(h2,h3){margin:0}
.delta{font:700 var(--fs-l) var(--display)}
.delta.plus{color:var(--butter)}
.delta.minus{color:var(--danger)}
/* account · auth */
.acc-head{display:flex;gap:14px;align-items:center}
.avatar{flex:none;width:60px;height:60px;border-radius:50%;background:var(--butter);display:grid;place-items:center}
.avatar svg{width:40px;height:40px}
.acc-head h2{margin:0;font-size:var(--fs-h3)}
.quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.quick .btn,.page .btn-sm,.banner .btn-sm{min-height:44px} /* touch target for the app views (ui.css btn-sm is 38) */
.stepper button:focus-visible{outline-offset:-3px} /* .stepper clips overflow: an outer ring would be cut */
.date-chip{transition:background-color .2s var(--ease-out),border-color .2s var(--ease-out),color .2s var(--ease-out),transform .16s var(--ease-out)} /* pick() runs this on the live chip: the text fades with the fill instead of flipping first */
.stepper button:active:not(:disabled){background:rgba(255,247,164,.24);transition-duration:0s} /* press on touch, as #menunav a:active (§3) */
@media (hover:none){.stepper button:hover{background:transparent}} /* ui.css's hover would stay on the last-tapped button */
.authbox{max-width:460px;margin:8px auto 24px}
.authbox h1{text-align:center;margin-bottom:18px!important}
/* auth: the header logo + a brand strip on phones (below); ≥ 1024 px two columns — the brand side on the sunny glass texture (emblem, tagline, what the shop gives, a leaf) + the form (index.html authBox) */
/* phone/tablet: a compact brand strip above the form — the emblem on its cream disc, НАТУРЕЛА and the tagline on the sunny glass texture (no perks, no leaf) */
@media (max-width:1023px){
  .auth-brand{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:14px;margin:0 0 18px;padding:14px 16px;border-radius:var(--r-lg);text-align:left;
    background:var(--butter) url(/shared/brand/tex-glass.webp) center/cover;color:var(--forest-ink);box-shadow:inset 0 -10px 22px rgba(7,27,18,.12),0 6px 16px rgba(0,0,0,.22)}
  .auth-brand .logo-mark{width:88px;grid-row:1/3}
  .auth-brand .ab-brand{align-self:end;margin:0 0 4px}
  .auth-brand .wordmark{width:min(160px,100%);filter:drop-shadow(0 2px 3px rgba(7,27,18,.22))}
  .auth-brand .auth-tag{align-self:start;margin:0;font:700 var(--fs-xl)/1.08 var(--display);color:var(--forest-ink)}
  .auth-brand .auth-perks,.auth-brand .auth-leaf{display:none}
}
@media (min-width:1024px){
  .authbox{max-width:1000px;margin:28px auto 40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0;overflow:hidden}
  .auth-main{align-self:center;padding:48px 52px 44px}
  .auth-brand{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:52px 48px;text-align:left;
    background:var(--butter) url(/shared/brand/tex-glass.webp) center/cover;color:var(--forest-ink);box-shadow:inset -14px 0 30px rgba(7,27,18,.12)}
  .auth-brand .logo-mark{width:128px;margin:0 0 14px}
  .auth-brand .ab-brand{margin:0 0 6px}
  .auth-brand .wordmark{width:260px;filter:drop-shadow(0 3px 5px rgba(7,27,18,.22))}
  .auth-tag{margin:0 0 18px;max-width:11ch;font:700 var(--fs-hero)/1.02 var(--display);color:var(--forest-ink)}
  .auth-perks{list-style:none;margin:0;padding:0;display:grid;gap:10px;font:500 var(--fs-base)/1.35 var(--font);color:var(--cream-ink)}
  .auth-perks li{position:relative;padding-left:24px}
  .auth-perks li::before{content:"";position:absolute;left:2px;top:.45em;width:11px;height:11px;border-radius:50%;background:var(--forest-ink);box-shadow:0 0 0 3px rgba(31,73,51,.16)}
  .auth-leaf{--lx:8px;--ly:14px;--lb:3px;z-index:-1;right:-40px;bottom:-46px;width:150px;height:162px}
  .auth-perks{padding-right:64px}
  .auth-leaf img{transform:rotate(-165deg) scaleY(-1)}
}
.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:16px}
.auth-links a,.link{color:var(--butter);min-height:44px;display:inline-flex;align-items:center}
.terms{align-items:flex-start;padding:6px 0 12px;font-size:var(--fs-m)}
.terms input{margin-top:2px}
.terms a{color:var(--butter)}
.prose{max-width:720px}
.prose p{font-size:var(--fs-l)}
/* about (За нас + Историята на нашето лого): older readers on phones — 19 px / 1.65, ≤ 68ch, the logo story on the logo's own cream paper */
.about{max-width:1040px;margin:0 auto}
.ab-head,.ab-text{max-width:68ch}
.ab-brand{margin:6px 0 6px;color:var(--butter);font:600 var(--fs-s)/1.2 var(--font);letter-spacing:.3em;text-transform:uppercase}
.ab-head .ab-brand{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0} /* the header logo right above already says НАТУРЕЛА (18.10); kept for screen readers */
/* the outlined wordmark image wherever the shop's name stands alone (About, the auth brand side, the footer; 18.10) */
.wordmark{display:block;height:auto;max-width:100%;filter:drop-shadow(0 3px 6px rgba(7,27,18,.3))}
.ab-head .wordmark{width:170px;margin:12px 0 2px -2px} /* an eyebrow over „За нас“, as the text one was */
@media (min-width:1024px){.ab-head .wordmark{width:230px;margin-top:8px}}
.about h1{margin:0 0 6px!important}
.ab-tag{margin:0 0 26px;color:#fff;font:500 var(--fs-xl)/1.3 var(--font)}
.ab-text p,.ab-story p{font-size:var(--fs-lead);line-height:1.65;margin:0 0 16px}
.ab-text p{color:#fff}
.ab-text .ab-lead{font:700 var(--fs-xl)/1.35 var(--display);color:var(--butter);text-shadow:var(--sh-text);margin:0 0 20px}
.ab-text .ab-lead:last-child{margin:26px 0 0}
.ab-logo{margin-top:44px;padding:28px 20px 12px;border-radius:var(--r-xl);background:var(--paper-cream);color:var(--forest-ink);box-shadow:0 18px 40px rgba(7,27,18,.35)}
.ab-mark img{display:block;width:min(210px,62%);height:auto;margin:0 auto 18px}
html[data-theme=forest] .ab-story h2{margin:0 0 16px;font-size:var(--fs-h2);line-height:1.15;color:var(--forest-ink);text-shadow:none}
.ab-story p{color:var(--cream-ink)}
.ab-part{margin-top:28px;padding-top:22px;border-top:1px solid rgba(31,73,51,.16)}
.ab-part h3{margin:0 0 10px;font:700 var(--fs-xl)/1.25 var(--display);color:var(--forest-ink)}
.ab-part h3 span{display:block;margin-top:2px;font:500 var(--fs-l)/1.35 var(--font);color:var(--olive-deep)} /* olive, 6.9:1 on the cream */
.ab-values{list-style:none;display:flex;flex-direction:column;gap:8px 22px;margin:4px 0 16px;padding:0} /* one value per line on a phone, a row from 520 px */
@media (min-width:520px){.ab-values{flex-direction:row;flex-wrap:wrap}}
.ab-values li{display:flex;align-items:center;gap:10px;font:700 var(--fs-h3)/1.2 var(--display);color:var(--forest-ink)}
.ab-values i{flex:none;width:16px;height:16px;border-radius:50%}
.ab-end{margin-top:28px!important}
.ab-end+.ab-end{margin-top:0!important}
.ab-end strong{font:700 var(--fs-xl)/1.35 var(--display);color:var(--forest-ink)}
.ab-cta{margin:30px 0 0}
@media (min-width:900px){
  .ab-logo{display:grid;grid-template-columns:300px minmax(0,1fr);gap:48px;padding:48px 52px 32px;border-radius:32px}
  .ab-mark img{position:sticky;top:120px;width:100%;margin:0}
  html[data-theme=forest] .ab-story h2{font-size:var(--fs-h1-lg)}
}
/* older customers on phones: field labels 16 px, every badge (Изчерпано, Промо, Ново) 14 px — ui.css stays as it is for POS/Office/Bus */
html[data-theme=forest] label.field>span,html[data-theme=forest] .field>.lbl{font-size:1rem}
html[data-theme=forest] .badge{font-size:.875rem}
/* a field the checkout or a form refused: the reason under it, the field outlined (index.html fieldErr / formErr) */
.field-err{margin:6px 0 0;color:var(--danger);font-size:var(--fs-m);font-weight:600}
[aria-invalid=true]{outline:2px solid var(--danger);outline-offset:2px}
/* toast: under the header, never over the next row's basket or the checkout bottom; taps pass through it (no toast has a control) */
html[data-theme=forest] #toasts{top:calc(76px + env(safe-area-inset-top));bottom:auto}
html[data-theme=forest] .toast{pointer-events:none}
@media (min-width:1024px){html[data-theme=forest] #toasts{top:auto;bottom:24px;left:auto;right:24px;align-items:flex-end;max-width:440px}} /* bottom-right: under the header it covered the category tabs */
/* phone checkout bar (cart, checkout): total + the main button, fixed above the bottom nav; ≥ 900 px the summary column is sticky (ui.css .two>.sticky) */
.co-bar{display:none}
@media (max-width:899px){
  .co-bar{position:fixed;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));z-index:29;display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:10px 16px;background:var(--g-glass),var(--g-bar);border-top:1px solid rgba(255,247,164,.24);box-shadow:0 -10px 24px rgba(7,27,18,.3)}
  .co-bar-sum{display:flex;flex-direction:column;min-width:0;line-height:1.15}
  .co-bar-sum span{color:var(--muted);font-size:var(--fs-s)}
  .co-bar-sum strong{font:700 var(--fs-h3)/1.15 var(--display);color:var(--butter);white-space:nowrap}
  .co-bar .btn{flex:0 1 auto;min-height:52px;padding:0 22px;font-size:var(--fs-l);white-space:nowrap}
  body:has(.co-bar){padding-bottom:calc(140px + env(safe-area-inset-bottom))}
  html:has(.co-bar){scroll-padding-bottom:calc(148px + env(safe-area-inset-bottom))} /* a focused field scrolls clear of the bar and the nav */
}
/* sheet */
.sheet-head .iconbtn{color:var(--butter);font-size:var(--fs-xl)}
dialog.sheet .row{color:inherit;text-decoration:none}
@media (min-width:1024px){.page h1{font-size:var(--fs-hero)}}
/* sheets, shop only (ui.css's sheet stays as it is for the staff apps). Phone < 700: bottom sheet with a grip — drag/flick to close, a long one snaps half/full (index.html sheetDrag).
   700–1023: ui.css's centred panel. ≥ 1024: a drawer from the right, full height, 480 px. .center (the age gate): a centred modal on every size */
html[data-theme=forest] dialog.sheet{overflow:visible} /* the UA dialog scrolls (overflow:auto): focusing the ✕ scrolled the half-snapped body back up; the body is the scroller */
html[data-theme=forest] dialog.sheet>.sheet-body{max-height:92vh;max-height:92dvh;padding-top:12px;overscroll-behavior:contain}
html[data-theme=forest] dialog.sheet>.sheet-body::before{content:"";display:block;width:44px;height:5px;margin:0 auto 14px;border-radius:3px;background:rgba(255,247,164,.5);box-shadow:0 1px 0 rgba(0,0,0,.25)} /* the grip */
html[data-theme=forest] dialog.sheet.dragging>.sheet-body{cursor:grabbing;user-select:none}
html[data-theme=forest] dialog.sheet[open]>.sheet-body{animation:sheet-rise .28s var(--ease-out)}
@media (min-width:700px){
  html[data-theme=forest] dialog.sheet>.sheet-body{padding-top:22px}
  html[data-theme=forest] dialog.sheet>.sheet-body::before{display:none}
}
@media (min-width:1024px){
  html[data-theme=forest] dialog.sheet:not(.sheet-center){margin:0 0 0 auto;width:clamp(320px,40vw,480px);min-width:0;max-width:none;height:100vh;height:100dvh;max-height:none}
  html[data-theme=forest] dialog.sheet:not(.sheet-center)>.sheet-body{height:100%;max-height:none;border-radius:var(--r-xl) 0 0 var(--r-xl);border-right:0;padding:30px 30px calc(30px + env(safe-area-inset-bottom));
    background:url(/img/leaves.webp) right -46px bottom -40px/210px auto no-repeat,var(--g-glass),var(--g-deep);box-shadow:-20px 0 60px rgba(0,0,0,.42),inset 1px 0 0 rgba(255,247,164,.14)}
}
html[data-theme=forest] dialog.sheet.sheet-center{margin:auto;width:min(calc(100vw - 32px),440px);min-width:0;max-width:none;height:fit-content;max-height:none;text-align:left}
html[data-theme=forest] dialog.sheet.sheet-center>.sheet-body{border-radius:var(--r-xl);padding:22px 22px 24px;max-height:88dvh;box-shadow:0 30px 80px rgba(0,0,0,.5)}
html[data-theme=forest] dialog.sheet.sheet-center>.sheet-body::before{display:none}
html[data-theme=forest] dialog.sheet.sheet-center[open]>.sheet-body{animation:pop-in .24s var(--ease-out)}
.ag-mark{display:grid;place-items:center;width:76px;height:76px;margin:2px auto 14px;border-radius:50%;background:var(--butter) url(/shared/brand/tex-sunny-btn.webp) center/cover;color:var(--forest-ink);
  font:700 var(--fs-h2)/1 var(--display);box-shadow:0 6px 18px rgba(0,0,0,.3),inset 0 0 0 3px rgba(31,73,51,.18)}
.ag-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.ag-btns .btn{min-height:56px}
/* skeleton: the cold-start placeholder by address (index.html after <main>) and the notifications sheet; the shimmer is a transform on a pseudo (§9), off under reduced motion */
.sk-bar{position:relative;display:block;overflow:hidden;height:14px;margin:9px 0;border-radius:7px;background:rgba(255,255,255,.1)}
.sk .w30{width:30%}.sk .w35{width:35%}.sk .w40{width:40%}.sk .w45{width:45%}.sk .w50{width:50%}.sk .w60{width:60%}.sk .w70{width:70%}.sk .w80{width:80%}
.sk .sk-h1{height:32px;margin:8px 0 16px;border-radius:10px}
.sk .sk-h2{height:24px;border-radius:8px}
.sk .sk-btn{height:56px;border-radius:var(--r-md);background:rgba(255,247,164,.12)}
.sk .sk-title{height:26px;width:190px;margin:0 0 16px;border-radius:9px}
.sk .sk-pill{flex:1;height:52px;margin:0;border-radius:999px;background:rgba(0,0,0,.2)}
.sk-tabs{gap:26px}.sk .sk-tab{flex:none;width:76px;height:18px;margin:8px 0}
.sk-card{aspect-ratio:468/675}
.sk-card .pc-glass{justify-content:flex-end}
.sk-card .sk-bar{margin:6px 0}
.sk .cl-thumb .pc-emblem{opacity:.25}
.sk-boot{display:grid;place-items:center;min-height:50vh}
.sk-boot .logo-mark{width:96px}
@media (min-width:1024px){
  .page.shop.sk{padding-top:calc(var(--u)*30)}
  .sk .sk-tabs{justify-content:center}
  .shop.sk .sec{margin:calc(var(--u)*80) 0 0}
  .shop.sk .sk-title{margin:0 calc(var(--u)*148) calc(var(--u)*70);width:calc(var(--u)*420);height:calc(var(--u)*50)}
  .shop.sk .search{height:max(52px,calc(var(--u)*72))}
  .shop.sk .sk-pill{height:100%}
  .sk-card .pc-glass{padding:0 calc(var(--k)*40) calc(var(--k)*40)}
  .sk-card .sk-bar{height:calc(var(--k)*24);margin:calc(var(--k)*10) 0}
}

/* ================= 9 motion (transform/opacity only; all off under reduced motion) ================= */
.lf-pair,.lf-one,.lf-low,.lf-store,.lf-store-pair,.la-leaves{animation:leaf-float 7s ease-in-out infinite}
.lf-one{animation-duration:8.5s;animation-delay:-2s}
.lf-low{animation-duration:9s;animation-delay:-4s}
.lf-store-pair{animation-delay:-3s}
@keyframes leaf-float{0%,100%{transform:translate3d(0,0,0) rotate(0)}50%{transform:translate3d(0,-10px,0) rotate(2.5deg)}}
/* press feedback (tens a day: fast, small); the logo's transition is on its base rule (§2), so the desktop list there still animates its size */
.tb-logo:active{transform:scale(.95)}
.bottomnav svg{transition:transform .12s var(--ease-out)}
.bottomnav a:active svg{transform:scale(.9)}
@media (prefers-reduced-motion:no-preference){
  /* a count grows and settles on news: a cart add (bumpCart) or a live notification (bump('#bellcount')); bump() toggles .bump for 140 ms; a transition, so a second bump retargets */
  .iconbtn .count,.bottomnav .count{transition:transform .3s var(--ease-out)}
  .iconbtn .count.bump,.bottomnav .count.bump{transform:scale(1.35);transition-duration:.12s}
  @starting-style{.iconbtn .count.bump,.bottomnav .count.bump{transform:scale(.4)}} /* the first add: the badge was display:none, so it grows in from .4 instead of popping */
  /* a new page fades in (render → enter(); opacity only: a transform on main would re-anchor its fixed children) */
  main#app.enter:not(.land){animation:page-in .22s var(--ease-out)}
  /* sheets leave the way they came (closeSheet: .out for 200 ms, then close) and the backdrop fades both ways. Gated here: ui.css's reduced-motion kill does not reach ::backdrop. The curve on ::backdrop is the literal --ease-out: older Safari/Chrome do not pass custom properties to it */
  dialog.sheet[open]::backdrop{animation:page-in .2s cubic-bezier(.23,1,.32,1)}
  dialog.sheet[open].out::backdrop{animation:menu-out .2s cubic-bezier(.55,0,1,.45) forwards}
  dialog.sheet[open].out>.sheet-body{animation:sheet-down .2s var(--ease-in) forwards}
  dialog.sheet[open].sheet-center.out>.sheet-body{animation:pop-out .18s var(--ease-in) forwards}
  dialog.sheet[open].out.flung>.sheet-body{animation:none} /* drag/flick dismiss: the body slides on from the finger (index.html closeSheet(true)) */
  html[data-theme=forest] .toast.out{transition-timing-function:var(--ease-in)}
  .sk-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,247,164,.16),transparent);transform:translateX(-100%);animation:sk-shine 1.4s ease-in-out infinite}
  .sk-boot .logo-mark,.sk-card .pc-emblem,.sk .pp-card .pc-emblem{animation:sk-pulse 1.4s ease-in-out infinite}
  /* the last cart line was removed: the empty state fades in like a new page instead of popping (views.cart adds .just only on that redraw) */
  .empty.just{animation:page-in .22s var(--ease-out)}
  /* the thank-you, once per order: the tick lands a beat after the page fades in (from .7, never 0; it ends on its own style) */
  main#app.enter .thanks .tick{animation:tick-in .42s .1s var(--ease-out) backwards}
  /* Home hero: the text rises line by line, the basket settles in */
  .land.enter .lh-text>*{animation:rise .6s var(--ease-out) backwards}
  .land.enter .lh-text>:nth-child(2){animation-delay:.06s}
  .land.enter .lh-text>:nth-child(3){animation-delay:.12s}
  .land.enter .lh-text>:nth-child(4){animation-delay:.18s}
  .land.enter .lh-text>:nth-child(5){animation-delay:.24s}
  .land.enter .lh-art{animation:art-in .9s .08s var(--ease-out) backwards}
  /* scroll reveal, once (Home sections, the About emblem and values): enter() marks [data-rv] with .rv, the observer adds .in */
  .rv{opacity:0;transform:translateY(24px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}
  .rv[data-rv=zoom]{transform:scale(.95)}
  .la-glass.rv{transition-delay:.08s}
  .ab-values .rv{transform:translateY(10px)}
  .ab-values .rv:nth-child(2){transition-delay:.12s}
  .ab-values .rv:nth-child(3){transition-delay:.24s}
  .rv.in{opacity:1;transform:none}
  /* cart totals held while a new quote loads (views.cart adds .busy and --dd): a quote slower than 100 ms dims them, a quick one never flickers; a redraw during the wait continues the dim (--dd goes negative) */
  .totals.busy>:not(.btn){animation:q-dim .15s var(--ease-out) var(--dd,100ms) both}
}
@keyframes page-in{from{opacity:0}}
@keyframes rise{from{opacity:0;transform:translateY(16px)}}
@keyframes art-in{from{transform:translateY(18px) scale(.97)}} /* transform only: the basket is the Home LCP, an opacity-0 start held LCP back until the fade ended */
@keyframes tick-in{0%{opacity:0;transform:scale(.7)}70%{opacity:1;transform:scale(1.04);animation-timing-function:var(--ease-io)}}
@keyframes q-dim{to{opacity:.55}}
@keyframes sheet-down{to{transform:translateY(100%)}}
@keyframes sheet-rise{from{transform:translateY(100%)}}
@media (min-width:700px){@keyframes sheet-down{to{transform:scale(.96);opacity:0}}@keyframes sheet-rise{from{transform:scale(.96);opacity:0}}}
@media (min-width:1024px){@keyframes sheet-down{to{transform:translateX(100%)}}@keyframes sheet-rise{from{transform:translateX(100%)}}}
@keyframes pop-in{from{transform:scale(.94);opacity:0}}
@keyframes pop-out{to{transform:scale(.96);opacity:0}}
@keyframes sk-shine{to{transform:translateX(100%)}}
@keyframes sk-pulse{50%{opacity:.18}}
@media (prefers-reduced-motion:reduce){
  /* ui.css's kill makes every transition .01 ms with transition-property all: each style change then shows its old value for a frame (the 88 px jump on a route change). Here transitions are off outright; animations keep .01 ms (toast() waits for animationend) */
  html[data-theme=forest] *,html[data-theme=forest] *::before,html[data-theme=forest] *::after{transition-duration:0s!important;transition-delay:0s!important}
  html[data-theme=forest] dialog.sheet>.sheet-body{animation:none!important}
  .lf{animation:none!important;translate:none!important}
  .pcard,.pcard:hover,.pc-img{transform:none!important}
}
