/* Kasside Ilusalong — the user's demo stylesheet on the platform (templates/kassideilusalong).
   One ground everywhere; no bordered boxes. Differences from the demo, all structural:
   - the page grid lives on .ki-shell (not body), so the editor canvas — which maps body/html to its own
     scope — shows the blocks stacked; the header and rail blocks' <section> wrappers are display:contents;
   - the rail is sticky / a drawer only inside the shell; standalone (editor, the shop's shared pages) it is a list;
   - platform parts (checkout lockers, payment, address lookup, cookie banner, editor notes) at the end. */
:root {
  --ground: #1E1622;
  --text: #F3ECE4;
  --muted: #B9ABB6;
  --accent: #EBA3BD;
  --accent-hi: #F4BFD1;
  --mark: #8C7A89;
  --field: #F3ECE4;
  --field-text: #1E1622;
  --field-ph: #5E5260;
  --tile: #FFFFFF;
  --danger: #FF9B8A;
  --gold: #A17E43;      /* sampled from the logo wordmark (.build/logo.py); rules and strokes only */
  --gold-text: #C39D5C; /* same hue lifted for small text: 6.9:1 on --ground */
  --display: 'Geologica', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --rail: 17.5rem;
  --topbar: 3.6rem;     /* sticky page header height; sticky panels sit below it */
  --pad: clamp(1rem, 3.5vw, 3rem);
  --r-ctl: .6rem;
  --r-tile: .8rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: block;
}
.ki-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-areas: "info info" "head head" "rail page";
}
.ki-shell > .cms-block--ki-navbar, .ki-shell .hd { display: contents; }
.ki-shell > .cms-block--ki-rail { grid-area: rail; min-width: 0; }
main { display: block; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--accent); color: var(--ground); padding: .6rem 1rem; border-radius: var(--r-ctl); font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus, .rail:focus { outline: none; }

/* ---------- rail ---------- */
.rail {
  padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; scrollbar-width: thin;
  scrollbar-color: var(--mark) transparent;
}
.ki-shell .rail { position: sticky; top: 0; height: 100svh; overflow-y: auto; overscroll-behavior: contain; }
.cart-link { display: flex; align-items: center; gap: .35rem; text-decoration: none; font-weight: 600; padding: .35rem 0; }
.cart-link b { background: var(--accent); color: var(--ground); font-size: .75rem; min-width: 1.4rem; height: 1.4rem; border-radius: .7rem; display: grid; place-items: center; padding: 0 .35rem; }
.cart-link:hover { color: var(--accent); }

.search { display: flex; align-items: center; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: 0 .25rem 0 .85rem; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 500; font-size: .9375rem; color: var(--field-text); padding: .8rem 0; }
.search input::placeholder { color: var(--field-ph); }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.search button { border: 0; background: transparent; color: var(--field-text); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; cursor: pointer; border-radius: calc(var(--r-ctl) - .15rem); }
.search button:hover { color: #6B2E47; }

.disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; list-style: none; cursor: default; font: 500 .8125rem/1 var(--sans); color: var(--muted); padding: .25rem 0 .6rem; pointer-events: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .ic { display: none; transition: transform .2s; }
.dot-count { margin-left: auto; margin-right: .5rem; background: var(--accent); color: var(--ground); border-radius: .6rem; font-size: .6875rem; min-width: 1.2rem; height: 1.2rem; display: grid; place-items: center; }

.tree { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.tree a { display: flex; justify-content: space-between; gap: .75rem; text-decoration: none; padding: .38rem 0; }
.tree a:hover { color: var(--accent); }
.tree small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8125rem; }
.tree ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .9rem; font-size: .875rem; }
.tree ul a { padding: .25rem 0; color: var(--muted); }
.tree ul a:hover { color: var(--accent); }
.tree .on > a, .tree a[aria-current] { color: var(--accent); font-weight: 600; }
.tree a[aria-current] small { color: var(--accent); }

.filter-form { display: grid; gap: 1.25rem; }
.filter-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-form legend { font-weight: 600; font-size: .875rem; margin-bottom: .4rem; padding: 0; }
.check { display: flex; align-items: center; gap: .6rem; padding: .28rem 0; cursor: pointer; font-size: .875rem; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 1.15rem; height: 1.15rem; border-radius: .3rem; box-shadow: inset 0 0 0 2px var(--mark); display: grid; place-items: center; color: transparent; flex: none; transition: background .15s, box-shadow .15s; }
.check input:checked + .box { background: var(--accent); box-shadow: none; color: var(--ground); }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check:hover .box { box-shadow: inset 0 0 0 2px var(--accent); }
.check .lab { flex: 1; }
.check small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8125rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.range label { display: grid; gap: .25rem; font-size: .75rem; color: var(--muted); }
.range input { width: 100%; border: 0; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: .55rem .65rem; font-size: .9375rem; -moz-appearance: textfield; }
.range input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range input::placeholder { color: var(--field-ph); }
.filter-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.link-clear { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; color: var(--muted); }
.link-clear:hover { color: var(--accent); }
html.js .filter-form[data-autosubmit] .filter-actions .btn { display: none; }

