/* ==========================================================================
   The online shop (/shop). Its own selling layout - not the website
   template's - dressed in the company's colours: --brand and --accent are set
   by the page from the live template (App\Libraries\Shop\Storefront), already
   darkened where white text on them would not read at 4.5:1.

   Scales: space 4px steps (--s1..--s9), type 13-48px (--t0..--t6), radius
   6/10/16 (controls, cards, sheets), motion 120/200/280ms.
   ========================================================================== */

:root {
	/* the shop's palette (the owner's, 2026-10-13): slate on white. Contrast on white:
	   #263238 14:1, #37474F 9.9:1, #455A64 7.2:1 (white on it too), #546E7A 5.6:1,
	   #7D8F99 3.4:1 (control borders), #B0BEC5 1.9:1 (dividers and fills only) */
	--brand: #455A64;          /* primary: buttons, links, selected states, icons */
	--brand-strong: #263238;   /* hover/active of the primary, flags */
	--accent: #263238;
	--ink: #263238;            /* text, headings */
	--ink-2: #37474F;          /* secondary text, 9.9:1 */
	--ink-3: #546E7A;          /* hints only, 5.6:1 */
	--line: #DDE3E6;           /* dividers, card borders: a hairline from #B0BEC5, as light as the ERP's */
	--line-strong: #7D8F99;    /* control borders, 3.4:1 */
	--shelf: #EEF1F2;          /* a step darker than the wash: hover fills */
	--paper: #FFFFFF;
	--wash: #F7F7F7;           /* sections, footer, top strip */
	/* status stays semantic, muted to sit with the slate; each pair reads 5:1 or more */
	--ok: #2F6B4A;    --ok-bg: #E8F1EC;
	--low: #855714;   --low-bg: #F6EEDF;
	--bad: #A33A2F;   --bad-bg: #F7E7E5;
	--info: #455A64;  --info-bg: #EEF1F2;
	/* selection: #455A64 frame, mark and tick on a pale slate fill */
	--brand-soft: color-mix(in srgb, #B0BEC5 30%, white);
	--brand-tint: #F7F7F7;
	--brand-line: #B0BEC5;
	--focus: #263238;

	--s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
	--t0: .8125rem; --t1: .9375rem; --t2: 1.0625rem; --t3: 1.25rem; --t4: 1.5rem; --t5: 2rem; --t6: 3rem;
	--r1: 4px; --r2: 4px; --r3: 4px;   /* the owner: every corner in the shop is 4px */
	--fast: 120ms; --mid: 200ms; --slow: 280ms;
	--ease-out: cubic-bezier(.2, .8, .2, 1);
	--shadow-1: 0 1px 2px rgba(16, 20, 28, .06), 0 1px 1px rgba(16, 20, 28, .04);
	--shadow-2: 0 8px 24px rgba(16, 20, 28, .10), 0 2px 6px rgba(16, 20, 28, .06);
	--shadow-3: 0 24px 64px rgba(16, 20, 28, .22);
	/* the frame: ONE width and side padding for every row of every page - the
	   live website's, set by the page (Storefront::frame); these are only the
	   fallback */
	--wrap: 76rem; --gutter: 2rem;
	--mast-h: 4.25rem;
	--catbar-h: 3.3rem;
	--head-h: calc(var(--mast-h) + var(--catbar-h));
}
@media (max-width: 48rem) { :root { --gutter: 1rem; } }
/* an element switched off with the hidden attribute stays off, whatever its class displays it as */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s4)); }
body.shop {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--paper); color: var(--ink);
	font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: var(--t1); line-height: 1.5;
	font-feature-settings: "tnum" 0;
}
main { flex: 1 0 auto; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { flex: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: var(--s2); top: -4rem; z-index: 100; padding: var(--s2) var(--s4); background: var(--ink); color: #fff; border-radius: var(--r1); }
.skip:focus { top: var(--s2); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
	min-height: 2.75rem; padding: 0 var(--s5);
	border: 1px solid transparent; border-radius: var(--r1);
	font-weight: 700; font-size: var(--t1); text-decoration: none; cursor: pointer;
	transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.25rem; font-size: var(--t2); }
.btn-block { width: 100%; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:active { background: var(--brand-strong); }
.btn-ink { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-ink:hover { background: var(--wash); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--wash); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] > .ico:first-child { animation: spin 900ms linear infinite; }
.btn .spinner { width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
	border: 0; border-radius: var(--r1); background: transparent; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--shelf); color: var(--ink); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 2.75rem; }
.link-btn[aria-disabled="true"] { color: var(--ink-3); cursor: default; text-decoration: none; }

/* ── the promise strip and masthead ─────────────────────────────────────── */
.ribbon { background: #E8F5E9; color: #1B4D20; font-size: var(--t0); border-bottom: 1px solid #C8E6C9; }   /* light green: dark green text 9:1 */
.ribbon-list {
	list-style: none; margin-block: 0; display: flex; gap: var(--s5); justify-content: center;
	padding-block: var(--s2); overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.ribbon-list::-webkit-scrollbar { display: none; }
.ribbon-list li { display: inline-flex; align-items: center; gap: var(--s2); }
.ribbon-list .ico { color: #2E7D32; }
@media (max-width: 47.99rem) { .ribbon-list { justify-content: flex-start; } .ribbon-list li:nth-child(n+2) { display: none; } }

.mast { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-row { display: flex; align-items: center; gap: var(--s4); min-height: var(--mast-h); }
.mark { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; min-height: 2.75rem; flex: none; }
.mark img { height: 36px; width: auto; }
.mark-monogram {
	display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r1);
	background: var(--brand); color: #fff; font-weight: 800; font-size: var(--t1);
}
.mark-name { font-weight: 800; font-size: var(--t3); letter-spacing: -.02em; }
.search { flex: 1; display: flex; align-items: center; max-width: 36rem; margin-inline: auto; position: relative; }
.search input {
	width: 100%; min-height: 2.75rem; padding: 0 3.25rem 0 var(--s4);
	border: 1px solid var(--line-strong); border-radius: 4px; background: var(--wash);
}
.search input:focus { background: var(--paper); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-go {
	position: absolute; right: .25rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
	border: 0; border-radius: 4px; background: var(--brand); color: #fff; cursor: pointer;
}
.tools { display: flex; align-items: center; gap: var(--s1); flex: none; }
.tool {
	position: relative; display: inline-flex; align-items: center; gap: var(--s2);
	min-height: 2.75rem; min-width: 2.75rem; padding: 0 var(--s3); border-radius: var(--r1);
	text-decoration: none; font-weight: 600; color: var(--ink);
}
.tool:hover { background: var(--shelf); }
.cart-count {
	min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; display: inline-grid; place-items: center;
	border-radius: 4px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 47.99rem) {
	.mast-row { flex-wrap: wrap; gap: var(--s2) var(--s3); padding-block: var(--s2); }
	.mark-name { font-size: var(--t2); }
	.tools { margin-left: auto; }
	.tool-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tool-cart .cart-count { position: absolute; top: .1rem; right: .05rem; }
	.search { order: 3; flex-basis: 100%; max-width: none; }
}
.mast-secure { display: inline-flex; align-items: center; gap: var(--s2); margin-left: auto; color: var(--ok); font-weight: 700; }
.mast-back { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.mast-back:hover { color: var(--ink); text-decoration: underline; }

/* the category bar: plain names in one row, 44px targets; the current one a
   soft filled pill (tint + semibold + aria-current, never colour alone); on a
   narrow screen it swipes sideways, faded at an edge with more beyond it */
.catbar { border-top: 1px solid var(--line); background: var(--paper); }
.catbar-row { position: relative; }
.catbar-list {
	list-style: none; margin: 0; padding: var(--s1) 0; display: flex; gap: var(--s1); min-width: 0;
	overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: var(--s6);
}
.catbar-list::-webkit-scrollbar { display: none; }
.catbar-row.has-before .catbar-list { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem); mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem); }
.catbar-row.has-after .catbar-list { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 2.5rem); mask-image: linear-gradient(270deg, transparent 0, #000 2.5rem); }
.catbar-row.has-before.has-after .catbar-list {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
}
.cat-link {
	position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s3); border-radius: var(--r1);
	white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: var(--t1);
	transition: background var(--fast), color var(--fast);
}
.cat-link:hover { background: var(--shelf); color: var(--ink); }
/* the category you are in: semibold with a 2px bar under the words (and aria-current) */
.cat-link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.cat-link[aria-current="page"]::after {
	content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: .3rem; height: 2px; border-radius: 1px; background: var(--brand);
}
.cat-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .catbar-list { scroll-behavior: smooth; } }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--brand-soft), var(--paper)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: var(--s6); padding-block: var(--s6) var(--s7); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.35fr 1fr; padding-block: var(--s8); } }
.hero-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; max-width: 18ch; }
.hero-lead { margin-top: var(--s3); font-size: var(--t2); color: var(--ink-2); max-width: 46ch; }
.hero-search { margin-top: var(--s5); max-width: 36rem; }
.hero-search--center { margin-inline: auto; text-align: left; }
.hero-search-label { display: block; font-weight: 700; margin-bottom: var(--s2); }
.hero-search-row { display: flex; gap: var(--s2); }
.hero-search-row input {
	flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 var(--s4);
	border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--paper); font-size: var(--t2);
}
.hero-search-row input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.hero-search-row .btn { min-height: 3.25rem; }
@media (max-width: 30rem) { .hero-search-row .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hero-search-row .btn { padding: 0 var(--s4); } }
.hero-top { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); box-shadow: var(--shadow-2); }
.hero-top-title { font-size: var(--t2); font-weight: 700; margin-bottom: var(--s3); }
.hero-top-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hero-top-item {
	position: relative; display: grid; grid-template-columns: 2.5rem 1fr; grid-template-rows: auto auto; column-gap: var(--s3);
	padding-block: var(--s3); border-top: 1px solid var(--line);
}
.hero-top-item:first-child { border-top: 0; }
.hero-top-item:hover .hero-top-name { text-decoration: underline; }
.hero-rank {
	grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 4px;
	background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: var(--t3); font-variant-numeric: tabular-nums;
}
.hero-top-name { font-weight: 700; text-decoration: none; }
.hero-top-meta { display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }

