/* Hallmark · shape: a fashion house's shop, the garment first and the boutique behind it · genre: editorial · theme: custom (canon, seed 7bcfb1de3817e310) · job: buy · imagery: the catalogue's own photographs on one warm ground, the shop front, Sophie's own photos · signature: the walk in through the shop's doors · faces: Manrope (Latin, Cyrillic), Noto Sans Hebrew, Readex Pro (Arabic), Bodoni Moda for the wordmark only · motion: opacity only, 0.3s · v2.0.0
 * axes: light/sans/warm · surface: absolute white · posture: restrained · contrast: pass (ink on white 17.9:1, muted 6.9:1) · five languages, two directions */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the garment photographs still sit on the supplier's own grounds until the uniform warm ground is applied */
/* Hallmark · waive 7b · --color-paper #ffffff and --color-accent-ink #ffffff · the fashion houses this brief follows show garments on pure white; the warm ground is kept for the photographs and the footer */
/* Hallmark · answered F-type · body 18px, every name and price 16px or larger, for readers up to 80 */

/* ---------- fonts ---------- */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/static/fonts/bodoni-moda-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Hebrew"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/noto-sans-hebrew-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/readex-pro-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  --color-paper: #ffffff;
  --color-paper-2: #f3f0eb; /* the one ground every garment photograph sits on */
  --color-paper-3: #e8e3db;
  --color-ink: #151413;
  --color-ink-2: #3b3835;
  --color-muted: #5c5752;
  --color-rule: #e2ddd5;
  --color-rule-ink: #151413;
  --color-accent: #151413; /* buttons are ink */
  --color-accent-2: #0a0908;
  --color-accent-ink: #ffffff;
  --color-wine: #5a1622; /* the shop's sign: wordmark and sale prices only */
  --color-error: #a0111d;
  --color-success: #1d5a37;
  --color-focus: #151413;
  --color-scrim: rgb(21 20 19 / 0.42);
  --color-mark-bg: #fff1a8;
  --color-hc-ink: #0a0908; /* the high-contrast choice in the accessibility panel */
  --color-hc-wine: #4a0f19;

  --font-latin: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans Hebrew", var(--font-latin);
  --font-display: var(--font-body);
  --font-mark: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-outlier: var(--font-mark);
  --weight-body: 400;
  --display-weight: 400;
  --tracking-display: 0;

  --text-xs: 0.9375rem;   /* 15px, legal small print only */
  --text-sm: 1rem;        /* 16px */
  --text-md: 1.125rem;    /* 18px, body */
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-lead: 1.25rem;
  --text-title: 1.375rem;
  --text-section: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --text-display: clamp(2.25rem, 1.5rem + 2.8vw, 4rem);
  --text-display-s: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --text-wordmark: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);

  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --container: 1360px;
  --measure: 62ch;
  --gutter: 40px;
  --gap-columns: 24px;
  --section-gap-s: 72px;
  --section-gap: 112px;
  --section-gap-l: 144px;
  --masthead-h: 64px;

  --rule-hair: 1px;
  --rule-ink: 1px;
  --radius-card: 0;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(21 20 19 / 0.06), 0 8px 24px rgb(21 20 19 / 0.08);

  --dur-micro: 120ms;
  --dur-short: 200ms;
  --dur-long: 300ms;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 30;
  --z-sticky: 40;
  --z-sticky-nav: 50;
  --z-fab: 60;
  --z-modal: 80;
  --z-toast: 90;
  --z-tooltip: 95;
}

:root:lang(en), :root:lang(es), :root:lang(ru) { --font-body: var(--font-latin); --tracking-display: -0.01em; }
:root:lang(ar) { --font-body: "Readex Pro", var(--font-latin); --weight-body: 350; --display-weight: 350; }

@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 56px; --section-gap: 80px; --section-gap-l: 104px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 48px; --section-gap: 64px; --section-gap-l: 80px; --gap-columns: 16px; --masthead-h: 60px; } }

/* ---------- the visitor's own accessibility choices (set from the panel, kept in the browser) ---------- */