/* Language: a dropdown in the header bar, next to the cart, opening downward. */
.lang-menu { position: relative; }
.lang-menu > summary { display: inline-flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer; font-weight: 600; font-size: .875rem; padding: .5rem .7rem .5rem .55rem; border-radius: var(--r-ctl); color: var(--text); transition: color .2s; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { color: var(--accent); }
.lang-menu > summary .ic { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.lang-menu[open] > summary .ic { transform: rotate(180deg); }
.lang-menu img { width: 1.25rem; height: .94rem; border-radius: .15rem; object-fit: cover; flex: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; list-style: none; margin: 0; padding: .35rem; min-width: 11rem; background: var(--field); color: var(--field-text); border-radius: .75rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .45); transform-origin: top right; }
.lang-menu[open] ul { animation: lang-down .22s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes lang-down { from { opacity: 0; transform: translateY(-.4rem) scale(.97); } }
.lang-menu li a { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: .5rem; text-decoration: none; font-size: .9375rem; transition: background .15s; }
.lang-menu li a b { font-weight: 700; min-width: 1.6rem; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.lang-menu li a span { color: #5E5260; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.lang-menu li a:hover b, .lang-menu li a:hover span, .lang-menu li a:focus-visible b, .lang-menu li a:focus-visible span { transform: translateX(.25rem); }
.lang-menu li a[aria-current] { background: var(--accent); }
.lang-menu li a[aria-current] span { color: var(--field-text); }

/* ---------- page ---------- */
.page { grid-area: page; min-width: 0; display: flex; flex-direction: column; min-height: 100svh; padding: 0 var(--pad); }
main { flex: 1; padding-bottom: clamp(3rem, 6vw, 5rem); }
/* Page header: back link and breadcrumbs on the left, language on the right. Separated by tone, not a rule colour. */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar); margin: 0 calc(var(--pad) * -1) .75rem; padding: .4rem var(--pad); background: var(--ground); box-shadow: 0 1px 0 rgba(243, 236, 228, .07); }
.topbar-path { display: flex; align-items: center; gap: .25rem 1.1rem; min-width: 0; }
.topbar-tools { display: flex; align-items: center; gap: .25rem 1.25rem; flex: none; margin-left: auto; }
.topbar-tools .search-open { margin-left: 0; }
.topbar-tools .lang-menu { margin-right: -.7rem; }
.back { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9375rem; text-decoration: none; padding: .4rem .75rem .4rem .5rem; margin-left: -.5rem; border-radius: var(--r-ctl); color: var(--text); }
.back .ic { color: var(--gold); transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.back:hover { color: var(--accent); }
.back:hover .ic { transform: translateX(-.3rem); }

.btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: var(--text); color: var(--ground); font-weight: 600; font-size: .9375rem; padding: .7rem 1.1rem; border-radius: var(--r-ctl); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); }
.btn--small { padding: .5rem .8rem; font-size: .875rem; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--mark); }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.add { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 0; background: var(--accent); color: var(--ground); font: 600 1.0625rem var(--sans); border-radius: var(--r-ctl); cursor: pointer; padding: .9rem 1.5rem; text-decoration: none; }
.add:hover { background: var(--accent-hi); }
.add:disabled { background: var(--mark); cursor: not-allowed; }
.note { color: var(--muted); font-size: .875rem; }
.notice { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); font-size: .9375rem; }
.notice .ic { color: var(--accent); margin-top: .15rem; }
.empty { display: grid; gap: 1.25rem; justify-items: start; padding-block: 2rem; color: var(--muted); font-size: 1.0625rem; }

/* ---------- home ---------- */
.state { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.state h1 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.08; }
.state p { color: var(--muted); font-size: 1.0625rem; align-self: end; }

.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.shelf-item { text-decoration: none; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .6rem .5rem; }
.shelf-img { grid-column: 1 / -1; background: var(--tile); border-radius: var(--r-tile); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 14%; overflow: hidden; }
.shelf-img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.shelf-item:hover .shelf-img img { transform: translateY(-.35rem) scale(1.04); }
.shelf-name { font: 500 1rem/1.2 var(--display); }
.shelf-item small { color: var(--muted); font-variant-numeric: tabular-nums; }
.shelf-item:hover .shelf-name { color: var(--accent); }

.pop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.pop-head h2 { font-size: 1.5rem; }
.pop-head a { font-weight: 600; text-decoration: none; }
.pop-head a small { color: var(--muted); font-weight: 400; margin-left: .25rem; }
.pop-head a:hover { color: var(--accent); }

/* ---------- catalogue ---------- */
.shop-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: clamp(.5rem, 2vw, 1.5rem); margin-bottom: 1.25rem; }
.shop-head h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.025em; }
.shop-head .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.bar-form { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.select { position: relative; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }
.select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text); font-weight: 600; font-size: .9375rem; padding: .45rem 1.5rem .45rem 0; cursor: pointer; }
.select select option { color: var(--field-text); background: var(--field); }
.select .ic { position: absolute; right: 0; pointer-events: none; color: var(--text); }
.select:hover select { color: var(--accent); }
.views { display: flex; gap: .25rem; }
.views a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-ctl); color: var(--muted); }
.views a:hover { color: var(--text); }
.views a[aria-current] { background: var(--text); color: var(--ground); }