/* ── blocks and shelves ─────────────────────────────────────────────────── */
.block { padding-block: var(--s6) 0; }
.block:last-of-type { padding-bottom: var(--s6); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.block-head h2 { font-size: var(--t4); font-weight: 800; letter-spacing: -.02em; }
.block-note { color: var(--ink-2); font-size: var(--t0); margin-top: var(--s1); }
.block-more { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.block-more:hover { text-decoration: underline; }

.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11.5rem, 44%); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); scrollbar-width: thin; }
.shelf > * { scroll-snap-align: start; }
@media (min-width: 48rem) { .shelf { grid-auto-columns: calc((100% - 3 * var(--s4)) / 4); } }
@media (min-width: 70rem) { .shelf { grid-auto-columns: calc((100% - 4 * var(--s4)) / 5); } }

.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.cat-tile {
	position: relative; display: flex; flex-direction: column; gap: var(--s1); min-height: 7rem; padding: var(--s4);
	border-radius: var(--r2); border: 1px solid var(--line); transition: border-color var(--fast), box-shadow var(--fast);
}
.cat-tile a { font-weight: 800; font-size: var(--t2); text-decoration: none; }
.cat-tile:hover { box-shadow: var(--shadow-1); }
.cat-tile:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.cat-tile a:focus-visible { outline: none; }
.cat-count { font-size: var(--t0); font-weight: 600; color: var(--ink-2); }
.cat-desc { margin-top: auto; font-size: var(--t0); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the stretched link: the whole card opens the product; buttons inside stay their own target */
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ── tints for pictures that do not exist yet ───────────────────────────── */
.ph { display: grid; place-items: center; width: 100%; height: 100%; }
.ph span { font-weight: 800; font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -.04em; opacity: .9; }
.ph--big span { font-size: clamp(4rem, 14vw, 8rem); }
/* no picture: the initials on a quiet slate tint (six steps, so a shelf is not one flat block) */
.ph--t0 { background: #ECEFF1; color: #37474F; }
.ph--t1 { background: #E6EBED; color: #455A64; }
.ph--t2 { background: #F1F3F4; color: #37474F; }
.ph--t3 { background: #E9EDEF; color: #263238; }
.ph--t4 { background: #EEF1F2; color: #455A64; }
.ph--t5 { background: #E3E8EB; color: #37474F; }

/* ── the product card ───────────────────────────────────────────────────── */
.pcard {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden;
	transition: border-color var(--fast), box-shadow var(--mid);
}
@media (hover: hover) and (pointer: fine) { .pcard:hover { box-shadow: var(--shadow-2); } .pcard:hover .pcard-name a { text-decoration: underline; } }
.pcard:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pcard .stretch:focus-visible { outline: none; }
.pcard-media { position: relative; aspect-ratio: 4 / 5; background: var(--shelf); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard.is-out .pcard-media > :first-child { filter: grayscale(.85); opacity: .6; }
.flag-row { position: absolute; top: var(--s2); left: var(--s2); display: flex; gap: var(--s1); z-index: 2; }
.flag { padding: .15rem .5rem; border-radius: var(--r1); font-size: .75rem; font-weight: 800; }
.flag--new { background: var(--ink); color: #fff; }
.flag--hot { background: var(--brand-strong); color: #fff; }
.pcard-body { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); flex: 1; }
.pcard-cat { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.pcard-name { font-size: var(--t2); font-weight: 700; line-height: 1.25; }
.pcard-name a { text-decoration: none; }
.pcard-summary { font-size: var(--t0); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s2); margin-top: auto; padding-top: var(--s2); }
.btn-add { position: relative; z-index: 2; width: 100%; min-height: 2.75rem; margin-top: var(--s2); padding: 0 var(--s3); font-size: var(--t0); }
.pcard .btn-add:not(.btn-quiet) { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.pcard .btn-add:not(.btn-quiet):hover { background: var(--brand); color: #fff; }

/* ── price and stock ────────────────────────────────────────────────────── */
.price { font-weight: 800; font-size: var(--t2); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.price-from { font-size: var(--t0); font-weight: 600; color: var(--ink-2); }
.price--big { font-size: var(--t5); letter-spacing: -.03em; }
.price-was { text-decoration: line-through; color: var(--ink-3); font-weight: 600; font-size: var(--t0); margin-right: var(--s1); }
.price-note { color: var(--ink-2); font-size: var(--t0); }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t0); font-weight: 700; white-space: nowrap; }
.stock-dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); }
.stock--low { color: var(--low); }
.stock--low .stock-dot { border-radius: 1px; transform: rotate(45deg); }
.stock--info { color: var(--info); }
.stock--out { color: var(--ink-2); }
.stock--out .stock-dot { background: transparent; border: 2px solid currentColor; }
.stock--big { font-size: var(--t1); margin-top: var(--s2); }

/* ── page heads, breadcrumbs ────────────────────────────────────────────── */
.page-head { padding-block: var(--s5) var(--s4); }
.page-head--tight { padding-bottom: 0; }
.page-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.page-lead { margin-top: var(--s2); color: var(--ink-2); max-width: 60ch; }
.crumbs ol { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; font-size: var(--t0); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline: var(--s2); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ── catalogue ──────────────────────────────────────────────────────────── */
.cat-layout { display: grid; gap: var(--s5); padding-bottom: var(--s7); }
/* the filter column a fixed width, the grid takes the rest; the column stays in view as the results scroll */
@media (min-width: 60rem) {
	.cat-layout { grid-template-columns: 16.5rem minmax(0, 1fr); gap: var(--s6); align-items: start; }
	.filters {
		position: sticky; top: calc(var(--head-h) + var(--s4)); max-height: calc(100vh - var(--head-h) - var(--s6));
		overflow-y: auto; overscroll-behavior: contain; padding-right: var(--s2); scrollbar-width: thin;
	}
}
.filters-head { display: none; }
.filters-form { display: grid; gap: var(--s5); }
.facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.facet legend, .facet > .field > .field-label { font-weight: 800; font-size: var(--t1); margin-bottom: var(--s2); padding: 0; }
.facet-links { list-style: none; margin: 0; padding: 0; display: grid; }
.facet-links a {
	display: flex; justify-content: space-between; align-items: center; min-height: 2.5rem; padding: 0 var(--s2);
	border-radius: var(--r1); text-decoration: none; color: var(--ink-2); font-weight: 600;
}
.facet-links a:hover { background: var(--shelf); color: var(--ink); }
/* the chosen category: bold, a soft fill and a tick - never colour alone, and no side bar */
.facet-name { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }
.facet-tick { display: inline-grid; place-items: center; width: 1rem; flex: none; }
.facet-tick .ico { visibility: hidden; }
.facet-links a[aria-current="page"] { background: var(--shelf); color: var(--ink); font-weight: 800; }
.facet-links a[aria-current="page"] .facet-tick .ico { visibility: visible; color: var(--brand); }
.facet-links a[aria-current="page"] .facet-count { color: var(--ink-2); }
.facet-count { font-size: var(--t0); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.filters-actions { display: grid; gap: var(--s2); }
.filters-open { display: none; }
@media (max-width: 59.99rem) {
	.filters { display: none; }
	.filters.is-open {
		display: block; position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--paper);
		padding: var(--s4); animation: rise var(--slow) var(--ease-out);
	}
	.filters.is-open .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
	.filters.is-open .filters-head h2 { font-size: var(--t4); }
	.filters-open { display: inline-flex; }
}
@keyframes rise { from { transform: translateY(1.5rem); opacity: 0; } }
/* with scripts every change applies at once; the button stays for the phone sheet and for no-script */
@media (min-width: 60rem) { html.js .filters-actions .btn-brand { display: none; } }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); min-height: 2.75rem; }
.results-count { font-weight: 700; color: var(--ink-2); }
.results[aria-busy="true"] .grid { opacity: .5; transition: opacity var(--mid); }
/* as many columns as fit at 13rem or more each: 2 on a phone, 3 at 1024, 4 at the full frame */
.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--s4); } }
/* a compact square picture in the grid (shelves keep 4:5) */
.grid .pcard-media { aspect-ratio: 1 / 1; }
.chips { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.chips--center { justify-content: center; margin-top: var(--s3); }
.chip {
	display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.5rem; padding: 0 var(--s3);
	border: 1px solid var(--line-strong); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: var(--t0); background: var(--paper);
}
.chip:hover { background: var(--wash); }
.chip-clear { font-weight: 700; color: var(--brand); font-size: var(--t0); min-height: 2.5rem; display: inline-flex; align-items: center; padding: 0 var(--s2); }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s6); flex-wrap: wrap; }
.pager-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); }
.pager-list a, .pager-step {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--s2);
	border-radius: var(--r1); text-decoration: none; font-weight: 700; border: 1px solid var(--line);
}
.pager-list a:hover, .pager-step:hover { background: var(--wash); }
.pager-list a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-gap { min-width: 1.5rem; display: grid; place-items: center; color: var(--ink-3); }