:root[data-a11y-size="2"] { font-size: 112.5%; }
:root[data-a11y-size="3"] { font-size: 125%; }
:root[data-a11y-contrast] {
  --color-ink-2: var(--color-hc-ink);
  --color-muted: var(--color-hc-ink);
  --color-ink: var(--color-hc-ink);
  --color-rule: var(--color-hc-ink);
  --color-paper-2: var(--color-paper);
  --color-paper-3: var(--color-paper);
  --color-wine: var(--color-hc-wine);
}
:root[data-a11y-contrast] img { filter: contrast(1.08); }
:root[data-a11y-links] a:not(.btn):not(.fab):not(.wordmark):not(.foot__mark) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; background: var(--color-mark-bg); color: var(--color-hc-ink); }
:root[data-a11y-font] { --font-body: Arial, "Helvetica Neue", "Noto Sans Hebrew", sans-serif; --weight-body: 400; --display-weight: 400; }
:root[data-a11y-font] body { letter-spacing: 0.02em; word-spacing: 0.08em; line-height: 1.75; }
:root[data-a11y-still] *, :root[data-a11y-still] *::before, :root[data-a11y-still] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--masthead-h) + var(--space-lg)); scrollbar-color: var(--color-muted) var(--color-paper); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-weight: var(--weight-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--color-paper-3); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
main:focus { outline: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.15; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class], .foot ul, nav ul { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
.lead { max-width: 52ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.price--sale, .price__now--sale { color: var(--color-wine); }
.price__was { color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.skip { position: fixed; inset-inline-start: var(--space-md); top: var(--space-md); z-index: var(--z-toast); padding: var(--space-sm) var(--space-lg); background: var(--color-ink); color: var(--color-accent-ink); text-decoration: none; opacity: 0; pointer-events: none; }
.skip:focus-visible { opacity: 1; pointer-events: auto; }

/* ---------- controls ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-accent); border-radius: 0; background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn:active { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { border-color: var(--color-rule); background: var(--color-rule); color: var(--color-muted); cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.btn--solid { }
.btn--line, .btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--line:hover, .btn--ghost:hover { background: var(--color-paper-2); border-color: var(--color-ink); }
.btn--line:active, .btn--ghost:active { background: var(--color-paper-3); }
.btn--line:disabled { background: transparent; border-color: var(--color-rule); color: var(--color-muted); }
.btn--block { display: flex; width: 100%; }
.btn--wide { min-width: min(20rem, 100%); }
.btn--buy { min-height: 56px; font-size: var(--text-md); }
.btn-quiet { display: inline-flex; align-items: center; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: 500 var(--text-md)/1.2 var(--font-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.btn-quiet:hover { color: var(--color-ink-2); text-decoration-thickness: 2px; }
.btn-quiet:active { color: var(--color-muted); }
.btn-quiet--danger { color: var(--color-error); }

.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-thickness: 2px; }
.link:active { color: var(--color-ink-2); }

/* ---------- forms (checkout and Sophie's own screen) ---------- */

.form { display: grid; gap: var(--space-xl); min-width: 0; }
.form fieldset { display: grid; gap: var(--space-lg); min-width: 0; margin: 0; padding: 0; border: 0; }
.form legend { float: inline-start; width: 100%; padding: 0 0 var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-ink); font: var(--display-weight) var(--text-xl)/1.25 var(--font-display); }
.form legend + * { clear: both; }
.field { display: grid; gap: var(--space-xs); }
.field label { font-weight: 500; }
.field__opt { font-weight: var(--weight-body); color: var(--color-muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-ink-2); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font-size: max(1rem, 16px); line-height: 1.4; transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input[dir="ltr"] { text-align: end; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-ink); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.field input[type="file"] { padding: var(--space-sm); }
.field__hint { max-width: 56ch; font-size: var(--text-sm); color: var(--color-muted); }
.field__error, .form__error { font-weight: 500; color: var(--color-error); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--color-error); outline: 1px solid var(--color-error); outline-offset: -2px; }
.form__summary { display: grid; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); border: 2px solid var(--color-error); }
.form__summary p { font-weight: 500; }
.form__summary ul { display: grid; gap: var(--space-2xs); padding-inline-start: var(--space-lg); }
.form__summary a { display: inline-block; padding-block: var(--space-2xs); }
.choices { display: grid; gap: var(--space-sm); }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: start; padding: var(--space-md); border: var(--rule-hair) solid var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.choice:hover { background: var(--color-paper-2); }
.choice:has(input:checked) { outline: 2px solid var(--color-ink); outline-offset: -2px; background: var(--color-paper-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.choice input, .check input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--color-ink); }
.choice__more { font-size: var(--text-sm); color: var(--color-ink-2); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-md); align-items: start; }
.check label { line-height: 1.5; }
.check .field__error { grid-column: 1 / -1; }
.form__privacy { max-width: 62ch; font-size: var(--text-sm); line-height: 1.65; color: var(--color-ink-2); }
.form__after { font-size: var(--text-sm); color: var(--color-ink-2); }
.form__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-md); padding-top: var(--space-md); border-top: var(--rule-ink) solid var(--color-rule-ink); font-size: var(--text-lg); }
.form > .btn { width: 100%; min-height: 56px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-md); }

/* ---------- masthead ---------- */