.cards { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.cards--grid { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.cards--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.card-img { display: grid; place-items: center; background: var(--tile); border-radius: var(--r-tile); aspect-ratio: 1; padding: 10%; overflow: hidden; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.noimg { color: #6B5E68; font-size: .8125rem; }
.card-body { display: grid; gap: .25rem; flex: 1; align-content: start; }
.card-name { font: 500 .9375rem/1.35 var(--sans); letter-spacing: 0; }
.card-name a { text-decoration: none; }
.card-name a:hover { color: var(--accent); }
.card-sizes { font-size: .8125rem; color: var(--muted); }
.card-price { font: 700 1.0625rem var(--display); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.card-act form { margin: 0; }
.btn-add, .btn-choose { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--accent); font-weight: 600; font-size: .875rem; padding: .35rem 0; cursor: pointer; text-decoration: none; }
.btn-add:hover, .btn-choose:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: .25em; }
.card-out { font-size: .875rem; color: var(--muted); }
.card-in-cart { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; color: var(--gold-text); text-decoration: none; padding: .35rem 0; }
.card-in-cart:hover { color: var(--accent); }

.cards--list { grid-template-columns: 1fr; gap: 0; }
.card--list { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding-block: .7rem; }
.card--list .card-img { padding: 8%; border-radius: .6rem; }
.card--list .card-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: baseline; }
.card--list .card-name { font-size: 1rem; }
.card--list .card-sizes { grid-column: 1; }
.card--list .card-price { grid-column: 2; grid-row: 1; margin: 0; }
.card--list .card-act { min-width: 7.5rem; text-align: right; }

.pager { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; margin-top: 2.5rem; font-variant-numeric: tabular-nums; }
.pager a { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem; border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; }
.pager a:hover { color: var(--accent); }
.pager a[aria-current] { background: var(--accent); color: var(--ground); }
.pager .pg-step { padding: 0 .9rem; }
.pg-gap { color: var(--muted); padding: 0 .25rem; }

/* ---------- product ---------- */
.crumb { min-width: 0; font-size: .875rem; color: var(--muted); }
.crumb ol { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; }
.crumb li { flex: none; white-space: nowrap; }
.crumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumb li + li::before { content: "/"; margin: 0 .55rem; color: var(--mark); }
.crumb [aria-current] { color: var(--text); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4.5rem); padding-top: 1.5rem; }
.pdp-media { align-self: start; position: sticky; top: calc(var(--topbar) + 1.5rem); }
.pdp-img { background: var(--tile); border-radius: 1.25rem; aspect-ratio: 1; display: grid; place-items: center; padding: 6%; overflow: hidden; }
.pdp-img img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.thumbs a { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; background: var(--tile); border-radius: .55rem; padding: .35rem; opacity: .6; transition: opacity .15s; }
.thumbs a:hover, .thumbs a[aria-current] { opacity: 1; }
.thumbs a[aria-current] { box-shadow: 0 0 0 3px var(--accent); }
.thumbs img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs .is-opt { display: none; }
.pdp h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.price { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 2rem; }
.price output { font: 700 2.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: .875rem; }

.cmp { margin: 0 0 2rem; }
.cmp-head, .opt { display: grid; grid-template-columns: 5rem minmax(3rem, 1fr) 5.5rem 6.5rem; gap: 1rem; align-items: center; }
.cmp--nounit .cmp-head, .cmp--nounit .opt { grid-template-columns: 5rem minmax(3rem, 1fr) 5.5rem; }
.cmp-head { font-size: .8125rem; color: var(--muted); padding: 0 .9rem .4rem; }
.cmp-head span:nth-child(n+3) { text-align: right; }
.opt { text-decoration: none; padding: .8rem .9rem; border-radius: var(--r-ctl); color: var(--text); transition: background .2s, color .2s; }
.opt:hover { color: var(--accent); }
.opt[aria-checked="true"] { background: var(--accent); color: var(--ground); }
.opt b { font: 700 1.0625rem var(--display); }
.opt i { display: block; height: .5rem; min-width: .5rem; border-radius: .25rem; background: var(--mark); }
.opt[aria-checked="true"] i { background: var(--ground); }
.opt span, .opt em { text-align: right; font-variant-numeric: tabular-nums; font-style: normal; }
.opt em small { display: block; font-size: .6875rem; line-height: 1.1; }

/* Colour / design swatches: picking one shows its own stock beside the name. */
.swatches { margin: 0 0 1.75rem; }
.sw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0 0 .8rem; font-size: .9375rem; color: var(--muted); }
.sw-head b { font: 600 1.0625rem var(--display); color: var(--text); }
.sw-head output { font-weight: 600; color: var(--accent); }
.sw-head output.is-out { color: var(--danger); }
.sw-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.sw { position: relative; display: block; width: 2.9rem; height: 2.9rem; border-radius: .6rem; overflow: hidden; background: var(--tile); transition: transform .2s var(--ease), box-shadow .2s; }
.sw img, .sw i { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw i { background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); } /* black and smoke chips stay visible on the dark ground */
.sw:hover { transform: translateY(-.15rem); }
.sw[aria-checked="true"], .sw[aria-current] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--accent); }
.sw.is-out img, .sw.is-out i { opacity: .4; }
.sw.is-out::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ground) calc(50% - 1px), var(--ground) calc(50% + 1px), transparent calc(50% + 1px)); }

