/* Healthy Shoes. One stylesheet, no framework. Logical properties throughout, so Hebrew (dir=rtl) mirrors. */

/* ─── Tokens ─────────────────────────────────────────────────────────────────────────────────────────────── */
/* Colours: the OrthoHouse palette (design/), shared with orthohouse.com.cy. Ramps first (the same in both
   modes), then the roles the rest of this file uses, light here and dark below. The navy is the store's own. */
:root {
  --navy-50: #f5f8fb; --navy-100: #ebf2f9; --navy-200: #dce8f4; --navy-300: #c0d3e8; --navy-400: #99b4d3;
  --navy-500: #7390b6; --navy-600: #506f98; --navy-700: #35527b; --navy-800: #1f3a5f; --navy-900: #152a47;
  --navy-950: #0c1c33; --navy-975: #071223; --navy-990: #040b17;
  --blue-300: #a0bdfc; --blue-500: #4d75d3; --blue-600: #3355ac;
  --air-200: #c8e3ff; --air-300: #9cccff; --air-500: #488fdb;
  --green-300: #7bdca6; --green-500: #16a669; --green-600: #0b784a;
  --amber-300: #fec766; --amber-500: #eba002; --amber-600: #965a05;
  --red-300: #fb998c; --red-600: #bc2823;
  --kybun-300: #ff9fa0; --kybun-400: #f17074; --kybun-500: #dc3d4a; --kybun-600: #ba1b35; --kybun-700: #96092b;

  /* The brand: the hero, the partner strip, the navy sections and the menu (the same in both modes), the footer. */
  --navy: var(--navy-900);
  --navy-2: var(--navy-800);
  --navy-deep: var(--navy-950);
  --hero: radial-gradient(120% 95% at 28% 38%, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  /* Healthy Shoes' two accents. Air, on navy: the air in the sole. kybun red (kybun's own, #96092b), on white:
     kybun's name, section labels, where you are, the bag, sales. Never red on navy, never blue on red. */
  --air: var(--air-300);
  --red: var(--kybun-700);
  --red-fill: var(--kybun-600);
  /* Status: text colours (AA on every background they're used on), and dots. The sale badge is white on red in both. */
  --ok: var(--green-600);
  --ok-dot: var(--green-500);
  --wait: var(--amber-600);
  --wait-dot: var(--amber-500);
  --sale: var(--red);
  --sale-bg: var(--red-fill);
  --danger: var(--red-600);

  --bg: #ffffff;
  --bg-2: var(--navy-50);
  --tile: var(--navy-100);
  --ink: #101f32;
  --ink-2: #445265;
  --ink-3: #5e6a7a;
  --line: rgb(21 42 71 / 0.1);
  --line-2: rgb(21 42 71 / 0.2);
  --accent: var(--navy-900);
  --on-accent: #ffffff;
  --link: var(--blue-600);
  --focus: var(--blue-500);
  --glass: rgb(255 255 255 / 0.8);
  --shadow: 0 1px 2px rgb(21 42 71 / 0.06), 0 12px 40px -8px rgb(21 42 71 / 0.2);
  /* Product cards: a white frame with a hairline, resting; it lifts under the pointer. */
  --card: #ffffff;
  --card-line: rgb(21 42 71 / 0.09);
  --card-line-2: rgb(21 42 71 / 0.14);
  --card-shadow: 0 1px 2px rgb(21 42 71 / 0.05), 0 6px 18px -10px rgb(21 42 71 / 0.16);
  --card-shadow-up: 0 2px 4px rgb(21 42 71 / 0.05), 0 22px 44px -16px rgb(21 42 71 / 0.28);
  /* Behind product photos: studio light, as on the old site; a touch darker behind white shoes so they stand out. */
  --studio: radial-gradient(ellipse 85% 78% at 50% 56%, #ffffff 0%, var(--navy-50) 45%, var(--navy-100) 100%);
  /* Behind white shoes: the navy's hue at a third of its colour, so a white shoe doesn't read as blue. */
  --studio-light: radial-gradient(ellipse 85% 78% at 50% 56%, #f4f7fa 0%, #e2e8f1 48%, #c5d1df 100%);
  --studio-flat: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4.5vw, 56px);
  /* Safe areas: the Dynamic Island and the rounded corners (on the side a phone is turned to, and on both of the
     iPhone Duo's screens), the home indicator. Every edge of the page pads by at least these. Physical sides, as iOS
     gives them; --pad-start/--pad-end are the same in reading order, so Hebrew mirrors. */
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-r: env(safe-area-inset-right, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-l: env(safe-area-inset-left, 0px);
  --pad-l: max(var(--gutter), var(--sa-l));
  --pad-r: max(var(--gutter), var(--sa-r));
  --pad-start: var(--pad-l);
  --pad-end: var(--pad-r);
  --sa-start: var(--sa-l);
  --sa-end: var(--sa-r);
  --max: 1400px;
  --bar-h: 64px;
  /* Where sticky things start: under the header, which itself starts under the status bar where there is one. */
  --bar-top: calc(var(--bar-h) + var(--sa-t));
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;

  color-scheme: light;
}
:root[dir="rtl"] { --pad-start: var(--pad-r); --pad-end: var(--pad-l); --sa-start: var(--sa-r); --sa-end: var(--sa-l); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy-975);
    --bg-2: var(--navy-950);
    --tile: var(--navy-200);
    --ink: #ebf1f8;
    --ink-2: #b9c6d4;
    --ink-3: #91a0b1;
    --line: rgb(238 243 249 / 0.12);
    --line-2: rgb(238 243 249 / 0.24);
    --accent: var(--navy-100);
    --on-accent: var(--navy-950);
    --link: var(--blue-300);
    --focus: var(--blue-300);
    --ok: var(--green-300);
    --wait: var(--amber-300);
    --red: var(--kybun-400);
    --danger: var(--red-300);
    --navy-deep: var(--navy-990);
    --hero: radial-gradient(120% 95% at 28% 38%, var(--navy-900) 0%, var(--navy-950) 55%, var(--navy-975) 100%);
    --glass: rgb(7 18 35 / 0.78);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 48px -8px rgb(0 0 0 / 0.6);
    --card: var(--navy-900);
    --card-line: rgb(238 243 249 / 0.09);
    --card-line-2: rgb(238 243 249 / 0.16);
    --card-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    --card-shadow-up: 0 2px 4px rgb(0 0 0 / 0.3), 0 22px 48px -16px rgb(0 0 0 / 0.7);
    --studio: radial-gradient(ellipse 80% 72% at 50% 56%, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
    --studio-light: radial-gradient(ellipse 80% 72% at 50% 56%, var(--navy-700) 0%, var(--navy-800) 48%, var(--navy-900) 100%);
    --studio-flat: var(--navy-100);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--navy-975);
  --bg-2: var(--navy-950);
  --tile: var(--navy-200);
  --ink: #ebf1f8;
  --ink-2: #b9c6d4;
  --ink-3: #91a0b1;
  --line: rgb(238 243 249 / 0.12);
  --line-2: rgb(238 243 249 / 0.24);
  --accent: var(--navy-100);
  --on-accent: var(--navy-950);
  --link: var(--blue-300);
  --focus: var(--blue-300);
  --ok: var(--green-300);
  --wait: var(--amber-300);
  --red: var(--kybun-400);
  --danger: var(--red-300);
  --navy-deep: var(--navy-990);
  --hero: radial-gradient(120% 95% at 28% 38%, var(--navy-900) 0%, var(--navy-950) 55%, var(--navy-975) 100%);
  --glass: rgb(7 18 35 / 0.78);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 48px -8px rgb(0 0 0 / 0.6);
  --card: var(--navy-900);
  --card-line: rgb(238 243 249 / 0.09);
  --card-line-2: rgb(238 243 249 / 0.16);
  --card-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  --card-shadow-up: 0 2px 4px rgb(0 0 0 / 0.3), 0 22px 48px -16px rgb(0 0 0 / 0.7);
  --studio: radial-gradient(ellipse 80% 72% at 50% 56%, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
  --studio-light: radial-gradient(ellipse 80% 72% at 50% 56%, var(--navy-700) 0%, var(--navy-800) 48%, var(--navy-900) 100%);
  --studio-flat: var(--navy-100);
  color-scheme: dark;
}

/* ─── Base ───────────────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-top) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
dialog:focus, dialog:focus-visible { outline: none; }
.sec-navy :focus-visible, .foot :focus-visible, .menu :focus-visible, .hero :focus-visible { outline-color: #fff; }
::selection { background: var(--navy); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-start) var(--pad-end); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }

.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 17px; height: 17px; }
.i-xs { width: 14px; height: 14px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-block-end: 22px; }
.display, .display-lg, .display-xl, .h2, .h3, .hero-title, .cta-title, .stat {
  font-family: var(--font-display);
  text-wrap: balance;
}
.display { font-size: clamp(32px, 5vw, 60px); font-weight: 750; line-height: 1.06; letter-spacing: -0.032em; max-width: 17em; }
.display-lg { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.display-xl { font-size: clamp(48px, 8.5vw, 112px); font-weight: 800; line-height: 0.92; letter-spacing: -0.05em; }
.h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-3); }
.u { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 3px; transition: text-decoration-color 0.2s; }
.u:hover { text-decoration-color: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 15px; background: var(--accent); color: var(--on-accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, var(--ink-3)); }
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: rgb(255 255 255 / 0.9); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7); }
.btn-ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn .i-sm { transition: transform 0.3s var(--ease); }
/* Hover effects only where there's a pointer that hovers: on a phone a tap leaves :hover on, and a moved or scaled
   element would carry into the next page's transition. */
@media (hover: hover) {
  .btn:hover .i-sm { transform: translateX(3px); }
  [dir="rtl"] .btn:hover .flip-rtl { transform: scaleX(-1) translateX(3px); }
}
.link-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link-btn:hover { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: box-shadow 0.2s, background-color 0.2s, color 0.2s;
}
.pill:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }

/* ─── Partner strip and header ───────────────────────────────────────────────────────────────────────────── */
.strip { background: var(--navy-2); color: #fff; font-size: 13px; }
.strip-in { display: flex; align-items: center; justify-content: center; min-height: 36px; gap: 16px; position: relative; }
.strip-msg { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.strip-msg span { display: inline-flex; align-items: center; gap: 0.32em; }
.strip-msg b { font-weight: 700; }
.strip-kybun { height: 14px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.strip-oh { position: absolute; inset-inline-end: var(--pad-end); display: inline-flex; align-items: center; gap: 4px; opacity: 0.8; font-weight: 500; transition: opacity 0.2s; }
.strip-oh:hover { opacity: 1; }
@media (max-width: 899px) { .strip-oh { display: none; } }
@media (max-width: 380px) { .strip { font-size: 12px; } }

.bar {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--sa-t);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--line);
  view-transition-name: site-bar;
}
/* On the home page, until the navy scene has scrolled past (scene.js then sets .off-navy): navy glass, white text. */
.bar, .bar .brand, .bar .tool, .bar .nav a { transition: background-color 0.35s, color 0.35s, box-shadow 0.35s; }
[data-page="home"]:not(.off-navy) .bar { --glass: rgb(21 42 71 / 0.88); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08); }
[data-page="home"]:not(.off-navy) .bar :is(.brand, .tool) { color: #fff; }
[data-page="home"]:not(.off-navy) .bar .nav a { color: rgb(255 255 255 / 0.72); }
[data-page="home"]:not(.off-navy) .bar .nav a:hover { color: #fff; background: rgb(255 255 255 / 0.1); }
[data-page="home"]:not(.off-navy) .bar .tool:hover { background: rgb(255 255 255 / 0.1); }
[data-page="home"]:not(.off-navy) .bag-count { box-shadow: 0 0 0 2px var(--navy-900); }
.bar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); justify-self: start; }
:root[data-theme="dark"] .brand { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: #fff; } }
.brand-word { height: 27px; width: auto; aspect-ratio: 12722 / 2120; }
.brand:hover .brand-word { opacity: 0.85; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.tools { display: flex; align-items: center; gap: 2px; justify-self: end; }
.tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; border-radius: 999px; color: var(--ink); transition: background-color 0.2s; }
.tool:hover { background: var(--line); }
.tool-text { padding: 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.bag-count {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red-fill); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.bag-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.pop {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50; min-width: 190px; padding: 6px;
  background: var(--bg); border-radius: 16px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  animation: pop-in 0.25s var(--ease);
}
.pop a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.pop a span { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.pop a:hover { background: var(--line); }
.pop a[aria-current] { font-weight: 600; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.mob { display: none; }
@media (max-width: 959px) {
  .bar-in { grid-template-columns: 1fr auto; }
  .nav, .desk { display: none; }
  .mob { display: inline-flex; }
  .brand-word { height: 24px; }
}

/* ─── Sheets: menu, search, filters ──────────────────────────────────────────────────────────────────────── */
dialog { padding: 0; border: 0; color: inherit; max-width: none; max-height: none; }
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; }
.sheet::backdrop { background: rgb(4 11 23 / 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet, .sheet::backdrop { transition: opacity 0.3s var(--ease), display 0.3s allow-discrete, overlay 0.3s allow-discrete; opacity: 0; }
.sheet[open], .sheet[open]::backdrop { opacity: 1; }
@starting-style { .sheet[open], .sheet[open]::backdrop { opacity: 0; } }
html:has(dialog[open]) { overflow: hidden; }

.menu { background: var(--navy); color: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.menu:not([open]) { display: none; }
/* The close button lands where the menu button was: under the partner strip, in the header's row. */
.menu-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: calc(var(--bar-h) + 36px + var(--sa-t)); padding-top: calc(36px + var(--sa-t)); }
.brand-inv { color: #fff !important; }
.menu .tool { color: #fff; }
.menu .tool:hover { background: rgb(255 255 255 / 0.1); }
.menu-nav { display: flex; flex-direction: column; padding-block: 24px 40px; }
.menu-nav a {
  font-family: var(--font-display); font-size: clamp(36px, min(12vw, 9.5svh), 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08;
  padding-block: 4px; transition: opacity 0.2s;
}
.menu[open] .menu-nav a { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 50ms + 60ms); }
.menu-nav a:nth-child(2) { margin-inline-start: 0.3em; }
.menu-nav a:nth-child(3) { margin-inline-start: 0.6em; }
.menu-nav a:active { opacity: 0.6; }
.menu-foot { margin-top: auto; padding-block: 24px max(28px, var(--sa-b)); display: grid; gap: 6px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.menu-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.menu-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); font-size: 15px; }
.menu-langs a[aria-current] { background: #fff; color: var(--navy); font-weight: 600; }
.menu-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 16px; opacity: 0.85; justify-self: start; }
/* Wide and short (the iPhone Duo open, a phone on its side): the sections on one half, the rest on the other. */
@media (orientation: landscape) and (max-height: 680px) and (min-width: 600px) {
  .menu[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .menu-top { grid-column: 1 / -1; }
  .menu-nav { padding-block: 8px 32px; padding-inline-end: 24px; max-width: none; }
  .menu-nav a { font-size: clamp(36px, min(7vw, 12svh), 64px); }
  .menu-foot { margin: 0; align-self: end; border-top: 0; padding-block-start: 8px; max-width: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.search { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.search:not([open]) { display: none; }
.search-top { background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); position: sticky; top: 0; z-index: 1; padding-top: var(--sa-t); }
.search[open] .search-top { animation: drop 0.4s var(--ease); }
@keyframes drop { from { transform: translateY(-100%); } }
.search-row { display: flex; align-items: center; gap: 16px; height: 76px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding-inline: 16px; border-radius: 999px; background: var(--bg-2); }
.search-field .i { color: var(--ink-3); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 400 17px var(--font); outline: none; }
.search-field input::placeholder { color: var(--ink-3); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-results { flex: 1; background: var(--bg); padding-block: 24px max(48px, calc(var(--sa-b) + 24px)); }
.search-results:empty { flex: 0; padding: 0; }
.search-results .grid { gap: 10px; }
.search-results .card-title { font-size: 14px; }
.search-msg { color: var(--ink-2); padding-block: 16px; }

/* ─── Home: the scene ──────────────────────────────────────────────────────────────────────────────────── */
/* The first screen is the classic hero: the white Rolle tilted, "walk on air" stepped beside it. With scene.js
   (and motion allowed) it becomes a scroll scene: the screen holds while the shoe steps down onto a floor, its sole
   turns to an X-ray of air cells, squashes, rolls heel to toe and springs back (.scene.live). Without it, the hero
   and the three points below, laid out as a page. */
/* The navy with a soft glow of the store's two navies behind the shoe: on the stage when it scrolls (so the glow
   stays put), on the whole section otherwise. */
.scene { position: relative; background: var(--hero); color: #fff; }
.scene.live { background: var(--navy); }
.scene.live .scene-stage { background: var(--hero); }
.scene-stage {
  display: grid; align-items: center; gap: 24px 0; padding: 48px var(--pad-r) 72px var(--pad-l);
  min-height: clamp(560px, calc(100svh - var(--bar-top) - 36px), 920px);
  max-width: var(--max); margin-inline: auto;
  grid-template-columns: 1fr; grid-template-areas: "shoe" "title" "copy";
}
.scene-shoe { grid-area: shoe; justify-self: center; width: min(78vw, 560px); }
.scene-rock { width: 100%; }
.scene-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 36px 36px rgb(0 0 0 / 0.28)); }
.scene:not(.live) .scene-svg { transform: rotate(45deg); }
.scene:not(.live) .scene-shoe { animation: shoe-in 1.2s var(--ease) both; }
[dir="rtl"] .scene-svg { scale: -1 1; }
@keyframes shoe-in { from { opacity: 0; translate: 0 -40px; rotate: -8deg; } }
/* The title sizes itself to its box and its longest line (--hero-em, in ems, from home.mjs): "воздуху" needs about
   twice the room of "air". So the box has a width of its own (a size container can't take its content's). */
.scene-title { grid-area: title; width: 100%; container-type: inline-size; }
.scene-title > * { width: fit-content; margin-inline: auto; }
.scene-copy { grid-area: copy; margin-top: 56px; }
.scene-floor, .scene-ring, .scene-shadow, .scene-progress { display: none; }
.scene-h { font-family: var(--font-display); font-size: clamp(30px, 4vw, 52px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
.scene-steps { margin-top: 28px; display: grid; gap: 28px; }
.scene-n { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--air); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.scene-steps h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.scene-steps p { margin-top: 10px; max-width: 30em; font-size: 17px; line-height: 1.6; color: rgb(255 255 255 / 0.68); }
.scene-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 18px !important; color: rgb(255 255 255 / 0.6) !important; font-size: 15px !important; }
.scene-stat b { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--air); line-height: 1; }
/* Side by side from 960px, and from 600px when the screen is wider than tall (the iPhone Duo open: the shoe on one
   half, the words on the other; either screen on its side). scene.js uses the same query (WIDE). */
@media (min-width: 960px), (min-width: 600px) and (orientation: landscape) {
  .scene-stage { grid-template-columns: 1.05fr 1fr; grid-template-areas: "shoe title" "copy copy"; }
  .scene-shoe { width: min(46vw, 680px); justify-self: end; margin-inline-end: -2vw; }
  .scene-title { padding-inline-start: 2vw; }
  .scene-title > * { margin-inline: 0; }
  .scene-steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* The scroll scene: everything placed by scene.js, inside a stage that stays on screen while the section scrolls. */
.scene.live { height: 300vh; }
/* The stage's side padding is only read by scene.js (its children are placed absolutely): the safe areas, which the
   shoe keeps clear of. */
.scene.live .scene-stage {
  position: sticky; top: var(--bar-top); display: block; height: calc(100svh - var(--bar-top)); min-height: 0;
  max-width: none; padding: 0 var(--sa-r) 0 var(--sa-l); overflow: hidden;
}
/* The shoe and what's under it are placed in physical pixels by scene.js; the words by logical insets (RTL). */
.scene.live :is(.scene-shoe, .scene-floor, .scene-ring, .scene-shadow) { position: absolute; top: 0; left: 0; }
.scene.live :is(.scene-title, .scene-copy) { position: absolute; }
.scene.live .scene-shoe { width: var(--shoe-w); margin: 0; will-change: transform; }
.scene.live .scene-rock { transform-origin: 50% calc(var(--contact) * 100%); will-change: transform; }
.scene.live .scene-svg { filter: none; animation: shoe-drop 1.3s var(--ease) both; }
@keyframes shoe-drop { from { opacity: 0; translate: 0 -48px; } }
.scene.live .scene-floor {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.22) 18%, rgb(255 255 255 / 0.22) 82%, transparent);
}
.scene.live .scene-shadow {
  display: block; width: var(--shoe-w); height: 34px; margin-top: -17px;
  background: radial-gradient(closest-side, rgb(4 11 23 / 0.75), rgb(4 11 23 / 0.35) 55%, transparent);
  will-change: transform, opacity;
}
.scene.live .scene-ring {
  display: block; width: var(--shoe-w); height: 40px; margin-top: -20px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgb(156 204 255 / 0.55), 0 0 24px rgb(156 204 255 / 0.25); opacity: 0;
}
/* Narrow: the shoe above, the words along the bottom. */
.scene.live .scene-title { bottom: 9%; inset-inline: var(--pad-start) var(--pad-end); width: auto; }
.scene.live .scene-title > * { margin-inline: 0; }
.scene.live .scene-copy { margin: 0; bottom: 6%; inset-inline: var(--pad-start) var(--pad-end); }
.scene.live .scene-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
.scene.live .scene-steps li { grid-area: 1 / 1; will-change: opacity, transform; }
.scene.live .scene-steps p { font-size: 15px; }
.scene.live .scene-progress { display: flex; gap: 6px; margin-top: 22px; }
/* Wide: the shoe on the start side, the words beside it, centred. */
@media (min-width: 960px), (min-width: 600px) and (orientation: landscape) {
  .scene.live { height: 320vh; }
  /* The title shows only at the very top of the page, where the partner strip (36px) still pushes the stage down:
     centred in what's on screen then. */
  .scene.live .scene-title { bottom: auto; top: calc(50% - 18px); inset-inline: 54% auto; width: min(44%, calc(46% - var(--pad-end))); translate: 0 -50%; }
  .scene.live .scene-copy { bottom: auto; top: 50%; inset-inline: 62% auto; width: min(32%, 440px, calc(38% - var(--pad-end))); translate: 0 -50%; }
  .scene.live .scene-steps { margin-top: 32px; }
  .scene.live .scene-steps p { font-size: 17px; }
  .scene.live .scene-progress { margin-top: 36px; }
}
/* Wide but short (a phone on its side): the steps' text a little smaller, so heading, step and bars fit. */
@media (orientation: landscape) and (max-height: 520px) {
  .scene.live .scene-copy { inset-inline-start: 52%; width: calc(48% - var(--pad-end)); }
  .scene.live .kicker { display: none; }
  .scene.live .scene-h { font-size: 22px; }
  .scene.live .scene-steps h3 { font-size: 19px; }
  .scene.live .scene-stat { margin-top: 8px !important; }
  .scene.live .scene-stat b { font-size: 26px; }
  .scene.live .hero-cta { margin-top: 14px; font-size: 15px; }
  .scene.live .scene-steps { margin-top: 14px; }
  .scene.live .scene-steps p { font-size: 15px; margin-top: 6px; }
  .scene.live .scene-progress { margin-top: 16px; }
  }
.scene-progress i { width: 36px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.18); overflow: hidden; position: relative; }
.scene-progress i::after { content: ""; position: absolute; inset: 0; background: var(--air); transform-origin: left; transform: scaleX(var(--f, 0)); }
[dir="rtl"] .scene-progress i::after { transform-origin: right; }
.scene-cells circle { fill: rgb(255 255 255 / 0.18); stroke: rgb(255 255 255 / 0.95); stroke-width: 2.6; }
.scene-crease { fill: none; stroke: var(--air-200); stroke-width: 3; }
@media (max-width: 959px) {
  .scene-h { font-size: 28px; }
  .scene-stat b { font-size: 32px; }
}
/* Big, but never wider than its box for its longest line (--hero-em), nor taller than the screen allows. */
.hero-title { font-size: min(clamp(76px, min(14vw, 22svh), 168px), 100cqi / var(--hero-em, 2.7)); font-weight: 800; line-height: 0.86; letter-spacing: -0.06em; }
.hero-title span { display: block; animation: rise 0.9s var(--ease) both; transition: translate 0.4s var(--ease); }
.hero-title span:nth-child(1) { animation-delay: 0.15s; }
.hero-title span:nth-child(2) { margin-inline-start: 0.42em; animation-delay: 0.25s; }
.hero-title span:nth-child(3) { margin-inline-start: 0.84em; animation-delay: 0.35s; }
@media (hover: hover) { .hero-title span:hover { translate: 6px 0; } }
.hero-cta { display: inline-block; max-width: 24em; margin-top: 36px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.01em; animation: rise 0.9s var(--ease) 0.5s both; }
.hero-cta .i { display: inline-block; vertical-align: -0.12em; margin-inline-start: 0.4em; transition: translate 0.3s var(--ease); }
.hero-cta:hover .i { translate: 0 3px; }
.scene.live .hero-title { font-size: min(clamp(56px, min(19vw, 15svh), 120px), 100cqi / var(--hero-em, 2.7)); }
.scene.live .hero-cta { margin-top: 22px; }
@media (min-width: 960px), (min-width: 600px) and (orientation: landscape) {
  .scene.live .hero-title { font-size: min(clamp(56px, min(14vw, 22svh), 168px), 100cqi / var(--hero-em, 2.7)); }
  .scene.live .hero-cta { margin-top: 36px; }
}

/* ─── Home: story sections ───────────────────────────────────────────────────────────────────────────────── */
.sec { padding-block: clamp(88px, 12vw, 168px); }
.sec-tight { padding-block: clamp(72px, 9vw, 120px); }
.sec-light { background: var(--bg); color: var(--ink); }
.sec-navy { background: var(--navy); color: #fff; }
/* Kickers: air on navy, kybun red on white. */
.sec-navy .kicker, .scene .kicker { color: var(--air); opacity: 1; }
.sec-light .kicker { color: var(--red); opacity: 1; }
.prose-cols { margin-top: 44px; display: grid; gap: 22px; max-width: 980px; color: var(--ink-2); font-size: 18px; line-height: 1.75; }
@media (min-width: 960px) { .prose-cols { grid-template-columns: 1fr 1fr; gap: 56px; } }
.origin { display: grid; gap: 56px; }
.lede-stack { margin-top: 36px; display: grid; gap: 20px; max-width: 38em; font-size: 18px; line-height: 1.75; color: rgb(255 255 255 / 0.66); }
.portrait { align-self: start; display: grid; gap: 12px; width: 220px; }
.portrait img { width: 100%; height: auto; border-radius: var(--r); background: rgb(255 255 255 / 0.06); }
.portrait figcaption { font-size: 13px; font-weight: 500; opacity: 0.5; }
@media (min-width: 960px) { .origin { grid-template-columns: 1fr auto; gap: 96px; } .portrait { width: 280px; } }
.wide-img { margin-top: clamp(56px, 8vw, 104px); width: 100%; height: auto; border-radius: var(--r-lg); }


.stats { display: grid; gap: 48px; text-align: center; }
.stats > div { display: grid; gap: 10px; }
.stat { font-size: clamp(56px, 8vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.stats span:not(.stat) { font-size: 15px; font-weight: 500; opacity: 0.55; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } .stats > div + div { border-inline-start: 1px solid rgb(255 255 255 / 0.14); } }

.benefits { margin-top: 56px; }
.benefits > div { display: grid; gap: 6px; padding-block: 26px; border-top: 1px solid var(--line); }
.benefits > div:last-child { border-bottom: 1px solid var(--line); }
.benefits dt { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.benefits dd { color: var(--ink-2); font-size: 17px; }
@media (min-width: 960px) { .benefits > div { grid-template-columns: 280px 1fr; gap: 48px; align-items: baseline; padding-block: 30px; } .benefits dt { font-size: 21px; } }

.quote blockquote { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 46px); font-weight: 600; line-height: 1.22; letter-spacing: -0.025em; max-width: 24em; text-wrap: balance; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.quote figcaption span { display: grid; font-size: 14px; color: rgb(255 255 255 / 0.55); }
.quote figcaption b { font-size: 16px; color: #fff; font-weight: 600; }

.sec-swiss { padding-block-start: 0; }
.swiss-img { width: 100%; height: clamp(300px, 42vw, 560px); object-fit: cover; object-position: center 30%; margin-bottom: clamp(56px, 8vw, 104px); }
.swiss { display: grid; gap: 48px; align-items: end; }
.swiss .lede { margin-top: 28px; }
.swiss-marks { display: grid; gap: 18px; }
.swiss-logos { display: flex; align-items: center; gap: 24px; }
.swiss-badge { height: 48px; width: auto; }
.swiss-kybun { height: 28px; width: auto; }
.swiss-certs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; color: var(--ink-3); }
.swiss-certs a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.swiss-certs a:hover { color: var(--ink); }
@media (min-width: 960px) { .swiss { grid-template-columns: 1fr auto; gap: 96px; } .swiss-marks { justify-items: end; } }
:root[data-theme="dark"] .swiss-badge, :root[data-theme="dark"] .swiss-kybun { filter: brightness(0) invert(1); opacity: 0.85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.swiss-badge, .swiss-kybun) { filter: brightness(0) invert(1); opacity: 0.85; } }

.ranges { margin-top: 56px; }
.ranges a { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 20px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / 0.14); }
.ranges li:last-child a { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.ranges-thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; overflow: hidden; }
.ranges-thumb img { width: 84%; height: 84%; object-fit: contain; }
.ranges-name { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 750; letter-spacing: -0.035em; }
.ranges-desc { color: rgb(255 255 255 / 0.5); font-size: 16px; }
.ranges-arrow { opacity: 0.4; transition: transform 0.35s var(--ease), opacity 0.2s; }
@media (hover: hover) {
  .ranges a:hover .ranges-arrow { opacity: 1; transform: translateX(6px); }
  [dir="rtl"] .ranges a:hover .ranges-arrow { transform: scaleX(-1) translateX(6px); }
}
@media (max-width: 759px) { .ranges a { grid-template-columns: auto 1fr auto; } .ranges-desc { display: none; } }
@media (min-width: 960px) { .ranges a { gap: 40px; padding-block: 32px; } .ranges-thumb { width: 84px; height: 84px; } }

.cta { text-align: center; padding-block-start: 0; }
.cta-title { font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; }
.cta-sub { margin: 20px auto 40px; max-width: 26em; font-size: 18px; color: rgb(255 255 255 / 0.6); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Sections and cards ease in as they scroll into view, where the browser can tie animations to scrolling. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .grid .card { animation: reveal-card linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 48px; } }
@keyframes reveal-card { from { opacity: 0.2; translate: 0 32px; } }

/* ─── Collections ────────────────────────────────────────────────────────────────────────────────────────── */
.coll-head { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.coll-sub { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.coll { padding-bottom: clamp(72px, 9vw, 128px); }
.facets {
  position: sticky; top: var(--bar-top); z-index: 30; display: flex; align-items: center; gap: 16px;
  margin-inline: calc(var(--pad-start) * -1) calc(var(--pad-end) * -1); padding-block: 12px; padding-inline: var(--pad-start) var(--pad-end); margin-bottom: 20px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.facets-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; margin-block: -4px; padding-block: 4px; }
.facets-row::-webkit-scrollbar { display: none; }
/* When the pills run past the edge, they fade there, so it's clear the row scrolls (collection.js sets data-more). */
.facets-row[data-more~="end"] { --fade-end: 36px; }
.facets-row[data-more~="start"] { --fade-start: 36px; }
.facets-row[data-more] {
  -webkit-mask-image: linear-gradient(to var(--fade-dir, right), transparent, #000 var(--fade-start, 0px), #000 calc(100% - var(--fade-end, 0px)), transparent);
  mask-image: linear-gradient(to var(--fade-dir, right), transparent, #000 var(--fade-start, 0px), #000 calc(100% - var(--fade-end, 0px)), transparent);
}
[dir="rtl"] .facets-row[data-more] { --fade-dir: left; }
.facets-count { flex: none; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pill .i-sm { transition: rotate 0.3s var(--ease); opacity: 0.6; }
.pill[aria-expanded="true"] .i-sm { rotate: 180deg; }
.pill.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.pill-n { font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; border-radius: 999px; text-align: center; background: var(--bg); color: var(--ink); padding: 0 5px; }
.facets-clear { white-space: nowrap; padding-inline: 8px; }
.facet-pop {
  position: fixed; margin: 0; inset: auto; width: min(380px, calc(100vw - 32px)); padding: 22px 22px 0; overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  opacity: 0; translate: 0 -8px;
  transition: opacity 0.25s var(--ease), translate 0.35s var(--ease), display 0.35s allow-discrete, overlay 0.35s allow-discrete;
}
.facet-pop:popover-open { opacity: 1; translate: 0 0; }
.facet-pop:has(.chips-size) { width: min(460px, calc(100vw - 32px)); }
@starting-style { .facet-pop:popover-open { opacity: 0; translate: 0 -8px; } }
.facet-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-size { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.chip {
  min-height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.chips-size .chip { border-radius: 12px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.facet-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-block: 14px 18px; border-top: 1px solid var(--line); background: var(--bg); }
@media (max-width: 719px) {
  .facet-pop, .facet-pop:has(.chips-size) { inset: auto 0 0 0 !important; width: 100%; max-height: 80dvh !important; border-radius: 26px 26px 0 0; padding: 26px var(--pad-r) 0 var(--pad-l); translate: 0 100%; }
  .facet-foot { padding-bottom: max(18px, var(--sa-b)); }
  .facet-pop:popover-open { translate: 0 0; }
  @starting-style { .facet-pop:popover-open { translate: 0 100%; } }
  .facet-pop::backdrop { background: rgb(4 11 23 / 0.38); }
  .facets-count { display: none; }
}

/* Two to a row on a phone; three from 560px (the iPhone Duo open, either way up; a phone on its side), as on a
   computer. "You may also like" (.grid-4) shows four from 960px and three between. CARD_SIZES (layout.mjs) follows. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 560px) and (max-width: 959px) { .grid-4 > :nth-child(4) { display: none; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { view-transition-class: card; }
/* Each card is a frame: the photo set in a fine mat (--mat around it, the radii concentric), the name and price on the
   mat below, a hairline around the whole. On a computer it lifts a little under the pointer. */
.card-a {
  --mat: 8px; --r-media: var(--r); --r-card: calc(var(--r-media) + var(--mat));
  display: flex; flex-direction: column; height: 100%; padding: var(--mat);
  border-radius: var(--r-card); background: var(--card);
  box-shadow: 0 0 0 1px var(--card-line), var(--card-shadow);
  transition: box-shadow 0.5s var(--ease), translate 0.5s var(--ease);
}
.card-a:focus-visible { border-radius: var(--r-card); outline-offset: 2px; }
@media (hover: hover) {
  .card-a:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--card-line-2), var(--card-shadow-up); }
}
.card-media {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2;
  border-radius: var(--r-media, var(--r)); background: var(--studio); overflow: hidden; isolation: isolate;
}
.pdp-stage.light, .thumb.light { background: var(--studio-light); }
/* White-background JPEGs (a few older photos): blended into a plain light ground, in both themes. */
.card-media:has(.flat), .pdp-stage:has(.flat), .thumb:has(.flat) { background: var(--studio-flat); }
.flat { mix-blend-mode: multiply; }
/* The photo fills its card, as on the old site (the photos are 3:2 and carry their own margin). */
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: scale 0.7s var(--ease);
}
@media (hover: hover) { .card-a:hover .card-media img { scale: 1.045; } }
.card-a:active .card-media img { scale: 0.98; transition-duration: 0.15s; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sale-bg); color: #fff; font-size: 12px; font-weight: 700; }
.none-mark { width: 26%; height: auto; aspect-ratio: 1; color: var(--navy); opacity: 0.14; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 10px 8px; }
.card-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card-meta { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
/* The price sits on the frame's bottom line, so a row of cards lines up even when a name takes two lines. */
.card-price { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card-price:has(s) > span, .pdp-price:has(s) > span { color: var(--sale); }
.card-price s { color: var(--ink-3); font-weight: 400; margin-inline-start: 6px; }
@media (max-width: 959px) {
  /* Cards reach to 8px from the screen's edge, or to the safe area's. */
  .grid { margin-inline: calc(max(8px, var(--sa-start)) - var(--pad-start)) calc(max(8px, var(--sa-end)) - var(--pad-end)); }
  .card-a { --mat: 5px; --r-media: 14px; }
  .card-body { padding: 12px 7px 6px; }
  .card-title { font-size: 15px; }
}
.empty { padding-block: 80px; text-align: center; color: var(--ink-2); }

/* ─── Product page ───────────────────────────────────────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px clamp(72px, 9vw, 128px); }
/* Photo and buying side by side from 720px (600px on its side): on the iPhone Duo open, one on each half of the
   screen. The photo stays while the side with the sizes scrolls, and is never taller than the screen leaves room for.
   Below that, a phone: see "A phone" further down, the exact opposite of this query. */
@media (min-width: 720px), (min-width: 600px) and (orientation: landscape) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding-top: 28px; }
  .pdp-gallery { position: sticky; top: calc(var(--bar-top) + 20px); align-self: start; }
  .pdp-stage { max-height: max(220px, calc(100svh - var(--bar-top) - 150px)); }
}
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 5vw, 88px); padding-top: 40px; } .pdp-gallery { top: calc(var(--bar-top) + 24px); } }
.pdp-stage {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 3%;
  border-radius: var(--r-lg); background: var(--studio); cursor: zoom-in; container-type: size; overflow: hidden; isolation: isolate;
}
/* Multiplied as one layer: the soft and sharp images are the same picture, and blending each would darken it twice. */
.pdp-frame { position: relative; display: block; width: min(100cqw, calc(100cqh * var(--ar, 1.5))); }
.pdp-frame img { width: 100%; height: auto; }
.pdp-hi { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.pdp-hi.on { opacity: 1; }
.pdp-none { display: grid; place-items: center; width: 100%; }
.pdp-none .none-mark { width: 26%; }
.pdp-expand { position: absolute; bottom: 16px; inset-inline-end: 16px; width: 20px; height: 20px; color: var(--navy); opacity: 0; transition: opacity 0.3s; }
@media (hover: hover) { .pdp-stage:hover .pdp-expand { opacity: 0.5; } }
.pdp-dots { display: none; }
@media (min-width: 720px), (min-width: 600px) and (orientation: landscape) { .pdp-more { display: none; } }
/* A phone: the photos edge to edge (to the safe areas), one swipe each, dots under them instead of thumbnails.
   (product.js knows which by the row's overflow.) */
@media not ((min-width: 720px) or ((min-width: 600px) and (orientation: landscape))) {
  .pdp { padding-top: 0; gap: 24px; }
  .pdp-gallery { margin-inline: calc(var(--sa-start) - var(--pad-start)) calc(var(--sa-end) - var(--pad-end)); }
  .pdp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pdp-track::-webkit-scrollbar { display: none; }
  .pdp-track > .pdp-stage { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; border-radius: 0; max-height: 62svh; }
  .pdp-gallery .thumbs { display: none; }
  .pdp-dots { display: flex; justify-content: center; gap: 6px; padding-top: 14px; }
  .pdp-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width 0.35s var(--ease), background-color 0.35s; }
  .pdp-dots i.on { width: 20px; background: var(--ink); }
}
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { display: grid; place-items: center; width: 76px; aspect-ratio: 1; flex: none; border-radius: 14px; background: var(--studio); box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow 0.25s var(--ease); }
.thumb img { max-width: 90%; max-height: 90%; width: auto; height: auto; }
.thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
@media (min-width: 960px) { .thumbs { flex-wrap: wrap; overflow: visible; } .thumb { width: 84px; } }

.pdp-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.pdp-title { font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
.pdp-price { margin-top: 16px; font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pdp-price s { color: var(--ink-3); font-size: 17px; margin-inline-start: 8px; }
.pdp-fixed { margin-top: 12px; color: var(--ink-2); }
.pdp-form { margin-top: 32px; display: grid; gap: 28px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0; margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.key { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.key .dot + .dot, .key .dot:nth-of-type(2) { margin-inline-start: 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-now { background: var(--ok-dot); }
.dot-weeks { background: var(--wait-dot); }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.val { position: relative; display: block; cursor: pointer; }
.val input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.val span {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 14px;
  border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.val span::after { content: ""; position: absolute; top: 7px; inset-inline-end: 7px; width: 6px; height: 6px; border-radius: 50%; }
.val[data-state="now"] span::after { background: var(--ok-dot); }
.val[data-state="weeks"] span::after { background: var(--wait-dot); }
.val:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.val:active span { transform: scale(0.96); }
.val input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.val input:checked + span::after { box-shadow: 0 0 0 2px var(--ink); }
.val input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.val input:disabled + span { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); cursor: not-allowed; }
.val:has(input:disabled) { cursor: not-allowed; }
.pdp-note { min-height: 1.5em; margin-top: -12px; text-align: center; font-size: 14px; color: var(--ink-2); }
.pdp-note.err { color: var(--danger); }
/* "Select Size" in the bottom bar scrolls here: the sizes say so for a moment. */
.opt.ask legend > span:first-child { animation: ask 1.1s var(--ease); }
@keyframes ask { 20%, 60% { color: var(--red); translate: 4px 0; } 40%, 80% { translate: -3px 0; } }

/* The bottom bar on a product page: the name, the price (and the size chosen), and the bag button. It slides up
   while the form's own button is out of sight (product.js), above the home indicator and clear of the island. */
.buybar {
  position: fixed; z-index: 35; inset-inline: 0; bottom: 0;
  padding: 10px var(--pad-r) max(10px, var(--sa-b)) var(--pad-l);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 1px 0 var(--line);
  translate: 0 110%; visibility: hidden; transition: translate 0.4s var(--ease), visibility 0s 0.4s;
}
.buybar.on { translate: 0 0; visibility: visible; transition: translate 0.45s var(--ease); }
.buybar-in { display: flex; align-items: center; gap: 14px; max-width: var(--max); margin-inline: auto; }
.buybar-text { flex: 1; min-width: 0; }
.buybar-name { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-size: 14px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.buybar-price s { color: var(--ink-3); margin-inline-start: 4px; }
.buybar .btn { flex: none; min-height: 48px; padding: 0 24px; font-size: 16px; }
/* A computer with room to see the form: no bar. */
@media (min-width: 960px) and (min-height: 760px) { .buybar { display: none; } }

/* The description: Lois's rich layout (oh-pd, written for orthohouse.com.cy), restyled to the site, in both themes. */
.desc { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.desc > :first-child { margin-top: 0; }
.desc p { margin: 0 0 1em; }
.desc a { color: var(--link); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.desc strong { color: var(--ink); font-weight: 600; }
.desc ul:not([class]) { list-style: disc; padding-inline-start: 1.2em; margin: 0 0 1em; }
.desc img { height: auto; border-radius: var(--r-sm); }
.desc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.desc td, .desc th { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.desc td + td { padding-inline-start: 16px; }
.desc .oh-pd + .oh-pd { margin-top: 28px; }
.desc .oh-hero { display: flex; align-items: center; gap: 20px; padding: 20px 22px; margin-bottom: 24px; border-radius: var(--r); background: var(--bg-2); }
.desc .oh-hero__num { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); white-space: nowrap; }
.desc .oh-hero__num span { font-size: 0.42em; font-weight: 700; letter-spacing: 0; }
.desc .oh-hero__text strong { display: block; font-size: 16px; }
.desc .oh-hero__text p { margin: 2px 0 0; font-size: 15px; }
.desc h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 4px; }
.desc h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 1.8em 0 0.8em; }
.desc .oh-sub { font-weight: 500; color: var(--ink-2); margin-bottom: 16px; }
.desc .oh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.desc .oh-tags li { padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.desc .oh-tabs { margin-top: 8px; }
.desc .oh-tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.desc .oh-tabs__nav { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--bg-2); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.desc .oh-tabs__nav label { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.desc .oh-tabs__nav label:hover { color: var(--ink); }
.desc .oh-tab { display: none; animation: fade 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; translate: 0 6px; } }
.desc .oh-tabs > input:nth-of-type(1):checked ~ .oh-tabs__nav label:nth-of-type(1),
.desc .oh-tabs > input:nth-of-type(2):checked ~ .oh-tabs__nav label:nth-of-type(2),
.desc .oh-tabs > input:nth-of-type(3):checked ~ .oh-tabs__nav label:nth-of-type(3),
.desc .oh-tabs > input:nth-of-type(4):checked ~ .oh-tabs__nav label:nth-of-type(4),
.desc .oh-tabs > input:nth-of-type(5):checked ~ .oh-tabs__nav label:nth-of-type(5) { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.desc .oh-tabs > input:nth-of-type(1):checked ~ .oh-tabs__panels .oh-tab--1,
.desc .oh-tabs > input:nth-of-type(2):checked ~ .oh-tabs__panels .oh-tab--2,
.desc .oh-tabs > input:nth-of-type(3):checked ~ .oh-tabs__panels .oh-tab--3,
.desc .oh-tabs > input:nth-of-type(4):checked ~ .oh-tabs__panels .oh-tab--4,
.desc .oh-tabs > input:nth-of-type(5):checked ~ .oh-tabs__panels .oh-tab--5 { display: block; }
.desc .oh-tabs > input:focus-visible ~ .oh-tabs__nav { outline: 2px solid var(--ink); outline-offset: 2px; }
.desc .oh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.desc .oh-card { padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg-2); }
.desc .oh-card strong { display: block; margin-bottom: 4px; }
.desc .oh-card p { margin: 0; font-size: 15px; }
.desc .oh-specs { display: grid; gap: 0 28px; }
@media (min-width: 640px) { .desc .oh-specs { grid-template-columns: 1fr 1fr; } }
.desc .oh-specs td:first-child, .desc .oh-acc td:first-child, .desc .oh-cmp td:first-child { color: var(--ink); font-weight: 600; width: 46%; }
.desc .oh-cmp th { padding: 10px 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.desc .oh-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.desc .oh-vid { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.desc .oh-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.desc .oh-cta { margin-top: 28px; padding: 20px 22px; border-radius: var(--r); background: var(--bg-2); font-size: 15px; }
.desc .oh-cta p { margin: 0; }

.related { padding-bottom: clamp(72px, 9vw, 128px); }
.related .h2 { margin-bottom: 28px; }

.viewer { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: var(--tile); color: var(--navy); }
.viewer:not([open]) { display: none; }
.viewer[open] { display: block; animation: fade 0.35s var(--ease); }
.viewer::backdrop { background: var(--tile); }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide {
  flex: none; width: 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center;
  padding: max(24px, calc(var(--sa-t) + 16px)) max(4vw, var(--sa-r)) calc(max(16px, var(--sa-b)) + 80px) max(4vw, var(--sa-l));
}
.viewer-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.viewer-bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--pad-r) max(16px, var(--sa-b)) var(--pad-l); }
.viewer-count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; }
.viewer-nav { display: flex; gap: 8px; }
.viewer .tool { color: var(--navy); background: rgb(255 255 255 / 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.viewer .tool:hover { background: #fff; }

/* Added-to-bag notice */
.toast {
  position: fixed; z-index: 60; inset-inline-end: var(--pad-end); top: calc(var(--bar-top) + 48px); width: min(380px, calc(100vw - 32px));
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 22px;
  background: var(--bg); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  animation: toast-in 0.5s var(--ease);
}
.toast.out { animation: toast-out 0.3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; translate: 0 -12px; scale: 0.97; } }
@keyframes toast-out { to { opacity: 0; translate: 0 -8px; } }
.toast-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--studio); }
.toast-img img { max-width: 92%; max-height: 92%; width: auto; height: auto; }
.toast-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.toast-name { font-weight: 600; margin-top: 2px; line-height: 1.3; }
.toast-size { font-size: 14px; color: var(--ink-3); }
.toast-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast-actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 719px) {
  .toast { top: auto; bottom: max(16px, var(--sa-b)); inset-inline: max(16px, var(--sa-start)) max(16px, var(--sa-end)); width: auto; }
  /* Above the bottom bar, when it's up. */
  :root:has(.buybar.on) .toast { bottom: calc(max(10px, var(--sa-b)) + 80px); }
}

/* ─── Bag ────────────────────────────────────────────────────────────────────────────────────────────────── */
.cart { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 128px); }
.cart-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 960px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; } .summary { position: sticky; top: calc(var(--bar-top) + 24px); } }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); transition: opacity 0.3s; }
.line:last-child { border-bottom: 1px solid var(--line); }
.line.busy { opacity: 0.5; pointer-events: none; }
.line-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: var(--studio); }
.line-img img { max-width: 92%; max-height: 92%; width: auto; height: auto; }
.line-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.line-size { margin-top: 2px; color: var(--ink-3); font-size: 15px; }
.line-tier { margin-top: 6px; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.line-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.qty { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; }
.qty button:hover { background: var(--line); }
.qty output { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .line { grid-template-columns: 88px 1fr; } .line-price { grid-column: 2; } }
.summary { padding: 28px; border-radius: var(--r-lg); background: var(--bg-2); }
.summary dl { margin: 20px 0 24px; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.summary dd { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.summary .summary-total { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.summary .summary-total dd { font-weight: 700; }
.cart-empty { margin-top: 32px; display: grid; justify-items: start; gap: 24px; font-size: 19px; color: var(--ink-2); }
.cart-loading { margin-top: 32px; color: var(--ink-3); }

/* ─── Find Us ────────────────────────────────────────────────────────────────────────────────────────────── */
.visit-head { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.visit-parent { margin-top: 14px; font-size: 15px; color: var(--ink-3); max-width: 46em; }
.visit { display: grid; gap: 20px; padding-bottom: clamp(72px, 9vw, 128px); }
@media (min-width: 960px) { .visit { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; } }
.visit-map { min-height: 380px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.visit-info { display: grid; gap: 20px; align-content: start; }
.panel { padding: 24px 26px; border-radius: var(--r-lg); background: var(--bg-2); }
.label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.visit-address { margin-top: 12px; font-size: 19px; font-weight: 500; line-height: 1.45; }
.visit-dirs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.visit-dirs .label { width: 100%; margin-bottom: 2px; }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.status.closed { color: var(--ink-2); background: var(--line); }
.status-line { margin-top: 8px; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.hours { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: start; }
.hours td { text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hours tr:last-child :is(th, td) { border-bottom: 0; }
.hours tr.today :is(th, td) { font-weight: 600; color: var(--ink); }
.visit-contact { display: grid; gap: 20px; }
@media (min-width: 600px) { .visit-contact { grid-template-columns: 1fr 1fr; } }
.panel-link { display: grid; gap: 10px; transition: background-color 0.2s, transform 0.3s var(--ease); }
.panel-link:hover { background: color-mix(in srgb, var(--bg-2) 80%, var(--line-2)); }
.panel-link:active { transform: scale(0.98); }
.big { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

/* ─── Account, policies, 404 ─────────────────────────────────────────────────────────────────────────────── */
.account, .policy, .lost { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px); }
.account .lede { margin: 20px 0 32px; }
.account-bar { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 16px; }
.orders { display: grid; gap: 16px; }
.order { padding: 24px; border-radius: var(--r-lg); background: var(--bg-2); }
.order-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.order-head span { color: var(--ink-3); font-weight: 400; }
.order-items { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.order-items img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--tile); }
.order-foot { display: flex; justify-content: space-between; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.policy { max-width: calc(760px + var(--pad-l) + var(--pad-r)); }
.prose { margin-top: 36px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { margin: 2em 0 0.6em; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); }
.lost .lede { margin: 20px 0 36px; }
.lost .cta-actions { justify-content: flex-start; }

/* ─── Footer ─────────────────────────────────────────────────────────────────────────────────────────────── */
.foot { background: var(--navy-deep); color: #fff; font-size: 15px; }
.foot-grid { display: grid; gap: 40px; padding-block: 72px 56px; }
/* The logo and words across the top, the three lists under them; side by side from 960px. */
@media (min-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px 24px; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; } .foot-brand { grid-column: auto; } }
.foot-logo { height: 84px; width: auto; aspect-ratio: 6920 / 3840; color: #fff; }
.foot-brand p { margin-top: 18px; color: rgb(255 255 255 / 0.6); max-width: 30em; line-height: 1.6; }
.foot-brand a.u { color: #fff; }
.foot h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.5); margin-bottom: 16px; }
.foot ul { display: grid; gap: 2px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 36px; color: rgb(255 255 255 / 0.8); transition: color 0.2s; }
.foot ul a:hover { color: #fff; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; }
.foot-contact .i-sm { opacity: 0.6; }
.foot-contact span { color: rgb(255 255 255 / 0.8); }
.foot-base { padding-block: 24px max(28px, var(--sa-b)); border-top: 1px solid rgb(255 255 255 / 0.1); color: rgb(255 255 255 / 0.45); font-size: 13px; }

/* ─── View transitions ───────────────────────────────────────────────────────────────────────────────────── */
/* Page to page, the browser's own: the page fades through, the header stays put, and the product image a visitor
   clicked flies into place on the next page (the names are set by the script in <head>, see layout.mjs). */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: vt-out 0.16s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease) 0.12s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 12px; } }
::view-transition-group(site-bar) { z-index: 3; animation: none; }
::view-transition-old(site-bar) { display: none; }
::view-transition-new(site-bar) { animation: none; }
.vt-hero { view-transition-name: product-hero; }
::view-transition-group(product-hero) { z-index: 2; animation-duration: 0.55s; }
::view-transition-old(product-hero), ::view-transition-new(product-hero) { animation-duration: 0.55s; height: 100%; object-fit: contain; }
/* Filtering a collection: the remaining cards slide to their new places (names set by collection.js). */
::view-transition-group(.card) { animation-duration: 0.45s; }
::view-transition-new(.card):only-child { animation: vt-in 0.35s var(--ease) both; }
::view-transition-old(.card):only-child { animation: vt-out 0.2s ease-in both; }

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