/* Storefront design (build step 13, part A). Tokens and rules from meko/design/v6/DESIGN.md;
   the canvas "Storefront design v1" is the reference. Every product state keeps its own class or
   data attribute, as the bare storefront left them. */

/* Inter, self-hosted (no request to Google). Until the files are in public/fonts the stack
   falls back to the system face; nothing else changes. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.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; }
/* Archivo, self-hosted, for headings only (meko/design/brand/v4, rolled out 2026-11-16): a little wide, so
   they sit beside the logo's wide capitals. Its licence is beside the files. Text stays in Inter. */
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin-ext-wdth-normal.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; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin-wdth-normal.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; }

:root {
  color-scheme: light;
  --c-ground: #ffffff;
  --c-surface: #f1f3ef;
  --c-tint: #e4ece0;        /* selected and hovered menu rows, notices */
  --c-hero: linear-gradient(95deg, #f4efe6 0%, #ece8dc 55%, #dfe6d8 100%);
  --c-accent: #486142;      /* 6.9:1 on white: buttons, selected states */
  --c-accent-hover: #3a5035;
  --c-sage: #788878;        /* marks and icons on tiles */
  --c-band: #2f4033;        /* the top bar */
  --c-footer: #354637;
  --c-ink: #1f2a22;
  --c-ink-hover: #3a5035;
  --c-line: #e3e7e1;        /* dividers only */
  --c-ink-muted: #5a665d;
  --c-control: #8a948c;     /* 3.1:1, control borders */
  --c-error: #a63a2a;
  --c-stock: #2f8a2a;
  --radius: 12px;
  /* Underlined text links (Reed, 2026-11-14): below Inter's descenders (about 0.24em), so g, j, p
     and y never cut the line (text-decoration-skip-ink breaks it around anything it crosses). */
  --underline-offset: 0.26em;
  --underline-thickness: 1px;
  --container: 1320px;
  --gutter: 32px;
  --font: Inter, Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Archivo, Inter, system-ui, sans-serif;   /* headings only */
  /* A listing change (filter, order, page): the results dim while the answer is on its way, fade out
     when it arrives and the new ones fade in (controllers/listing_transition.js). */
  --fade-pending: 160ms;
  --fade-out: 120ms;
  --fade-in: 180ms;
  --fade-dim: 0.5;
}
@media (max-width: 767px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); font-feature-settings: "cv05" 1; color: var(--c-ink); background: var(--c-ground); }
::selection { background: var(--c-line); color: var(--c-ink); }
/* One underline for every text link and every hover underline, at zero specificity on every
   element so the em resolves against each element's own size (an inherited offset would be body's
   px). A component's `text-decoration: underline` shorthand resets the thickness to the font's own
   (about 1px in Inter); the offset is not part of the shorthand and stays. */
:where(*) { text-underline-offset: var(--underline-offset); text-decoration-thickness: var(--underline-thickness); }
a { color: var(--c-ink); }
a:hover { color: var(--c-ink-hover); }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
/* Long names with no spaces (EHITUSNURK.40X40X60, KÄSIKIERRETAPPISARJAPORANTERIL) wrap where they must instead of
   widening their column and the page (VEE-219 (Meko)). Ordinary names still break only at spaces. */
.product-title, .breadcrumbs, .cart td, .suggest-title { overflow-wrap: anywhere; }
/* A heading never breaks inside a word (Reed, 2026-11-16: "Hank / ooki" in the hero at 950 px). `anywhere` let
   a narrow column shrink below its longest word; the layout must give a heading room instead (banners.css). */