.buy { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; margin-bottom: .8rem; }
.qty { display: flex; align-items: center; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); }
.qty button { border: 0; background: transparent; width: 2.75rem; height: 3.25rem; display: grid; place-items: center; cursor: pointer; color: var(--field-text); border-radius: var(--r-ctl); }
.qty button:hover { color: #6B2E47; }
.qty input { width: 2.5rem; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 1.0625rem; color: var(--field-text); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .add { flex: 1; min-width: 12rem; }
.stock { font-size: .875rem; color: var(--muted); margin: 0 0 3rem; }
.stock output { color: var(--text); font-weight: 600; }
.info { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.75rem 1.5rem; }
.info h2 { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.desc p { margin-bottom: .75rem; max-width: 40rem; overflow-wrap: anywhere; }
.desc .note { margin-bottom: 1rem; }
.del { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.del li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; }
.del .ic { color: var(--accent); grid-row: span 2; margin-top: .2rem; }
.del span { color: var(--muted); font-size: .9375rem; }
.related { padding-top: clamp(3rem, 6vw, 5rem); }
.related h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.related h2 a { text-decoration: none; }
.related h2 a:hover { color: var(--accent); }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cart-table th { text-align: left; font: 500 .8125rem var(--sans); color: var(--muted); padding: 0 .75rem .6rem 0; }
.cart-table td { padding: .75rem .75rem .75rem 0; vertical-align: middle; }
.c-img { width: 5.5rem; }
.c-img a { display: grid; place-items: center; background: var(--tile); border-radius: .55rem; width: 4.5rem; height: 4.5rem; padding: .35rem; }
.c-img img { max-height: 100%; width: auto; object-fit: contain; }
.c-name a { font-weight: 600; text-decoration: none; }
.c-name a:hover { color: var(--accent); }
.c-name span { display: block; color: var(--muted); font-size: .875rem; }
.c-name .c-bulky { display: inline-flex; gap: .3rem; align-items: center; color: var(--accent); }
.c-total { font-weight: 700; text-align: right; white-space: nowrap; }
.c-price { white-space: nowrap; color: var(--muted); }
.c-qty input { width: 4.25rem; border: 0; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: .55rem .6rem; font-weight: 600; text-align: center; }
.c-rm button { border: 0; background: transparent; color: var(--muted); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; cursor: pointer; border-radius: var(--r-ctl); }
.c-rm button:hover { color: var(--danger); }
.cart-table th:nth-child(5) { text-align: right; }
.cart-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
html.js [data-hide-js] { display: none; }
.totals { margin: 0; display: grid; gap: .45rem; min-width: min(100%, 20rem); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 2rem; }
.totals dt { font-weight: 500; }
.totals dd { margin: 0; font-weight: 600; }
.totals .muted { color: var(--muted); font-size: .9375rem; }
.totals .muted dd { font-weight: 400; }
.totals .grand { margin-top: .5rem; font-size: 1.25rem; }
.totals .grand dd { font: 700 1.5rem var(--display); }
.cart-go { display: flex; justify-content: flex-end; margin-top: 1.75rem; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.err--form { grid-column: 1 / -1; }
.co-main { display: grid; gap: 2.5rem; }
.co-block { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.co-block > legend { font: 500 1.375rem var(--display); letter-spacing: -.02em; padding: 0; margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .875rem; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; border: 0; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: .75rem .85rem; font-size: 1rem; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E1622' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.field [aria-invalid="true"], .check input[aria-invalid="true"] + .box { box-shadow: 0 0 0 3px var(--danger); }
.err { color: var(--danger); font-size: .875rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: grid; gap: .25rem; }
.choice { border-radius: var(--r-ctl); padding: .8rem .9rem; transition: background .15s; }
.choice.is-disabled { opacity: .45; }
.radio { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio .dot { width: 1.2rem; height: 1.2rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--mark); flex: none; margin-top: .15rem; transition: box-shadow .15s; }
.radio input:checked + .dot { box-shadow: inset 0 0 0 6px var(--accent); }
.radio input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 2px; }
.radio .lab { display: grid; font-weight: 500; }
.radio input:checked ~ .lab { font-weight: 700; color: var(--accent); }
.radio input:checked ~ .lab small { color: var(--muted); font-weight: 400; }
.radio .lab small { font-weight: 400; color: var(--muted); font-size: .875rem; }
.is-disabled .radio { cursor: not-allowed; }
.locker { display: grid; gap: .6rem; margin: .8rem 0 .2rem 2rem; }
html.js .choice:not(:has(input:checked)) .locker { display: none; }
.locker-filter { width: 100%; border: 0; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: .65rem .85rem; }
.banks { display: flex; flex-wrap: wrap; gap: .5rem; }
.bank { position: relative; cursor: pointer; }
.bank input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bank span { display: block; padding: .7rem 1.1rem; border-radius: var(--r-ctl); background: var(--field); color: var(--field-text); font-weight: 600; transition: background .15s; }
.bank input:checked + span { background: var(--accent); }
.bank input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check--agree { font-size: .9375rem; align-items: flex-start; }
.check--agree .box { margin-top: .15rem; }
.check--agree a { color: var(--accent); }

.co-summary { position: sticky; top: calc(var(--topbar) + 1.5rem); display: grid; gap: 1.25rem; }
.co-summary h2 { font-size: 1.375rem; }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .9375rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.sum-lines small { color: var(--muted); }
.sum-lines b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.add--block { width: 100%; }
.link-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted); }
.link-back:hover { color: var(--accent); }

.confirm { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.confirm-nr { display: grid; gap: .1rem; margin-bottom: 1.5rem; }
.confirm-nr span { color: var(--muted); font-size: .875rem; }
.confirm-nr b { font: 300 clamp(2.4rem, 5vw, 4rem)/1 var(--display); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.confirm h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 1rem; }
.confirm-next { font-size: 1.0625rem; max-width: 36rem; margin-bottom: 1.5rem; }
.confirm-detail { display: grid; gap: 1.5rem; }

/* ---------- contact / legal / 404 ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.contact h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 1rem; }
.contact-addr { font: 300 clamp(1.8rem, 3.6vw, 3.2rem)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 1.5rem; }
.contact-addr a { text-decoration: none; }
.contact-addr a:hover { color: var(--accent); }
.contact .lede { color: var(--muted); max-width: 32rem; margin-bottom: 1.75rem; }
.facts { margin: 0; display: grid; gap: 1.5rem; }
.facts dt { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; margin-bottom: .25rem; }
.facts dt .ic { color: var(--accent); }
.facts dd { margin: 0; font-size: 1.0625rem; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--accent); }

.legal { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 44rem); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(.5rem, 2vw, 1.5rem); align-items: start; }
.legal-side { position: sticky; top: calc(var(--topbar) + 1.5rem); display: grid; gap: 1rem; }
.legal-side h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.08; }
.toc { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .875rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.legal-body h2 { font-size: 1.25rem; margin: 2.25rem 0 .75rem; scroll-margin-top: calc(var(--topbar) + 1.5rem); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: .9rem; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body li { margin-bottom: .3rem; }
.legal-body li::marker { color: var(--accent); }

.nf { display: grid; gap: 1.25rem; max-width: 34rem; padding-top: clamp(2rem, 6vw, 5rem); }
.nf h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.nf p { color: var(--muted); }
.search--big input { font-size: 1.0625rem; padding: 1rem 0; }

/* ---------- footer ---------- */
.ft { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding: 2.5rem 0 2rem; font-size: .875rem; color: var(--muted); margin-top: clamp(1rem, 3vw, 2rem); }
.ft-name { color: var(--text); font-weight: 600; margin-bottom: .4rem; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--accent); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.ft-legal { align-self: end; display: flex; flex-direction: column; gap: 1rem; }
/* Ideearendus credit: this site's pink accent running into its light text colour; a light band sweeps across on hover. */
.footer-credit { align-self: flex-end; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; text-align: right; }
.footer-credit-name { font: 700 1.3rem var(--display); background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%), linear-gradient(90deg, var(--accent), var(--text)); background-size: 200% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-credit:hover .footer-credit-name, .footer-credit:focus-visible .footer-credit-name { animation: credit-glimmer 1.1s cubic-bezier(.2, .7, .2, 1); }
@keyframes credit-glimmer { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
.footer-credit-sub { font-size: .72rem; letter-spacing: .05em; color: var(--muted); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; background: var(--text); color: var(--ground); padding: .75rem .75rem .75rem 1.1rem; border-radius: .8rem; box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .45); max-width: calc(100vw - 2rem); animation: toast-in .25s ease-out backwards; }
.toast span { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9375rem; }
.toast span .ic { color: #6B2E47; }
.toast a { font-weight: 700; white-space: nowrap; color: #6B2E47; }
.toast button { border: 0; background: transparent; width: 2rem; height: 2rem; display: grid; place-items: center; cursor: pointer; color: var(--ground); border-radius: .5rem; }
.toast[hidden] { display: none; }
@keyframes toast-in { from { transform: translate(-50%, 1rem); opacity: 0; } }

/* ---------- gold: the logo's wordmark colour, used thin — rules, icon strokes, small labels ---------- */
.disclosure > summary { color: var(--gold-text); letter-spacing: .02em; }
.state h1 { display: inline-block; justify-self: start; align-self: start; padding-block: .6rem .7rem; border-block: 1px solid var(--gold); }
.info h2 { color: var(--gold-text); }
.del .ic, .facts dt .ic, .notice .ic { color: var(--gold); }
.opt:not([aria-checked="true"]) em small { color: var(--gold-text); }
.confirm-nr b { color: var(--gold-text); }
.contact-addr a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.legal-body li::marker { color: var(--gold); }
.legal-side h1 { padding-bottom: .6rem; border-bottom: 1px solid var(--gold); justify-self: start; }
.ft { box-shadow: 0 -1px 0 var(--gold); }
.shop-head .count, .pop-head a small { color: var(--gold-text); }

/* Photo tiles: block boxes with a definite aspect-ratio height, so the image's 100% resolves (W28). */
.shelf-img, .card-img, .pdp-img, .thumbs a, .c-img a { display: block; }
.shelf-img img, .card-img img, .pdp-img img, .thumbs img, .c-img img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.c-img a, .thumbs a { box-sizing: border-box; }
.noimg { display: grid; place-items: center; height: 100%; }

/* ---------- hover motion: the thing under the pointer moves toward it ---------- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
.tree .lbl, .check .lab, .ft ul a, .toc a, .crumb a, .link-back, .link-clear, .pop-head a, .related h2 a { display: inline-block; transition: transform .28s var(--ease), color .2s; }
.tree a:hover .lbl, .tree a:focus-visible .lbl { transform: translateX(.4rem); }
.tree a[aria-current] .lbl, .tree .on > a .lbl { transform: translateX(.2rem); }
.tree a small { transition: color .2s; }
.tree a:hover small { color: var(--accent); }
.check:hover .lab { transform: translateX(.25rem); color: var(--text); }
.ft ul a:hover, .toc a:hover { transform: translateX(.3rem); }
.link-back:hover { transform: translateX(-.25rem); }
.pop-head a:hover, .related h2 a:hover { transform: translateX(.3rem); }
.hd-logo img { transition: transform .35s var(--ease); transform-origin: center; }
.hd-logo:hover img { transform: scale(1.015); }
.cart-link .ic { transition: transform .28s var(--ease); }
.cart-link:hover .ic { transform: translateY(-.15rem) rotate(-6deg); }
.card { transition: transform .3s var(--ease); }
.card--grid:hover { transform: translateY(-.25rem); }
.card--list .card-body { transition: transform .28s var(--ease); }
.card--list:hover .card-body { transform: translateX(.4rem); }
.card-name a { transition: color .2s; }
.card:hover .card-name a { color: var(--accent); }
.btn-add .ic, .btn-choose { transition: transform .28s var(--ease), color .2s; }
.btn-add:hover .ic { transform: rotate(90deg); }
.opt b, .opt span, .opt em { transition: transform .28s var(--ease); }
.opt:not([aria-checked="true"]):hover b { transform: translateX(.3rem); }
.opt i { transition: background .2s, transform .35s var(--ease); transform-origin: left center; }
.opt:not([aria-checked="true"]):hover i { transform: scaleX(1.04); background: var(--accent); }
.shelf-item .shelf-name { transition: transform .28s var(--ease), color .2s; }
.shelf-item:hover .shelf-name { transform: translateX(.3rem); }
.btn, .add, .bank span, .views a, .pager a { transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active, .add:active, .bank span:active { transform: scale(.97); }
.pager a:not([aria-current]):hover { transform: translateY(-.15rem); }
.thumbs a { transition: opacity .15s, transform .25s var(--ease); }
.thumbs a:hover { transform: translateY(-.2rem); }
.radio .lab { transition: transform .28s var(--ease), color .2s; }
.choice:not(.is-disabled) .radio:hover .lab { transform: translateX(.25rem); }
.facts dd a { display: inline-block; transition: transform .28s var(--ease), color .2s; }
.facts dd a:hover { transform: translateX(.3rem); }
.c-name a { display: inline-block; transition: transform .28s var(--ease), color .2s; }
.c-name a:hover { transform: translateX(.3rem); }

/* ---------- search popup (native <dialog>: top layer, so no header stacking traps — W23) ---------- */
.search-open { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; padding: .55rem .9rem .55rem .7rem; margin-left: -.7rem; border-radius: var(--r-ctl); color: var(--text); }
.search-open .ic { color: var(--gold); transition: transform .28s var(--ease); }
.search-open span { transition: transform .28s var(--ease); }
.search-open:hover { color: var(--accent); }
.search-open:hover .ic { transform: scale(1.12) rotate(-8deg); }
.search-open:hover span { transform: translateX(.2rem); }
.search-dialog { position: fixed; inset: 0; margin: 14vh auto auto; width: min(44rem, calc(100vw - 2rem)); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.search-dialog::backdrop { background: rgba(18, 12, 22, .78); backdrop-filter: blur(6px); }
.search-dialog[open] { animation: dlg-in .26s var(--ease) backwards; }
.search-dialog[open]::backdrop { animation: dlg-fade .2s ease-out backwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(-.75rem) scale(.98); } }
@keyframes dlg-fade { from { opacity: 0; } }
.search--big { padding: .35rem .35rem .35rem 1.1rem; gap: .6rem; border-radius: .9rem; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .45); }
.search--big > .ic { color: var(--gold); flex: none; }
.search--big input { font-size: 1.125rem; padding: .9rem 0; }
.search--big button[type="submit"] { width: auto; height: 3rem; padding: 0 1.25rem; background: var(--accent); color: var(--ground); font-weight: 600; border-radius: .65rem; }
.search--big button[type="submit"]:hover { background: var(--accent-hi); color: var(--ground); }
.search--big button .ic { color: var(--ground); }
.search--inline { margin: .25rem 0 1.5rem; max-width: 40rem; box-shadow: none; }
.dlg-close { position: absolute; right: 0; top: -3rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; color: var(--text); cursor: pointer; border-radius: var(--r-ctl); transition: color .2s, transform .28s var(--ease); }
.dlg-close:hover { color: var(--accent); transform: rotate(90deg); }
@media (max-width: 640px) {
  .search-dialog { margin-top: 5rem; }
  .search--big { padding-left: .9rem; }
  .dlg-go { padding: 0 .9rem !important; }
}

/* ---------- header: info line and the client's banner, alone and centred ----------
   .hd is display:contents, so its children are body grid items (desktop) or body blocks (mobile). Search, cart and
   language sit at the right end of .topbar; on mobile .topbar is the sticky bar and also holds the menu button. */
.hd { display: contents; }
.hd-info { grid-area: info; display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.75rem; margin: 0; padding: .75rem var(--pad) 0; font-size: .875rem; color: var(--muted); text-align: center; }
.hd-info a { color: var(--text); text-decoration: none; font-weight: 500; transition: color .2s; }
.hd-info a:hover { color: var(--accent); }
.hd-logo { grid-area: head; justify-self: center; display: block; width: min(56rem, 56vw); margin: 1.5rem auto 1.75rem; }
.ki-solo-bar { padding: 0 var(--pad); }
.ki-solo-bar .topbar { position: static; }
.hd-logo img { width: 100%; height: auto; }
.hd-btn { position: relative; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: var(--r-ctl); color: var(--text); text-decoration: none; }
.hd-btn:hover, .hd-btn:focus-visible { color: var(--accent); }

/* ---------- tablet & mobile ---------- */
@media (max-width: 1200px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Laptops (1201–1419px): six shelf tiles of ~135–155px are too narrow for the name and the count side by side. */
@media (min-width: 1201px) and (max-width: 1419.98px) {
  .shelf-item { grid-template-columns: minmax(0, 1fr); row-gap: .15rem; }
  .shelf-item .shelf-img { margin-bottom: .45rem; }
}
@media (max-width: 960px) {
  .ki-shell { grid-template-columns: 1fr; }
  .rail, .ki-shell .rail { position: static; height: auto; overflow: visible; padding: 1rem var(--pad) .25rem; gap: .9rem; }
  .rail { padding-bottom: .25rem; }
  .disclosure > summary { pointer-events: auto; cursor: pointer; font: 600 1rem var(--sans); color: var(--text); padding: .55rem 0; }
  .disclosure > summary .ic { display: block; }
  .disclosure[open] > summary .ic { transform: rotate(180deg); }
  .disclosure[open] > summary { margin-bottom: .25rem; }
  .tree, .filter-form { padding-bottom: .75rem; }
  .state { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .pdp-img { max-width: 26rem; margin-inline: auto; }
  .thumbs { justify-content: center; }
  .info { grid-template-columns: 1fr; gap: .5rem; }
  .info h2 { margin-top: 1.25rem; }
  .checkout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .confirm, .contact { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-side { position: static; }
}
@media (max-width: 640px) {
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .shelf-item { scroll-snap-align: start; grid-template-columns: 1fr; row-gap: .15rem; }
  .shelf-item .shelf-img { margin-bottom: .45rem; }
  .shelf-name { font-size: .9375rem; }
  .cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .cards--row .card { scroll-snap-align: start; }
  .card--list { grid-template-columns: 4rem minmax(0, 1fr); column-gap: .9rem; row-gap: .1rem; padding-block: .55rem; }
  .card--list .card-img { grid-row: span 2; align-self: start; }
  .card--list .card-act .btn-add, .card--list .card-act .btn-choose { padding-block: .2rem; }
  .card--list .card-body { grid-template-columns: 1fr; }
  .card--list .card-price { grid-column: 1; grid-row: auto; }
  .card--list .card-act { grid-column: 2; text-align: left; min-width: 0; }
  .cmp-head, .opt { grid-template-columns: 3.75rem minmax(1.5rem, 1fr) 4.75rem 5.25rem; gap: .6rem; padding-inline: .6rem; }
  .cmp--nounit .cmp-head, .cmp--nounit .opt { grid-template-columns: 4.5rem minmax(1.5rem, 1fr) 5rem; }
  .fields { grid-template-columns: 1fr; }
  .locker { margin-left: 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table tr { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .25rem .9rem; padding: .9rem 0; }
  .cart-table td { display: block; padding: 0; }
  .c-img { grid-row: span 3; width: auto; }
  .c-name { grid-column: 2 / 4; }
  .c-price { grid-column: 2; font-size: .875rem; }
  .c-qty { grid-column: 2; }
  .c-total { grid-column: 3; grid-row: 2; }
  .c-rm { grid-column: 3; grid-row: 3; justify-self: end; }
  .cart-go .add { width: 100%; }
  .ft { grid-template-columns: 1fr; }
  .back span, .topbar-tools .search-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back, .topbar-tools .search-open { justify-content: center; width: 2.75rem; padding: 0; }
  .toast { flex-wrap: wrap; left: 1rem; right: 1rem; transform: none; animation-name: toast-in-m; }
  @keyframes toast-in-m { from { transform: translateY(1rem); opacity: 0; } }
}
/* ---------- mobile shell (≤960px): sticky top bar, rail as an off-canvas drawer ---------- */
.hd-menu, .drawer-head, .scrim, .btn-filters, .buybar, .co-mini { display: none; }
@media (max-width: 960px) {
  .ki-shell { display: block; }
  .hd-info { padding-top: .6rem; gap: 0 1rem; font-size: .8125rem; }
  .hd-logo { width: calc(100% - 2 * var(--pad)); max-width: 34rem; margin: .9rem auto 1rem; }
  .hd-menu { display: grid; margin-left: -.6rem; }
  .page { min-height: calc(100svh - 3.6rem); }
  .topbar { z-index: 40; min-height: 3.6rem; gap: .5rem; padding-block: .35rem; padding-top: calc(.35rem + env(safe-area-inset-top, 0px)); margin-bottom: .5rem; box-shadow: 0 1px 0 rgba(161, 126, 67, .35); }
  .topbar-path { gap: .25rem .5rem; }
  .topbar-tools { gap: .25rem .6rem; }
  .crumb li:not(:last-child) { display: none; }
  .crumb li:last-child::before { content: none; }
  input, select, textarea, .search input, .range input, .locker-filter { font-size: 1rem; }
  .search--big input { font-size: 1.0625rem; }

  /* With JS the rail becomes a drawer; without JS it stays inline under the bar (#rail link jumps to it). */
  html.js .ki-shell .rail { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(22rem, 88vw); height: 100dvh; overflow-y: auto; padding: 0 1.25rem; gap: 1.25rem; background: var(--ground); box-shadow: 1rem 0 3rem rgba(0, 0, 0, .5); transform: translateX(-102%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s linear .32s; }
  html.js .ki-shell .rail.is-open { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
  html.js .ki-shell .drawer-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; margin: 0 -1.25rem; padding: .5rem .75rem .5rem 1.25rem; padding-top: calc(.5rem + env(safe-area-inset-top, 0px)); background: var(--ground); box-shadow: 0 1px 0 rgba(161, 126, 67, .35); font: 500 1.125rem var(--display); }
  .drawer-close { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border: 0; background: transparent; color: var(--text); border-radius: var(--r-ctl); cursor: pointer; }
  .drawer-close:hover { color: var(--accent); }
  html.js .ki-shell .rail .disclosure > summary { pointer-events: none; font: 500 .8125rem/1 var(--sans); color: var(--gold-text); padding: .25rem 0 .5rem; }
  html.js .ki-shell .rail .disclosure > summary .ic { display: none; }
  html.js .ki-shell .rail .tree a { padding: .6rem 0; }
  html.js .ki-shell .rail .tree ul a { padding: .45rem 0; }
  html.js .ki-shell .rail .check { padding: .45rem 0; }
  html.js .ki-shell #rail .filter-form .filter-actions .btn { display: inline-flex; flex: 1; justify-content: center; padding-block: .8rem; background: var(--accent); }
  html.js .ki-shell #rail .filter-actions { position: sticky; bottom: 3.6rem; z-index: 4; margin: 0 -1.25rem; padding: .6rem 1.25rem; background: var(--ground); }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(18, 12, 22, .7); animation: dlg-fade .2s ease-out backwards; }
  html.menu-open { overflow: hidden; }

  /* Shop toolbar: one row — Filtrid · sort · per page · view */
  html.js .btn-filters { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: var(--text); color: var(--ground); font-weight: 600; font-size: .9375rem; padding: .6rem .9rem; border-radius: var(--r-ctl); cursor: pointer; }
  .btn-filters .dot-count { margin: 0 0 0 .15rem; }
  .bar { gap: .5rem 1rem; margin-bottom: 1.25rem; }
  .bar-form { gap: .25rem 1rem; }
  .select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shop-head { margin-bottom: .75rem; }

  /* Product: sticky add-to-cart once the main button scrolls away */
  .buybar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--ground); box-shadow: 0 -1px 0 rgba(161, 126, 67, .45), 0 -.75rem 2rem rgba(0, 0, 0, .35); animation: buybar-in .25s var(--ease) backwards; }
  @keyframes buybar-in { from { transform: translateY(100%); } }
  .buybar-info { display: grid; line-height: 1.2; }
  .buybar-info b { font: 700 1.25rem var(--display); font-variant-numeric: tabular-nums; }
  .buybar-info small { color: var(--muted); font-size: .8125rem; }
  .buybar .add { padding: .8rem 1.2rem; }
  body.has-buybar .toast { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  body.has-buybar .ft { padding-bottom: 5.5rem; }

  /* Cart and checkout */
  .cart-foot { margin-top: .5rem; }
  .totals { margin-left: auto; }
  .co-mini { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: -.25rem 0 1.25rem; font-size: .9375rem; color: var(--muted); }
  .co-mini b { color: var(--text); font-variant-numeric: tabular-nums; }
  .co-mini a { color: var(--accent); font-weight: 600; }
  .co-block > legend { font-size: 1.25rem; margin-bottom: .6rem; }
  .choice { padding: .7rem .25rem; }
}
/* ---------- touch targets: every control at least 44px on touch widths (checklist §5) ---------- */
@media (max-width: 960px) {
  .hd-menu, .back { flex: none; }
  .skip { min-height: 2.75rem; }
  .pop-head a { padding-block: .65rem; }
  .ft ul, .toc { gap: 0; }
  .ft ul a, .toc a { padding-block: .7rem; }
  .views a { width: 2.75rem; height: 2.75rem; }
  /* Single text links in rows: a taller hit area that doesn't move the layout. */
  .c-name a, .co-mini a, .facts dd a, .related h2 a { padding-block: .7rem; margin-block: -.7rem; }
  .back, .topbar-tools .search-open, .lang-menu > summary, .link-back, .btn-add, .btn-choose, .btn-filters, .select select { min-height: 2.75rem; }
  .topbar-tools .cart-link { justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
  .lang-menu li a { padding-block: .7rem; }
  .select select { min-width: 2.75rem; }
  .pager a { min-width: 2.75rem; height: 2.75rem; }
  .qty input { width: 2.75rem; min-height: 2.75rem; }
  .c-qty input { min-height: 2.75rem; }
  .c-rm button { width: 2.75rem; height: 2.75rem; }
  .footer-credit { padding-block: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================================
   Platform parts (not in the demo, drawn in its language)
   ===================================================================================== */
main > .cms-block { display: block; }
.ki-preview { padding: 0 var(--pad); }
.lede { color: var(--muted); max-width: 40rem; margin-bottom: 1.5rem; }
.ki-pre { white-space: pre-line; }
.ki-narrow { max-width: 40rem; display: grid; gap: 1.25rem; }
.ki-after { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.ki-text .legal-body { max-width: 44rem; }
.desc ul, .legal-body ul, .legal-body ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body h3 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; }
.legal-body a, .desc a { color: var(--accent); }
.price-label, .card-price-label { display: block; font: 500 .75rem var(--sans); color: var(--muted); }

/* the add-to-cart buttons, while the request runs and once done */
.btn-add[disabled], .add[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-add.is-added, .add.is-added { color: var(--gold-text); }
.add.is-added { background: var(--accent-hi); color: var(--ground); }
.cart-link b.bump { animation: ki-bump .45s var(--ease); }
@keyframes ki-bump { 40% { transform: scale(1.35); } }

/* checkout: errors, customer type, address and company lookup, lockers, payment, coupon */
.err--box { border-radius: var(--r-ctl); background: rgba(255, 155, 138, .12); color: var(--text); padding: .9rem 1.1rem; margin-bottom: 1.5rem; }
.err--box p { font-weight: 600; color: var(--danger); margin-bottom: .35rem; }
.err--box ul { margin: 0; padding-left: 1.1rem; }
.err--box a { color: var(--text); }
.co-mini:empty { display: none; }
.custtype { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .25rem; }
.business { display: grid; gap: .75rem; }
.business[hidden], #addressSection[hidden], #paymentSection[hidden] { display: none; }
.co-country { max-width: 18rem; }
.ki-ac { position: relative; }
.ki-ac > label { font-size: .875rem; color: var(--muted); }
.ki-ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 1.4rem); margin: 0; padding: .3rem; list-style: none; background: var(--field); color: var(--field-text); border-radius: .75rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .45); max-height: 18rem; overflow-y: auto; }
.ki-ac-list li { display: grid; padding: .5rem .65rem; border-radius: .5rem; cursor: pointer; }
.ki-ac-list li.is-active, .ki-ac-list li:hover { background: var(--accent); }
.ki-ac-sub { font-size: .8125rem; color: var(--field-ph); }
.ki-ac-hint { font-size: .8125rem; color: var(--muted); }
.choice-logo { display: inline-block; height: 1.25rem; width: auto; margin-right: .5rem; vertical-align: -.25rem; border-radius: .2rem; background: #fff; }
.choice .locker { margin: .8rem 0 .2rem 2rem; }
.ki-pickup { position: relative; display: grid; gap: .4rem; }
.ki-pickup-input { width: 100%; border: 0; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: .75rem .85rem; font-size: 1rem; }
.ki-pickup-input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.ki-pickup.is-chosen .ki-pickup-input { font-weight: 600; }
.ki-pickup-panel { position: absolute; z-index: 20; left: 0; right: 0; top: 3.2rem; max-height: 20rem; overflow-y: auto; background: var(--field); color: var(--field-text); border-radius: .75rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .45); padding: .3rem; }
.ki-pickup-group { font-size: .75rem; font-weight: 700; letter-spacing: .03em; color: var(--field-ph); padding: .55rem .65rem .2rem; }
.ki-pickup-opt { display: grid; padding: .45rem .65rem; border-radius: .5rem; cursor: pointer; font-size: .9375rem; }
.ki-pickup-opt small { color: var(--field-ph); font-size: .8125rem; }
.ki-pickup-opt.is-active, .ki-pickup-opt:hover { background: var(--accent); }
.ki-pickup-opt.is-selected { font-weight: 700; }
.ki-pickup-empty { padding: .6rem .65rem; color: var(--field-ph); }
.ki-pickup-count { font-size: .8125rem; color: var(--muted); }
.banks .bank { border: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .55rem 1rem; border-radius: var(--r-ctl); background: var(--field); color: var(--field-text); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .2s var(--ease); }
.banks .bank img { max-height: 1.6rem; width: auto; }
.banks .bank.is-on, .banks .bank:hover { background: var(--accent); }
.choice .banks { margin: .8rem 0 .2rem 2rem; }
.step-pay { display: grid; gap: 1.25rem; justify-items: start; }
.step-pay h2 { font-size: 1.375rem; }
.pay-group { color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.coupon { display: grid; gap: .35rem; }
.coupon-row { display: flex; gap: .5rem; }
.coupon-row input { flex: 1; min-width: 0; border: 0; background: var(--field); color: var(--field-text); border-radius: var(--r-ctl); padding: .6rem .8rem; }
.coupon-row input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.coupon-msg { font-size: .875rem; color: var(--gold-text); }
.coupon-msg.is-error { color: var(--danger); }
.coupon-msg:empty { display: none; }
.giftcard:empty { display: none; }
.co-block .check { font-size: .9375rem; align-items: flex-start; }
.co-block .check .box { margin-top: .15rem; }
.co-block .check a { color: var(--accent); }
.co-block .note a { color: var(--accent); }
[aria-invalid="true"] + .box { box-shadow: 0 0 0 3px var(--danger) !important; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { box-shadow: 0 0 0 3px var(--danger); }
.ki-form { display: grid; gap: 1.25rem; justify-items: start; }
.ki-form .fields { width: 100%; }

/* cookie banner */
.ki-cc { position: fixed; z-index: 70; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: 26rem; display: grid; gap: .9rem; padding: 1rem 1.1rem; background: var(--text); color: var(--ground); border-radius: .9rem; box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .45); font-size: .875rem; }
.ki-cc a { color: #6B2E47; font-weight: 600; }
.ki-cc-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.ki-cc .btn { background: var(--ground); color: var(--text); }
.ki-cc .btn:hover { background: #6B2E47; }
.ki-cc .btn--ghost { background: transparent; color: var(--ground); box-shadow: inset 0 0 0 2px var(--mark); }
.ki-cc .btn--ghost:hover { background: transparent; color: #6B2E47; }
@media (max-width: 640px) { .ki-cc { left: .75rem; right: .75rem; max-width: none; } }

/* the language list of the platform's switcher, if a page draws it */
.cms-lang-switch__panel { color: var(--field-text); }

/* editor canvas: notes on content the shop fills in itself */
.ki-ed-auto { display: flex; align-items: center; gap: .5rem; margin: .75rem 0 0; padding: .55rem .8rem; border-radius: var(--r-ctl); background: rgba(235, 163, 189, .12); color: var(--accent); font-size: .8125rem; }
.cms-edit-mode .ki-ed-auto, .ki-ed-auto { pointer-events: none; }

/* hidden means hidden, whatever display a component sets (cookie banner, payment step, business fields) */
[hidden] { display: none !important; }
#summaryItems { display: grid; gap: 1.25rem; }
