/* Shared look. :root holds the ARAZU workspace tokens (prototype dark theme). The public shop overrides them
   from the seller's brand package (core/storefront.py), so the storefront carries the seller's colours. */
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/hanken-grotesk-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/hanken-grotesk-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  color-scheme:dark;
  --bg:#14171c;--surface:#1d2128;--surface-2:#242a33;--line:#363d47;--line-strong:#4a525e;
  --text:#edeff2;--muted:#aab1bc;--accent:#e0954f;--accent-hover:#efac6c;--accent-ink:#14171c;--accent-soft:#32291f;
  --ok:#8fd0a5;--danger:#ffb4a1;--placeholder:#8d95a1;
  --highlight:var(--accent);--highlight-ink:var(--accent-ink);
  --header-bg:#14171c;--header-text:var(--text);--header-chip:color-mix(in srgb,var(--header-text) 12%,transparent);--footer-bg:#111419;--footer-text:var(--text);--footer-muted:var(--muted);
  --radius:12px;--radius-sm:8px;--wrap:1240px;
  --ease:cubic-bezier(.16,1,.3,1);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 "Hanken Grotesk",system-ui,sans-serif;font-synthesis:none;display:flex;flex-direction:column;min-height:100dvh}
img{max-width:100%;height:auto}
a{color:var(--accent);text-underline-offset:.22em}
h1,h2,h3{line-height:1.15;letter-spacing:-.025em;margin:0 0 .6rem}
h1{font-size:clamp(1.9rem,3.4vw,2.6rem);font-weight:750}
h2{font-size:1.2rem;font-weight:700}
p{margin:0 0 .8rem}
::selection{background:var(--accent-soft)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;top:-8rem;left:1rem;background:var(--surface);color:var(--text);padding:1rem;border-radius:var(--radius-sm)}
.skip:focus{top:.5rem;z-index:30}
.muted,.caption{color:var(--muted)}
.caption{font-size:.84rem;margin-top:2rem}
.lead{color:var(--muted);max-width:62ch}
.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:.78rem}

/* Controls */
button,input,select,textarea{font:inherit;color:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.6rem 1.1rem;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .2s var(--ease),border-color .2s var(--ease),transform .15s var(--ease)}
button:hover,.button:hover{border-color:var(--accent);background:var(--accent-soft)}
button:active,.button:active{transform:translateY(1px)}
button.primary,.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
button.primary:hover,.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.block{width:100%}
.text-link{display:inline-block;margin-top:.9rem;color:var(--muted)}
.text-link:hover{color:var(--accent)}
input,select,textarea{max-width:100%;min-height:44px;padding:.6rem .8rem;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 28%,transparent)}
input::placeholder,textarea::placeholder{color:var(--placeholder)}
input[type=checkbox]{min-height:0;width:1.2rem;height:1.2rem;accent-color:var(--accent)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:3px solid var(--accent);outline-offset:2px;box-shadow:none}
textarea{width:100%;min-height:5.5rem;resize:vertical}
label{display:block;margin-bottom:.35rem;font-weight:500;font-size:.92rem}
.errorlist{list-style:none;color:var(--danger);padding:0;margin:.35rem 0 0;font-size:.9rem}
/* Shared fields (core/fields.html) */
.field{margin:0 0 1.15rem;min-width:0}
.form-grid .field{margin:0}
.field .help{display:block;margin-top:.3rem;color:var(--muted);font-size:.84rem;max-width:62ch}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:var(--danger)}
.field.check .help,.field.check .errorlist{flex-basis:100%;margin-top:0}
/* Checkbox lists (CheckboxSelectMultiple): each option on its own row, box beside its name */
.field label:has(> input[type=checkbox]){display:flex;align-items:center;gap:.6rem;margin:.35rem 0;font-weight:500}
.field input[type=checkbox]{width:1.2rem;flex:none}
.alert .errorlist{margin:0;color:inherit;font-size:inherit}
input[type=file]{max-width:100%;padding:.4rem;white-space:normal}
input[type=file]::file-selector-button{margin-right:.8rem;min-height:36px;padding:.4rem .9rem;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font:inherit;font-weight:600;cursor:pointer}

/* Header */
.topbar{position:sticky;top:0;z-index:20;background:var(--header-bg);color:var(--header-text);border-bottom:1px solid color-mix(in srgb,var(--header-text) 14%,transparent)}
.topbar-inner{max-width:var(--wrap);margin:0 auto;padding:.8rem 1rem;display:flex;align-items:center;gap:1rem;min-height:68px}
.brand{display:flex;align-items:center;gap:.7rem;color:var(--text);text-decoration:none}
.brand-mark{width:34px;height:31px;flex:none}
.brand-mark .m1{fill:var(--accent)}
.brand-mark .m2{fill:var(--accent);opacity:.5}
.brand-text{display:grid;gap:5px;line-height:1}
.brand-text strong{font-size:1.32rem;letter-spacing:.09em;font-weight:800}
.brand-text small,.powered{font-size:.68rem;letter-spacing:.02em;color:var(--muted)}
.brand-text b,.powered b{font-family:Georgia,"Times New Roman",serif;font-size:.86rem;color:var(--text)}
.brand-text i,.powered i{font-style:normal;color:var(--accent)}
.shop-nav{margin-left:auto;display:flex;align-items:center;gap:.4rem}
.shop-nav a{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.4rem .8rem;border-radius:var(--radius-sm);color:var(--header-text);text-decoration:none;font-weight:600}
.shop-nav a:hover{background:color-mix(in srgb,var(--header-text) 10%,transparent)}
.cart-link{border:1px solid color-mix(in srgb,var(--header-text) 35%,transparent)}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cart-count{min-width:1.5rem;height:1.5rem;padding:0 .4rem;display:inline-grid;place-items:center;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.cart-count:not([data-cart-count="0"]){background:var(--highlight);color:var(--highlight-ink)}
.cart-count.bump{animation:bump .45s var(--ease)}
@keyframes bump{40%{transform:scale(1.3)}}
/* htmx: in-flight requests keep the layout and only signal state */
.htmx-request button,button.htmx-request{opacity:.7;cursor:progress}
#cart-body.htmx-request,.htmx-request #cart-body{opacity:.6;transition:opacity .2s var(--ease)}
button.is-added{background:var(--ok);border-color:var(--ok);color:var(--accent-ink)}

/* Page */
.workspace{flex:1;width:100%;max-width:var(--wrap);margin:0 auto;padding:2rem 1rem 4rem}
.company-selector{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem;margin-bottom:2rem;padding:.8rem 1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.company-selector label{margin:0}
.company-selector select{min-width:12rem}
.flash,.notice,.alert{padding:.8rem 1rem;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line);max-width:72ch}
.notice p{margin:0}
.notice+.notice,.notice+.form-card,.notice+.checkout-layout{margin-top:.9rem}
.notice .legal-links{margin:.5rem 0 0}
.notice{border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:linear-gradient(var(--accent-soft),var(--accent-soft)) padding-box}
.alert{border-color:color-mix(in srgb,var(--danger) 50%,transparent);color:var(--danger);background:color-mix(in srgb,var(--danger) 7%,var(--surface))}
.alert>p:last-child{margin-bottom:0}
.alert:focus{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 35%,transparent)}
.step-form .alert{max-width:none}
.choice-group.has-error .choice{border-color:var(--danger)}
label .optional{color:var(--muted);font-weight:500}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;margin-bottom:1.2rem}
details.panel summary{cursor:pointer;font-weight:600}
details.panel p{margin:.8rem 0 0;color:var(--muted)}
.mfa-guide p{max-width:70ch}
.mfa-guide ol{margin:.8rem 0 0;padding-left:1.3rem;color:var(--muted);max-width:70ch}
.mfa-guide li+li{margin-top:.4rem}

/* Catalog */
.shop-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:1.5rem;align-items:end;margin-bottom:1.2rem}
.shop-head h1{margin-bottom:.4rem}
.shop-head .lead{margin:0}
.shop-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,190px) auto;gap:.5rem}
.shop-filter input{width:100%}
.chips{display:flex;gap:.5rem;overflow-x:auto;padding:.2rem 0 .8rem;margin-bottom:1.2rem;scrollbar-width:thin}
.chips a{flex:none;padding:.45rem .95rem;border:1px solid var(--line);border-radius:999px;color:var(--muted);text-decoration:none;font-weight:600;font-size:.9rem;transition:border-color .2s var(--ease),color .2s var(--ease)}
.chips a:hover{border-color:var(--line-strong);color:var(--text)}
.chips a[aria-current=page]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:1.1rem}
.product-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:border-color .25s var(--ease),transform .25s var(--ease)}
.product-card:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.product-media{position:relative;display:block;background:#fff;aspect-ratio:4/3;overflow:hidden}
.product-media img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;transition:transform .4s var(--ease)}
.product-card:hover .product-media img{transform:scale(1.03)}
[data-theme=dark] .product-card .product-media{margin:.5rem .5rem 0;border-radius:var(--radius-sm)}
.product-body{display:flex;flex-direction:column;flex:1;padding:1rem 1.1rem 1.1rem}
.product-card h2{font-size:1.02rem;line-height:1.3;letter-spacing:-.01em;margin:0}
.product-card h2 a{color:var(--text);text-decoration:none}
.product-card h2 a:hover{color:var(--accent)}
.sku{display:flex;flex-wrap:wrap;gap:.2rem .6rem;color:var(--muted);font-size:.8rem;margin:.35rem 0 .9rem}
.sku-code{font-variant-numeric:tabular-nums}
.card-buy{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-top:auto}
.product-card .add-to-cart{margin-top:0}
.card-buy .stock{margin:0}
.product-card .product-price p{display:none}
.product-card .product-price.is-net p.price-other{display:block}
.product-price strong span{font-size:.62em;font-weight:600;color:var(--muted);letter-spacing:0}
.line-total small{color:var(--muted);font-weight:500}
.unit-price{display:block;color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums}
.cart-go-total{display:none}
.stepper .step:disabled{opacity:.4;cursor:default}
.product-card .product-price strong{font-size:1.25rem}
.product-price strong{display:block;font-size:1.35rem;font-weight:750;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.product-price p{color:var(--muted);font-size:.8rem;margin:.1rem 0 0}
.price-tag{display:inline-block;margin-top:.4rem;padding:.15rem .5rem;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:.78rem;font-weight:600}
.stock{font-size:.82rem;font-weight:600;color:var(--muted);margin:.7rem 0 0}
.stock.is-ok{color:var(--ok)}
.note{color:var(--muted);font-size:.86rem;margin-top:auto;padding-top:1rem}
.add-to-cart{margin-top:auto;padding-top:1rem}
.add-to-cart.compact{display:grid;grid-template-columns:4.2rem 1fr;gap:.5rem}
.add-to-cart.compact input{text-align:center;padding:.6rem .3rem}
.add-to-cart:not(.compact){display:grid;grid-template-columns:6rem minmax(0,16rem);gap:.6rem;align-items:end}
.add-to-cart:not(.compact) label{grid-column:1/-1;margin:0}
.empty-state{grid-column:1/-1;padding:3rem 1.5rem;text-align:center;background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--radius)}
.empty-state p{color:var(--muted)}
.error-page{max-width:40rem;padding:clamp(1.5rem,6vw,4.5rem) 0}
.error-page h1{text-wrap:balance}
.error-search{display:grid;gap:.45rem;margin-top:1.8rem}
.error-search label{font-weight:600}
.error-search div{display:flex;gap:.5rem}
.error-search input{flex:1;min-width:0}
.error-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.4rem;margin-top:1.6rem}
.error-actions .text-link{margin:0}
.pager{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:2rem}
.pager p{margin:0;color:var(--muted)}