h1, h2, h3, .banner-headline, .banner-title, .banner-promo-title, .banner-tile-name { overflow-wrap: normal; hyphens: manual; }
.product-title, .banner-tile--product .banner-tile-name { overflow-wrap: anywhere; }
h1 { font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: 1.5rem; line-height: 1.25; }
h3 { font-size: 1.25rem; line-height: 1.4; }
@media (max-width: 767px) { h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.125rem; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .price, .count { font-feature-settings: "cv05" 1, "tnum" 1; }
.code { font-feature-settings: "cv05" 1, "zero" 1; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main { max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter) 72px; }

/* Buttons and controls: one dark button per screen; the rest outlined. */
button, input, select, textarea { font: inherit; color: inherit; }
.button, button.button, input[type=submit].button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; cursor: pointer; }
.button--primary, button[type=submit].button--primary { background: var(--c-ink); color: #fff; border: 0; }
.button--primary:hover { background: var(--c-ink-hover); color: #fff; text-decoration: underline; }
.button--secondary { background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-accent); }
.button--secondary:hover { background: var(--c-surface); border-color: var(--c-ink); }
.icon-button { flex: none; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-accent); border-radius: var(--radius); cursor: pointer; }
.icon-button:hover { background: var(--c-surface); border-color: var(--c-ink); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], select, textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--c-control); border-radius: var(--radius); background: #fff; font-size: 16px; }
textarea { padding: 12px 14px; }
input[aria-invalid=true] { border: 2px solid var(--c-error); }
input[type=checkbox], input[type=radio] { accent-color: var(--c-accent); width: 20px; height: 20px; margin: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--c-line); background: #fff; }
.info-bar { background: var(--c-surface); font-size: 13px; line-height: 18px; }
.info-bar ul { list-style: none; margin: 0 auto; max-width: var(--container); padding: 0 var(--gutter); min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.info-bar li { display: flex; align-items: center; gap: 8px; }
.info-bar .icon { width: 18px; height: 18px; stroke: var(--c-accent); }
.header-main { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); min-height: 80px; display: flex; align-items: center; gap: 32px; }
.site-name { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
/* The logo (meko/design/brand/v4; StorefrontHelper#shop_logo): the lockup in the top bar's green in the header
   and white in the footer; under 768 px the header shows the S alone (a <picture> source). Its text is the
   shop's name, as the picture's alt. */
.site-name .wordmark { display: block; line-height: 0; border-radius: 4px; }
.site-name .logo { display: block; width: 239px; height: 44px; }
.footer-brand { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 0; line-height: 0; }
.footer-brand .logo { display: block; width: auto; height: 42px; }
@media (max-width: 1023px) { .site-name .logo { width: 196px; height: 36px; } }
.site-name a { text-decoration: none; }
.search-form { flex: 1; min-width: 0; max-width: 720px; display: flex; }
/* Search suggestions: a listbox under the box, as wide as the form. */
.search-form { position: relative; }
.suggest-panel { position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(48, 58, 53, 0.12); padding: 6px; }
.suggest-panel[hidden] { display: none; }
.suggest-panel ul { list-style: none; margin: 0; padding: 0; max-height: min(70vh, 480px); overflow: auto; }
/* A product row is its link and, when it can be bought, a small add button beside it (VEE-219 (Meko)). */
.suggest-panel li[role=option]:has(> .suggest-add) { display: flex; align-items: center; gap: 4px; }
.suggest-panel li[role=option]:has(> .suggest-add) > a { flex: 1 1 auto; min-width: 0; }
.suggest-add.icon-button { width: 40px; height: 40px; margin-right: 4px; }
.suggest-add .icon { width: 20px; height: 20px; }
.suggest-panel li a { min-height: 60px; padding: 6px 8px; border-radius: var(--radius); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); }
.suggest-panel li[aria-selected=true] a { background: var(--c-surface); }
.suggest-panel li[aria-selected=true] .suggest-title { text-decoration: underline; text-underline-offset: var(--underline-offset); }
.suggest-image { width: 48px; height: 48px; border-radius: var(--radius); background: var(--c-surface); color: var(--c-accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.suggest-image .icon { width: 26px; height: 26px; stroke-width: 1.25; }
.suggest-image img { width: 100%; height: 100%; object-fit: contain; }
li[aria-selected=true] .suggest-image { background: #fff; }
.suggest-text { min-width: 0; display: grid; gap: 2px; }
.suggest-title { font-size: 14px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest-meta .availability { margin: 0; font-size: 12px; }
.suggest-price { font-size: 15px; font-weight: 600; white-space: nowrap; font-feature-settings: "tnum" 1; }
.suggest-all { min-height: 44px; margin-top: 4px; padding: 0 8px; border-top: 1px solid var(--c-line); display: flex; align-items: center; font-size: 14px; font-weight: 600; }
.suggest-all[hidden], .suggest-none[hidden] { display: none; }
.suggest-none { margin: 0; padding: 12px 8px; font-size: 14px; color: var(--c-ink-muted); }
@media (max-width: 767px) { .suggest-panel li a { grid-template-columns: 40px minmax(0, 1fr); } .suggest-image { width: 40px; height: 40px; } .suggest-price { grid-column: 2; } }
.search-form input[type=search] { flex: 1; min-width: 0; width: 100%; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.search-form > button { width: 56px; min-height: 48px; border: 1px solid var(--c-control); border-radius: 0 var(--radius) var(--radius) 0; background: var(--c-surface); color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cart-link { margin: 0 0 0 auto; }
.cart-link a { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.cart-link .icon { width: 24px; height: 24px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-line); color: var(--c-ink); font-size: 13px; font-weight: 600; line-height: 22px; text-align: center; font-feature-settings: "tnum" 1; }
/* Category menu (_menu.html.erb, menu_controller.js) */
.site-header { position: relative; }
.main-nav { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); min-height: 48px; display: flex; align-items: center; }
.menu-toggle { list-style: none; min-height: 40px; margin: 0 -12px; padding: 0 12px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cat-menu[open] > .menu-toggle { background: var(--c-surface); }
.cat-menu[open] > .menu-toggle::after { transform: rotate(180deg); }
.menu-panel { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 12px 24px rgba(48, 58, 53, 0.10); }
.menu-panel { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0 40px; max-height: 72vh; overflow: auto; padding: 24px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) 32px; }
.menu-bar { display: none; }
.menu-roots { list-style: none; margin: 0; padding: 0 24px 0 0; border-right: 1px solid var(--c-line); display: grid; gap: 2px; align-content: start; }
.menu-root { min-height: 44px; padding: 0 12px; border-radius: var(--radius); display: flex; align-items: center; font-size: 15px; text-decoration: none; }
.menu-root[aria-current=true] { background: var(--c-surface); font-weight: 600; }
.menu-children { grid-column: 2; grid-row: 1; }
.menu-children-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.menu-children-head h2 { font-size: 20px; }
.menu-children-head a { font-size: 14px; font-weight: 500; }
.menu-children ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 24px; }
.menu-children li a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--c-surface); text-decoration: none; font-size: 15px; }
.menu-children .count { flex: none; font-size: 13px; color: var(--c-ink-muted); }
/* Wide screens: the root in view carries an accent bar; the pointer's row gets the surface. */
@media (min-width: 1024px) {
  .menu-root { transition: background-color 120ms ease-out; }
  .menu-root[aria-current=true] { box-shadow: inset 3px 0 0 var(--c-accent); }
  .menu-children li a { margin: 0 -10px; padding: 0 10px; border-radius: var(--radius); transition: background-color 120ms ease-out; }
}
@media (max-width: 1023px) {
  .info-bar { display: none; }
  .header-main { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-top: 8px; padding-bottom: 12px; }
  .site-name { font-size: 18px; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav { min-height: 44px; }
  .cat-menu[open] > .menu-panel { position: fixed; inset: 0; z-index: 50; max-height: none; display: block; padding: 0 var(--gutter) 32px; box-shadow: none; }
  .menu-bar { position: sticky; top: 0; background: #fff; min-height: 60px; margin: 0 calc(-1 * var(--gutter)); padding: 0 8px 0 var(--gutter); border-bottom: 1px solid var(--c-line); display: flex; align-items: center; }
  .menu-back, .menu-close { min-height: 48px; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
  .menu-close { margin-left: auto; width: 48px; justify-content: center; }
  .menu-roots { border: 0; padding: 8px 0 0; }
  .menu-root { padding: 0; min-height: 52px; border-bottom: 1px solid var(--c-line); border-radius: 0; font-size: 16px; font-weight: 500; }
  .menu-root[aria-current=true] { background: none; }
  .menu-children { display: none; padding-top: 12px; }
  .cat-menu.is-drilled .menu-roots { display: none; }
  .cat-menu.is-drilled .menu-children:not([hidden]) { display: block; }
  .menu-children-head { display: grid; gap: 4px; }
  .menu-children ul { grid-template-columns: 1fr; }
  .menu-children li a { min-height: 52px; border-bottom-color: var(--c-line); font-size: 16px; }
}
.notice { background: var(--c-surface); padding: 12px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); margin: 0; font-weight: 500; }
.alert { background: #fbeeec; color: var(--c-error); padding: 12px 16px; margin: 0 0 16px; border-radius: var(--radius); }
main > h1 { margin: 24px 0; }
@media (max-width: 1023px) {
  .site-name { flex: 1 1 0; min-width: 0; }
  .cart-link { flex: none; }
}

/* Footer */
.site-footer { background: var(--c-surface); margin-top: 0; }
.footer-columns { max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 24px; }
@media (max-width: 767px) { .footer-columns { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; } }
.footer-columns h2 { font-size: 15px; line-height: 20px; margin: 0 0 12px; }
.footer-columns ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-columns p { margin: 0 0 6px; font-size: 14px; color: var(--c-ink-muted); }
.footer-note { border-top: 1px solid var(--c-line); }
.footer-note p { max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter); font-size: 13px; color: var(--c-ink-muted); }

/* Breadcrumbs: full path, chevron separators */
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; line-height: 18px; color: var(--c-ink-muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ""; width: 12px; height: 12px; background: var(--c-control); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Page heads */
.page-head { margin: 20px 0 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.result-count, .page-head .count { margin: 0; font-size: 14px; color: var(--c-ink-muted); }
.empty { color: var(--c-ink-muted); }
.empty-state { max-width: 640px; padding: 24px; border-radius: var(--radius); background: var(--c-surface); display: grid; gap: 12px; justify-items: start; }
.empty-state p { margin: 0; }
.empty-state .lead { font-size: 18px; font-weight: 600; }
.root-chips { margin-top: 32px; }
.root-chips h2 { font-size: 18px; margin-bottom: 12px; }
.root-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; }
.root-chips a { min-height: 44px; padding: 0 14px; border: 1px solid var(--c-control); border-radius: var(--radius); display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; }

.not-found { max-width: 640px; display: grid; gap: 16px; margin-top: 24px; }
.not-found p { margin: 0; }

/* Home */
/* Full-bleed band without a horizontal scroll: the shadow paints the sides, the clip keeps it level. */
.hero { background: var(--c-surface); box-shadow: 0 0 0 100vmax var(--c-surface); clip-path: inset(0 -100vmax); margin-top: -20px; padding: 56px 0; }
.hero-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.hero-text { flex: 1 1 420px; display: grid; gap: 18px; justify-items: start; }
.hero h1 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; max-width: 14ch; }
.hero p { margin: 0; font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-actions .button .icon { width: 20px; height: 20px; }
.hero-link { font-weight: 600; }
@media (max-width: 767px) { .hero { padding: 28px 0 32px; } .hero h1 { font-size: 1.875rem; } .hero p { font-size: 16px; } }
.home-section { margin-top: 48px; }
.home-section > h2 { margin-bottom: 20px; }
.promise-row { list-style: none; margin: 56px 0 0; padding: 40px 0 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.promise-row li { display: grid; gap: 8px; font-size: 14px; }
.promise-row .icon { width: 28px; height: 28px; stroke: var(--c-accent); }
.promise-row strong { font-size: 16px; }

/* Category lists (home, subcategories) */
/* The home page's map of departments: seven tiles sized by what they hold, filling the grid. */
.home-map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 20px; }
.home-map-head h2 { margin: 0; }
.home-shortcuts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; color: var(--c-ink-muted); }
.home-shortcuts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.home-shortcuts a { display: inline-block; padding: 4px 0; color: var(--c-ink); }
.depts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dept { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--c-surface); border-radius: var(--radius); }
.dept:has(h3 a:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.dept--large { grid-column: span 2; grid-row: span 2; }
.dept--wide { grid-column: span 2; flex-direction: row; }
/* A department picture keeps its own shape at every width (Reed, 2026-11-14: a fixed-height strip under a
   growing tile cut the pictures, "zoomed in"). The 640×480 crops are framed tight, so a small tile shows the
   whole 4:3 picture; the large tile's 3:2 picture has room above the objects, so 16:9 with the focus low
   shows them all (84 % of its height). A wide tile's row is as tall as its text or the large tile beside it
   makes it, which no ratio can follow (Reed, 2026-11-14: "Image still cuts off" at 1300 px), so its picture is
   set into the tile whole at 4:3, rounded, centred in the height the row gives. No hover zoom: it cut further. */
.dept-media { position: relative; flex: 0 0 auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-tint); }
.dept--large .dept-media { flex: 1 1 auto; aspect-ratio: 16 / 9; }
.dept--wide .dept-media { order: 2; flex: 0 0 58%; min-height: 0; aspect-ratio: auto; display: flex; align-items: center; padding: 16px 16px 16px 0; background: none; }
.dept-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dept--large .dept-media img { object-position: 50% 85%; }
.dept--wide .dept-media img { position: static; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; }
.dept-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--c-accent); }
.dept-mark .icon { width: 56px; height: 56px; stroke-width: 1; }
.dept-body { flex: 1 1 54%; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dept--large .dept-body { flex: 0 0 auto; padding: 24px; }
.dept-head h3 { margin: 0; font-size: 1.125rem; line-height: 1.25; }
.dept--large .dept-head h3 { font-size: 1.625rem; letter-spacing: -0.01em; }
.dept--wide .dept-head h3 { font-size: 1.25rem; }
.dept-head h3 a { color: inherit; text-decoration: none; }
.dept-head h3 a::after { content: ""; position: absolute; inset: 0; }
.dept:hover:not(:has(.dept-sections a:hover)) .dept-head h3 a { text-decoration: underline; text-underline-offset: var(--underline-offset); }
.dept-sections { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dept--large .dept-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.dept-sections a { display: inline-block; padding: 4px 0; font-size: 15px; line-height: 1.3; color: var(--c-ink); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--c-control); text-decoration-thickness: var(--underline-thickness); text-underline-offset: var(--underline-offset); }
.dept-sections a:hover { text-decoration-color: currentColor; color: var(--c-accent); }
.dept-all a { font-weight: 600; color: var(--c-accent); }
@media (max-width: 1099px) {
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept--large { grid-row: auto; }
  .dept--wide .dept-media { flex-basis: 50%; }
}
/* A phone gets a compact row per department and one line of sections: seven full tiles would be a very long scroll. */
@media (max-width: 767px) {
  .home-map-head { margin-bottom: 14px; }
  .home-shortcuts { font-size: 14px; }
  .depts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dept--large, .dept--wide { grid-column: auto; }
  .dept, .dept--wide { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; padding: 10px 0 10px 10px; }
  .dept--large { grid-template-columns: minmax(0, 1fr); padding: 0 0 10px; }
  .dept-media, .dept--wide .dept-media { order: 0; grid-row: 1; align-self: center; flex: none; width: 88px; height: 66px; min-height: 0; border-radius: 8px; padding: 0; background: var(--c-tint); }
  .dept--wide .dept-media img { position: absolute; height: 100%; border-radius: 0; }
  .dept--large .dept-media { width: auto; height: auto; min-height: 0; aspect-ratio: 16 / 9; border-radius: 0; }
  .dept-body, .dept--large .dept-body { display: contents; }
  .dept-head { grid-row: 1; align-self: center; padding-right: 10px; }
  .dept--large .dept-head { grid-row: 2; padding: 12px 12px 0; }
  .dept-head h3, .dept--wide .dept-head h3 { font-size: 1.0625rem; }
  .dept--large .dept-head h3 { font-size: 1.375rem; }
  .dept-sections, .dept--large .dept-sections { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-right: 10px; }
  .dept--large .dept-sections { padding-left: 12px; }
  .dept-sections a { display: inline-flex; min-height: 40px; padding: 0 12px; align-items: center; font-size: 14px; text-decoration: none; background: var(--c-ground); border-radius: 8px; }
  .home-shortcuts a { padding: 8px 0; }
  /* One row of the largest sections per department; the tile leads to the rest. */
  .dept:not(.dept--large) .dept-sections li:nth-child(n+3), .dept--large .dept-sections li:nth-child(n+5), .dept-all { display: none; }
}
.subcategories { margin: 0 0 28px; }
.subcategories ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subcategories a { min-height: 40px; padding: 0 14px; border: 1px solid var(--c-control); border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.subcategories .count { font-size: 13px; color: var(--c-ink-muted); }

/* Product grid and card */
.product-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 16px; }
@media (max-width: 767px) { .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card p { margin: 0; }
.product-card:focus-within { outline: 2px solid var(--c-ink); outline-offset: 6px; border-radius: var(--radius); }
.product-card:hover .product-image { background: var(--c-line); }
.product-card .product-title { margin: 12px 0 0; font-size: 15px; line-height: 20px; font-weight: 500; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-title a { text-decoration: none; }
.product-card .product-title a::after { content: ""; position: absolute; inset: 0; }
.product-card:hover .product-title a { text-decoration: underline; }
.product-card .product-brand { margin-top: 2px; }
.product-card .pack-multiple, .product-card .deposit { margin-top: 4px; font-size: 13px; color: var(--c-ink-muted); }
.product-card .card-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.product-card .card-foot form { position: relative; z-index: 1; margin: 0 0 0 auto; }
.product-card .product-price { font-size: 18px; line-height: 24px; white-space: nowrap; }
@media (max-width: 767px) { .product-card .product-title { font-size: 14px; line-height: 19px; min-height: 38px; } .product-card .product-price { font-size: 16px; } }

/* The no-image tile: the root category's mark on the surface */
.product-image { margin: 0; aspect-ratio: 1; border-radius: var(--radius); background: var(--c-surface); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.product-image .icon { width: 28%; height: 28%; stroke-width: 1; }
/* With the product's own measures: the mark small at the top, the measure large at the foot. */
.product-image--values { flex-direction: column; align-items: stretch; justify-content: space-between; padding: 16px; color: var(--c-ink); }
.product-image--values .icon { width: 28px; height: 28px; stroke: var(--c-accent); stroke-width: 1.25; }
.tile-values { display: grid; gap: 2px; min-width: 0; }
.tile-big { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; font-feature-settings: "tnum" 1; }
.tile-big--long { font-size: 22px; }
.tile-small { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--c-ink-muted); }
@media (max-width: 767px) { .product-image--values { padding: 12px; } .product-image--values .icon { width: 22px; height: 22px; } .tile-big { font-size: 22px; } .tile-big--long { font-size: 17px; } .tile-small { font-size: 13px; } }
.product .product-image--values { padding: 36px; }
.product .product-image--values .icon { width: 56px; height: 56px; stroke-width: 1.1; }
.product .tile-big { font-size: 72px; letter-spacing: -0.02em; }
.product .tile-big--long { font-size: 48px; }
.product .tile-small { font-size: 20px; gap: 4px 16px; }
@media (max-width: 767px) { .product .product-image--values { padding: 20px; } .product .tile-big { font-size: 44px; } .product .tile-big--long { font-size: 32px; } .product .tile-small { font-size: 16px; } }

/* Listing with filters */
.listing { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; }
.listing > .products { flex: 999 1 560px; min-width: 0; }
.filter-panel { flex: 0 1 256px; min-width: 220px; }
.filters-toggle { display: none; }
.filters-form { display: grid; gap: 24px; }
.filters-title { font-size: 20px; }
.facet { margin: 0; padding: 0; border: 0; display: grid; }
.facet legend { margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; }
.facet-option { min-height: 40px; display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.facet-option:has(input:checked) { font-weight: 500; }
.facet-option .count { margin-left: auto; color: var(--c-ink-muted); font-feature-settings: "tnum" 1; font-weight: 400; }
.facet-more summary { min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: var(--underline-offset); cursor: pointer; list-style: none; }
.facet-more summary::-webkit-details-marker { display: none; }
.facet-more[open] summary { display: none; }
.facet-note { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--c-surface); font-size: 14px; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs label { flex: 1; display: grid; gap: 4px; font-size: 13px; color: var(--c-ink-muted); }
.price-inputs input { width: 100%; min-height: 44px; color: var(--c-ink); }
/* The price slider (VEE-252 (Meko)): two native range inputs laid over one rail, drawn by the
   price-slider controller; hidden until it runs. The handles take the pointer, the stretch between them
   does not. The rail is inset by half a handle so the fill meets the centres. */
.price-slider { position: relative; height: 32px; margin: 4px 0 12px; }
.price-slider[hidden] { display: none; }
.price-slider-rail { position: absolute; left: 14px; right: 14px; top: 14px; height: 4px; border-radius: 2px; background: var(--c-line); }
.price-slider-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--c-accent); }
.price-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; min-height: 0; pointer-events: none; -webkit-appearance: none; appearance: none; outline: none; }
.price-slider input[type=range]::-webkit-slider-runnable-track { height: 32px; background: transparent; border: 0; }
.price-slider input[type=range]::-moz-range-track { height: 32px; background: transparent; border: 0; }
.price-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--c-accent); background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 34, 0.25); cursor: grab; }
.price-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c-accent); background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 34, 0.25); cursor: grab; }
.price-slider input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.price-slider input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.price-slider input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.filters-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 14px; }
.filters-actions .button { min-height: 44px; }
.filter-chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { min-height: 36px; padding: 0 10px 0 14px; border: 1px solid var(--c-accent); border-radius: 999px; background: var(--c-surface); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; }
.chip .icon { width: 14px; height: 14px; stroke-width: 2; }
.chip-clear { margin-left: 6px; font-size: 14px; }
.filter-chips .result-count { margin: 0 6px 0 0; font-weight: 600; color: var(--c-ink); font-feature-settings: "tnum" 1; }
.ways-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.ways-out a { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--c-accent); border-radius: var(--radius); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; text-decoration: none; }
.ways-out .count { font-weight: 400; color: var(--c-ink-muted); }
@media (max-width: 1023px) {
  .filter-panel { flex: 1 1 100%; }
  .filters-toggle { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-accent); border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; }
  .filters-toggle::-webkit-details-marker { display: none; }
  .filter-panel[open] .filters-form { margin-top: 16px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); }
  .filters-title { display: none; }
}
.product-spec { max-width: 640px; }
.product-spec > div { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }

.product-brand { font-size: 13px; line-height: 18px; color: var(--c-ink-muted); }
.product-price { font-weight: 600; font-feature-settings: "tnum" 1; }
.product-price .vat-note { font-weight: 400; font-size: 14px; color: var(--c-ink-muted); }
.pack-multiple, .deposit { font-size: 14px; }

/* Availability: shape plus word, never colour alone */
.availability { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; }
.availability::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.availability[data-state=in_stock]::before { background: var(--c-accent); }
.availability[data-state=on_order]::before { box-sizing: border-box; border: 2px solid var(--c-ink-muted); }
.availability[data-state=not_available] { color: var(--c-ink-muted); }
.availability[data-state=not_available]::before { height: 2px; border-radius: 0; background: var(--c-ink-muted); }

/* Pager */
.pager { margin: 40px 0 0; display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 14px; font-feature-settings: "tnum" 1; }
.pager a, .pager span { min-height: 44px; display: inline-flex; align-items: center; }
.pager a { padding: 0 14px; border: 1.5px solid var(--c-accent); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.pager span { color: var(--c-ink-muted); }

/* Product page */
/* One picture box on every product (Reed, 2026-11-15, VEE-219 (Meko)): a square as wide as the left column up to
   --picture-box, the same on a small, a large and a missing picture, so the page never depends on a picture's size. */
.product { --picture-box: 520px; margin-top: 28px; display: grid; grid-template-columns: minmax(0, var(--picture-box)) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 1023px) { .product { grid-template-columns: 1fr; gap: 20px; } }
.product > * { min-width: 0; }
.product .product-image .icon { width: 22%; height: 22%; }
.product-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.product-info p { margin: 0; }
.product .product-title { font-size: 1.875rem; line-height: 1.2; }
@media (max-width: 767px) { .product .product-title { font-size: 1.5rem; } }
.product-details.product-codes { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--c-ink-muted); font-feature-settings: "zero" 1; }
.product-details.product-codes > div { display: flex; gap: 4px; padding: 0; border: 0; }
.product-details.product-codes dd { font-weight: 500; }
.product-media { display: grid; gap: 10px; }
.product .pack-suffix { font-size: 16px; font-weight: 400; }
.add-to-cart label input { display: block; margin-top: 6px; }
.add-to-cart button[type=submit] .icon { stroke: currentColor; }
.add-to-cart button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.product-category { font-size: 14px; color: var(--c-ink-muted); }
.product .product-price { font-size: 28px; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.product .availability { font-size: 15px; font-weight: 600; }
.product .availability::before { width: 10px; height: 10px; }
.add-to-cart { margin: 8px 0 0; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.add-to-cart label { display: grid; gap: 6px; font-size: 13px; color: var(--c-ink-muted); }
.add-to-cart input[type=number] { width: 120px; font-weight: 600; font-feature-settings: "tnum" 1; }
.add-to-cart input[type=submit], .add-to-cart button[type=submit] { flex: 1 1 200px; min-height: 52px; border: 0; border-radius: var(--radius); background: var(--c-ink); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.add-to-cart input[type=submit]:hover, .add-to-cart button[type=submit]:hover { background: var(--c-ink-hover); text-decoration: underline; }
.not-buyable { margin-top: 8px; padding: 20px; border: 1px dashed var(--c-control); border-radius: var(--radius); font-weight: 600; }
.promises { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .promises { grid-template-columns: 1fr; } }
.promises li { padding: 14px; border-radius: var(--radius); background: var(--c-surface); display: grid; gap: 6px; font-size: 13px; line-height: 18px; }
.promises strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.promises .icon { width: 18px; height: 18px; stroke: var(--c-accent); }
.product-details { margin: 0; font-size: 15px; line-height: 22px; }
/* Label and value stay together: a label column of at most 180 px, the value beside it, the
   list no wider than 640 px (Reed, staging review 2026-11-08). */
.product-details { max-width: 640px; }
.product-details > div { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.product-details dt { color: var(--c-ink-muted); }
.product-details dd { margin: 0; font-weight: 500; }
.product-more { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 64px; }
.product-more h2 { margin-bottom: 12px; }

/* Cart */
.cart-layout { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; margin-top: 24px; }
.cart-layout > .cart { flex: 999 1 640px; min-width: 0; }
.cart { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; font-feature-settings: "tnum" 1; }
.cart th { text-align: left; padding: 0 16px 12px 0; border-bottom: 1px solid var(--c-line); font-size: 13px; font-weight: 500; color: var(--c-ink-muted); }
.cart td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.cart .num { text-align: right; white-space: nowrap; }
.cart .sku, .cart .pack-multiple { display: block; font-size: 13px; color: var(--c-ink-muted); }
.cart .sku { font-feature-settings: "zero" 1; }
.cart-line--deposit td { padding-top: 4px; font-size: 14px; }
.cart-line--unavailable td { color: var(--c-ink-muted); }
.cart-line--unavailable .availability { display: flex; }
.quantity-form { display: inline-flex; gap: 6px; align-items: center; }
.quantity-form input[type=number] { width: 88px; min-height: 44px; font-weight: 600; }
.icon--large { width: 40px; height: 40px; stroke: var(--c-accent); stroke-width: 1.25; }
.checkout-link .button.button--secondary { background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-accent); }
.button_to { margin: 0; }
.quantity-form input[type=submit], .cart .remove, .remove button, .remove input[type=submit] { min-height: 44px; padding: 0 12px; background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-accent); border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; }
.cart tfoot th, .cart tfoot td { border-bottom: 0; padding-top: 14px; }
.cart tfoot th { text-align: right; font-size: 15px; font-weight: 500; color: var(--c-ink); }
.cart-total td, .cart-total th { font-size: 18px; font-weight: 600; }
.cart-line--shipping td { color: var(--c-ink-muted); font-size: 14px; }
@media (max-width: 767px) {
  .cart thead { display: none; }
  .cart, .cart tbody, .cart tr, .cart td, .cart tfoot { display: block; width: 100%; }
  .cart tr { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .cart td { border: 0; padding: 4px 0; }
  .cart .num { text-align: left; }
  .cart tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border: 0; }
  .cart tfoot th { flex: 1; padding: 0; text-align: left; }
  .cart tfoot td { width: auto; padding: 0; }
  .cart td:empty { display: none; }
  .cart .quantity-form { margin: 4px 0; }
}
.checkout-link { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.checkout-link .button, .order-status .button { min-height: 52px; padding: 0 24px; border-radius: var(--radius); background: var(--c-ink); color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }

/* Checkout and order (step 6 markup) */
.checkout-summary { max-width: 640px; padding: 24px; border-radius: var(--radius); background: var(--c-surface); }
.checkout-form { max-width: 760px; display: grid; gap: 28px; }
.checkout-form fieldset { border: 0; border-top: 1px solid var(--c-line); padding: 28px 0 0; margin: 0; display: grid; gap: 12px; }
.checkout-form legend { float: left; width: 100%; margin-bottom: 8px; font-size: 20px; line-height: 28px; font-weight: 600; padding: 0; }
.checkout-form p { margin: 0; display: grid; gap: 6px; }
.checkout-form p:has(> input[type=radio]), .checkout-form p:has(> input[type=checkbox]) { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.checkout-form p:has(> input[type=radio]) label { font-weight: 400; font-size: 15px; }
.checkout-form label { font-size: 14px; font-weight: 500; }
.checkout-form .billing-kind, .checkout-form .consent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.checkout-form .billing-kind label, .checkout-form .consent label { font-weight: 400; font-size: 15px; }
.checkout-form .company-fields[hidden], .checkout-form .company-address[hidden] { display: none; }
/* The company block opens downwards from the billing radios (Reed, 2026-11-14): a short fade and
   drop, nothing above the radios changes; none with reduced motion. */
.checkout-form .company-fields, .checkout-form .company-address { animation: open-down 160ms ease-out; }
/* No scroll anchoring on the checkout: with the billing radios near the top of a phone screen,
   Chrome anchored on a node below them and scrolled the page by the block's height when it
   opened, so the radios jumped up and the block seemed to open upwards. Every change on this page
   happens below the control that caused it, so nothing needs anchoring. */
html:has(.checkout-layout) { overflow-anchor: none; }
.checkout-form .company-address { display: grid; gap: 12px; }
@keyframes open-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .checkout-form .company-fields, .checkout-form .company-address { animation: none; } }
.checkout-form .company-fields { padding: 16px; border-radius: var(--radius); background: var(--c-surface); display: grid; gap: 12px; }
/* Company lookup (company-lookup controller): while searching, and once a company is picked, the
   detail fields hide behind the name field or the summary line; "muuda" or typing by hand shows them. */
.checkout-form .company-fields.is-searching > .company-details, .checkout-form .company-fields.is-searching > .company-address,
.checkout-form .company-fields.is-picked > .company-details, .checkout-form .company-fields.is-picked > .company-address { display: none; }
.checkout-form .company-details { display: grid; gap: 12px; }
.checkout-form .company-name { display: grid; gap: 6px; }
.company-combobox { position: relative; display: block; }
.company-combobox input { width: 100%; box-sizing: border-box; }
.company-panel { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; padding: 6px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(48, 58, 53, 0.12); }
.company-panel[hidden] { display: none; }
.company-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.company-panel li[role=option] { min-height: 44px; padding: 8px 10px; border-radius: 8px; display: grid; gap: 2px; cursor: pointer; }
.company-panel li[role=option]:hover, .company-panel li[aria-selected=true] { background: var(--c-surface); }
.company-option-name { font-weight: 600; font-size: 15px; }
.company-option-meta { color: var(--c-ink-muted); font-size: 13px; }
.company-none { padding: 8px 10px; color: var(--c-ink-muted); font-size: 14px; }
.checkout-form .company-source { display: block; margin: 0; padding: 6px 10px 2px; color: var(--c-ink-muted); font-size: 12px; }
.checkout-form .company-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--c-ink-muted); }
.checkout-form .company-summary[hidden], .checkout-form .company-manual[hidden] { display: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--c-ink); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.checkout-form .payment-note, .checkout-form .delivery-placeholder { color: var(--c-ink-muted); font-size: 14px; }
.checkout-form input[type=submit], .button-primary { min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius); background: var(--c-ink); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; justify-self: start; }
.form-errors { padding: 14px 16px; border: 2px solid var(--c-error); border-radius: var(--radius); color: var(--c-error); }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.order-status { max-width: 760px; display: grid; gap: 16px; }
.order-state { margin: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--c-surface); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.order-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.order-state--paid::before, .order-state--received::before { background: var(--c-accent); }
/* Test mode: the "we will contact you" note right above the order button (docs/checkout.md). */
.checkout-form .contact-note { margin: 0; padding: 14px 16px; border-left: 4px solid var(--c-accent); border-radius: var(--radius); background: var(--c-surface); font-size: 15px; font-weight: 500; }
.delivery-note[hidden] { display: none; }
.order-state--pending::before { box-sizing: border-box; border: 2px solid var(--c-ink-muted); }
.order-state--failed, .order-state--abandoned, .order-state--error { color: var(--c-error); background: #fbeeec; }
.order-state--failed::before, .order-state--abandoned::before, .order-state--error::before { background: var(--c-error); border-radius: 0; height: 2px; }
.order-details { display: grid; grid-template-columns: fit-content(200px) minmax(0, 1fr); gap: 6px 20px; max-width: 640px; margin: 0; font-size: 15px; }
.order-details dt { color: var(--c-ink-muted); }
.order-details dd { margin: 0; }

/* Hover: pointer devices only, so a tap on a phone leaves no stuck highlight. One rule for
   every target that is not a button: the surface behind it, the border to ink, the name
   underlined; counts stay muted. */
@media (hover: hover) {
  .menu-toggle:hover { background: var(--c-surface); }
  .menu-root:hover { background: var(--c-surface); color: var(--c-ink); }
  .menu-children li a:hover { background: var(--c-surface); color: var(--c-ink); }
  .menu-children li a:hover > span:first-child { text-decoration: underline; text-underline-offset: var(--underline-offset); }
  .menu-children-head a:hover { text-decoration: underline; }
  .subcategories a:hover, .root-chips a:hover { border-color: var(--c-ink); background: var(--c-surface); color: var(--c-ink); }
  .ways-out a:hover { border-color: var(--c-ink); background: var(--c-surface); color: var(--c-ink); }
  .chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
  .facet-option:hover > span:first-of-type { text-decoration: underline; text-underline-offset: var(--underline-offset); }
  .search-form > button:hover { background: var(--c-line); }
}
@media (prefers-reduced-motion: reduce) { .menu-root, .menu-children li a { transition: none; } }

@media (max-width: 767px) { .site-name .logo { width: 40px; height: 34px; } .footer-brand .logo { height: 34px; } }

/* The add-to-cart toast: bottom right on wide screens, a full-width bar above the bottom edge
   on phones. One at a time; it carries the cart link and a close button. */
.toasts { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toasts:empty { display: none; }
.toast { padding: 14px 8px 14px 16px; border-radius: var(--radius); background: var(--c-ink); color: #fff; box-shadow: 0 12px 24px rgba(48, 58, 53, 0.18); display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "icon text close" "icon link close"; align-items: center; gap: 4px 12px; font-size: 14px; }
.toast > .icon { grid-area: icon; width: 22px; height: 22px; align-self: start; }
.toast p { grid-area: text; margin: 0; font-weight: 500; }
.toast-link { grid-area: link; color: #fff; font-weight: 600; justify-self: start; }
.toast-link:hover { color: #fff; }
.toast-close { grid-area: close; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.toast-close:hover { background: rgba(255, 255, 255, 0.12); }
.toast-close .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in 160ms ease-out; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } } }
@media (max-width: 767px) { .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* A long unbroken product name must wrap inside its card, not widen the page. */
.product-card { min-width: 0; }
.product-card .product-title { overflow-wrap: anywhere; }

/* The menu row: the category dropdown, then plain links; the page you are on is marked. */
.nav-links { list-style: none; margin: 0 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.nav-links a { min-height: 40px; padding: 0 12px; border-radius: var(--radius); display: inline-flex; align-items: center; font-weight: 500; font-size: 15px; text-decoration: none; }
.nav-links a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--c-accent); }
@media (hover: hover) { .nav-links a:hover { background: var(--c-surface); color: var(--c-ink); } }
@media (max-width: 767px) { .main-nav { flex-wrap: wrap; } .nav-links { margin-left: 4px; } .nav-links-home { display: none; } .nav-links a { padding: 0 8px; font-size: 14px; } }

/* The order of a listing, beside its count. */
.sort-control { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-control label { color: var(--c-ink-muted); }
.sort-control select { min-height: 40px; padding: 0 10px; border: 1px solid var(--c-control); border-radius: var(--radius); background: #fff; color: var(--c-ink); font: inherit; }
.sort-apply { min-height: 40px; padding: 0 12px; font-size: 14px; }
.sort-apply[hidden] { display: none; }
@media (max-width: 767px) { .sort-control { flex-basis: 100%; margin-left: 0; } .sort-control select { flex: 1; min-width: 0; } }

/* The strip of neighbouring categories: the current one marked; on phones one scrolling row. */
.subcategories a[aria-current=page] { border-color: var(--c-accent); background: var(--c-surface); font-weight: 600; }
@media (max-width: 767px) { .subcategories ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .subcategories li { flex: none; } }

.footer-columns a { color: var(--c-ink-muted); text-underline-offset: var(--underline-offset); }
.footer-columns a:hover { color: var(--c-ink); }
.footer-columns ul { font-size: 14px; }
.contact-details dd a { font-weight: 500; }

/* Delivery in checkout. */
.delivery-methods { display: grid; gap: 8px; }
.delivery-option { min-height: 52px; padding: 8px 14px; border: 1px solid var(--c-control); border-radius: var(--radius); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.delivery-option:has(input:checked) { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.delivery-option .price { margin-left: auto; font-weight: 600; font-feature-settings: "tnum" 1; }
.delivery-note { margin: 8px 0 0; font-size: 13px; color: var(--c-ink-muted); }
.delivery-picker { margin-top: 12px; display: grid; gap: 6px; }
.delivery-picker[hidden], .delivery-address[hidden] { display: none; }
.delivery-picker input, .delivery-picker select { width: 100%; }
.delivery-picker select { padding: 4px; border: 1px solid var(--c-control); border-radius: var(--radius); font: inherit; font-size: 14px; }
.delivery-address { margin-top: 12px; }
.cart-delivery { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-ink-muted); }
.cart-delivery .icon { width: 20px; height: 20px; flex: none; }

/* Suggestions: categories and brands above the products. */
.suggest-group { padding: 8px 8px 2px; font-size: 12px; font-weight: 600; color: var(--c-ink-muted); }
.suggest-panel li a.suggest-link { min-height: 40px; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 8px; }
.suggest-context { font-size: 13px; color: var(--c-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-link .count { font-size: 13px; color: var(--c-ink-muted); }

.product-category-line { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--c-ink-muted); }

/* Filters: wide screens keep the column; below 1024 px a full-height sheet with a sticky bar. */
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-close { display: none; }
.filter-panel .filters-apply { min-height: 44px; }
@media (max-width: 1023px) {
  html.sheet-open { overflow: hidden; }
  .filter-panel.is-sheet[open] .filters-form { position: fixed; inset: 0; z-index: 55; margin: 0; padding: 0 16px; border: 0; border-radius: 0; background: #fff; overflow-y: auto; align-content: start; }
  .is-sheet .sheet-head { position: sticky; top: 0; z-index: 1; min-height: 56px; background: #fff; border-bottom: 1px solid var(--c-line); margin: 0 -16px; padding: 0 8px 0 16px; }
  .is-sheet .filters-title { display: block; font-size: 18px; }
  .is-sheet .sheet-close { width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .is-sheet .filters-actions { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--c-line); flex-wrap: nowrap; justify-content: space-between; }
  .is-sheet .filters-apply { flex: 1 1 auto; }
}

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 70; padding: 10px 16px; border-radius: var(--radius); background: var(--c-ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }
main:focus { outline: none; }

/* Curated ways in on the home page. */

/* The toast's two next steps. */
.toast-links { grid-area: link; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.toast-total { display: block; font-weight: 400; }

/* Cards or rows. */
.view-toggle { margin-left: auto; display: inline-flex; gap: 4px; }
.view-toggle a { width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; color: var(--c-ink-muted); }
.view-toggle a[aria-current=page] { border-color: var(--c-accent); background: var(--c-surface); color: var(--c-ink); }
.view-toggle .icon { width: 18px; height: 18px; }
.view-toggle + .sort-control { margin-left: 0; }
.product-list--rows { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
.product-list--rows .product-card { padding: 10px 0; border-bottom: 1px solid var(--c-line); display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
.product-list--rows .product-image { grid-column: 1; grid-row: 1 / span 5; aspect-ratio: auto; min-height: 52px; padding: 6px; justify-content: center; align-items: center; text-align: center; }
.product-list--rows .product-image .icon, .product-list--rows .tile-small { display: none; }
.product-list--rows .tile-big, .product-list--rows .tile-big--long { font-size: 15px; line-height: 1.15; }
.product-list--rows .product-card > :not(.product-image):not(.card-foot) { grid-column: 2; margin-top: 0; }
.product-list--rows .product-title { min-height: 0 !important; font-size: 14px; line-height: 19px; }
.product-list--rows .pack-multiple, .product-list--rows .deposit { font-size: 12px; line-height: 16px; }
.product-list--rows .card-foot { grid-column: 3; grid-row: 1 / span 5; padding: 0; margin: 0; flex-wrap: nowrap; gap: 12px; }
.product-list--rows .product-price { font-size: 15px !important; }
@media (max-width: 767px) { .product-list--rows .product-card { grid-template-columns: 68px minmax(0, 1fr) auto; column-gap: 10px; } .product-list--rows .card-foot { flex-direction: column; align-items: flex-end; gap: 4px; } .view-toggle { margin-left: 0; order: 3; } }

/* Other sizes of the line (VEE-241 (Meko)): compact rows of about 46 px, what differs first (the columns are
   chosen by Storefront::Series), stock and price on the row, a small cart button. Rows past the first eight
   sit behind "Näita kõiki" (a checkbox, no script); phones show size, stock dot and price on one line. */
.series { margin-top: 40px; max-width: 760px; }
.series h2 { font-size: 22px; margin-bottom: 12px; }
.series-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.series-table th, .series-table td { height: 46px; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--c-line); text-align: left; font-weight: 400; vertical-align: middle; }
.series-table thead th { height: 32px; color: var(--c-ink-muted); font-size: 13px; }
.series-table tbody th { font-weight: 600; white-space: nowrap; }
.series-table .num { text-align: right; white-space: nowrap; font-feature-settings: "tnum" 1; font-weight: 600; }
.series-table .num .vat-note { font-weight: 400; color: var(--c-ink-muted); }
.series-table .availability { margin: 0; }
.series-add { width: 44px; text-align: right; padding-right: 0 !important; }
.series-add form { margin: 0; }
.series .series-add .icon-button { width: 36px; height: 36px; border-radius: 8px; }  /* beats the design's round 44 px button */
.series .series-add .icon-button .icon { width: 18px; height: 18px; }
.series-more { display: none; }
.series:has(.series-all:checked) .series-more { display: table-row-group; }
.series-toggle { margin-top: 12px; min-height: 44px; cursor: pointer; }
.series-toggle-less { display: none; }
.series:has(.series-all:checked) .series-toggle-more { display: none; }
.series:has(.series-all:checked) .series-toggle-less { display: inline; }
.series:has(.series-all:focus-visible) .series-toggle { outline: 2px solid var(--c-ink); outline-offset: 3px; }
@media (max-width: 599px) {
  .series-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .series-table th, .series-table td { padding-right: 8px; }
  .series-table .availability-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .series-table .availability { gap: 0; }
  .series-table .availability::before { width: 10px; height: 10px; }
  .series-table .availability[data-state=not_available]::before { height: 2px; }
  .series-stock { width: 18px; }
  .series-table tbody th { white-space: normal; }
  .series-table tbody th a { text-underline-offset: var(--underline-offset); }
}

.product-ask { margin: 12px 0 0; font-size: 14px; }

/* Phone: the add button follows the reader. The no-photo tile is the same square box as a picture (Reed, 2026-11-15). */
.sticky-add { display: none; }
@media (max-width: 767px) {
  .sticky-add { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 8px 16px; background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -8px 16px rgba(48, 58, 53, 0.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .sticky-add[hidden] { display: none; }
  .sticky-add .product-price { margin: 0; font-size: 18px; white-space: nowrap; }
  .sticky-add .button { flex: 0 1 auto; min-height: 48px; padding: 0 16px; white-space: nowrap; }
  html.has-sticky-add body { padding-bottom: 68px; }
  html.has-sticky-add .toasts { bottom: 80px; }

  /* The header: name and menu scroll away, search and cart stay (about 56 px). */
  .site-header, .header-main { display: contents; }
  .site-name { padding: 8px var(--gutter) 2px; }
  .header-tools { position: sticky; top: 0; z-index: 30; padding: 6px var(--gutter); background: #fff; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; gap: 10px; }
  .header-tools .search-form { order: 0; flex: 1 1 auto; flex-basis: auto; }
  .header-tools input[type=search], .header-tools .search-form > button { min-height: 44px; }
  .header-tools .cart-link { margin: 0; flex: none; }
  .header-tools .cart-link a > span:not(.badge) { display: none; }
  .header-tools .cart-link a { gap: 4px; }
  .main-nav { background: #fff; border-bottom: 1px solid var(--c-line); }
}
@media (min-width: 768px) { .header-tools { display: contents; } }
.product-list--rows .product-brand { display: none; }


/* The layout from the partner's guide (meko/design/v6/DESIGN.md). html:root keeps these above the
   rules further up. */
html:root {

  h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; color: var(--c-ink); }
  /* Headings a little wide, as the logo's capitals are (Archivo); sentence case and the weights stay. A
     product's name on a card or a campaign tile is text to scan, not a heading: it stays in Inter. */
  h1, h2, h3, .banner-headline, .banner-title, .banner-promo-title, .banner-tile-name, .dept-head h3 { font-family: var(--font-display); font-stretch: 112%; letter-spacing: -0.012em; }
  .product-card .product-title, .banner-tile--product .banner-tile-name { font-family: var(--font); font-stretch: normal; letter-spacing: 0; }
  /* Prices in the buttons' green, on cards and tiles as on the product page. */
  .banner-price, .product-price { color: var(--c-accent); }
  :focus-visible { outline-color: var(--c-accent); }
  a:hover { color: var(--c-accent-hover); }
  .skip-link { background: var(--c-accent); }

  /* Dark green buttons, white and bold. */
  .button, button[type=submit].button--primary, .add-to-cart button[type=submit], .add-to-cart input[type=submit], .checkout-form input[type=submit], .button-primary { border-radius: 8px; font-weight: 700; }
  .button--primary, button[type=submit].button--primary,
  .add-to-cart input[type=submit], .add-to-cart button[type=submit],
  .checkout-link .button:not(.button--secondary), .order-status .button,
  .checkout-form input[type=submit], .button-primary { background: var(--c-accent); color: #fff; }
  .button--primary:hover, button[type=submit].button--primary:hover,
  .add-to-cart input[type=submit]:hover, .add-to-cart button[type=submit]:hover,
  .checkout-link .button:not(.button--secondary):hover, .order-status .button:hover,
  .checkout-form input[type=submit]:hover, .button-primary:hover { background: var(--c-accent-hover); color: #fff; text-decoration: none; }
  .button--secondary { border-color: var(--c-accent); color: var(--c-accent); }
  .icon-button { width: 44px; height: 44px; border-radius: 50%; border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
  .icon-button:hover { border-color: var(--c-accent-hover); background: var(--c-accent-hover); color: #fff; }

  /* Header: the band, the leaf, the big rounded search, three labelled actions. */
  .info-bar { background: var(--c-band); color: #fff; font-size: 14px; }
  .info-bar ul { justify-content: center; gap: 0; min-height: 40px; }
  .info-bar li { padding: 0 44px; }
  .info-bar li + li { border-left: 1px solid rgba(255, 255, 255, 0.45); }
  .info-bar .icon { stroke: #fff; width: 22px; height: 22px; }
  .info-bar :focus-visible { outline-color: #fff; }
  .header-main { min-height: 96px; }
  .site-name { display: inline-flex; align-items: center; gap: 10px; }
  .search-form input[type=search] { min-height: 52px; padding-left: 52px; border: 1.5px solid var(--c-line); border-radius: 12px; }
  .search-form input[type=search]:focus { border-color: var(--c-accent); }
  .search-form > button { position: absolute; left: 4px; top: 2px; width: 44px; min-height: 48px; border: 0; background: transparent; }
  .search-form > button:hover { background: transparent; color: var(--c-accent); }
  .header-action, .cart-link a { min-height: 56px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
  .header-action .icon, .cart-link .icon { width: 30px; height: 30px; stroke-width: 1.4; }
  .cart-link a { position: relative; }
  .cart-link .badge { position: absolute; top: -4px; right: -8px; min-width: 22px; height: 22px; background: var(--c-accent); color: #fff; font-weight: 700; }
  .cart-link { margin-left: 0; }
  .header-action { margin-left: auto; }
  .header-action + .header-action { margin-left: 0; }

  /* Menu row: the green Kategooriad button beside plain bold links. */
  .main-nav { min-height: 60px; }
  .menu-toggle { min-width: 234px; min-height: 46px; margin: 0; padding: 0 14px; border-radius: 8px; background: var(--c-accent); color: #fff; }
  .menu-toggle::after { margin-left: auto; }
  .cat-menu[open] > .menu-toggle, .menu-toggle:hover { background: var(--c-accent-hover); color: #fff; }
  .nav-links { margin-left: 28px; gap: 0 10px; }
  .nav-links a { min-height: 44px; font-weight: 600; font-size: 16px; }
  .nav-links a[aria-current=page] { box-shadow: inset 0 -3px 0 var(--c-accent); }
  .nav-links a:hover { background: var(--c-tint); border-radius: 8px; color: var(--c-ink); }
  .menu-root[aria-current=true] { background: var(--c-tint); box-shadow: none; }

  /* Home. No photo exists, so the banner is a calm warm band. */
  .hero { margin: 18px 0 0; padding: 56px 44px; border-radius: 12px; background: var(--c-hero); box-shadow: none; clip-path: none; }
  .hero h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.025em; max-width: 18ch; }
  .hero-link { color: var(--c-accent); }
  /* The picture is part of the banner, not a card inside it: flush with the edge, its empty side fading out. */
  .hero { position: relative; overflow: hidden; min-height: 320px; padding-top: 40px; padding-bottom: 40px; display: flex; align-items: center; }
  .hero-inner { flex: 1; }
  .hero-text { position: relative; z-index: 1; flex: 0 1 46%; }
  .hero-picture { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; }
  .hero-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 62%; -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
  .home-benefits { display: block; margin: 36px 0 44px; }
  .home-benefits ul { list-style: none; margin: 0; padding: 22px 12px; border-radius: 12px; background: var(--c-surface); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-benefits li { padding: 0 24px; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; }
  .home-benefits li + li { border-left: 1px solid #d3d9cf; }
  .home-benefits .icon { width: 44px; height: 44px; flex: none; stroke: var(--c-accent); stroke-width: 1.3; }
  .home-benefits strong { display: block; font-size: 16px; }

  /* Footer. */
  .site-footer { background: var(--c-footer); color: #fff; }
  .footer-brand, .footer-columns h2 { color: #fff; }
  .footer-columns p, .footer-columns a, .footer-note p { color: #e6ebe4; }
  .footer-columns a:hover { color: #fff; }
  .footer-columns a { text-decoration: none; }
  .footer-note { border-top-color: rgba(255, 255, 255, 0.25); }
  .site-footer :focus-visible { outline-color: #fff; }

  /* Listings: a rounded title band, rounded filter box, cards. */
  .page-head { padding: 22px 24px; border-radius: 12px; background: var(--c-surface); }
  .page-head h1 { font-size: 2.25rem; }
  .breadcrumbs li:first-child a { font-weight: 500; }
  .subcategories a { border-color: var(--c-line); border-radius: 8px; }
  .subcategories a[aria-current=page] { background: var(--c-tint); border-color: var(--c-accent); }
  .view-toggle a { border-radius: 8px; }
  .view-toggle a[aria-current=page] { background: var(--c-tint); }
  .sort-control select { border-radius: 8px; }
  .filters-form { gap: 0; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 34, 0.06); }
  .sheet-head { padding: 13px 16px; background: var(--c-surface); }
  .filters-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
  .facet { padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
  .facet legend { float: left; width: 100%; margin-bottom: 8px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
  .facet > :not(legend) { clear: both; }
  .facet legend::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--c-accent); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
  .facet[data-facet=price] legend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.5V4.5h8l9 9-8 8z'/%3E%3Ccircle cx='8' cy='9' r='1.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.5V4.5h8l9 9-8 8z'/%3E%3Ccircle cx='8' cy='9' r='1.4'/%3E%3C/svg%3E"); }
  .facet[data-facet=avail] legend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M4 7.5l8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M4 7.5l8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E"); }
  .facet[data-facet=category] legend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
  .facet[data-facet=pack] legend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='12' rx='1.5'/%3E%3Cpath d='M8 8V5.5h8V8M3.5 13h17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='12' rx='1.5'/%3E%3Cpath d='M8 8V5.5h8V8M3.5 13h17'/%3E%3C/svg%3E"); }
  .facet[data-facet=brand] legend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20V10l5 3v-3l5 3V5h7v15z'/%3E%3Cpath d='M7 17h2M12 17h2M17 17h1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20V10l5 3v-3l5 3V5h7v15z'/%3E%3Cpath d='M7 17h2M12 17h2M17 17h1'/%3E%3C/svg%3E"); }
  .facet[data-facet=attr] legend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E"); }
  .facet-option .count { margin-left: 2px; }
  .facet-option .count::before { content: "("; }
  .facet-option .count::after { content: ")"; }
  .filters-actions { padding: 14px 16px; }
  .chip { background: var(--c-tint); }

  .product-list { gap: 20px 16px; }
  .product-card { padding-bottom: 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(31, 42, 34, 0.08), 0 3px 10px rgba(31, 42, 34, 0.07); }
  .product-card > :not(.product-image) { margin-inline: 14px; }
  .product-card:hover { box-shadow: 0 2px 4px rgba(31, 42, 34, 0.1), 0 8px 18px rgba(31, 42, 34, 0.12); }
  .product-card .product-image { border-radius: 12px 12px 0 0; }
  .product-card:hover .product-image { background: #e8ece4; }
  .product-card .product-title { font-weight: 700; }
  .product-card .product-price { font-size: 21px; font-weight: 700; }
  .tile-big { font-weight: 700; }
  .availability[data-state=in_stock]::before { background: var(--c-stock); width: 12px; height: 12px; }
  .availability[data-state=on_order]::before { background: #c47700; border: 0; width: 12px; height: 12px; border-radius: 50%; }
  .availability[data-state=not_available]::before { background: #868c88; border: 0; width: 12px; height: 12px; border-radius: 50%; }
  .product-list--rows .product-card { padding: 10px 0; border-radius: 0; background: transparent; box-shadow: none; }
  .product-list--rows .product-card > :not(.product-image) { margin-inline: 0; }
  .product-list--rows .product-image { border-radius: 8px; }
  .pager a { border-color: var(--c-line); border-radius: 8px; }

  /* Product page. */
  .product .product-image { border-radius: 12px; }
  .product h1 { font-size: 2rem; }
  .product .product-price { color: var(--c-accent); font-size: 34px; font-weight: 700; }
  .add-to-cart { border: 0; padding: 0; }
  .add-to-cart button[type=submit] { min-height: 56px; font-size: 18px; }
  .promises li { padding: 0; background: transparent; }
  .series-table th, .series-table td { border-bottom-color: var(--c-line); }
  .product-spec { padding: 4px 20px; border: 1px solid var(--c-line); border-radius: 12px; }
  .product-spec > div:last-child { border-bottom: 0; }

  /* Cart: a rounded table beside the summary box. */
  .cart-main .cart { border: 1px solid var(--c-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
  .cart-main .cart th { padding: 16px 12px; background: var(--c-surface); font-size: 15px; font-weight: 700; color: var(--c-ink); }
  .cart-main .cart th:first-child, .cart-main .cart td:first-child { padding-left: 22px; }
  .cart-main .cart td { padding: 16px 12px; vertical-align: middle; }
  .cart-main .cart tbody tr:last-child td { border-bottom: 0; }
  .cart-thumb { float: left; width: 72px; height: 72px; margin-right: 14px; border-radius: 10px; background: var(--c-surface); color: var(--c-sage); display: flex; align-items: center; justify-content: center; }
  .cart-thumb .icon { width: 34px; height: 34px; stroke-width: 1.2; }
  .cart-thumb--photo { background: #fff; border: 1px solid var(--c-line); overflow: hidden; }
  .cart-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .cart-main .cart td:first-child a { font-weight: 700; }
  .cart-summary { display: block; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 34, 0.06); }
  .cart-summary h2 { margin: 0; padding: 16px 22px; background: var(--c-surface); font-size: 22px; }
  .cart-summary dl { margin: 0; padding: 16px 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 0; font-size: 16px; }
  .cart-summary dd { margin: 0; text-align: right; font-feature-settings: "tnum" 1; }
  .cart-summary .summary-delivery { grid-column: 1 / -1; text-align: left; font-size: 14px; color: var(--c-ink-muted); }
  .cart-summary .summary-total { padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 24px; font-weight: 700; }
  .cart-summary p { margin: 10px 22px 0; font-size: 14px; color: var(--c-ink-muted); font-style: italic; }
  .cart-summary .button { display: flex; margin: 18px 22px 22px; min-height: 56px; font-size: 18px; }

  /* Checkout: numbered panels beside the order. */
  .checkout-form { max-width: none; gap: 14px; counter-reset: section; }
  .checkout-form fieldset { padding: 0 20px 18px; border: 1px solid var(--c-line); border-radius: 12px; counter-increment: section; }
  .checkout-form legend { width: calc(100% + 40px); margin: 0 -20px 12px; padding: 12px 20px; background: var(--c-surface); font-size: 20px; font-weight: 700; }
  .checkout-form legend::before { content: counter(section) ". "; }
  .checkout-summary { max-width: none; padding: 0 22px 18px; border: 1px solid var(--c-line); background: #fff; }
  .checkout-summary h2 { margin: 0 -22px 12px; padding: 14px 22px; background: var(--c-surface); font-size: 22px; }
  .delivery-option { border-color: var(--c-line); }

  /* Layout from the mockups. The search in the middle of the header row. */
  .search-form { margin-inline: auto; max-width: 640px; }
  .header-action { margin-left: 0; }

  /* The tree opens under the green button, as a rounded panel. */
  @media (min-width: 1024px) {
    .menu-panel { left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); right: auto; width: min(860px, calc(100% - 2 * var(--gutter))); top: calc(100% - 4px); padding: 14px; border: 1px solid var(--c-line); border-radius: 12px; grid-template-columns: 250px minmax(0, 1fr); gap: 0 20px; box-shadow: 0 10px 28px rgba(31, 42, 34, 0.16); }
    .menu-roots { padding-right: 14px; }
    .menu-children ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-root { font-weight: 500; justify-content: space-between; }
    .menu-root::after { content: "›"; font-size: 18px; color: var(--c-ink-muted); }
  }

  /* The category's own filters: the wider box above the products. */
  .attr-box { display: none; }
  .attr-box.is-filled { display: block; margin-bottom: 20px; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
  .attr-box h2 { margin: 0; padding: 13px 18px; background: var(--c-surface); font-size: 18px; }
  .attr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .attr-grid .facet { align-content: start; border-bottom: 0; border-right: 1px solid var(--c-line); }
  .attr-grid .facet:last-child { border-right: 0; }
  .attr-box .filters-actions { padding: 14px 18px; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filters-actions a { min-height: 44px; border: 1.5px solid var(--c-accent); border-radius: 8px; color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; padding: 0 14px; }
  .filters-apply { min-height: 44px; }
  /* Every change applies at once with JavaScript (the class sits on <html>): on wide screens the
     button is only the no-script fallback. The phone sheet keeps it to close with the result. */
  @media (min-width: 1024px) {
    &.filters-live .filters-actions .filters-apply { display: none; }
    &.filters-live .attr-box .filters-actions { grid-template-columns: 1fr; }
  }

  /* Favourites (VEE-243 (Meko)): the heart is a toggle kept in the browser (controllers/favourites.js). It
     sits over the picture's corner; saved is a filled heart in the accent green. */
  .card-heart { position: absolute; z-index: 2; top: 10px; right: 10px; margin: 0 !important; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--c-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(31, 42, 34, 0.18); cursor: pointer; }
  .card-heart:hover { background: var(--c-tint); }
  .card-heart .icon { width: 21px; height: 21px; stroke-width: 1.6; }
  .card-heart[aria-pressed=true] .icon, .product-favourite[aria-pressed=true] .icon { fill: var(--c-accent); stroke: var(--c-accent); }
  /* Rows view: the heart is the first thing in the row's price cluster instead of over the picture. On a phone the
     cluster is a small grid: the price on top, the heart and the add button under it. */
  .product-list--rows .card-heart { position: static; width: 38px; height: 38px; box-shadow: none; border: 1px solid var(--c-line); flex: none; }
  @media (max-width: 767px) {
    .product-list--rows .card-foot { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: center; gap: 4px 8px; }
    .product-list--rows .card-foot .product-price { grid-column: 1 / -1; grid-row: 1; justify-self: end; }
    .product-list--rows .card-foot .card-heart { grid-row: 2; grid-column: 1; width: 40px; height: 40px; }
    .product-list--rows .card-foot .card-add { grid-row: 2; grid-column: 2; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .card-heart, .product-favourite { transition: background-color 120ms ease-out; }
    .is-popping .icon { animation: heart-pop 320ms ease-out; }
    @keyframes heart-pop { 40% { transform: scale(1.3); } }
  }
  /* Header: the count over the heart, and on phones the heart stays beside the cart (the account link does not). */
  .header-icon { position: relative; display: inline-flex; }
  .header-action .badge { position: absolute; top: -6px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; }
  .badge[hidden] { display: none; }
  /* The favourites page. */
  .favourites [hidden] { display: none !important; }
  .favourites-note { margin: 0 0 20px; font-size: 14px; color: var(--c-ink-muted); max-width: 70ch; }
  .favourites-status { margin: 0; color: var(--c-ink-muted); }
  .favourites .page-head { margin-top: 0; }
  .favourite-remove { margin: 8px 0 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-control); border-radius: 8px; background: #fff; color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; z-index: 1; }
  .favourite-remove:hover { background: var(--c-surface); border-color: var(--c-ink); }
  .favourite-remove .icon { width: 16px; height: 16px; }
  .product-card--gone { padding: 14px 0; }
  .product-card--gone .product-title { min-height: 0; }
  .product-card--gone .availability { margin-top: 6px; }
  .product-card--gone .favourite-remove { align-self: flex-start; }
  .product-card:not(.product-card--gone) .favourite-remove { margin-inline: 14px; align-self: flex-start; }
  @media (max-width: 767px) { .product-card:not(.product-card--gone) .favourite-remove { margin-inline: 10px; } }

  /* The quantity stepper (VEE-241 (Meko), Reed 2026-11-14): one control, not three boxes. The minus, the number
     and the plus share one outer border and radius and one height; thin dividers between them; the ring is
     on the whole control. Without JavaScript only the number shows, in the same frame. */
  .stepper { display: inline-flex; align-items: stretch; height: 44px; border: 1.5px solid var(--c-control); border-radius: 8px; background: #fff; overflow: hidden; }
  .stepper:has(:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
  .stepper .stepper-button { display: none; width: 44px; min-height: 0; height: auto; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; color: var(--c-ink); font-size: 20px; line-height: 1; cursor: pointer; }
  .stepper .stepper-button:hover { background: var(--c-surface); }
  .stepper .stepper-button:focus-visible { outline: 0; background: var(--c-surface); }
  .stepper input[type=number] { display: block; width: 64px; min-height: 0; height: auto; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 600; font-feature-settings: "tnum" 1; -moz-appearance: textfield; outline: 0; }
  .stepper input[type=number]::-webkit-inner-spin-button, .stepper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  .is-enhanced .stepper .stepper-button { display: inline-flex; }
  .is-enhanced .stepper input[type=number] { border-inline: 1px solid var(--c-line); }
  .quantity-form { gap: 0; }
  .is-enhanced input[type=submit] { display: none; }

  /* The cart line: thumbnail, name, code, availability; a bin for removing. */
  .cart-main .cart .sku { color: var(--c-ink-muted); }
  .cart-main .cart .sku::before { content: "Tootekood: "; }
  .cart-main .cart td:first-child .availability { display: flex; margin-top: 2px; }
  .cart-main .cart .remove { width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; font-size: 0; color: transparent; background: var(--c-ink-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.500 7V4.500h5V7M6.500 7l1 13h9l1-13M10 11v5.500M14 11v5.500'/%3E%3C/svg%3E") center / 26px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.500 7V4.500h5V7M6.500 7l1 13h9l1-13M10 11v5.500M14 11v5.500'/%3E%3C/svg%3E") center / 26px no-repeat; }
  .cart-main .cart .remove:hover { background: var(--c-error); }
  .free-delivery { margin: 14px 22px 0; padding: 14px; border-radius: 10px; background: var(--c-tint); display: flex; align-items: center; gap: 14px; }
  .free-delivery .icon { width: 36px; height: 36px; flex: none; stroke: var(--c-accent); }
  .free-delivery p { margin: 0; font-style: normal; color: var(--c-ink); }
  .free-delivery strong { display: block; }

  /* The product page in the guide's order: gallery and buying, then text, then neighbours. */
  .product-media--rail { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
  .product-thumb { display: flex; width: 76px; height: 76px; border: 2px solid var(--c-accent); border-radius: 10px; background: var(--c-surface); color: var(--c-sage); align-items: center; justify-content: center; }
  .product-thumb .icon { width: 34px; height: 34px; stroke-width: 1.2; }
  .product-thumbs { display: grid; gap: 10px; align-content: start; }
  .product-media--rail > .product-brand { grid-column: 2; }
  .add-to-cart { flex-direction: column; align-items: stretch; }
  .add-to-cart label { display: flex; align-items: center; gap: 0; font-size: 15px; color: var(--c-ink); }
  .add-to-cart label .stepper { margin-left: 14px; }
  .add-to-cart button[type=submit] { flex: 0 0 auto; width: 100%; }
  .product-favourite { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--c-tint); color: var(--c-ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .product-favourite:hover { background: var(--c-line); }
  .product-favourite .icon { width: 20px; height: 20px; }
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-description { display: block; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); }
  .product-description p { color: var(--c-ink-muted); }
  .product-more { margin-top: 32px; }
  .product-related { display: block; margin-top: 48px; }
  .product-related h2 { margin-bottom: 16px; }

  @media (min-width: 1024px) {
    .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; align-items: start; }
    .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; align-items: start; }
    .checkout-layout .checkout-summary { grid-column: 2; grid-row: 1; }
    .checkout-layout .checkout-form { grid-column: 1; grid-row: 1; }
  }

  @media (max-width: 1023px) {
    /* The header under 1024 px: the logo keeps its width in the first row, Lemmikud and Ostukorv sit at
       its right, the search field takes the whole second row. (The search's desktop limit of 640 px let
       it slip into the first row from about 900 px, where it squeezed the logo under the two icons.) */
    .site-name { flex: 1 0 auto; min-width: 0; }
    .search-form { max-width: none; margin-inline: 0; }
    .cart-summary { margin-top: 20px; }
    .filter-panel.is-sheet[open] .filters-form { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    .is-sheet .sheet-head { margin: 0; padding: 0 8px 0 16px; }
    .is-sheet .filters-actions { margin: 0; }
    .filters-toggle { border-color: var(--c-accent); background: var(--c-accent); color: #fff; border-radius: 8px; }
  }

  @media (max-width: 767px) {
    .info-bar li { padding: 0 8px; }
    .header-action:not(.header-action--favourites) { display: none; }
    .header-action--favourites { min-height: 46px; margin-left: 0; }
    .header-action--favourites > span:not(.header-icon) { display: none; }
    .header-action--favourites .icon { width: 26px; height: 26px; }
    .search-form input[type=search] { min-height: 46px; }
    .search-form > button { top: 0; min-height: 46px; }
    .cart-link a { min-height: 46px; }
    .cart-link .icon { width: 26px; height: 26px; }
    .cart-link .badge { top: 0; right: -6px; }
    .cat-menu { flex: 1 1 100%; }
    .menu-toggle { width: 100%; margin-top: 6px; }
    .nav-links { margin-left: 0; gap: 0 2px; } /* four links on one line at 375 px with a seasonal one (VEE-219 (Meko)) */
    .hero { padding: 28px 20px 0; min-height: 0; display: block; }
    .hero-inner { display: block; }
    .hero-picture { position: static; width: auto; margin: 20px -20px 0; }
    .hero h1 { font-size: 1.5rem; }
    .hero-picture img { height: 112px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
    .page-head { padding: 16px; }
    .page-head h1 { font-size: 1.75rem; }
    .home-benefits ul { grid-template-columns: 1fr; gap: 14px; padding: 16px 4px; }
    .home-benefits li + li { border-left: 0; }
    .product-list { gap: 12px 10px; }
    .product-card > :not(.product-image) { margin-inline: 10px; }
    .product-card .product-price { font-size: 17px; }
    .cart-thumb { width: 52px; height: 52px; }
    .product-media--rail { grid-template-columns: minmax(0, 1fr); }
    .product-thumbs { display: none; }
    .product-media--rail > .product-brand { grid-column: 1; }
    .promises { grid-template-columns: minmax(0, 1fr); }
    .add-to-cart label { justify-content: space-between; }
    .cart-main .cart td:first-child { padding-left: 12px; }
  }
}

.delivery-note--why { color: var(--c-ink); }
.attr-grid .facet--open { align-self: start; }
.attr-grid .facet--open .facet-values { max-height: 300px; overflow-y: auto; }

/* A fetched product picture (step 11, docs/pictures.md): the whole picture inside the square on
   white, never cropped; the no-image tile above stays for products without one. */
.product-image--photo, .product-card:hover .product-image--photo { background: #fff; overflow: hidden; padding: 6px; }
/* Never larger than its own pixels (2026-11-12): the width comes from the img's width attribute,
   which is the stored size's own width; a smaller picture sits at that size, centred. */
.product-image--photo img { display: block; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.product-zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.product .product-image--photo { padding: 12px; border: 1px solid var(--c-line); }
/* The product page's picture box (Reed, 2026-11-15, VEE-219 (Meko)): one fixed square on every product, picture or not,
   as wide as its column up to --picture-box; centred in one column (below 1024 px), on the column's left edge in two.
   border-box, so padding and border sit inside the same square. The picture is centred in it at its own size when
   smaller (never enlarged, 87b5e5b) and scaled down to fit when larger. */
.product .product-media > .product-image { box-sizing: border-box; width: min(100%, var(--picture-box)); aspect-ratio: 1; margin-inline: auto; border: 1px solid var(--c-line); }
@media (min-width: 1024px) { .product .product-media > .product-image { margin-inline: 0 auto; } }
.product .product-image--photo img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.product-thumb--photo { background: #fff; overflow: hidden; padding: 4px; }
.product-thumb--photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-list--rows .product-image--photo { padding: 4px; }
.product-list--rows .product-image--photo img { max-height: 76px; }

/* A listing change fades instead of jumping (VEE-241 (Meko)). The script sets data-listing on <html>:
   "pending" while the answer is on its way, "out" once it is here; removing it fades the new results
   in. Only the things that change fade: the results, the chips, the totals and the facet counts, never
   the control that was clicked. With reduced motion nothing animates and the script sets nothing. */
@media (prefers-reduced-motion: no-preference) {
  :is(.products .product-list, .products .filter-chips, .products .empty-state, .products .pager, .page-head .result-count, .facet-option .count, .filters-apply) {
    transition: opacity var(--fade-in) ease-out;
  }
  html[data-listing="pending"] :is(.products .product-list, .products .filter-chips, .products .empty-state, .products .pager, .page-head .result-count, .facet-option .count, .filters-apply) {
    opacity: var(--fade-dim);
    transition-duration: var(--fade-pending);
  }
  html[data-listing="out"] :is(.products .product-list, .products .filter-chips, .products .empty-state, .products .pager, .page-head .result-count, .facet-option .count, .filters-apply) {
    opacity: 0;
    transition-duration: var(--fade-out);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-listing] :is(.products .product-list, .products .filter-chips, .products .empty-state, .products .pager, .page-head .result-count, .facet-option .count, .filters-apply) {
    opacity: 1;
    transition: none;
  }
}

/* The supplier's manuals on the product page (storefront/products/_manuals, docs/manuals.md). */
.product-manuals { margin-top: 40px; }
.product-manuals h2 { margin-bottom: 12px; }
.manual-list { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.manual-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.manual-link { font-weight: 600; }
.manual-meta { font-size: 14px; color: var(--c-ink-muted); }

/* Information and legal pages (docs/legal.md): a readable column; open facts are marked. */
.legal-text { max-width: 720px; font-size: 16px; line-height: 1.6; }
.legal-text h2 { font-size: 20px; line-height: 28px; margin: 32px 0 8px; }
.legal-text h3 { font-size: 17px; line-height: 24px; margin: 20px 0 6px; }
.legal-text p, .legal-text ul, .legal-text ol { margin: 0 0 12px; }
.legal-text ul, .legal-text ol { padding-left: 22px; }
.legal-text li + li { margin-top: 4px; }
.legal-text .contact-details { margin: 0 0 12px; }
.legal-text .legal-updated { margin-top: 32px; font-size: 14px; color: var(--c-ink-muted); }
.legal-text .withdrawal-form { margin: 12px 0 16px; padding: 16px 20px; border-left: 3px solid var(--c-line); background: var(--c-surface); border-radius: var(--radius); }
.legal-text .withdrawal-form p { margin: 0 0 6px; }

/* /kontakt (Reed, 2026-11-14): the info card beside the form from 900 px, one column below with
   the card first. Every track is minmax(0, …) and every field width: 100%, so nothing can push
   the page wider than the screen. */
.contact-lead { max-width: 720px; margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.contact-lead p { margin: 0 0 8px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 380px) minmax(0, 600px); gap: 48px; } }
.contact-card { padding: 24px; border-radius: var(--radius); background: var(--c-surface); font-size: 15px; line-height: 1.55; }
.contact-card h2 { font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.contact-card h3 { font-size: 16px; line-height: 22px; margin: 24px 0 6px; }
.contact-card p { margin: 0 0 8px; }
.contact-card ul { margin: 0; padding-left: 20px; }
.contact-card li + li { margin-top: 4px; }
.contact-card .contact-details { margin: 0 0 12px; display: grid; gap: 6px; }
.contact-card .contact-details div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.contact-card .contact-details dt { color: var(--c-ink-muted); }
.contact-card .contact-details dd { margin: 0; overflow-wrap: anywhere; }
.contact-write h2 { font-size: 20px; line-height: 28px; margin: 0 0 8px; }
.contact-form { max-width: 600px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 24px; }
.contact-form p { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.contact-form label { font-size: 14px; font-weight: 500; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; min-width: 0; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .hint { font-size: 14px; color: var(--c-ink-muted); }
.contact-form .contact-submit { justify-items: start; }
.contact-form .contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { max-width: 600px; padding: 16px 20px; border-radius: var(--radius); background: var(--c-tint); }

/* Step 8 (docs/invoices.md): the order status label, documents, the withdrawal form. */
.order-status-label { margin: 0; font-size: 17px; }
.order-documents ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.order-documents h2, .order-withdrawal h2 { font-size: 18px; margin: 8px 0; }
.withdrawal-page { max-width: 760px; }
.withdrawal-lines { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; }
.withdrawal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin: 0 0 8px; }
.withdrawal-line label { flex: 1 1 260px; }
.withdrawal-page input[type=text], .withdrawal-page input[type=email], .withdrawal-page textarea { width: 100%; max-width: 420px; box-sizing: border-box; }
@media print {
  .no-print, header, footer, nav, .breadcrumbs { display: none !important; }
}

/* "Tehnilised andmed" (VEE-241 (Meko), Reed 2026-11-14): compact rows, and from 900 px the rows flow into two
   balanced columns of label and value pairs inside the same card; one column below. The order is by meaning
   (Storefront::Specification, config/spec_order.yml), so the two columns read maker and model and the size in
   the first, the rest in the second. */
.product-spec > div { padding: 7px 0; gap: 16px; }
@media (min-width: 900px) {
  .product-spec { max-width: none; column-count: 2; column-gap: 48px; }
  .product-spec > div { break-inside: avoid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); }
}