.announce { margin: 0; padding: var(--space-xs) var(--gutter); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.masthead { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.masthead__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-md); max-width: var(--container); min-height: var(--masthead-h); margin-inline: auto; padding-inline: var(--gutter); }
.masthead__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-xs); }
.masthead__btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-width: 48px; min-height: 48px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.masthead__btn::-webkit-details-marker { display: none; }
.masthead__btn:hover { color: var(--color-ink-2); }
.masthead__btn:hover .masthead__word { text-decoration: underline; text-underline-offset: 0.3em; }
.masthead__btn:active { color: var(--color-muted); }
.masthead__count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: 0.35rem; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-accent-ink); font-size: 0.875rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--space-xs); color: var(--color-wine); font: 500 var(--text-wordmark)/1 var(--font-mark); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--color-ink); }

/* the menu drawer: a native disclosure, so it opens without JavaScript; the dimmed page behind it closes it */
.menu > summary { list-style: none; }
.menu__panel { position: fixed; inset-block: var(--masthead-h) 0; inset-inline-start: 0; z-index: var(--z-modal); display: grid; align-content: start; gap: var(--space-xl); width: min(26rem, 100%); padding: var(--space-lg) var(--gutter) var(--space-3xl); overflow-y: auto; overscroll-behavior: contain; background: var(--color-paper); border-inline-end: var(--rule-hair) solid var(--color-rule); }
.menu[open] > summary::after { content: ""; position: fixed; inset: var(--masthead-h) 0 0 0; z-index: calc(var(--z-modal) - 1); background: var(--color-scrim); cursor: default; }
.menu[open] .menu__panel { animation: fade-in var(--dur-long) var(--ease-out); }
.menu__main a { display: flex; align-items: center; min-height: 56px; border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xl); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.menu__main a:hover { color: var(--color-ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.menu__more a { display: flex; align-items: center; min-height: 48px; font-size: var(--text-md); text-decoration: none; }
.menu__more a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.menu__label { margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.menu__search { display: grid; gap: var(--space-xs); }
.menu__search label { font-size: var(--text-sm); color: var(--color-ink-2); }
.menu__search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.menu__search input { min-height: 52px; padding-inline: var(--space-sm); font: inherit; font-size: var(--text-md); color: var(--color-ink); background: var(--color-paper); border: var(--rule-hair) solid var(--color-ink); border-inline-end: 0; border-radius: 0; }
.menu__search input:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.menu__search .btn { min-height: 52px; }
.menu__lang ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.menu__lang a, .langs__list a, .foot nav ul a[hreflang] { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.menu__lang a[aria-current], .langs__list a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; font-weight: 600; }

.langs { position: relative; }
.langs > summary { list-style: none; }
.langs__list { position: absolute; top: calc(100% + var(--space-xs)); inset-inline-end: 0; z-index: var(--z-dropdown); display: grid; min-width: 11rem; padding: var(--space-xs) var(--space-md); background: var(--color-paper); border: var(--rule-hair) solid var(--color-ink); }
.langs__list a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
@media (max-width: 30rem) { .langs { display: none; } .masthead__btn .masthead__word { display: none; } .menu > .masthead__btn .masthead__word { display: inline; } }

/* the row of garment kinds under the masthead on the shop's pages */
.kinds-row { border-top: var(--rule-hair) solid var(--color-rule); }
.kinds-row ul { display: flex; gap: var(--space-lg); max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.kinds-row ul::-webkit-scrollbar { display: none; }
.kinds-row a { display: inline-flex; align-items: center; min-height: 48px; font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.kinds-row a:hover { color: var(--color-ink); border-bottom-color: var(--color-rule); }
.kinds-row a[aria-current] { color: var(--color-ink); border-bottom-color: var(--color-ink); font-weight: 600; }

/* ---------- footer ---------- */

.foot { margin-top: var(--section-gap); background: var(--color-paper-2); color: var(--color-ink); }
.foot__in { display: grid; gap: var(--space-2xl); padding-block: var(--space-3xl) var(--space-xl); }
.foot__mark { justify-self: start; color: var(--color-wine); font: 500 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--font-mark); letter-spacing: 0.04em; text-decoration: none; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: var(--space-xl) var(--gap-columns); }
.foot__head { margin-bottom: var(--space-sm); font: 600 var(--text-sm)/1.4 var(--font-body); letter-spacing: 0; }
.foot ul a, .foot address a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot ul a:hover, .foot address a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot address p { padding-block: var(--space-2xs); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm) var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- the floating buttons: accessibility at the start corner, the bag at the end corner ---------- */

.fabs { position: fixed; inset-inline: 0; bottom: calc(var(--space-md) + var(--fab-lift, 0px) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-fab); display: flex; justify-content: space-between; padding-inline: var(--space-md); pointer-events: none; }
.fabs > * { pointer-events: auto; }
.fab { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.fab:hover { background: var(--color-paper-2); }
.fab:active { background: var(--color-paper-3); }
.fab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.fab--bag { order: 1; background: var(--color-ink); color: var(--color-accent-ink); }
.fab--bag:hover { background: var(--color-accent-2); }
.fab--bag:active { background: var(--color-ink-2); }
.fab--empty { background: var(--color-paper); color: var(--color-ink); }
.fab--empty:hover { background: var(--color-paper-2); }
.fab--empty:active { background: var(--color-paper-3); }
.fab--a11y { order: 2; }
/* on phones both buttons keep to the foot of the screen, the bag on one side and the accessibility button on the other, at the 48px minimum */
@media (max-width: 40rem) {
  .fab { width: 48px; height: 48px; }
  .fab--a11y svg { width: 22px; height: 22px; }
}
.fab__count { position: absolute; top: -4px; inset-inline-end: -4px; display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: 0.3rem; border: 2px solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: 0.875rem; font-weight: 600; line-height: 1; }
body:has(.buybar) { --fab-lift: 84px; }
@media (min-width: 60rem) { body:has(.buybar) { --fab-lift: 0px; } }
/* on a phone's product page the bar at the foot already sells and the bag sits in the header with its count, so the floating bag steps aside and the photos stay clear */
@media (max-width: 59.99rem) {
  body:has(.buybar) .fab--bag { display: none; }
  body:has(.buybar) .fab--a11y { margin-inline-start: auto; }
}

/* ---------- sheets: the bag and the accessibility panel ---------- */

.sheet { position: fixed; inset: 0; inset-inline-start: auto; width: min(28rem, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); }
.sheet[open] { display: flex; flex-direction: column; animation: fade-in var(--dur-long) var(--ease-out); }
.sheet--a11y { inset-inline-start: 0; inset-inline-end: auto; }
.sheet::backdrop { background: var(--color-scrim); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--masthead-h); padding: var(--space-xs) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.sheet__title { font-size: var(--text-xl); }
.sheet__close { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-inline-end: calc(-1 * var(--space-xs)); border: 0; background: none; color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.sheet__close:hover { background: var(--color-paper-2); }
.sheet__close:active { background: var(--color-paper-3); }
.sheet__foot { display: grid; gap: var(--space-md); margin-top: auto; padding: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.sheet__foot--split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }

.minibag { flex: 1; overflow-y: auto; padding: var(--space-xs) var(--space-lg); }
.minibag__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-md); align-items: start; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.minibag__photo { display: block; aspect-ratio: 3 / 4; background: var(--color-paper-2); }
.minibag__photo img { width: 100%; height: 100%; object-fit: cover; }
.minibag__text { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.minibag__name { font-size: var(--text-md); color: var(--color-ink); text-decoration: none; }
.minibag__name:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.minibag__price { font-size: var(--text-md); }
.minibag__total { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-lg); }

.steps { margin: 0; padding: var(--space-lg); border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps legend { padding: 0; margin-bottom: var(--space-sm); font-weight: 600; }
.steps__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.steps__opt { position: relative; display: grid; place-items: center; min-height: 56px; border: var(--rule-hair) solid var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.steps__opt:hover { background: var(--color-paper-2); }
.steps__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.steps__opt:has(input:checked) { outline: 2px solid var(--color-ink); outline-offset: -2px; background: var(--color-paper-2); }
.steps__opt:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.steps__opt--1 { font-size: 1.05rem; }
.steps__opt--2 { font-size: 1.35rem; }
.steps__opt--3 { font-size: 1.7rem; }

.switches { padding: var(--space-xs) var(--space-lg); }
.switch { position: relative; display: flex; align-items: center; gap: var(--space-md); min-height: 60px; border-bottom: var(--rule-hair) solid var(--color-rule); cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: relative; flex: none; width: 52px; height: 32px; border: var(--rule-hair) solid var(--color-ink-2); border-radius: var(--radius-pill); background: var(--color-paper-3); transition: background-color var(--dur-short) var(--ease-out); }
.switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--color-ink); transition: transform var(--dur-short) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--color-ink); border-color: var(--color-ink); }
.switch input:checked + .switch__track::after { background: var(--color-paper); transform: translateX(20px); }
:root[dir="rtl"] .switch input:checked + .switch__track::after { transform: translateX(-20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.switch:hover .switch__track { border-color: var(--color-ink); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .fabs, .foot, .kinds-row { display: none; }
}