/* Product detail */
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:0 .5rem;font-size:.9rem;color:var(--muted);margin-bottom:1.2rem}
.crumbs a{color:var(--muted);padding:.35rem 0}
.product-detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:2.5rem;align-items:start}
.product-media.large{border-radius:var(--radius)}
.product-buy h1{font-size:clamp(1.7rem,3vw,2.3rem)}
.product-buy .product-price strong{font-size:2rem}
.product-description{max-width:65ch}
.fits{display:flex;gap:.5rem;align-items:flex-start;margin:.2rem 0 0;font-size:.92rem}
.fits .icon{flex:none;width:18px;height:18px;margin-top:.15rem;color:var(--ok)}
.buy-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;margin:1rem 0 1.4rem}
.buy-box .add-to-cart{padding-top:1.1rem}
.buy-box .add-to-cart:not(.compact){grid-template-columns:6rem minmax(0,1fr)}
.favorite-form{margin:.5rem 0 0}
.favorite-form button{width:100%;min-height:40px;background:transparent;font-weight:500;font-size:.9rem}
.buy-box .favorite-form button{width:auto}
.product-buy .facts{grid-template-columns:fit-content(14rem) minmax(0,1fr);gap:.4rem 1rem;font-size:.92rem}

/* Checkout */
.steps{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem 1.6rem;padding:0;margin:0 0 1.4rem;font-size:.86rem;color:var(--muted);counter-reset:step}
.steps li{display:flex;align-items:center;gap:.5rem;counter-increment:step}
.steps li::before{content:counter(step);display:grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:50%;border:1px solid var(--line-strong);font-size:.78rem;font-variant-numeric:tabular-nums}
.steps li.done{color:var(--text)}
.steps li.done::before{content:"✓";background:var(--surface-2)}
.steps li[aria-current=step]{color:var(--text);font-weight:700}
.steps li[aria-current=step]::before{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:1.5rem;align-items:start}
.order-card{position:sticky;top:96px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem}
.order-card h2{font-size:1rem;color:var(--muted);font-weight:600}
.order-card form{margin:0}
.grand{font-size:2rem;font-weight:750;letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:.2rem 0 1.2rem}
.aside-links{margin:1rem 0 0;font-size:.9rem;color:var(--muted)}
.totals{display:grid;grid-template-columns:1fr auto;gap:.5rem 1rem;margin:0 0 1rem}
.totals dt{color:var(--muted)}
.totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.total-row{display:flex;justify-content:space-between;align-items:baseline;padding-top:1rem;border-top:1px solid var(--line);margin-bottom:1.2rem}
.total-row strong{font-size:1.5rem;font-variant-numeric:tabular-nums}
.cart-lines,.summary-lines{list-style:none;margin:0;padding:0}
.cart-lines{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.cart-line{display:grid;grid-template-columns:96px minmax(0,1fr) auto auto;gap:1rem;align-items:center;padding:1rem 1.2rem}
.cart-line+.cart-line{border-top:1px solid var(--line)}
.product-media.thumb{border-radius:var(--radius-sm)}
.cart-line-info a{color:var(--text);font-weight:600;text-decoration:none}
.cart-line-info a:hover{color:var(--accent)}
.cart-line-info small{display:block;color:var(--muted);font-size:.78rem;margin-top:.2rem}
.qty-form{display:flex;gap:.4rem}
.qty-form input{width:4.4rem;text-align:center}
.line-total{font-variant-numeric:tabular-nums;white-space:nowrap;min-width:7rem;text-align:right}
.line-end{display:grid;justify-items:end;gap:.1rem}
.line-end form{margin:0}
.line-end .link-button{min-height:44px;font-size:.88rem}
.summary-lines li{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0}
.summary-lines li+li{border-top:1px solid var(--line)}
.summary-lines strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.form-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem;max-width:860px}
.checkout-layout>.form-card{max-width:none}
.withdrawal{max-width:860px}
.state-help{margin:-.4rem 0 1rem;font-size:.92rem;color:var(--muted);max-width:72ch}
.state-help p{margin:.35rem 0}
.state-help strong{color:var(--text);font-weight:600}
.state-legend{margin:0 0 1rem;max-width:72ch}
.state-legend summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.state-legend dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.6rem 1rem;margin:.4rem 0 0;font-size:.92rem}
.state-legend dd{margin:0;color:var(--muted)}
@media (max-width:600px){.state-legend dl{grid-template-columns:minmax(0,1fr);gap:.2rem}.state-legend dd{margin-bottom:.7rem}}
.withdrawal-card .alert{margin-bottom:1.2rem}
.withdrawal-other{margin-top:1rem}
.order-card .summary-lines{margin-bottom:1rem;font-size:.92rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.2rem}
.field input,.field select,.field textarea{width:100%}
.field.wide{grid-column:1/-1}
.field textarea{height:5.5rem}
.field.check{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.field.check input{order:-1;width:1.2rem;flex:none}
.field.check label{margin:0}
.field.check .errorlist{flex-basis:100%}
.pickup{margin-top:1.2rem;padding:1rem;border:1px dashed var(--line-strong);border-radius:var(--radius-sm)}
.pickup p{margin:.6rem 0 0}
.form-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.form-actions .text-link{margin:0}
.order-hero{margin-bottom:1.5rem}
/* Status pill: tone follows the state (core/templatetags/ui.py status), label always visible */
.status{display:inline-flex;align-items:center;width:fit-content;padding:.18rem .6rem;border-radius:999px;border:1px solid;font-size:.8rem;font-weight:650;line-height:1.3;white-space:nowrap}
.status--ok{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 45%,transparent);background:color-mix(in srgb,var(--ok) 10%,transparent)}
.status--warn{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:var(--accent-soft)}
.status--danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 45%,transparent);background:color-mix(in srgb,var(--danger) 10%,transparent)}
.status--muted{color:var(--muted);border-color:var(--line-strong);background:var(--surface-2)}
.status-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:.2rem 0 1rem}
.order-rows{list-style:none;margin:0 0 1.5rem;padding:0;border-top:1px solid var(--line)}
.order-rows>li:not(.empty-state){display:grid;grid-template-columns:minmax(0,1fr) auto 9.5rem;gap:.3rem 1.2rem;align-items:center;padding:.9rem 0;border-bottom:1px solid var(--line)}
.order-rows a{font-weight:650;text-decoration:none}
.order-rows a:hover{text-decoration:underline}
.order-rows small{display:block;color:var(--muted);font-size:.84rem}
.order-rows .amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.order-rows .status{justify-self:start}
.order-rows .empty-state{margin-top:1rem}
.panel>.order-rows:last-child,.panel>.audit-rows:last-child{margin-bottom:0}
.manage-heading{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:.8rem 1.5rem;margin-bottom:1.5rem}
.manage-heading h1{margin:0 0 .3rem}
.panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem 1rem;margin-bottom:.4rem}
.panel-head h2,.panel>h2{margin:0 0 .6rem}
.panel dl{grid-template-columns:minmax(8rem,12rem) 1fr}
.record-list small{margin-top:.15rem}
.row-action{display:inline-block;margin-top:.4rem;font-size:.9rem}
.wrap-anywhere{overflow-wrap:anywhere}
.back-link{margin:0 0 .8rem}
.heading-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.security-foot{margin-top:1.2rem}
/* QR stays dark on white in every theme: scanners need the contrast and the quiet zone (border=4 modules). */
.totp-setup{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1.5rem;align-items:start;margin:1rem 0}
.totp-code{justify-self:start;margin:0;padding:0;background:#fff;border-radius:var(--radius-sm);line-height:0}
/* 32-character Base32 key must stay readable in one line at 390 px. */
#totp-secret{width:100%;max-width:32rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85rem}
.totp-qr{display:block;width:13rem;height:auto}
.totp-setup p:first-child{margin-top:0}
@media(max-width:640px){.totp-setup{grid-template-columns:minmax(0,1fr)}}
.module button{justify-self:start}
.module-grid{margin-bottom:1.6rem}
.price-rows{list-style:none;margin:.6rem 0 0;padding:0;border-top:1px solid var(--line)}
.price-rows>li:not(.muted){display:grid;grid-template-columns:minmax(0,1fr) auto 9rem;gap:.3rem 1.2rem;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--line)}
.price-rows>li.muted{padding:.9rem 0}
.price-rows a{font-weight:650;text-decoration:none}
.price-rows a:hover{text-decoration:underline}
.price-rows small{display:block;color:var(--muted);font-size:.84rem}
.price-rows .amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.price-rows .row-end{display:grid;justify-items:start;gap:.1rem}
.price-rows .row-end form{margin:0}
.terms-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.6rem 1.2rem}
.terms-form .field{margin:0}
.error-text{color:var(--danger)}
.quick-order textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.quick-preview{margin-top:1.4rem}
.text-link+.text-link{margin-left:1rem}
.audit-rows{list-style:none;margin:0 0 1.5rem;padding:0;border-top:1px solid var(--line)}
.audit-rows>li:not(.empty-state){padding:.8rem 0;border-bottom:1px solid var(--line)}
.audit-head{display:flex;flex-wrap:wrap;gap:.2rem 1rem;margin:0;font-size:.92rem}
.audit-head time{color:var(--muted);font-variant-numeric:tabular-nums}
.audit-rows details{margin-top:.4rem}
.audit-rows summary{cursor:pointer;color:var(--accent);font-size:.88rem;font-weight:600}
.audit-rows dl{margin-top:.6rem;font-size:.9rem}
.event-title{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;font-size:1rem}
code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em}

/* Shared records (workspace pages) */
.auth-panel{width:100%;max-width:26rem;margin:0 auto;padding:1.8rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.auth-panel h1{font-size:1.6rem}
.auth-panel input,.auth-panel select{width:100%}
.auth-panel form p,.auth-panel .field{margin:0 0 1rem}
.auth-panel button.primary{width:100%;margin-top:.4rem}
.module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:1rem}
.module{display:grid;align-content:start;gap:.4rem;padding:1.3rem 1.4rem;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);text-decoration:none;color:var(--text);transition:border-color .2s var(--ease),background-color .2s var(--ease)}
.module:hover{border-color:var(--accent);background:var(--surface-2)}
.module .icon{color:var(--accent);margin-bottom:.4rem}
.module h2{margin:0;font-size:1.05rem}
.module p{color:var(--muted);margin:0;font-size:.92rem}
.record-list{list-style:none;padding:0;margin:0 0 1.5rem}
.record-list li{border-bottom:1px solid var(--line);padding:.9rem 0}
.record-list a{font-weight:600}
.record-list small{display:block;color:var(--muted)}
.record-list .tree-child{padding-left:calc(var(--depth) * 1.5rem)}
.panel .record-list li:last-child{border-bottom:0}
dl{display:grid;grid-template-columns:minmax(8rem,.32fr) 1fr;gap:.8rem 1rem;margin:0}
dt{color:var(--muted)}
dd{margin:0;overflow-wrap:anywhere}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:var(--footer-bg);color:var(--footer-text)}
.footer-inner{max-width:var(--wrap);margin:0 auto;padding:2rem 1rem;display:grid;grid-template-columns:minmax(0,1.4fr) auto auto;gap:2rem;align-items:start;font-size:.9rem}
.footer-inner p{color:var(--footer-muted);margin:.3rem 0 0;max-width:46ch}
.footer-inner nav{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}
.footer-inner nav a{color:var(--footer-muted);text-decoration:none}
.footer-inner nav a:hover{color:var(--footer-text)}
.powered{justify-self:end;margin:0}