/* ── empty and closed states ────────────────────────────────────────────── */
.empty-block, .closed { text-align: center; padding: var(--s7) var(--s4); display: grid; justify-items: center; gap: var(--s3); }
.empty-block > .ico, .closed > .ico { color: var(--ink-3); }
.empty-block h2 { font-size: var(--t4); font-weight: 800; }
.empty-block p { color: var(--ink-2); max-width: 46ch; }
.empty-suggest { margin-top: var(--s3); font-weight: 700; }
.closed { padding-block: var(--s9); }
.closed-contact { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.closed-more { color: var(--ink-2); margin-top: var(--s4); }

/* ── product page ───────────────────────────────────────────────────────── */
.product { display: grid; gap: var(--s5); padding-block: var(--s3) var(--s5); }
@media (min-width: 56rem) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; } }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r3); overflow: hidden; background: var(--shelf); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 56rem) { .gallery { position: sticky; top: calc(var(--head-h) + var(--s4)); } .gallery-main { aspect-ratio: 1 / 1; } }
.buybox { display: grid; gap: var(--s2); align-content: start; }
.buybox-cat { display: flex; gap: var(--s3); font-weight: 700; font-size: var(--t0); }
.buybox-cat a { color: var(--brand); }
.buybox-brand { color: var(--ink-2); }
.buybox-title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.buybox-summary { color: var(--ink-2); font-size: var(--t2); }
.buybox-price { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s3); }
.buy { display: grid; gap: var(--s4); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.variants { border: 0; padding: 0; margin: 0; min-width: 0; }
.variants legend { font-weight: 800; margin-bottom: var(--s2); padding: 0; }
.variant-list { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.variant {
	position: relative; display: grid; gap: .15rem; padding: var(--s3); padding-right: var(--s6); cursor: pointer;
	border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper); transition: border-color var(--fast), box-shadow var(--fast);
}
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant::after {
	content: ""; position: absolute; top: var(--s3); right: var(--s3); width: 1.15rem; height: 1.15rem; border-radius: 50%;
	border: 1px solid var(--line-strong); background: var(--paper);
}
.variant:hover { background: var(--wash); }
.variant:has(input:checked) { background: var(--brand-soft); }
/* the chosen one: its circle becomes a ticked mark - a shape, not only a colour */
.variant:has(input:checked)::after { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.variant:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.variant.is-out { border-style: dashed; }
.variant.is-out .variant-name { color: var(--ink-2); }
.variant-name { font-weight: 700; }
.variant-detail { font-size: var(--t0); color: var(--ink-2); }
.variant-detail--solo { margin-top: calc(-1 * var(--s2)); }
.variant-foot { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s1); }
.variant-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.qty-row { display: grid; gap: var(--s1); }
.stepper { display: inline-flex; align-items: stretch; width: max-content; border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--paper); }
.stepper-btn { display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.stepper-btn:hover { background: var(--shelf); }
.stepper-btn[aria-disabled="true"] { color: var(--ink-3); cursor: not-allowed; background: transparent; }
.stepper input {
	width: 3.25rem; border: 0; border-inline: 1px solid var(--line); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
	-moz-appearance: textfield; appearance: textfield; background: transparent;
}
.stepper input:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 0; }
.stepper--sm .stepper-btn { width: 2.5rem; min-height: 2.5rem; }
.stepper--sm input { width: 2.75rem; }
.buy-actions { display: grid; gap: var(--s2); grid-template-columns: 1fr 1fr; }
@media (max-width: 30rem) { .buy-actions { grid-template-columns: 1fr; } }
.buy-message { padding: var(--s3); border-radius: var(--r1); background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.buy-message.is-ok { background: var(--ok-bg); color: var(--ok); }
.assure { list-style: none; margin: var(--s4) 0 0; padding: var(--s4); display: grid; gap: var(--s3); border-radius: var(--r2); background: var(--wash); }
.assure li { display: flex; gap: var(--s3); align-items: flex-start; }
.assure .ico { color: var(--brand); margin-top: .1rem; }
.specs { display: flex; gap: var(--s5); margin: var(--s3) 0 0; font-size: var(--t0); color: var(--ink-2); }
.specs dt { font-weight: 700; color: var(--ink); }
.specs dd { margin: 0; }
.prose p { max-width: 68ch; color: var(--ink-2); font-size: var(--t2); margin-top: var(--s3); }
.prose h2 { font-size: var(--t4); font-weight: 800; }

.sticky-buy { display: none; }
@media (max-width: 55.99rem) {
	.sticky-buy {
		display: flex; align-items: center; gap: var(--s3); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
		padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--paper);
		border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 20, 28, .08);
		transform: translateY(110%); transition: transform var(--mid) var(--ease-out);
	}
	.sticky-buy.is-shown { transform: none; }
	.sticky-buy-text { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
	.sticky-buy-name { font-size: var(--t0); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	body.shop--product .foot { padding-bottom: 5rem; }
}

/* ── panels, forms ──────────────────────────────────────────────────────── */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); }
@media (max-width: 30rem) { .panel { padding: var(--s4); border-radius: var(--r2); } }
.panel-title { display: flex; align-items: center; gap: var(--s3); font-size: var(--t3); font-weight: 800; margin-bottom: var(--s4); }
.panel-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.field { display: grid; gap: var(--s1); align-content: start; margin-bottom: var(--s4); min-width: 0; }
.field-label { font-weight: 700; font-size: var(--t1); }
.optional { font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
	width: 100%; min-height: 2.75rem; padding: var(--s2) var(--s3);
	border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--paper);
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); background: #fffafa; }
.field input.is-valid { border-color: var(--ok); }
.field-hint { font-size: var(--t0); color: var(--ink-2); }
.field-error { display: flex; gap: var(--s1); align-items: flex-start; font-size: var(--t0); font-weight: 700; color: var(--bad); }
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.05rem; height: 1.05rem; margin-top: .1rem; border-radius: 50%; background: var(--bad); color: #fff; font-size: .7rem; }
.field-row { display: grid; gap: 0 var(--s4); align-items: start; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1.4fr 1fr .8fr; } }