/* Storefront (public shop). Seller identity only; ARAZU sits in the footer. */
.store-logo{display:flex;align-items:center;margin-right:auto;color:var(--header-text);text-decoration:none;font-size:1.3rem;font-weight:800;letter-spacing:-.01em}
.store-logo img{display:block;height:44px;width:auto}
.shop-nav form{margin:0}
/* Header menu: open <details> on desktop (summary hidden), a dropdown on phones; works without JS */
.nav-menu>summary,.side-menu>summary{display:none;list-style:none}
.nav-menu>summary::-webkit-details-marker,.side-menu>summary::-webkit-details-marker{display:none}
.nav-menu-panel{display:flex;align-items:center;gap:.4rem}
.language-switch{display:flex;gap:.25rem;margin:0}
.language-switch button{min-width:44px;padding:.4rem .55rem}
.language-switch button[aria-pressed=true]{font-weight:800;text-decoration:underline;text-underline-offset:.3em}
.shop-nav button{min-height:44px;background:transparent;border-color:color-mix(in srgb,var(--header-text) 35%,transparent);color:var(--header-text)}
.shop-nav button:hover{background:color-mix(in srgb,var(--header-text) 10%,transparent);border-color:var(--header-text)}
.store-footer .footer-inner{grid-template-columns:minmax(0,1.4fr) auto auto}
.store-footer a{color:var(--footer-text)}
.made-with{justify-self:end;display:flex;align-items:center;gap:.55rem;margin:0;font-size:.8rem;color:var(--footer-muted)}
.made-with .brand-mark{width:20px;height:18px}
.made-with .brand-mark path{fill:var(--footer-text)}
.made-with a{color:var(--footer-text);font-weight:600;text-underline-offset:.2em}
.footer-brand strong,.store-website{display:block}
.store-website{width:fit-content;margin-top:.4rem;font-weight:600}
.store-badge{display:block;width:min(200px,100%);height:auto;margin-top:1rem}

/* Workspace (signed-in ARAZU) */
body.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;overflow-y:auto;display:flex;flex-direction:column;gap:1.4rem;padding:1.5rem 1rem;background:#111419;border-right:1px solid var(--line)}
.sidebar .brand{padding:0 .5rem}
.side-menu{flex:1}
.side-menu-body{display:flex;flex-direction:column;gap:1.4rem;min-height:calc(100dvh - 6.5rem)}
.space-chip{display:flex;align-items:center;gap:.7rem;margin:0;padding:.7rem;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:.88rem}
.space-chip>span:first-child{display:grid;place-items:center;width:2rem;height:2rem;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:.8rem;flex:none}
.space-chip b,.space-chip small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.space-chip small{color:var(--muted);font-size:.78rem}
.side-nav{display:flex;flex-direction:column;gap:.2rem;flex:1}
.side-nav a{display:flex;align-items:center;gap:.75rem;min-height:42px;padding:.5rem .75rem;border-radius:var(--radius-sm);color:var(--muted);text-decoration:none;font-weight:500;font-size:.94rem}
.side-nav a:hover{background:var(--surface);color:var(--text)}
.side-nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent);font-weight:700}
.side-nav a:not(.side-shop)+.side-shop{margin-top:auto;border-top:1px solid var(--line);border-radius:0 0 var(--radius-sm) var(--radius-sm);padding-top:1rem}
.side-nav form{margin:.4rem 0 0}
.side-nav button{width:100%;justify-content:flex-start;min-height:40px;background:transparent;border-color:var(--line);color:var(--muted);font-weight:500}
.side-nav button:hover{color:var(--text)}
.app-main{min-width:0;width:100%;max-width:1180px;padding:2rem 2.5rem 4rem}
.app h1{font-size:1.75rem}
.app .company-selector{padding:.5rem .6rem .5rem 1rem;margin-bottom:1.6rem;width:fit-content;max-width:100%;font-size:.9rem}
.app .company-selector select,.app .company-selector button{min-height:38px;padding-top:.35rem;padding-bottom:.35rem}
.page-head{margin-bottom:1.6rem}
.page-head h1{margin-bottom:.3rem}
.app main form:not(.company-selector):not(.add-to-cart)>p{margin:0 0 1rem}
.app main input:not([type=checkbox]):not([type=hidden]),.app main select{width:min(100%,28rem)}
/* Workspace field edges at 3:1 against the page (WCAG 1.4.11); the shop keeps the seller line colour. */
.app main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),select,textarea):not(:focus){border-color:#626a76}
.app main textarea{max-width:40rem;height:7rem}
.app main form[method=get]:not(.company-selector):not(.board-filters){display:flex;flex-wrap:wrap;align-items:flex-end;gap:.8rem 1rem;margin-bottom:1.6rem;padding:1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.app main form[method=get]:not(.company-selector):not(.board-filters)>p{margin:0}
.app main form[method=get]:not(.company-selector):not(.board-filters) select,.app main form[method=get]:not(.company-selector):not(.board-filters) input{width:auto;min-width:12rem}
.app main>nav,.app main nav[aria-label]:not(.segmented){display:flex;align-items:center;gap:1rem;margin-top:1rem;color:var(--muted)}
.product-card .note{font-size:.8rem;padding-top:.7rem}

/* Sign-in pages: no navigation until the account is fully verified */
body.auth{display:block}
body.auth .topbar+.auth-shell{min-height:calc(100dvh - 68px)}
.auth-shell{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.6rem;padding:2rem 1rem}
.auth-shell main{width:100%;max-width:40rem}
.auth-escape{margin:0;font-size:.9rem}
.auth-credit{color:var(--muted)}
.auth-credit .brand-mark path{fill:var(--muted)}
.auth-credit a{color:var(--text)}
.auth-panel p:has(a[href*=password]){margin-top:.9rem}
.auth-escape a{color:var(--muted)}
.link-button{min-height:0;padding:0;border:0;background:none;color:var(--muted);font-weight:500;text-decoration:underline}
.link-button:hover{background:none;color:var(--text)}

/* Storefront landing */
.store-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;align-items:center;margin:0 0 2.2rem}
.store-hero.has-image{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.store-hero h1{font-size:clamp(2rem,3.4vw,2.9rem);line-height:1.08;max-width:22ch;text-wrap:balance}
.store-hero .lead{font-size:1.08rem;margin:.9rem 0 1.6rem;max-width:46ch}
.store-hero-image{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);box-shadow:0 18px 40px -24px color-mix(in srgb,var(--text) 45%,transparent)}
.section-title{display:flex;align-items:center;gap:.6rem;font-size:1.35rem;margin-bottom:1rem}
.section-title span{padding:.1rem .55rem;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:.8rem;font-weight:600}
.storefront .company-selector{padding:.5rem .6rem .5rem 1rem;margin-bottom:1.4rem;width:fit-content;max-width:100%;font-size:.9rem}

@media (max-width:900px){
  .store-hero.has-image{grid-template-columns:1fr}
  .store-hero-image{order:-1;aspect-ratio:16/9}
  body.app{display:block}
  .sidebar{position:sticky;z-index:20;height:auto;max-height:100dvh;padding:.7rem 1rem;gap:0}
  .side-menu>summary{display:inline-flex;align-items:center;gap:.5rem;position:absolute;top:.7rem;right:1rem;min-height:44px;padding:.4rem .9rem;border:1px solid var(--line-strong);border-radius:var(--radius-sm);font-weight:600;cursor:pointer}
  .side-menu[open]>summary{background:var(--surface)}
  .side-menu-body{min-height:0;padding-top:1rem;gap:1rem}
  .app-main{padding:1.4rem 1rem 3rem}
  .shop-head,.product-detail,.checkout-layout{grid-template-columns:1fr}
  .order-card{position:static}
  .footer-inner{grid-template-columns:1fr}
  .powered,.made-with{justify-self:start}
  .store-footer .footer-inner{grid-template-columns:1fr}
}
@media (max-width:650px){
  .steps{gap:.4rem .9rem;font-size:.8rem}
  .app main form[method=get]:not(.company-selector):not(.board-filters)>p{flex:1 1 100%}
  .app main form[method=get]:not(.company-selector):not(.board-filters) select,.app main form[method=get]:not(.company-selector):not(.board-filters) input{width:100%;min-width:0}
  .app main form[method=get]:not(.company-selector):not(.board-filters)>button{width:100%}
  .topbar-inner{gap:.5rem;padding:.6rem 1rem;min-height:60px}
  .store-logo img{height:34px}
  .shop-nav{gap:.4rem}
  .nav-menu>summary{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.4rem .7rem;border:1px solid color-mix(in srgb,var(--header-text) 35%,transparent);border-radius:var(--radius-sm);color:var(--header-text);font-weight:600;cursor:pointer}
  .nav-menu[open]>summary{background:color-mix(in srgb,var(--header-text) 14%,transparent)}
  .nav-menu-panel{position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:.2rem;padding:.6rem 1rem 1rem;background:var(--header-bg);border-bottom:1px solid color-mix(in srgb,var(--header-text) 14%,transparent);box-shadow:0 18px 30px -20px rgb(0 0 0 / .45)}
  .nav-menu-panel>a,.nav-menu-panel>form>button{width:100%;justify-content:flex-start}
  .nav-menu-panel .language-switch{margin-top:.4rem}
  .workspace{padding:1.4rem 1rem 3rem}
  .shop-filter{grid-template-columns:1fr auto}
  .shop-filter select{grid-column:1/-1;grid-row:2}
  .shop-head .shop-filter select{display:none} /* the category chips below cover it */
  .product-grid{grid-template-columns:1fr;gap:.7rem}
  .product-card{flex-direction:row}
  .product-card .product-media{width:112px;flex:none;aspect-ratio:auto;min-height:100%}
  [data-theme=dark] .product-grid .product-card .product-media{margin:.5rem 0 .5rem .5rem;min-height:0}
  .product-body{padding:.85rem}
  .product-card h2{font-size:.95rem}
  .sku{margin:.25rem 0 .5rem}
  .add-to-cart{padding-top:.7rem}
  .add-to-cart.compact{grid-template-columns:3rem minmax(0,1fr);gap:.4rem}
  .add-to-cart.compact input{padding:.5rem .2rem}
  .store-hero{gap:1.2rem;margin-bottom:1.6rem}
  .add-to-cart:not(.compact){grid-template-columns:5rem minmax(0,1fr)}
  .cart-line{grid-template-columns:72px minmax(0,1fr);padding:1rem}
  .qty-form{grid-column:2}
  .line-end{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
  .line-total{text-align:left;min-width:0}
  .form-grid{grid-template-columns:1fr}
  .form-card{padding:1.1rem}
  .form-actions{flex-direction:column-reverse;align-items:stretch}
  .company-selector{align-items:stretch}
  .company-selector select{min-width:0;width:100%}
  .order-rows>li:not(.empty-state){grid-template-columns:minmax(0,1fr) auto}
  .order-rows .status{grid-column:1;grid-row:2}
  .price-rows>li:not(.muted){grid-template-columns:minmax(0,1fr) auto}
  .price-rows .row-end{grid-column:1/-1;display:flex;align-items:center;gap:1rem}
  dl{grid-template-columns:1fr;gap:.2rem}
  dd{margin-bottom:.8rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}
.summary-note{margin:1.2rem 0 0;padding-top:1rem;border-top:1px solid var(--line);font-size:.9rem}
.summary-note+.muted{font-size:.9rem;margin:.4rem 0 0}
.legal-content{max-width:72ch;overflow-wrap:anywhere}
.legal-links{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;margin:1rem 0}
.store-footer .legal-links{flex-direction:column;margin:0}
.legal-content h2{font-size:1.15rem;margin:2rem 0 .5rem}

/* Checkout flow (docs/CHECKOUT-UX.md): cart panel, steps, choices, details, review, done.
   Only palette tokens: every seller brand package, light or dark, styles it. */
.steps-nav{margin:0 0 1.8rem}
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;font-size:.84rem}
.steps li{position:relative;flex-direction:column;justify-content:flex-start;gap:.45rem;text-align:center;line-height:1.25}
.steps li::before{position:relative;z-index:1;width:2rem;height:2rem;border:1.5px solid var(--line-strong);background:var(--bg);color:var(--muted);font-weight:700;font-size:.8rem;transition:background-color .3s var(--ease),border-color .3s var(--ease)}
.steps li+li::after{content:"";position:absolute;top:1rem;right:50%;width:100%;height:2px;margin-top:-1px;background:var(--line)}
.steps li.done::before{content:"✓";background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.steps li.done::after,.steps li.done+li::after{background:var(--accent)}
.steps li[aria-current=step]::before{box-shadow:0 0 0 4px var(--accent-soft)}
.steps a{color:var(--text);font-weight:600;text-decoration:none}
.steps a:hover{color:var(--accent);text-decoration:underline}
.checkout-grid{display:grid;grid-template-columns:minmax(0,1fr) 22.5rem;gap:2rem;align-items:start}
.checkout-main{min-width:0}
.checkout-main>h1,.step-form h1,#cart-body>h1{margin-bottom:1.2rem}
.checkout-aside{position:sticky;top:5.5rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem}
.aside-title{font-size:1rem;margin:0 0 1rem}
.aside-lines{list-style:none;display:grid;gap:.8rem;margin:0 0 1rem;padding:0 0 1rem;border-bottom:1px solid var(--line)}
.aside-lines li{display:grid;grid-template-columns:3.5rem minmax(0,1fr) auto;gap:.75rem;align-items:center;font-size:.9rem}
.aside-lines .thumb,.review-lines .thumb{border-radius:6px}
.aside-name small,.review-name small{display:block;color:var(--muted);font-size:.82rem}
.aside-lines strong,.review-lines strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.checkout-aside .total-row{margin-bottom:0}
.checkout-aside .button.primary{margin-top:1.1rem;min-height:52px;font-size:1.02rem}
.checkout-aside .button .icon{width:18px;height:18px}
.is-free{color:var(--ok);font-weight:650}

/* Choices: shipping and payment as selectable rows with price */
.choice-group{min-width:0;margin:0 0 1.8rem;padding:0;border:0}
.group-title{padding:0;margin:0 0 .8rem;font-size:1.15rem;font-weight:700;letter-spacing:-.015em}
.choice-list{display:grid;gap:.6rem}
.choice{display:grid;grid-template-columns:auto 2.5rem minmax(0,1fr) auto;align-items:center;gap:.85rem;margin:0;padding:1rem 1.1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);font-weight:400;font-size:1rem;cursor:pointer;transition:border-color .2s var(--ease),box-shadow .2s var(--ease),background-color .2s var(--ease)}
.choice:hover{border-color:var(--line-strong)}
.choice:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:color-mix(in srgb,var(--accent-soft) 60%,var(--surface))}
.choice:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.choice input{width:1.25rem;height:1.25rem;min-height:0;margin:0;padding:0;accent-color:var(--accent);cursor:pointer}
.choice input:focus{box-shadow:none}
.choice-icon{display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);transition:background-color .2s var(--ease),color .2s var(--ease)}
.choice:has(input:checked) .choice-icon{background:var(--accent);color:var(--accent-ink)}
.choice-text{display:grid;gap:.15rem;min-width:0}
.choice-title{font-weight:650}
.choice-note{color:var(--ok);font-size:.88rem;font-weight:600}
.choice-meta{color:var(--muted);font-size:.86rem}
.choice-price{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.choice-price.is-free{color:var(--ok)}
/* Acceptance marks keep the light badge every card brand prints on, in both themes. */
.pay-marks{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}
.pay-mark{display:inline-grid;place-items:center;width:2.75rem;height:1.75rem;padding:.3rem .4rem;border:1px solid #d6d9de;border-radius:5px;background:#fbfbfc}
.pay-mark.is-wallet{width:3.6rem;padding:.3rem .45rem}
.pay-mark svg{display:block;width:100%;height:100%}
.choice-placeholder{margin:0;padding:1rem 1.1rem;border:1px dashed var(--line-strong);border-radius:var(--radius);color:var(--muted)}
.change-choice{margin-top:.7rem;color:var(--accent);font-weight:600}
.choice-list .pickup{margin:0 0 .2rem;padding:1rem 1.1rem;border-style:solid;border-color:var(--line);background:var(--surface)}
.choice-list .pickup p{margin:0 0 .7rem}

/* Step navigation: back on the left, the named next step on the right; a bottom bar on phones */
.step-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.6rem;padding-top:1.3rem;border-top:1px solid var(--line)}
.step-actions .primary{min-height:52px;padding-inline:1.6rem;font-size:1.02rem}
.back-link-step{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;color:var(--muted);font-weight:600;text-decoration:none}
.back-link-step:hover{color:var(--accent)}
.back-link-step .icon,.back-to-shop .icon{width:18px;height:18px}
.bar-total{display:none;margin:0}

/* Details */
.chosen{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .5rem;margin:-.3rem 0 1.2rem;font-size:.92rem}
.chosen span{padding:.25rem .7rem;border-radius:999px;background:var(--surface-2);font-weight:600}
.chosen a{margin-left:.2rem;font-weight:600}
.login-offer{margin:0 0 1rem;color:var(--muted)}
.form-section{margin:0 0 1rem;padding:1.4rem 1.4rem 1.5rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.form-section h2{margin:0 0 1rem;font-size:1.05rem}
.form-grid.address-grid{grid-template-columns:minmax(0,9rem) minmax(0,1fr)}
.toggle-block{margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--line)}
.toggle-block>.field.check{margin:0}
.toggle-block>.field.check label{font-weight:600}
.toggle-fields{margin-top:1rem}
.toggle-block:has(>.field.check input:not(:checked))>.toggle-fields{display:none}
.toggle-block:has(>.field.check input:checked)>.toggle-off-note{display:none}
.toggle-off-note{margin:.35rem 0 0 1.8rem;color:var(--muted);font-size:.9rem}
.pickup-note{margin:0;padding:1rem 1.1rem;border-radius:var(--radius-sm);background:var(--surface-2)}

/* Review and done */
.review-block{margin:0 0 1rem;padding:1.2rem 1.4rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.review-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.review-head h2{margin:0;font-size:1.02rem}
.review-head a{font-weight:600;font-size:.92rem}
.review-lines{list-style:none;display:grid;gap:.75rem;margin:0;padding:0}
.review-lines+.caption{margin:1rem 0 0}
.review-lines li{display:grid;grid-template-columns:4rem minmax(0,1fr) auto;gap:.9rem;align-items:center}
.review-facts{grid-template-columns:minmax(7rem,10rem) 1fr;gap:.65rem 1rem;font-size:.95rem}
.terms-check{margin:1.4rem 0 0;padding:1rem 1.1rem;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface)}
.terms-check:has(input:checked){border-color:var(--accent)}
.terms-check label{font-weight:500}
.field.survey-check{margin-top:.6rem;flex-wrap:nowrap;align-items:flex-start}.survey-check input{margin-top:.15rem}.survey-check label{flex:1;font-weight:400}
.consent-note{max-width:62ch;margin:.9rem 0 0;color:var(--muted);font-size:.88rem}
.confirm-form .step-actions .primary{min-width:min(100%,19rem)}
.order-hero.is-new{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:1.2rem;align-items:start}
.order-hero.is-new>:not(.done-mark){grid-column:2}
.order-hero.is-new h1{text-wrap:balance;margin-top:.35rem}
.done-mark{grid-row:1/span 3;display:grid;place-items:center;width:3.5rem;height:3.5rem;border-radius:50%;background:var(--ok);color:var(--surface);animation:done-in .45s var(--ease) both}
@media (prefers-reduced-motion:no-preference){.done-mark path{stroke-dasharray:24;stroke-dashoffset:24;animation:draw .35s .2s var(--ease) forwards}}  /* the tick draws itself once */
@keyframes done-in{from{transform:scale(.6);opacity:0}}
@keyframes draw{to{stroke-dashoffset:0}}
.done-actions{margin:.4rem 0 0}
.done-mark .icon{width:30px;height:30px;stroke-width:2.4}
.is-failed .done-mark{background:var(--danger)}
.is-failed .done-mark path{animation:none;stroke-dasharray:none}  /* a warning does not celebrate */
.done-grid{display:grid;grid-template-columns:minmax(0,1fr) 20rem;gap:1.5rem;align-items:start}
.done-main{min-width:0}
.pay-card,.next-steps{margin:0 0 1rem;padding:1.3rem 1.4rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.pay-card h2,.next-steps h2{font-size:1.05rem}
.pay-card form{margin-top:1rem}
.pay-card>.muted:last-child{margin-bottom:0}
.pay-state{display:flex;align-items:center;gap:.6rem;margin:0 0 .4rem;font-size:1.08rem;font-weight:700}
.pay-state.is-ok{color:var(--ok)}
.pay-state.is-failed{color:var(--danger)}
.spinner{flex:none;width:1.1rem;height:1.1rem;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.bank-facts{grid-template-columns:minmax(8rem,11rem) 1fr;align-items:baseline;margin-bottom:1rem}
.bank-facts .amount{font-size:1.5rem;font-weight:750;font-variant-numeric:tabular-nums}
.copyable{margin-right:.8rem;font-weight:650;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.link-button.copy{color:var(--accent);font-weight:600}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{position:relative;padding:0 0 1rem 2rem;color:var(--muted)}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{content:"";position:absolute;left:.3rem;top:.3rem;width:.85rem;height:.85rem;border:2px solid var(--line-strong);border-radius:50%;background:var(--surface)}
.timeline li:not(:last-child)::after{content:"";position:absolute;left:.725rem;top:1.3rem;bottom:.15rem;width:2px;background:var(--line)}
.timeline li.done{color:var(--text);font-weight:600}
.timeline li.done::before{background:var(--ok);border-color:var(--ok)}
.done-aside .aside-title{margin-bottom:.4rem;color:var(--muted);font-size:.92rem;font-weight:600}
.done-aside .grand{margin:.1rem 0 .8rem;font-size:1.8rem}
.done-aside .totals{margin:0}
.terms-block summary{cursor:pointer;font-weight:600}
.terms-block p{max-height:16rem;margin:.8rem 0 0;overflow:auto;color:var(--muted);white-space:pre-line}

/* Cart: stepper and free shipping */
.stepper{display:inline-grid;grid-template-columns:2.75rem 3.5rem 2.75rem;align-items:stretch;width:max-content;border:1px solid var(--line-strong);border-radius:var(--radius-sm);overflow:hidden;background:var(--bg)}
.stepper .step{min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text)}
.stepper .step:hover{background:var(--accent-soft);color:var(--accent)}
.stepper .step .icon{width:18px;height:18px}
.stepper input{width:100%;min-height:44px;padding:.4rem 0;border:0;border-inline:1px solid var(--line);border-radius:0;background:transparent;text-align:center;font-weight:650;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.stepper input:focus{box-shadow:inset 0 0 0 2px var(--accent)}
.qty-form.stepper{grid-template-columns:2.75rem 3.5rem 2.75rem auto}
.js .qty-form.stepper{grid-template-columns:2.75rem 3.5rem 2.75rem}
.js .qty-apply{display:none}
.qty-apply{min-height:44px;border:0;border-left:1px solid var(--line);border-radius:0}
html:not(.js) .add-to-cart .step{display:none}
.cart-line{grid-template-columns:96px minmax(0,1fr) auto 8.5rem}
.cart-line-info .stock{display:block;margin:.3rem 0 0;font-size:.8rem}
.summary-lines .on-order{display:block;margin:.25rem 0 0;color:var(--accent)}
.free-shipping{display:flex;align-items:center;gap:.55rem;margin:1rem 0 0;padding:.7rem .85rem;border-radius:var(--radius-sm);background:var(--surface-2);font-size:.9rem}
.free-shipping.is-free{background:color-mix(in srgb,var(--ok) 10%,var(--surface));color:var(--ok);font-weight:650}
.free-shipping .icon{flex:none}
.code-box{margin-top:1.2rem;padding-top:.6rem;border-top:1px solid var(--line)}
.code-toggle>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:600;cursor:pointer;list-style:none}
.code-toggle>summary::-webkit-details-marker{display:none}
.code-form{max-width:26rem;padding-bottom:.4rem}
.code-form label{display:block;margin-bottom:.35rem;font-size:.9rem}
.code-row{display:flex;gap:.5rem}
.code-row input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:.04em}
.code-row input[aria-invalid="true"]{border-color:var(--danger)}
.code-applied{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:.6rem;padding:.7rem .85rem;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--ok) 10%,var(--surface))}
.code-applied.is-waiting{background:var(--surface-2)}
.code-applied p{margin:0}
.code-applied small{display:block;margin-top:.15rem;color:var(--muted)}
.code-applied .link-button{min-height:44px}
.totals .is-discount{color:var(--ok);font-weight:650}
.code-box+.code-box{margin-top:0;padding-top:0;border-top:0}
.paid-rows{margin-top:.8rem}
.total-row.to-pay{padding-top:.8rem}
.choice.is-fixed{grid-template-columns:2.5rem minmax(0,1fr) auto;cursor:default}
.voucher-sheet{max-width:40rem;margin:2rem auto;padding:clamp(1.5rem,5vw,3rem);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.voucher-brand{margin:0;color:var(--accent);font-weight:700;letter-spacing:.02em}
.voucher-sheet h1{margin:.3rem 0 0}
.voucher-value{margin:.4rem 0 1.4rem;font-size:clamp(2.4rem,9vw,3.6rem);font-weight:750;line-height:1.05;font-variant-numeric:tabular-nums}
.voucher-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem 1.2rem;margin:0 0 1.4rem}
.voucher-facts dt{color:var(--muted)}
.voucher-facts dd{margin:0}
.voucher-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(1.05rem,4.4vw,1.35rem);font-weight:700;letter-spacing:.06em;overflow-wrap:anywhere}
.voucher-how{max-width:60ch;color:var(--muted)}
.voucher-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.6rem 0 0}
@media print{.is-voucher-page .utility-bar,.is-voucher-page .store-header,.is-voucher-page .category-bar,.is-voucher-page footer,.is-voucher-page .skip,.voucher-actions{display:none!important}
.voucher-sheet{margin:0 auto;border-color:#999;background:#fff;color:#000}.voucher-brand{color:#000}.voucher-facts dt,.voucher-how{color:#333}}
.add-to-cart.compact{display:block}
.add-to-cart.compact button{width:100%}
.add-to-cart button .icon{width:19px;height:19px}
.add-to-cart:not(.compact),.buy-box .add-to-cart:not(.compact){grid-template-columns:auto minmax(0,1fr)}
.add-to-cart:not(.compact) button[type=submit]{min-height:48px}
.shipping-hint{display:flex;align-items:flex-start;gap:.55rem;margin:.9rem 0 0;color:var(--muted);font-size:.88rem}
.shipping-hint .icon{flex:none;margin-top:.05rem}

/* Cart panel: drawer from the right on desktop, sheet from the bottom on phones */
.cart-panel{width:min(28rem,100vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;padding:1.3rem 1.4rem 1.6rem;border:0;border-left:1px solid var(--line);background:var(--surface);color:var(--text);overflow-y:auto;overscroll-behavior:contain;box-shadow:-28px 0 56px -36px rgb(0 0 0 / .5)}
.cart-panel::backdrop{background:rgb(8 12 24 / .45)}
.cart-panel[open]{animation:panel-in .38s var(--ease)}
.cart-panel[open]::backdrop{animation:backdrop-in .3s ease}
@keyframes panel-in{from{transform:translateX(40px);opacity:0}}
@keyframes backdrop-in{from{opacity:0}}
@keyframes sheet-in{from{transform:translateY(60px);opacity:0}}
.cart-panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .8rem}
.cart-panel-head form{margin:0}
.added-title{display:flex;align-items:center;gap:.5rem;margin:0;color:var(--ok);font-size:1.1rem;font-weight:750}
.added-title .icon{width:24px;height:24px;stroke-width:2.3}
.icon-button{width:44px;min-height:44px;padding:0;border-color:transparent;background:transparent}
.added-line{display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:1rem;align-items:center;padding:1rem 0;border-block:1px solid var(--line)}
.added-line .thumb{border-radius:var(--radius-sm)}
.added-line p{margin:0}
.added-name{margin:0 0 .2rem;font-weight:650;line-height:1.35}
.cart-panel-total{display:flex;align-items:baseline;justify-content:space-between;margin:1rem 0 0;color:var(--muted)}
.cart-panel-total strong{color:var(--text);font-size:1.3rem;font-variant-numeric:tabular-nums}
.cart-panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:1.2rem 0 0}
.cart-panel-actions form{margin:0}
.cart-panel-actions .button,.cart-panel-actions button{min-height:50px;white-space:normal;text-align:center}
.related{margin-top:1.8rem}
.related h2{margin:0 0 .7rem;color:var(--muted);font-size:.92rem;font-weight:650}
.related ul{list-style:none;display:grid;gap:.5rem;margin:0;padding:0}
.related li{display:grid;grid-template-columns:4.5rem minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.5rem;border:1px solid var(--line);border-radius:var(--radius-sm)}
.related li form{margin:0}
.related-info{display:grid;gap:.15rem;min-width:0;font-size:.9rem}
.related-info a{display:-webkit-box;overflow:hidden;color:var(--text);font-weight:600;text-decoration:none;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.related-info a:hover{color:var(--accent)}
.related-info strong{font-variant-numeric:tabular-nums}
.add-small{border-color:var(--line-strong)}
.add-small:hover{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}

/* Checkout chrome: only the logo, the way back and the language */
.checkout-nav{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.back-to-shop{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;padding:.4rem .7rem;border-radius:var(--radius-sm);color:var(--header-text);font-weight:600;text-decoration:none}
.back-to-shop:hover{background:color-mix(in srgb,var(--header-text) 10%,transparent)}
.checkout-nav button{min-height:44px;background:transparent;border-color:color-mix(in srgb,var(--header-text) 35%,transparent);color:var(--header-text)}
.checkout-nav button:hover{background:color-mix(in srgb,var(--header-text) 10%,transparent);border-color:var(--header-text)}
.checkout-footer .footer-inner{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.store-footer.checkout-footer .legal-links{flex-direction:row}

@media (max-width:900px){
  .checkout-grid,.done-grid{grid-template-columns:1fr}
  .checkout-aside{position:static}
  .step-actions{position:sticky;bottom:0;z-index:15;margin:1.6rem -1rem 0;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -12px 28px -22px rgb(0 0 0 / .45)}
  .step-actions .back-link-step{display:none}
  .bar-total{display:grid;line-height:1.2}
  .bar-total span{color:var(--muted);font-size:.8rem}
  .bar-total strong{font-size:1.2rem;font-variant-numeric:tabular-nums}
  .step-actions .primary{flex:1;max-width:22rem;min-width:0;padding-inline:1rem;white-space:normal}
  .confirm-form .step-actions .primary{min-width:0}
}
@media (max-width:650px){
  .steps{font-size:.76rem}
  .steps li::before{width:1.8rem;height:1.8rem}
  .steps li+li::after{top:.9rem}
  .steps li:not([aria-current=step])>a{position:absolute;inset:0;font-size:0}
  .steps li:not([aria-current=step])>span{font-size:0}
  .steps li[aria-current=step]{white-space:nowrap}
  .choice{grid-template-columns:auto 2.1rem minmax(0,1fr) auto;gap:.65rem;padding:.9rem}
  .choice-icon{width:2.1rem;height:2.1rem}
  .choice-price{font-size:.92rem}
  .form-section{padding:1.1rem}
  .form-grid.address-grid{grid-template-columns:minmax(0,7.5rem) minmax(0,1fr)}
  .toggle-fields.form-grid:not(.address-grid){grid-template-columns:1fr}
  .review-block,.pay-card,.next-steps{padding:1.1rem}
  .review-lines li{grid-template-columns:3.25rem minmax(0,1fr) auto;gap:.7rem}
  .cart-line{grid-template-columns:72px minmax(0,1fr)}
  .cart-line .stepper{grid-column:2}
  .cart-panel{width:100vw;height:auto;max-height:88dvh;margin:auto 0 0;border-left:0;border-top:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;padding-bottom:calc(1.6rem + env(safe-area-inset-bottom))}
  .cart-panel[open]{animation-name:sheet-in}
  .cart-panel-actions{grid-template-columns:1fr}
  .cart-panel-actions .button{order:-1}
  .order-hero.is-new{grid-template-columns:minmax(0,1fr)}
  .order-hero.is-new>:not(.done-mark){grid-column:1}
  .done-mark{grid-row:auto;margin-bottom:.6rem}
  .done-mark{width:2.75rem;height:2.75rem}
  .done-mark .icon{width:24px;height:24px}
  .checkout-footer .footer-inner{grid-template-columns:1fr}
  .store-footer.checkout-footer .legal-links{flex-direction:column}
  .back-to-shop{padding-inline:.5rem}
}
@media (prefers-reduced-motion:reduce){.spinner{animation:none;border-top-color:var(--line-strong)}}
@media (max-width:650px){.wide-only{display:none}}
.step-form>.alert,.step-form>#step-body>.alert{margin-bottom:1rem}

/* Storefront: header search, category menu, listing with filters, home sections (docs/STOREFRONT-UX.md).
   Only palette tokens: every seller's colours and logo carry it. */
.store-header .topbar-inner{gap:1.2rem}
.store-header .store-logo{margin-right:0;flex:none}
.menu-button{display:none}
.header-search{position:relative;flex:1;max-width:680px;margin:0 auto 0 .6rem}
.search-field{display:flex;align-items:center;background:var(--surface);border:1px solid transparent;border-radius:var(--radius-sm);color:var(--text);transition:box-shadow .2s var(--ease)}
.search-field:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--highlight) 70%,transparent)}
.search-field>.icon{flex:none;margin-left:.85rem;color:var(--muted)}
.search-field input{flex:1;min-width:0;border:0;background:transparent;padding:.7rem .7rem;font-size:1rem}
.search-field input:focus{box-shadow:none}
.search-field input::-webkit-search-cancel-button{cursor:pointer}
.search-field button{flex:none;margin:4px;min-height:40px;padding:.5rem 1.1rem}
.search-field input{text-overflow:ellipsis}
/* inside the seller's header the accent may clash with header_bg (two blues): the search button takes the highlight */
/* the field keeps an edge when the header has the page's own colour (white header, derived dark header) */
.store-header .search-field{border-color:color-mix(in srgb,var(--header-text) 22%,transparent)}
.store-header .search-field button.primary{background:var(--highlight);border-color:var(--highlight);color:var(--highlight-ink)}
.store-header .search-field button.primary:hover{background:color-mix(in srgb,var(--highlight) 88%,#000)}
/* focus rings in seller-coloured bands follow the band's text colour; the accent can vanish on header_bg */
.topbar :focus-visible{outline-color:var(--header-text)}
.store-footer :focus-visible{outline-color:var(--footer-text)}
.shop-nav .nav-label{white-space:nowrap}
.account-menu{position:relative}
.account-menu>summary{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.4rem .8rem;border-radius:var(--radius-sm);color:var(--header-text);font-weight:600;cursor:pointer;list-style:none}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary:hover,.account-menu[open]>summary{background:color-mix(in srgb,var(--header-text) 10%,transparent)}
.account-panel{position:absolute;right:0;top:calc(100% + .4rem);z-index:40;display:grid;gap:.2rem;min-width:15rem;padding:.6rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 18px 40px -18px color-mix(in srgb,var(--text) 40%,transparent)}
.shop-nav .account-panel a{color:var(--text)}
.shop-nav .account-panel a:hover{background:var(--surface-2)}
.shop-nav .account-panel button{width:100%;justify-content:flex-start;background:transparent;border-color:var(--line);color:var(--text)}
.shop-nav .account-panel .language-switch button{width:auto}
.shop-nav>.language-switch button{min-width:40px;padding:.3rem .45rem;font-size:.85rem}

.store-subnav{position:relative;background:var(--surface);border-bottom:1px solid var(--line)}
.subnav-inner{max-width:var(--wrap);margin:0 auto;padding:0 1rem;display:flex;align-items:center;gap:1rem;min-height:52px}
.mega>summary{display:inline-flex;align-items:center;gap:.5rem;min-height:40px;padding:.45rem 1rem;border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-ink);font-weight:700;cursor:pointer;list-style:none;white-space:nowrap}
.mega>summary::-webkit-details-marker{display:none}
.mega>summary:hover{background:var(--accent-hover)}
.mega-panel{position:absolute;left:0;right:0;top:100%;z-index:35;max-height:min(70vh,640px);overflow-y:auto;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 30px 50px -30px color-mix(in srgb,var(--text) 55%,transparent)}
.mega-head{display:none}
.mega-list{max-width:var(--wrap);margin:0 auto;padding:1.4rem 1rem 1.8rem;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.2rem 1.6rem}
.mega-list ul{list-style:none;margin:.3rem 0 0 3.6rem;padding:0;display:grid;gap:.15rem}
.mega-list ul a{color:var(--muted);text-decoration:none;font-size:.92rem}
.mega-list ul a:hover{color:var(--accent);text-decoration:underline}
.mega-root{display:flex;align-items:center;gap:.75rem;color:var(--text);text-decoration:none;font-weight:700}
.mega-root:hover{color:var(--accent)}
.mega-root small{display:block;color:var(--muted);font-weight:500;font-size:.8rem}
.mega-thumb{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:var(--radius-sm);background:#fff;border:1px solid var(--line);overflow:hidden}
.mega-thumb img{width:40px;height:40px;object-fit:contain}
.category-links{display:flex;gap:.2rem;overflow-x:auto;scrollbar-width:none;min-width:0}
.category-links a{flex:none;padding:.55rem .8rem;border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-weight:600;font-size:.94rem}
.category-links a:hover{background:var(--surface-2)}
.category-links a[aria-current]{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent);border-radius:0}
.promises{min-width:0;margin:0;padding:0;list-style:none;display:flex;gap:1.6rem;overflow-x:auto;scrollbar-width:none;color:var(--muted)}
.promises li{display:flex;align-items:center;gap:.45rem;flex:none}
.promises .icon{width:18px;height:18px;color:var(--accent)}
.promises strong{color:var(--text);font-weight:650}
.promises a{color:inherit;text-decoration:none}
.promises a:hover strong{color:var(--accent)}

/* Suggestions under the header search */
.suggest{position:absolute;left:0;right:0;top:calc(100% + .45rem);z-index:45;max-height:min(72vh,620px);overflow-y:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 26px 50px -24px color-mix(in srgb,var(--text) 50%,transparent)}
.suggest-inner{padding:.5rem}
.suggest-title{margin:.5rem .6rem .3rem;color:var(--muted);font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.suggest ul{list-style:none;margin:0;padding:0}
.suggest li a{display:flex;align-items:center;gap:.75rem;padding:.5rem .6rem;border-radius:var(--radius-sm);color:var(--text);text-decoration:none}
.suggest li a:hover,.suggest li a:focus-visible{background:var(--surface-2);outline:none}
.suggest-categories a span{flex:1;font-weight:600}
.suggest-categories small{color:var(--muted)}
.suggest-thumb{flex:none;display:grid;place-items:center;width:48px;height:48px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden}
.suggest-thumb img{width:42px;height:42px;object-fit:contain}
.suggest-name{flex:1;min-width:0;font-size:.93rem;line-height:1.3;font-weight:600}
.suggest-name small{display:block;color:var(--muted);font-weight:500;font-size:.8rem;margin-top:.1rem}
.suggest-name em{font-style:normal}
.suggest-price{flex:none;font-variant-numeric:tabular-nums}
.suggest-all{display:block;margin:.4rem .2rem .2rem;padding:.7rem;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent);font-weight:700;text-align:center;text-decoration:none}
.suggest-all:hover,.suggest-all:focus-visible{background:var(--accent);color:var(--accent-ink)}
.suggest-empty{margin:.6rem;color:var(--muted)}

/* Listing: category, search results, filters */
.listing-head{margin-bottom:1rem}
.listing-head h1{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .7rem;margin-bottom:.3rem}
.listing-head h1 .count{font-size:1rem;font-weight:600;color:var(--muted);letter-spacing:0}
.category-text{max-width:80ch;color:var(--muted)}
.category-text>summary{list-style:none;cursor:pointer}
.category-text>summary::-webkit-details-marker{display:none}
.category-text .more{color:var(--accent);font-weight:600;white-space:nowrap}
.category-text[open]>summary{display:none}
/* Compact tiles for subcategories and quick picks (CATEGORY-FILTERS-UX.md K2-K4): small photo, name, count. */
.subcategories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:0 0 1.6rem}
.subcategories a{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:.7rem;min-height:64px;padding:.45rem .85rem .45rem .45rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-weight:600;font-size:.92rem;line-height:1.25;transition:border-color .2s var(--ease),color .2s var(--ease)}
.subcategories a:hover{border-color:var(--accent);color:var(--accent)}
.subcategories a:active{transform:translateY(1px)}
.tile-media{display:grid;place-items:center;width:48px;height:48px;overflow:hidden}
.tile-media img{width:100%;height:100%;object-fit:contain}
.tile-name{min-width:0;overflow-wrap:break-word;hyphens:auto}
.subcategories small{color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums}
@media (max-width:1180px){.subcategories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.subcategories a{transition:none}}
.results{min-width:0}
.listing-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.8rem;align-items:start}
.listing-layout.is-empty{grid-template-columns:minmax(0,1fr)}
.empty-categories{justify-content:center;margin-top:1.6rem}
#product-grid{transition:opacity .2s var(--ease)}
#product-grid.htmx-request{opacity:.45;pointer-events:none}  /* filter or sort in flight */
.filters{position:sticky;top:96px;max-height:calc(100dvh - 112px);overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable;padding-right:.75rem}  /* counts never sit under the scrollbar, classic or overlay */
.filters-head{display:flex;align-items:center;justify-content:space-between;min-height:2.7rem;margin-bottom:.2rem}
.filters-head h2{font-size:1.05rem;margin:0}
.filters-close{display:none}
.filter-group{margin:0;border-bottom:1px solid var(--line);min-width:0}
.filter-group>summary{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:2.75rem;padding:.55rem 0;font-weight:700;font-size:.92rem;cursor:pointer;list-style:none}
.filter-group>summary::-webkit-details-marker{display:none}
.filter-group>summary::after{content:"";flex:none;width:.45rem;height:.45rem;margin-right:.2rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-25%) rotate(45deg);transition:transform .2s var(--ease)}
.filter-group[open]>summary::after{transform:translateY(25%) rotate(-135deg)}
.filter-group>summary:hover{color:var(--accent)}
.filter-group fieldset{margin:0;padding:0 0 .8rem;border:0;min-width:0}
.filter-hint{margin:0 0 .4rem;color:var(--muted);font-size:.84rem;line-height:1.45}
label.check.is-empty{color:var(--muted);cursor:default}
label.check.is-empty input{cursor:default}
.price-bands{display:grid;margin:0 0 .55rem}
.price-bands a{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.3rem 0;color:var(--text);font-weight:500;text-decoration:none}
.price-bands a:hover{color:var(--accent)}
.price-bands a[aria-current]{color:var(--accent);font-weight:700}
.price-bands small{color:var(--muted);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.filter-group>summary::after{transition:none}}
.filter-group select{width:100%}
label.check{display:flex;align-items:center;gap:.6rem;margin:0;padding:.3rem 0;font-weight:500;cursor:pointer}
label.check span{flex:1;min-width:0}
label.check small{color:var(--muted);font-variant-numeric:tabular-nums}
.price-range{display:grid;grid-template-columns:1fr auto 1fr;gap:.4rem;align-items:center}
.price-range label{margin:0}
.price-range input{width:100%}
.more-values>summary{padding:.3rem 0;color:var(--accent);font-weight:600;font-size:.9rem;cursor:pointer}
.filters-actions{display:flex;flex-direction:column;gap:.6rem;padding:1rem 0}
.js .filters-actions button{display:none}
.toolbar{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem;border-bottom:1px solid var(--line)}
.filters-toggle{display:none}
.sort-tabs{display:flex;gap:.2rem;overflow-x:auto;scrollbar-width:none}
.sort-tabs a{flex:none;padding:.65rem .8rem;color:var(--muted);text-decoration:none;font-weight:600;font-size:.93rem;border-bottom:2px solid transparent;margin-bottom:-1px}
.sort-tabs a:hover{color:var(--text)}
.sort-tabs a[aria-current]{color:var(--accent);border-bottom-color:var(--accent)}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin-bottom:1rem}
.active-filters a{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .75rem;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.88rem;font-weight:600;text-decoration:none}
.active-filters a:hover{background:var(--accent);color:var(--accent-ink)}
.active-filters a.clear{background:transparent;color:var(--muted);text-decoration:underline}
.badge-count{display:inline-grid;place-items:center;min-width:1.4rem;height:1.4rem;padding:0 .35rem;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:.75rem}
.listing.htmx-request,.htmx-request .listing{opacity:.6;transition:opacity .2s var(--ease)}
.load-more{grid-column:1/-1;display:grid;justify-items:center;gap:.6rem;padding:1.4rem 0 .4rem}
.load-more p{margin:0;color:var(--muted);font-size:.9rem}
.load-more .button{min-width:16rem}
.results .product-grid{grid-template-columns:repeat(auto-fill,minmax(214px,1fr))}