/* a checkbox drawn by the shop: the real input stays underneath (keyboard, label, screen readers) */
.check { position: relative; display: flex; gap: var(--s3); align-items: center; min-height: 2.75rem; cursor: pointer; font-weight: 600; }
.check input { position: absolute; opacity: 0; width: 1.375rem; height: 1.375rem; margin: 0; cursor: pointer; }
.check-box {
	display: grid; place-items: center; flex: none; width: 1.375rem; height: 1.375rem;
	border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: #fff;
	transition: background var(--fast), border-color var(--fast);
}
.check-box .ico { opacity: 0; transform: scale(.6); transition: opacity var(--fast), transform var(--fast); }
.check:hover .check-box { background: var(--wash); }
.check input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.check input:checked + .check-box .ico { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check input:disabled + .check-box { background: var(--shelf); border-color: var(--line); }

/* the shop's listbox (Listbox in shop.js, ARIA APG select-only combobox) - in place of a browser dropdown */
.lb { position: relative; display: block; }
.lb-button {
	display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%;
	min-height: 2.75rem; padding: var(--s2) var(--s3); text-align: left; cursor: pointer;
	border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--paper); font-weight: 600;
}
.lb-button:hover { background: var(--wash); }
.lb-button:focus-visible, .lb-button[aria-expanded="true"] { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.lb-button .ico { color: var(--ink-2); transition: transform var(--fast); }
.lb-button[aria-expanded="true"] .ico { transform: rotate(180deg); }
.lb-list {
	position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: var(--s1);
	list-style: none; max-height: 18rem; overflow-y: auto;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--shadow-2);
}
.lb-list.is-up { top: auto; bottom: calc(100% + 4px); }
.lb-option {
	display: flex; align-items: center; gap: var(--s2); min-height: 2.75rem; padding: 0 var(--s3);
	border-radius: var(--r1); cursor: pointer; color: var(--ink);
}
.lb-option .ico { visibility: hidden; color: var(--brand); }
.lb-option[aria-selected="true"] { font-weight: 800; }
.lb-option[aria-selected="true"] .ico { visibility: visible; }
/* the keyboard's place (active descendant) is a ring; the chosen one is bold with a tick - two different looks */
.lb-option.is-active { box-shadow: inset 0 0 0 1px var(--focus); background: var(--wash); }
@media (hover: hover) { .lb-option:hover { background: var(--shelf); } }
.reveal { position: relative; }
.reveal input { padding-right: 4.5rem; }
.reveal-btn { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); min-height: 2.25rem; padding: 0 var(--s3); border: 0; border-radius: var(--r1); background: var(--shelf); font-weight: 700; font-size: var(--t0); cursor: pointer; }
.rule { display: flex; gap: var(--s1); align-items: flex-start; }
.rule .ico { color: var(--ink-3); margin-top: .15rem; }
.rule.is-met { color: var(--ok); }
.rule.is-met .ico { color: var(--ok); }
.otp { font-size: var(--t4) !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }

.notice { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r2); font-weight: 600; margin-bottom: var(--s4); }
.notice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.notice--error { background: var(--bad-bg); color: var(--bad); }
.notice--warn { background: var(--low-bg); color: var(--low); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--info { background: var(--info-bg); color: var(--info); }
.notice .btn { margin-left: auto; min-height: 2.25rem; padding: 0 var(--s3); }

/* skeletons: only appear after 300ms (shop.js adds .is-slow); never shimmer under reduced motion */
.skel-line, .skel-block { border-radius: var(--r2); background: linear-gradient(90deg, var(--shelf) 25%, #E3E8EB 50%, var(--shelf) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; visibility: hidden; }
.skel-line { height: 4.5rem; margin-bottom: var(--s3); }
.skel-block { height: 9rem; margin-bottom: var(--s4); }
.skel-block--title { height: 3rem; width: 60%; }
.is-slow .skel-line, .is-slow .skel-block, .is-slow.skel-line { visibility: visible; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── cart: drawer and page ──────────────────────────────────────────────── */
dialog { color: var(--ink); }
.drawer {
	position: fixed; inset: 0 0 0 auto; margin: 0; width: min(28rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
	padding: 0; border: 0; border-radius: 0; background: var(--paper); box-shadow: var(--shadow-3);
	display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide-in var(--slow) var(--ease-out); }
.drawer::backdrop, .sheet::backdrop { background: rgba(12, 14, 18, .5); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: var(--t3); font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s2) var(--s5); }
.drawer-foot { border-top: 1px solid var(--line); padding: var(--s4) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom)); background: var(--wash); }

.line { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s3); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-pic { width: 4.5rem; aspect-ratio: 4 / 5; border-radius: var(--r1); overflow: hidden; background: var(--shelf); }
.line-pic img { width: 100%; height: 100%; object-fit: cover; }
.line-pic .ph span { font-size: var(--t3); }
.line-main { display: grid; gap: var(--s1); min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.line-name { font-weight: 700; text-decoration: none; }
.line-name:hover { text-decoration: underline; }
.line-variant { font-size: var(--t0); color: var(--ink-2); }
.line-total { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-unit { font-size: var(--t0); color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* a cart line: picture | words | quantity over the amount, both right-aligned */
.line--cart { grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: start; }
.line-main > .line-name { overflow-wrap: anywhere; }
.line-side { display: grid; justify-items: end; gap: var(--s2); }
.line-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--s1); }
.line-side .line-total { font-size: var(--t2); }
/* the minus at 1 is the line's Remove (a small trash glyph inside the stepper) */
@media (max-width: 30rem) { .line--cart { grid-template-columns: 3.5rem minmax(0, 1fr) auto; } .line--cart .line-pic { width: 3.5rem; } }
.line-problem { font-size: var(--t0); font-weight: 700; color: var(--bad); display: flex; gap: var(--s1); align-items: flex-start; }
.line-problem.is-price { color: var(--low); }
.line.has-problem .line-pic { outline: 2px solid var(--bad); outline-offset: 2px; }

.totals { display: grid; gap: var(--s2); margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: var(--s3); }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.totals .totals-grand { padding-top: var(--s3); border-top: 1px solid var(--line); margin-top: var(--s1); }
.totals .totals-grand dt { color: var(--ink); font-weight: 800; font-size: var(--t2); }
.totals .totals-grand dd { font-weight: 800; font-size: var(--t3); }
.free-meter { margin-bottom: var(--s3); font-size: var(--t0); font-weight: 600; }
.free-meter-bar { height: .4rem; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: var(--s1); }
.free-meter-bar span { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width var(--slow) var(--ease-out); }
.summary-actions { display: grid; gap: var(--s2); margin-top: var(--s4); }

.cart-page { display: grid; gap: var(--s5); padding-bottom: var(--s7); align-items: start; }
@media (min-width: 56rem) { .cart-page { grid-template-columns: 1fr 22rem; gap: var(--s6); } }
.summary { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); }
@media (min-width: 56rem) { .summary { position: sticky; top: calc(var(--mast-h) + var(--s4)); } }
.summary-title { font-size: var(--t3); font-weight: 800; }
.summary > .summary-title { margin-bottom: var(--s4); }
.empty-cart { text-align: center; padding: var(--s6) var(--s3); display: grid; gap: var(--s3); justify-items: center; }
.empty-cart .ico { color: var(--ink-3); }
.empty-cart h3 { font-size: var(--t3); font-weight: 800; }
.empty-cart p { color: var(--ink-2); }

/* ── quick add sheet ────────────────────────────────────────────────────── */
.sheet {
	margin: auto auto 0; width: 100%; max-width: 34rem; max-height: 90dvh; padding: 0; border: 0;
	border-radius: var(--r3) var(--r3) 0 0; background: var(--paper); box-shadow: var(--shadow-3); overflow: auto;
}
.sheet[open] { animation: rise var(--slow) var(--ease-out); }
@media (min-width: 40rem) { .sheet { margin: auto; border-radius: var(--r3); } }
.sheet-inner { padding: var(--s5); display: grid; gap: var(--s4); }
.sheet-head { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
.sheet-head h2 { font-size: var(--t3); font-weight: 800; }

/* ── checkout ───────────────────────────────────────────────────────────── */
body.chrome-checkout .mast { position: static; }
.checkout { display: grid; gap: var(--s5); padding-block: var(--s4) var(--s7); align-items: start; }
@media (min-width: 60rem) { .checkout { grid-template-columns: minmax(0, 1fr) 24rem; gap: var(--s6); } .summary--checkout { order: 2; } }
@media (max-width: 59.99rem) { .summary--checkout { order: -1; padding: 0; } }
.checkout-form { display: grid; gap: var(--s4); }
.step-no { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 4px; background: var(--ink); color: #fff; font-size: var(--t1); font-weight: 800; flex: none; }
.step-aside { margin: calc(-1 * var(--s2)) 0 var(--s4); color: var(--ink-2); }
.step-aside a { color: var(--brand); font-weight: 700; }
.signed-as { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s4); padding: var(--s3); border-radius: var(--r1); background: var(--wash); }
.choice-list { border: 0; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); min-width: 0; }
@media (min-width: 36rem) { .choice-list--2 { grid-template-columns: 1fr 1fr; } }
.choice {
	position: relative; display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); cursor: pointer;
	border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper);
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice:hover { background: var(--wash); }
.choice:has(input:checked) { background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r1); background: var(--shelf); flex: none; }
.choice:has(input:checked) .choice-icon { background: var(--paper); color: var(--brand); }
.choice-text { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.choice-text > span { font-size: var(--t0); color: var(--ink-2); }
.choice-check { margin-left: auto; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; margin-top: .2rem; }
.choice:has(input:checked) .choice-check { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.tag-test { display: inline-block; margin-left: var(--s2); padding: 0 .4rem; border-radius: var(--r1); background: var(--low-bg); color: var(--low); font-size: .75rem; font-weight: 800; }
.pay-detail { margin: var(--s2) 0 var(--s4); padding: var(--s4); border-radius: var(--r2); background: var(--wash); border: 1px dashed var(--line-strong); display: grid; gap: var(--s3); }
.pay-detail dl { margin: 0; display: grid; gap: var(--s2); }
.pay-detail dl div { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.pay-detail dt { color: var(--ink-2); font-size: var(--t0); }
.pay-detail dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; gap: var(--s2); align-items: center; }
.pay-qr { width: 11rem; height: 11rem; object-fit: contain; border-radius: var(--r1); background: #fff; border: 1px solid var(--line); }
.copy-btn { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.25rem; padding: 0 var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--paper); font-size: var(--t0); font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--wash); }
.place { display: grid; gap: var(--s2); }
.place-note { font-size: var(--t0); color: var(--ink-2); text-align: center; }
.summary-fold > summary { list-style: none; display: flex; align-items: center; gap: var(--s3); cursor: pointer; min-height: 2.75rem; }
.summary-fold > summary::-webkit-details-marker { display: none; }
.summary-fold-total { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary-chevron { transition: transform var(--mid); }
.summary-fold[open] .summary-chevron { transform: rotate(180deg); }
@media (min-width: 60rem) { .summary-fold > summary { pointer-events: none; } .summary-chevron, .summary-fold-total { display: none; } }
@media (max-width: 59.99rem) { .summary-fold { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s2) var(--s4); } }
.summary-lines { list-style: none; margin: var(--s3) 0 var(--s4); padding: 0; display: grid; gap: var(--s3); }
.summary-line { display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--s3); align-items: center; }
.summary-line .line-pic { width: 3rem; position: relative; overflow: visible; }
.summary-line .line-pic > :first-child { border-radius: var(--r1); overflow: hidden; width: 100%; height: 100%; }
.summary-qty { position: absolute; top: -.45rem; right: -.45rem; min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 4px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; }
.summary-line-name { font-weight: 600; font-size: var(--t0); line-height: 1.3; }
.summary-edit { margin-top: var(--s3); font-size: var(--t0); }
.summary-edit a { color: var(--brand); font-weight: 700; }