/* Product card */
.card-brand{margin:0 0 .15rem;color:var(--muted);font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
a.card-brand:hover{color:var(--accent)}
.product-card h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-facts{display:flex;flex-wrap:wrap;gap:.15rem .55rem;margin:.35rem 0 .8rem;color:var(--muted);font-size:.8rem}
.card-facts span+span::before{content:"·";margin-right:.55rem}
.printer-facts{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.badge{position:absolute;top:.6rem;left:.6rem;z-index:1;padding:.2rem .55rem;border-radius:6px;background:var(--highlight);color:var(--highlight-ink);font-size:.74rem;font-weight:750;letter-spacing:.02em}

/* Home */
.home-top{display:grid;gap:1.4rem;margin-bottom:2.6rem}
.home-top.has-finder{grid-template-columns:minmax(0,1fr) 340px;align-items:stretch}
.home-top .store-hero{margin:0}
.home-top.has-finder .store-hero h1{font-size:clamp(1.8rem,2.6vw,2.5rem)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.device-finder{display:flex;flex-direction:column;padding:1.4rem;background:var(--surface);border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:var(--radius);box-shadow:0 14px 30px -24px color-mix(in srgb,var(--accent) 60%,transparent)}
.device-finder h2{font-size:1.25rem;margin-bottom:.3rem}
.device-finder p{color:var(--muted);font-size:.92rem}
.device-finder select{width:100%;margin-bottom:.8rem}
.device-finder button{margin-top:auto}
.home-section{margin-bottom:2.8rem}
.strip-head{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}
.strip-head .section-title{margin:0}
.strip-head>a{font-weight:600;font-size:.92rem;white-space:nowrap}
.strip-arrows{display:flex;gap:.4rem;margin-left:auto}
.strip-arrows button{width:44px;padding:0}
html:not(.js) .strip-arrows,.strip.fits-view .strip-arrows{display:none}
.strip-arrows button:disabled{opacity:.35;cursor:default;border-color:var(--line)}
.strip-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * 1.1rem) / 4);gap:1.1rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:.6rem}
.strip-track>.product-card{scroll-snap-align:start}
.brand-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.brand-chips a{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem 1rem;background:var(--surface);border:1px solid var(--line);border-radius:999px;color:var(--text);font-weight:650;text-decoration:none}
.brand-chips a:hover{border-color:var(--accent);color:var(--accent)}
.brand-chips small{color:var(--muted);font-weight:500}
/* Promotions (PROMO-UX.md): rotating banners instead of the seller banner, their page, cashback on products */
.promo-carousel{position:relative;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.promo-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.promo-track::-webkit-scrollbar{display:none}
.promo-slide{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;align-items:center;min-height:300px;padding:2rem 2.4rem;scroll-snap-align:start}
.promo-slide.has-image,.promo-head.has-image{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.promo-slide h2,.promo-head h1{font-size:clamp(1.9rem,3.1vw,2.7rem);line-height:1.08;max-width:18ch;margin:0;text-wrap:balance}
.home-top.has-finder .promo-slide h2{font-size:clamp(1.7rem,2.5vw,2.4rem)}
.promo-text .lead{font-size:1.05rem;margin:.8rem 0 1.4rem;max-width:44ch}
.promo-text .hero-actions{align-items:center;gap:.6rem 1rem}
.promo-until{color:var(--muted);font-size:.9rem;font-weight:600}
.promo-image{width:100%;max-height:300px;aspect-ratio:4/3;object-fit:contain}
.promo-head .promo-image{padding:6%;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.promo-controls{position:absolute;right:1.2rem;bottom:1rem;display:flex;align-items:center;gap:.35rem}
.promo-controls button{width:44px;min-height:44px;padding:0;border-color:color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:999px;background:var(--surface)}
.promo-dots{display:flex}
.promo-dots button{width:40px;border:0;background:none}
.promo-dots button::before{content:"";width:22px;height:8px;border-radius:999px;background:var(--line-strong);transform:scaleX(.37);transition:transform .3s var(--ease),background-color .3s var(--ease)}
.promo-dots button[aria-current=true]::before{transform:none;background:var(--accent)}
.promo-dots button:hover{background:none}
.promo-dots button:hover::before{background:var(--muted)}
.promo-dots button[aria-current=true]:hover::before{background:var(--accent)}
.promo-pause .icon-play,.promo-pause[aria-pressed=true] .icon-pause{display:none}
.promo-pause[aria-pressed=true] .icon-play{display:block}
html:not(.js) .promo-controls{display:none}
.promo-head{display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;align-items:center;margin:.4rem 0 2.2rem}
.promo-head .promo-until{margin:-.4rem 0 1.2rem}
.promo-body{margin-bottom:1.2rem}
.promo-note{max-width:72ch;margin-bottom:2rem;padding:.8rem 1rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--muted);font-size:.92rem}
.cashback{display:inline-flex;align-items:baseline;gap:.3rem;align-self:flex-start;width:fit-content;margin:-.35rem 0 .75rem;padding:.2rem .55rem;border-radius:6px;background:var(--accent-soft);color:var(--text);font-size:.8rem;font-weight:750;text-decoration:none}
.cashback span{color:var(--muted);font-weight:500}
.cashback:hover{text-decoration:underline}
.buy-box .cashback{margin:.1rem 0 .9rem;font-size:.9rem}
@media (max-width:650px){
  .promo-slide,.promo-slide.has-image,.promo-head.has-image{grid-template-columns:1fr;gap:1rem;min-height:0;padding:1.1rem 1.1rem 4.2rem}
  html:not(.js) .promo-slide{padding-bottom:1.1rem}
  .promo-head.has-image{padding:0}
  .promo-slide .promo-image,.promo-head .promo-image{order:-1;aspect-ratio:16/9;max-height:190px}
  .promo-controls{left:1.1rem;right:auto;bottom:.6rem}
  .promo-text .lead{margin:.6rem 0 1rem}
}
@media (prefers-reduced-motion:reduce){.promo-dots button::before{transition:none}}

/* Product detail */
.product-codes{display:flex;flex-wrap:wrap;gap:.2rem 1.1rem;color:var(--muted);font-size:.86rem;margin:0}
.product-codes strong{color:var(--text);font-weight:600}
.product-detail .product-media{position:relative}
@media (min-width:901px){.product-detail>.product-media{position:sticky;top:6.5rem}}  /* no empty column beside a long buy box */
.key-facts{margin-bottom:1rem}
.product-sections{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1rem 2.5rem;margin:2.4rem 0;align-items:start}
.product-sections>section{padding-top:1.4rem;border-top:1px solid var(--line)}
.product-sections .product-compatible{grid-column:1/-1}
.spec-table{grid-template-columns:minmax(8rem,.45fr) 1fr;gap:0}
.spec-table dt,.spec-table dd{padding:.55rem 0;border-bottom:1px solid var(--line)}
.device-list{list-style:none;margin:0;padding:0;columns:3 14rem;column-gap:2rem}
.device-list li{break-inside:avoid;padding:.25rem 0}
.buy-bar{display:none}

/* Footer columns */
.store-footer .footer-columns{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr))}
.footer-columns nav{flex-direction:column;flex-wrap:nowrap;gap:.45rem}
.footer-columns h2{margin:0 0 .3rem;color:var(--footer-text);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.footer-base{padding-top:1.1rem;border-top:1px solid color-mix(in srgb,var(--footer-text) 14%,transparent);display:flex}
.footer-base{justify-content:space-between;align-items:center;gap:1rem}
.footer-base .made-with{justify-self:start}
.footer-base .language-switch button{min-height:40px;background:transparent;border-color:color-mix(in srgb,var(--footer-text) 30%,transparent);color:var(--footer-text)}

@media (max-width:1080px){
  .home-top.has-finder{grid-template-columns:1fr}
  .strip-track{grid-auto-columns:calc((100% - 2 * 1.1rem) / 3)}
}
@media (max-width:900px){
  .listing-layout{grid-template-columns:minmax(0,1fr)}
  .filters-toggle{display:inline-flex;flex:none;margin-bottom:.4rem}
  .toolbar{border-bottom:0;flex-wrap:wrap;gap:.4rem}
  .sort-tabs{width:100%;border-bottom:1px solid var(--line);mask-image:linear-gradient(90deg,#000 85%,transparent)}
  .js .filters{position:fixed;inset:0 auto 0 0;z-index:60;width:min(92vw,380px);max-height:none;padding:1rem 1.1rem 0;background:var(--surface);box-shadow:20px 0 50px -20px rgb(0 0 0 / .45);transform:translateX(-105%);visibility:hidden;transition:transform .3s var(--ease),visibility .3s}
  .js.filters-open .filters{transform:none;visibility:visible}
  .js.filters-open body::after,.js.menu-open body::after{content:"";position:fixed;inset:0;z-index:55;background:rgb(10 14 22 / .5)}
  .js.filters-open,.js.menu-open{overflow:hidden}
  .filters-close{display:inline-flex;width:44px;padding:0}
  .js .filters-actions{position:sticky;bottom:0;margin:0 -1.1rem;padding:.8rem 1.1rem 1rem;background:var(--surface);border-top:1px solid var(--line)}
  .js .filters-actions button{display:inline-flex;width:100%}
  html:not(.js) .filters{position:static;max-height:none}
  .product-sections{grid-template-columns:1fr}
  .store-footer .footer-columns{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}
@media (max-width:760px){
  .store-header .topbar-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.5rem .4rem;padding:.55rem .75rem .7rem}
  .menu-button{display:inline-flex;width:44px;padding:0;background:transparent;border-color:color-mix(in srgb,var(--header-text) 35%,transparent);color:var(--header-text)}
  .store-header .store-logo{justify-self:start}
  .header-search{grid-column:1/-1;grid-row:2;max-width:none;margin:0}
  .search-field button{padding:.5rem .8rem}
  .shop-nav .nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .shop-nav a,.account-menu>summary{padding:.4rem .6rem}
  .js .store-subnav .subnav-inner{min-height:0;padding:0}
  .js .mega>summary,.js .category-links{display:none}
  .js .mega-panel{position:fixed;inset:0 auto 0 0;z-index:60;width:min(88vw,360px);max-height:none;border:0;box-shadow:20px 0 50px -20px rgb(0 0 0 / .45)}
  .mega-head{display:flex;align-items:center;justify-content:space-between;padding:.8rem 1rem;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface)}
  .mega-close{width:44px;padding:0}
  .mega-list{grid-template-columns:1fr;padding:.6rem 1rem 1.5rem;gap:.9rem}
  .promises{gap:1.1rem}
  .home-top{margin-bottom:2rem}
  .home-top .store-hero-image{aspect-ratio:2/1}
  .home-top .store-hero-image{order:1}  /* phones: the message and the way in first, the photo after */
  .hero-actions .button{flex:1}
  .strip-track{grid-auto-columns:72%;gap:.7rem}
  .strip-track .product-card{flex-direction:column}
  .strip-track .product-card .product-media{width:auto;aspect-ratio:4/3;min-height:0}
  .strip-arrows{display:none}
  .strip-head>a{margin-left:auto}
  .results .product-grid{grid-template-columns:1fr}
  .subcategories{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
  .subcategories a{grid-template-columns:40px minmax(0,1fr);gap:.5rem;min-height:56px;padding:.4rem .6rem .4rem .4rem;font-size:.86rem}
  .subcategories small{display:none}
  .tile-media{width:40px;height:40px}
  .device-list{columns:1}
  .spec-table{grid-template-columns:minmax(7rem,.45fr) 1fr}
  .spec-table dd{margin:0}
  .buy-bar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -12px 30px -20px rgb(0 0 0 / .4);transform:translateY(110%);transition:transform .25s var(--ease)}
  .show-buy-bar .buy-bar{transform:none}
  .buy-bar-inner{display:flex;align-items:center;gap:.8rem;padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom))}
  .cart-go{position:fixed;left:0;right:0;bottom:0;z-index:15;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.8rem;padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -10px 24px -20px color-mix(in srgb,var(--text) 50%,transparent)}
  body:has(.cart-go) .store-footer{padding-bottom:5.5rem}
  .cart-go-total{display:grid;margin:0;line-height:1.2}
  .cart-go-total span{font-size:.75rem;color:var(--muted)}
  .buy-bar-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;color:var(--muted)}
  .store-footer .footer-columns{grid-template-columns:1fr}
  /* thumb-sized targets for stacked text links */
  .footer-columns nav{gap:0}
  .footer-columns nav a,.store-footer .legal-links a{display:block;padding:.6rem 0}
  .strip-head>a,.text-link{padding:.6rem 0}
}