/* ── order page ─────────────────────────────────────────────────────────── */
.order { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s7); }
.order-hero { display: grid; gap: var(--s2); }
.order-badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 4px; background: var(--ok-bg); color: var(--ok); }
.order-badge.is-wait { background: var(--low-bg); color: var(--low); }
.order-badge.is-bad { background: var(--bad-bg); color: var(--bad); }
.order-code { font-variant-numeric: tabular-nums; }
.order-grid { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 56rem) { .order-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); } }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s1); }
.stages li { display: grid; gap: var(--s2); font-size: var(--t0); font-weight: 600; color: var(--ink-3); }
.stages li::before { content: ""; height: .35rem; border-radius: 4px; background: var(--line); }
.stages li.is-done { color: var(--ink); }
.stages li.is-done::before { background: var(--ok); }
.stages li.is-now { color: var(--ink); font-weight: 800; }
.stages li.is-now::before { background: linear-gradient(90deg, var(--ok) 50%, var(--line) 50%); }
.stages-cancel { color: var(--bad); font-weight: 700; }
.pay-status { display: inline-flex; align-items: center; gap: var(--s2); padding: .2rem .6rem; border-radius: 4px; font-weight: 800; font-size: var(--t0); }
.pay-status--paid { background: var(--ok-bg); color: var(--ok); }
.pay-cash { display: flex; gap: var(--s2); align-items: flex-start; margin-top: var(--s3); padding: var(--s3); border-radius: var(--r2); background: var(--wash); }
.pay-cash .ico { margin-top: .1rem; color: var(--brand); }
.pay-status--wait { background: var(--low-bg); color: var(--low); }
.pay-status--bad { background: var(--bad-bg); color: var(--bad); }
.pay-status--info { background: var(--info-bg); color: var(--info); }
.kv { display: grid; gap: var(--s2); margin: 0; }
.kv div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s3); }
.kv dt { color: var(--ink-2); font-size: var(--t0); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.order-lines { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.order-lines .line { grid-template-columns: 3.5rem 1fr; }
.order-lines .line-pic { width: 3.5rem; }
.ref-form { display: grid; gap: var(--s2); }
.ref-row { display: flex; gap: var(--s2); }
.ref-row input { flex: 1; min-width: 0; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ── account ────────────────────────────────────────────────────────────── */
.account { display: grid; justify-items: center; padding-block: var(--s6) var(--s8); }
/* the sign-in group reads as one by its soft fill and its spacing, not by a frame */
.account-panel { width: 100%; max-width: 30rem; border: 0; background: var(--wash); }
.account-why { color: var(--ink-2); margin: var(--s2) 0 var(--s4); }
.account-form { display: grid; gap: 0; }
.account-form .btn-block { margin-top: var(--s2); }
.account-small { margin-top: var(--s3); text-align: center; font-size: var(--t0); }
.account-small a { color: var(--brand); font-weight: 700; }
.tabs { display: flex; gap: var(--s1); padding: var(--s1); margin-bottom: var(--s5); border-radius: var(--r2); background: var(--shelf); }
.tabs [role="tab"] { flex: 1; min-height: 2.75rem; border: 0; border-radius: var(--r1); background: transparent; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }

/* ── footer, toasts ─────────────────────────────────────────────────────── */
.foot { background: var(--wash); color: var(--ink-2); margin-top: auto; padding-top: var(--s7); font-size: var(--t0); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.foot a { color: var(--brand); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-name { font-size: var(--t3); font-weight: 800; color: var(--ink); margin-bottom: var(--s3); }
.foot-head { font-weight: 800; color: var(--ink); margin-bottom: var(--s3); font-size: var(--t1); }
.foot-line { display: flex; gap: var(--s2); align-items: flex-start; margin-bottom: var(--s2); }
.foot-line .ico { margin-top: .15rem; color: var(--brand); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot-links a { display: inline-flex; min-height: 2rem; align-items: center; }
.foot-how li { color: var(--ink-2); }
/* the copyright bar: a shade darker than the footer, still light */
.foot-copy { border-top: 1px solid var(--line); padding-block: var(--s4); color: var(--ink-2); max-width: none; background: var(--shelf);
	padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }

.promise { background: var(--wash); border-top: 1px solid var(--line); margin-top: var(--s7); }
.promise-list { list-style: none; margin-block: 0; padding-block: var(--s6); display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.promise-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.promise-list .ico { color: var(--brand); flex: none; }
.promise-list b { display: block; font-size: var(--t2); }
.promise-list span { color: var(--ink-2); }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: var(--s4); transform: translateX(-50%); display: grid; gap: var(--s2); width: min(30rem, calc(100vw - 2rem)); pointer-events: none; }
body.shop--product .toasts { bottom: 5.5rem; }
@media (min-width: 56rem) { body.shop--product .toasts { bottom: var(--s4); } }
.toast {
	pointer-events: auto; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4);
	border-radius: var(--r2); background: var(--ink); color: #fff; box-shadow: var(--shadow-3); animation: rise var(--mid) var(--ease-out);
}
.toast--error { background: var(--bad); }
.toast-text { flex: 1; font-weight: 600; }
.toast-action { min-height: 2.5rem; padding: 0 var(--s3); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r1); background: transparent; color: #fff; font-weight: 800; cursor: pointer; white-space: nowrap; }
.toast-action:hover { background: rgba(255, 255, 255, .14); }
.toast-close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--r1); background: transparent; color: #fff; cursor: pointer; }
.toast-close:hover { background: rgba(255, 255, 255, .14); }
.toast-timer { font-variant-numeric: tabular-nums; opacity: .8; font-size: var(--t0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
	.skel-line, .skel-block { animation: none; }
}
@media print {
	.ribbon, .mast, .catbar, .foot, .toasts, .sticky-buy { display: none !important; }
}

/* ── phone refinements ──────────────────────────────────────────────────── */
@media (max-width: 47.99rem) {
	/* the masthead's search is already one tap away: the hero does not repeat it */
	.hero .hero-search { display: none; }
	.hero-grid { padding-block: var(--s5); gap: var(--s4); }
	.cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
	.cat-tile { min-height: 4.5rem; padding: var(--s3); }
	.cat-desc { display: none; }
}

/* toasts said inside an open drawer or sheet (shop.js hostFor): at the bottom
   of its list, above the totals - in sight, never behind the dialog */
.dialog-toasts { display: grid; gap: var(--s2); padding: 0 var(--s5) var(--s3); }
.dialog-toasts:empty { display: none; }
.dialog-toasts .toast { width: 100%; }

/* a heading the page moves focus to (after an order, a filter) is a reading position, not a control: no ring */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, p[tabindex="-1"]:focus, [id="results-count"]:focus { outline: none; }