/* Header (docs/HEADER-UX.md): thin utility bar with promises, language and theme; main row in the seller's header colour;
   account as icon + two lines; cart icon with badge. */
.utility-bar{background:var(--bg);border-bottom:1px solid var(--line);font-size:.82rem}
.utility-inner{max-width:var(--wrap);margin:0 auto;padding:0 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:38px}
.utility-actions{display:flex;align-items:center;gap:.15rem;flex:none}
.lang-menu{position:relative}
.lang-menu>summary{display:inline-flex;align-items:center;gap:.35rem;min-height:34px;padding:.25rem .55rem;border-radius:var(--radius-sm);color:var(--muted);font-weight:650;cursor:pointer;list-style:none}
.lang-menu>summary::-webkit-details-marker{display:none}
.lang-menu>summary:hover,.lang-menu[open]>summary{color:var(--text);background:var(--surface-2)}
.lang-menu .icon{width:17px;height:17px}
.icon.chevron{width:14px;height:14px;transition:transform .2s var(--ease)}
details[open]>summary .icon.chevron{transform:rotate(180deg)}
.lang-panel{position:absolute;right:0;top:calc(100% + .35rem);z-index:45;display:grid;gap:.15rem;min-width:11rem;margin:0;padding:.4rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 18px 40px -18px color-mix(in srgb,var(--text) 40%,transparent)}
.lang-panel button{justify-content:flex-start;min-height:40px;border:0;background:transparent;color:var(--text);font-weight:550}
.lang-panel button:hover{background:var(--surface-2)}
.lang-panel button[aria-pressed=true]{color:var(--accent);font-weight:750;text-decoration:none}
.lang-panel button[aria-pressed=true]::after{content:"";margin-left:auto;width:.5rem;height:.9rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-2px,-2px)}
.theme-toggle{margin:0}
.theme-toggle button{width:34px;min-height:34px;padding:0;border:0;background:transparent;color:var(--muted)}
.theme-toggle button:hover{background:var(--surface-2);color:var(--text)}
.theme-toggle .icon{width:18px;height:18px;transition:transform .35s var(--ease)}
.theme-toggle button:active .icon{transform:rotate(-25deg) scale(.9)}
.theme-toggle .sun,[data-theme=dark] .theme-toggle .moon{display:none}
[data-theme=dark] .theme-toggle .sun{display:block}
.nav-label.two-line{display:grid;line-height:1.15;text-align:left}
.nav-label.two-line small{font-size:.75rem;font-weight:500}
.store-header .shop-nav{gap:.25rem}
.store-header .cart-link{border:0;background:var(--header-chip)}
.store-header .cart-link:hover{background:color-mix(in srgb,var(--header-chip) 85%,var(--header-text))}
.cart-icon{position:relative;display:inline-flex}
.cart-icon .cart-count{position:absolute;top:-.55rem;right:-.7rem;min-width:1.15rem;height:1.15rem;padding:0 .3rem;font-size:.68rem;font-weight:750;box-shadow:0 0 0 2px var(--header-bg)}
.cart-icon .cart-count[data-cart-count="0"]{display:none}
.store-header .cart-link .nav-label{margin-left:.35rem}
.checkout-nav .lang-menu>summary,.checkout-nav .theme-toggle button{color:var(--header-text)}
.checkout-nav .lang-menu>summary:hover,.checkout-nav .lang-menu[open]>summary,.checkout-nav .theme-toggle button:hover{background:color-mix(in srgb,var(--header-text) 12%,transparent);color:var(--header-text)}
@media (max-width:760px){
  .utility-inner{padding:0 .5rem 0 .75rem;gap:.5rem;min-height:44px}
  .lang-menu>summary,.theme-toggle button{min-height:44px}
  .theme-toggle button{width:44px}
  .lang-menu>summary .chevron{display:none}
  .lang-panel button{min-height:44px}
  .promises a{padding:.7rem 0}
  .search-field button{min-height:44px;margin:2px}
  /* promises scroll sideways; the fade says there is more */
  .utility-bar .promises{mask-image:linear-gradient(90deg,#000 80%,transparent);scroll-snap-type:x mandatory;padding-right:2rem}
  .utility-bar .promises li{scroll-snap-align:start}
  .cart-icon .cart-count{right:-.55rem}
  /* menu, account and cart: three equal square buttons (Dr.Max, NAY) */
  .store-header .menu-button,.store-header .shop-nav a,.store-header .account-menu>summary{width:44px;min-height:44px;padding:0;justify-content:center;border:0;background:var(--header-chip)}
  .store-header .account-menu>summary .chevron{display:none}
}

/* Motion (impeccable animate): menus drop in from their trigger, the phone category drawer slides from its edge and the
   backdrop fades, so the shopper sees where a panel came from. Closing is instant (native <details>). Reduced motion: off. */
@keyframes drop-in{from{opacity:0;transform:translateY(-6px)}}
@keyframes drawer-in{from{transform:translateX(-100%)}}
.mega[open] .mega-panel,.lang-menu[open] .lang-panel,.account-menu[open] .account-panel{animation:drop-in .18s var(--ease)}
.suggest:not([hidden]){animation:drop-in .16s var(--ease)}
@media (max-width:760px){
  .js .mega[open] .mega-panel{animation:drawer-in .26s var(--ease)}
  .js.filters-open body::after,.js.menu-open body::after{animation:backdrop-in .2s var(--ease)}
}
/* Office home (DASHBOARD-UX.md): period filter, figures, trend, to-do, bestsellers and recent orders */
.board-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:1rem 2rem}
.board-head .lead{margin:0}
.board-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.2rem}
.segmented{display:inline-flex;padding:3px;gap:2px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--bg)}
.segmented a{display:inline-flex;align-items:center;min-height:38px;padding:.3rem .85rem;border-radius:5px;color:var(--muted);font-weight:600;font-size:.92rem;text-decoration:none;white-space:nowrap;transition:background-color .2s var(--ease),color .2s var(--ease)}
.segmented a:hover{color:var(--text);background:var(--surface-2)}
.segmented a[aria-current]{color:var(--text);background:var(--surface-2);box-shadow:inset 0 -2px 0 var(--accent)}
.segmented--small a{min-height:34px;padding:.2rem .7rem;font-size:.86rem}
.board-vat{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;margin:0;font-weight:600;cursor:pointer}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.kpi{display:grid;align-content:start;gap:.3rem;padding:1.15rem 1.35rem;background:var(--surface)}
.kpi dt{font-size:.9rem;font-weight:600}
.kpi dd{margin:0}
.kpi-value{font-size:clamp(1.45rem,2.4vw,1.95rem);font-weight:720;letter-spacing:-.02em;line-height:1.15}
.kpi-value small{font-size:.55em;font-weight:600;color:var(--muted);letter-spacing:0}
.kpi-change{color:var(--muted);font-size:.84rem}
.delta{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.delta--up{color:var(--ok)}
.delta--down{color:var(--danger)}
.delta--flat{color:var(--text)}
.board-note{margin:.7rem 0 1.6rem;color:var(--muted);font-size:.84rem;max-width:none}
.board-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:1.2rem;align-items:start}
.board-grid>.panel{margin:0}
.board-recent{grid-column:1;grid-row:2}
.board-top{grid-column:2;grid-row:2}
.board-recent .panel-head a{font-size:.92rem}
.board-empty{margin:1rem 0 0;color:var(--muted)}
.legend{display:flex;flex-wrap:wrap;gap:.4rem 1.3rem;list-style:none;margin:.2rem 0 1rem;padding:0;color:var(--muted);font-size:.84rem}
.key{display:inline-block;width:16px;height:2px;margin-right:.5rem;vertical-align:middle;border-radius:2px}
.key--current,.plot-cross{background:var(--accent)}
.key--previous{background:var(--line-strong)}
.plot{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.7rem;padding-bottom:1.9rem}
.plot-y{position:relative;min-width:2.6rem;color:var(--muted);font-size:.76rem;font-variant-numeric:tabular-nums}
.plot-y span{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}
.plot-area{position:relative;height:250px;touch-action:pan-y}
.plot-grid i{position:absolute;left:0;right:0;height:1px;background:var(--line)}
.plot-area svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.plot-area path{fill:none;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.plot-current{stroke:var(--accent)}
.plot-previous{stroke:var(--line-strong)}
.plot-area path.plot-fill{fill:color-mix(in srgb,var(--accent) 10%,transparent);stroke:none}
.plot-x{position:absolute;top:100%;left:0;right:0;margin:.55rem 0 0;padding:0;list-style:none;color:var(--muted);font-size:.76rem}
.plot-x li{position:absolute;transform:translateX(-50%);white-space:nowrap;font-variant-numeric:tabular-nums}
.plot-cross{position:absolute;top:0;bottom:0;width:1px;opacity:.7;pointer-events:none}
.plot-tip{position:absolute;top:.4rem;z-index:2;min-width:9.5rem;padding:.55rem .75rem;background:var(--surface-2);border:1px solid var(--line-strong);border-radius:var(--radius-sm);box-shadow:0 8px 24px color-mix(in srgb,var(--bg) 70%,transparent);font-size:.84rem;pointer-events:none}
.plot-tip span{display:block;margin-bottom:.25rem;color:var(--muted)}
.plot-tip p{margin:0;color:var(--muted)}
.plot-tip strong{color:var(--text);font-variant-numeric:tabular-nums}
.todo-rows,.top-rows{list-style:none;margin:.2rem 0 0;padding:0}
.todo-rows a,.todo-done{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:46px;padding:.45rem .6rem;margin:0 -.6rem;border-radius:var(--radius-sm);color:var(--text);text-decoration:none;transition:background-color .2s var(--ease)}
.todo-rows a:hover{background:var(--surface-2)}
.todo-rows a strong{min-width:2rem;padding:.1rem .55rem;border-radius:999px;background:var(--accent-soft);color:var(--accent);text-align:center;font-variant-numeric:tabular-nums}
.todo-done{color:var(--muted)}
.todo-done strong{min-width:2rem;padding:.1rem .55rem;text-align:center;font-weight:600}
.board-todo .text-link{margin-top:.6rem}
.top-rows li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.1rem 1rem;padding:.75rem 0;border-bottom:1px solid var(--line)}
.top-rows li:last-child{border-bottom:0}
.top-rows a{grid-row:span 2;align-self:center;color:var(--text);font-weight:600;text-decoration:none;line-height:1.35}
.top-rows a:hover{color:var(--accent)}
.top-rows .muted,.top-rows .amount{text-align:right;font-size:.86rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.top-rows .amount{grid-row:1;grid-column:2;font-size:.95rem}
.board-links{margin:2.4rem 0 1rem}
@media (max-width:1000px){
  .board-grid{grid-template-columns:minmax(0,1fr)}
  .board-recent,.board-top{grid-column:auto;grid-row:auto}
}
@media (max-width:650px){
  .board-head{align-items:start}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi{padding:1rem}
  .kpi-value{font-size:1.3rem}
  .plot-area{height:200px}
  .plot-x[data-period="7d"] li:nth-child(even) span,.plot-x[data-period="12m"] li:nth-child(even) span{visibility:hidden}
}
/* Cookie bar while Heureka conversion measurement is on (shop/consent.html): two equal choices, no preselection. */
.consent-bar{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:50;max-width:60rem;margin:0 auto;padding:1.1rem 1.25rem;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 18px 40px -20px color-mix(in srgb,var(--text) 45%,transparent)}
.consent-bar[hidden]{display:none}
.consent-inner{display:flex;align-items:center;gap:1.25rem}
.consent-text{flex:1;min-width:0}
.consent-text h2{margin:0 0 .3rem;font-size:1rem}
.consent-text p{margin:0;max-width:65ch;color:var(--muted);font-size:.92rem}
.consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;flex:none}
.consent-actions button{min-width:8rem}
.footer-inner nav .consent-open{justify-content:flex-start;min-height:0;padding:0;font:inherit;color:var(--footer-muted);text-decoration:none}
.footer-inner nav .consent-open:hover{color:var(--footer-text)}
@media (max-width:640px){.footer-inner nav .consent-open{padding:.6rem 0}}
@media (max-width:640px){
  .consent-bar{left:.75rem;right:.75rem;bottom:.75rem}
  .consent-inner{flex-direction:column;align-items:stretch;gap:.9rem}
  .consent-actions button{min-width:0}
}
/* Polish 25. 10. 2026: the buy button spans the card in every grid, like the home strips. */
.card-buy>.add-to-cart{flex:1 1 100%}
.review-facts dd,.facts dd{overflow-wrap:anywhere}
@media(max-width:600px){
  /* phones: products before decoration; the printer finder stays */
  .home-top.has-finder .store-hero-image{display:none}
  /* label above value, so e-mails and addresses keep the full width */
  .review-facts,dl.facts{grid-template-columns:minmax(0,1fr);gap:.1rem}
  .review-facts dd,dl.facts dd{margin:0 0 .7rem}
}
