/* Tessel: theme stylesheet (WordPress). Tokens follow DESIGN.md.
   Colours come from Customizer > Colors (Blocksy palette, printed as --theme-palette-color-N);
   fonts from Customizer > Typography (--font-display / --font-text, printed inline). */

/* ---------- Fonts (SIL OFL, self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: var(--theme-palette-color-7, #F4F4F1);
  --surface: var(--theme-palette-color-6, #EAEAE6);
  --line: var(--theme-palette-color-5, #D6D6D0);
  --control: #80858C;
  --ink: var(--theme-palette-color-4, #15181B);
  --ink-2: var(--theme-palette-color-3, #555A61);
  --accent: var(--theme-palette-color-1, #2B45C4);
  --accent-hover: var(--theme-palette-color-2, #22379E);
  --on-accent: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #FFFFFF);
  --input-bg: var(--theme-palette-color-8, #FCFCFB);
  --danger: #B3261E;
  --overlay-shadow: 0 24px 48px -16px rgb(21 24 27 / 0.22);

  --font-display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 0.9rem + 3vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --gutter: clamp(16px, 4vw, 56px);
  --container: 1600px;
  --radius-ui: 4px;

  --bar-h: 36px;
  --header-h: 56px;

  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-exit: 180ms;
  --dur-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --z-header: 100;
  --z-drawer: 210;
}


@media (min-width: 900px) {
  :root { --header-h: 72px; }
}
@media (min-width: 1440px) {
  :root { --fs-lead: 1.25rem; }
}
@media (min-width: 1920px) {
  :root { --container: 1840px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 1000;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-ui);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.icon--lg { width: 24px; height: 24px; }

/* ---------- Promise bar ---------- */
.promise-bar {
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.promise-bar__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--bar-h);
}
.promise-bar__list li { display: flex; align-items: center; gap: var(--s-2); }
.promise-bar__list .icon { width: 18px; height: 18px; }
.promise-bar__extra { display: none !important; }
.promise-bar__long { display: none; }
@media (min-width: 480px) {
  .promise-bar__long { display: inline; }
  .promise-bar__short { display: none; }
}
.promise-bar__link a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}
.promise-bar__link a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .promise-bar__list { justify-content: center; gap: var(--s-8); }
  .promise-bar__extra { display: flex !important; }
  .promise-bar__link { display: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-h);
  gap: var(--s-4);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  justify-self: center;
}
.logo__mark { width: 22px; height: 22px; }
.logo__accent { fill: var(--accent); }
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.main-nav { display: none; }

.header-tools { display: flex; align-items: center; gap: var(--s-1); }
.header-tools__desk { display: none; }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: var(--s-7); }
  .site-header__menu { display: none; }
  .logo { justify-self: start; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: var(--s-6); }
  .main-nav a {
    position: relative;
    display: block;
    padding-block: var(--s-3);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .main-nav a:hover::after,
  .main-nav a:focus-visible::after { transform: scaleX(1); }
  .header-tools__desk { display: block; }
}

/* ---------- Mobile nav (native dialog) ---------- */
.mobile-nav {
  width: min(400px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto 0 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--overlay-shadow);
}
.mobile-nav::backdrop { background: rgb(21 24 27 / 0.45); }
.mobile-nav__inner {
  min-height: 100%;
  padding: var(--s-2) var(--gutter) var(--s-7);
}
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
}
.mobile-nav__list a {
  display: block;
  padding-block: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav__sub {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.mobile-nav__sub a {
  display: block;
  padding-block: var(--s-2);
  color: var(--ink-2);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav[open] { animation: drawer-in var(--dur-base) var(--ease-out); }
  .mobile-nav[open]::backdrop { animation: fade-in var(--dur-base) var(--ease-out); }
}
@keyframes drawer-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--radius-ui);
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.arrow-link .icon { transition: transform var(--dur-fast) var(--ease-out); }
.arrow-link:hover .icon,
.arrow-link:focus-visible .icon { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
}
.hero__media {
  order: -1;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__text {
  padding: var(--s-6) var(--gutter) var(--s-7);
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 19ch;
  text-wrap: balance;
}
.hero__lead {
  margin-top: var(--s-4);
  max-width: 38ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-5);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    min-height: clamp(560px, calc(100dvh - var(--bar-h) - var(--header-h)), 820px);
  }
  .hero__media {
    order: 0;
    aspect-ratio: auto;
  }
  .hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-8) var(--s-8) var(--s-8) var(--gutter);
  }
  .hero__lead { margin-top: var(--s-5); }
  .hero__actions { margin-top: var(--s-6); }
}

/* Left edge of the hero text lines up with the container on very wide screens. */
@media (min-width: 1600px) {
  .hero__text { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
}

/* Hero image settles on load. Opacity never changes, so LCP is not delayed. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__img { animation: settle 1000ms var(--ease-out) both; }
}
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

/* =====================================================================
   Shared components
   ===================================================================== */
body { display: flex; flex-direction: column; min-height: 100dvh; overflow-x: clip; }
main { flex: 1; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.section { padding-block: clamp(64px, 8vw, 128px); }
.section + .section { padding-top: 0; }
.section__title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__intro {
  margin-top: var(--s-4);
  max-width: 60ch;
  color: var(--ink-2);
  font-size: var(--fs-lead);
}
.page-title {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.note {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-left: 2px solid var(--ink);
  background: var(--surface);
  font-size: var(--fs-small);
}

/* Icon button variants */
.icon-btn--line { border: 1px solid var(--control); }
.icon-btn--line:disabled { opacity: 0.4; cursor: default; }
.icon-btn--line[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Buttons */
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--control); }
.btn--ghost:hover { background: var(--surface); }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--sm { min-height: 44px; padding-inline: var(--s-4); font-size: var(--fs-small); }
.btn--lg { min-height: 56px; font-size: 1.0625rem; }
.btn .icon { width: 18px; height: 18px; }
.arrow-link--sm { min-height: 44px; font-size: var(--fs-small); }

/* Breadcrumb */
.breadcrumb { padding-block: var(--s-4); font-size: var(--fs-small); color: var(--ink-2); }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--control); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Header: mega menu ---------- */
.main-nav__mega { display: flex; align-items: center; gap: 2px; }
.main-nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-ui);
  background: none;
  cursor: pointer;
}
.main-nav__toggle .icon { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--overlay-shadow);
}
.mega[hidden] { display: none; }
.mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 260px;
  gap: var(--s-7);
  padding-block: var(--s-6) var(--s-7);
}
.mega__heading { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--s-2); }
.main-nav .mega__col a { padding-block: var(--s-2); font-size: 1rem; }
.main-nav .mega__col a::after { bottom: 4px; }
.mega__feature { display: block; text-decoration: none; font-weight: 500; }
.mega__feature span { display: block; margin-top: var(--s-2); }
.mega__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .mega:not([hidden]) { animation: menu-in var(--dur-base) var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Mega menu lists stack vertically (overrides the inline nav list) */
.main-nav .mega ul { display: block; }

/* Mobile nav groups */
.mobile-nav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group[open] summary .icon { transform: rotate(180deg); }
.mobile-nav__group ul { padding: 0 0 var(--s-3) var(--s-4); }
.mobile-nav__group ul a { display: block; padding-block: var(--s-2); font-size: 1.0625rem; text-decoration: none; }

/* ---------- Product card ---------- */
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
}
.product-card__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.product-card__track::-webkit-scrollbar { display: none; }
.product-card__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.product-card__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}
.product-card__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  box-shadow: 0 0 0 1px rgb(21 24 27 / 0.25);
}
.product-card__dots i.is-active { background: #fff; }
.product-card__body { display: grid; gap: 4px; padding-top: var(--s-3); }
.product-card__badge { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); }
.product-card__title { font-family: var(--font-text); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card__size { font-size: var(--fs-small); color: var(--ink-2); }
.product-card__delivery { display: flex; align-items: center; gap: 6px; font-size: var(--fs-micro); color: var(--accent); font-weight: 500; }
.product-card__delivery .icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .product-card__dots { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
  .product-card:hover .product-card__dots { opacity: 1; }
}

/* Price */
.price { font-variant-numeric: tabular-nums; font-weight: 500; }
.price__now--sale { color: var(--accent); }
.price__was { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.price__omnibus { font-size: var(--fs-micro); color: var(--ink-2); }
.price--lg { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.price__vat { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); }

/* Swatches */
.swatches { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.swatch {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(21 24 27 / 0.18);
}
.swatch--lg { width: 32px; height: 32px; }

/* Rating */
.rating { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.rating__count { color: var(--ink-2); }
.stars { display: inline-flex; gap: 1px; color: var(--ink); }
.star { width: 14px; height: 14px; fill: currentColor; }
.rating--link { text-decoration: none; min-height: 44px; }
.rating--link:hover .rating__count { text-decoration: underline; }

/* Product grid and row */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) clamp(12px, 1.6vw, 24px);
}
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1920px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.row-scroller { position: relative; }
.row-scroller::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, rgb(244 244 241 / 0), var(--paper));
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.row-scroller.is-end::after { opacity: 0; }
.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  padding-bottom: var(--s-4);
}
.product-row > li { scroll-snap-align: start; }
.product-row:focus-visible { outline-offset: -2px; }
@media (min-width: 640px) { .product-row { grid-auto-columns: 44%; } }
@media (min-width: 900px) { .product-row { grid-auto-columns: calc((min(100vw, var(--container)) - 2 * var(--gutter) - 2 * 24px) / 3); } }
@media (min-width: 1440px) { .product-row { grid-auto-columns: calc((min(100vw, var(--container)) - 2 * var(--gutter) - 3 * 24px) / 4); } }
@media (min-width: 1920px) { .product-row { grid-auto-columns: calc((min(100vw, var(--container)) - 2 * var(--gutter) - 4 * 24px) / 5); } }
.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.row-head__tools { display: flex; align-items: center; gap: var(--s-5); }
.row-nav { display: none; gap: var(--s-2); }
@media (min-width: 900px) { .js .row-nav { display: flex; } }

/* ---------- Homepage: categories ---------- */
.cats .section__title, .rooms .section__title, .journal .section__title { margin-bottom: var(--s-6); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile { display: block; text-decoration: none; overflow: hidden; }
.cat-tile__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.cat-tile__label {
  display: block;
  padding: var(--s-3) 0 var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cat-tile:hover .cat-tile__img { transform: scale(1.03); }
}
.cat-tile:hover .cat-tile__label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Rooms mosaic */
.room-grid { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.room-tile a { display: block; text-decoration: none; }
.room-tile__media { display: block; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.room-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.room-tile__label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-top: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
}
.room-tile__label .icon { transition: transform var(--dur-fast) var(--ease-out); }
.room-tile a:hover .room-tile__label .icon, .room-tile a:focus-visible .room-tile__label .icon { transform: translateX(3px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .room-tile a:hover .room-tile__img { transform: scale(1.03); }
}
@media (min-width: 900px) {
  .room-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .room-tile--living { grid-row: span 2; }
  .room-tile--living a { display: flex; flex-direction: column; height: 100%; }
  .room-tile--living .room-tile__media { flex: 1; aspect-ratio: auto; min-height: 480px; }
  .room-tile--office { grid-column: span 2; }
  .room-tile--office .room-tile__media { aspect-ratio: 21 / 9; }
}

/* Shop the look */
.look { display: grid; background: var(--surface); }
.look__media { position: relative; }
.look__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.look__panel { padding: var(--s-7) var(--gutter); }
.look__intro { margin-top: var(--s-3); color: var(--ink-2); max-width: 40ch; }
.look__list { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.look-item {
  display: grid;
  grid-template-columns: 24px 56px 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--radius-ui);
  transition: background-color var(--dur-base) var(--ease-out);
}
.look-item.is-active { background: var(--paper); }
.look-item__num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; }
.look-item__img { width: 56px; height: 56px; object-fit: cover; }
.look-item__text { display: grid; }
.look-item__text a { font-weight: 500; text-decoration: none; }
.look-item__text a:hover { text-decoration: underline; }
.look-item__price { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.look__total { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgb(244 244 241 / 0.45);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.hotspot:hover, .hotspot.is-active { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .hotspot:hover { transform: scale(1.08); } }
@media (min-width: 900px) {
  .look { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .look__img { aspect-ratio: auto; min-height: 640px; }
  .look__panel { display: flex; flex-direction: column; justify-content: center; padding: var(--s-8) var(--s-7); }
}

/* Materials filmstrip */
.filmstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: clamp(12px, 1.6vw, 24px);
  margin-top: var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: var(--s-3);
}
.filmstrip > li { scroll-snap-align: start; }
@media (min-width: 900px) { .filmstrip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.material figure { margin: 0; }
.material__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.material figcaption { padding-top: var(--s-3); }
.material__name { font-size: var(--fs-h3); font-weight: 500; }
.material figcaption p { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-2); max-width: 36ch; }

/* Delivery timeline */
.timeline { margin: var(--s-6) 0 var(--s-5); padding: 0; list-style: none; display: grid; gap: var(--s-6); position: relative; }
.step { position: relative; padding-left: 56px; }
.step__icon { position: absolute; left: 0; top: 0; width: 40px; height: 40px; padding: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; }
.timeline::before { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 40px; width: 1px; background: var(--line); }
.step__title { font-size: var(--fs-h3); font-weight: 500; }
.step p { margin-top: var(--s-2); color: var(--ink-2); max-width: 38ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline::before { left: 40px; right: 40px; top: 19.5px; bottom: auto; width: auto; height: 1px; }
  .step { padding-left: 0; padding-top: 64px; }
}

/* Showroom band */
.showroom-band { position: relative; display: grid; }
.showroom-band__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.showroom-band__card {
  position: relative;
  margin: -48px var(--gutter) 0;
  padding: var(--s-6);
  background: var(--paper);
  box-shadow: var(--overlay-shadow);
  border-radius: var(--radius-ui);
}
.showroom-band__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.showroom-band__card > p { margin-top: var(--s-3); color: var(--ink-2); }
.showroom-band__card > .showroom-band__meta { display: flex; align-items: flex-start; gap: var(--s-2); color: var(--ink); font-size: var(--fs-small); }
.showroom-band__meta .icon { margin-top: 1px; }
.showroom-band__card .btn { margin-top: var(--s-5); }
@media (min-width: 900px) {
  .showroom-band__img { aspect-ratio: auto; height: clamp(560px, 70vh, 760px); }
  .showroom-band__card {
    position: absolute;
    left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    bottom: var(--s-8);
    width: min(420px, 40vw);
    margin: 0;
  }
}

/* Real homes */
.homes__grid { display: grid; gap: var(--s-7); }
.homes__masonry { columns: 2; column-gap: clamp(8px, 1.2vw, 16px); }
.homes__masonry li { break-inside: avoid; margin-bottom: clamp(8px, 1.2vw, 16px); }
.homes__img { width: 100%; height: auto; }
.quote { margin: var(--s-6) 0 0; }
.quote blockquote { margin: var(--s-2) 0 0; }
.quote blockquote p { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.35; max-width: 32ch; }
.quote figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); }
.quote__subs { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-2); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .homes__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .homes__text { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .homes__masonry { columns: 3; }
}

/* Journal */
.journal__grid { display: grid; gap: var(--s-6); }
.story a { display: block; text-decoration: none; }
.story__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story--lead .story__img { aspect-ratio: 3 / 2; }
.story__title { margin-top: var(--s-3); font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; }
.story a:hover .story__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.story p { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-2); max-width: 48ch; }
.story-stack { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) {
  .journal__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .story-stack { grid-template-columns: 1fr; align-content: start; }
  .story-stack .story { display: grid; grid-template-columns: 45% 1fr; grid-template-rows: auto 1fr; column-gap: var(--s-4); align-items: start; }
  .story-stack .story a { display: contents; }
  .story-stack .story__img { grid-row: span 2; }
  .story-stack .story__title { margin-top: 0; }
  .story-stack .story p { grid-column: 2; }
}

/* Newsletter */
.newsletter { background: var(--surface); padding-block: clamp(48px, 6vw, 96px); }
.newsletter__inner { display: grid; gap: var(--s-5); }
.newsletter__title { font-size: var(--fs-h3); font-weight: 600; max-width: 22ch; line-height: 1.2; }
.newsletter__row { display: flex; gap: var(--s-2); }
.newsletter__row .field__input { flex: 1; min-width: 0; }
.newsletter__success { margin-top: var(--s-2); font-weight: 500; }
.newsletter__success:empty { display: none; }
@media (min-width: 900px) {
  .newsletter__inner { grid-template-columns: 1fr minmax(0, 520px); align-items: center; }
  .newsletter__title { font-size: var(--fs-h2); }
}

/* Forms */
.field { display: grid; gap: var(--s-2); }
.field__label { font-size: var(--fs-small); font-weight: 500; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4);
  border: 1px solid var(--control);
  border-radius: var(--radius-ui);
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field__input::placeholder { color: #6B7078; }
.field__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__input--search { padding-left: 44px; }
.field__help { font-size: var(--fs-small); color: var(--ink-2); }
.field__help a { color: var(--ink); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--danger); font-weight: 500; }
.field__error[hidden] { display: none; }
.field__error .icon { width: 16px; height: 16px; }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.select { position: relative; display: inline-flex; align-items: center; }
.select select {
  appearance: none;
  min-height: 44px;
  padding: 0 40px 0 var(--s-4);
  border: 1px solid var(--control);
  border-radius: var(--radius-ui);
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
}
.select .icon { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; }
.select--block, .select--block select { width: 100%; }
.select--block select { min-height: 48px; font-size: 1rem; }

.check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; }
.check input, .radio-card input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }

/* ---------- Drawers (native dialog) ---------- */
.drawer {
  width: min(440px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--overlay-shadow);
}
.drawer::backdrop { background: rgb(21 24 27 / 0.45); }
.drawer__inner { display: flex; flex-direction: column; gap: var(--s-4); min-height: 100%; padding: var(--s-4) var(--s-5) 0; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-size: var(--fs-h3); font-weight: 600; }
.drawer__actions { display: grid; gap: var(--s-2); margin-top: auto; padding-bottom: var(--s-5); }
.drawer__actions--sticky { position: sticky; bottom: 0; grid-template-columns: 1fr 1fr; padding-block: var(--s-4); background: var(--paper); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in-right var(--dur-base) var(--ease-out); }
  .drawer[open]::backdrop { animation: fade-in var(--dur-base) var(--ease-out); }
}
@keyframes drawer-in-right { from { opacity: 0; transform: translateX(8px); } }
.mini-cart__item { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-block: 1px solid var(--line); }
.mini-cart__item img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-cart__item p { font-size: var(--fs-small); color: var(--ink-2); }
.mini-cart__item .mini-cart__name { font-size: 1rem; color: var(--ink); font-weight: 500; }
.mini-cart__sum { display: flex; justify-content: space-between; margin: 0; font-weight: 500; }
.mini-cart__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.mini-cart__note { font-size: var(--fs-small); color: var(--ink-2); }

.filter-group { margin: 0; padding: var(--s-4) 0; border: 0; border-top: 1px solid var(--line); }
.filter-group legend { padding: 0; font-weight: 600; float: left; width: 100%; margin-bottom: var(--s-2); }
.filter-group ul { clear: both; }

/* ---------- Shop page ---------- */
.shop { padding-bottom: clamp(64px, 8vw, 128px); }
.shop__head { padding-block: var(--s-4) var(--s-5); }
.shop__title { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.shop__intro { margin-top: var(--s-3); color: var(--ink-2); max-width: 60ch; }
.shop__search { position: relative; max-width: 480px; }
.shop__search-icon { position: absolute; left: 14px; top: 14px; color: var(--ink-2); }
.shop__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
  padding-block: var(--s-3);
  border-block: 1px solid var(--line);
}
.chip-scroller { position: relative; min-width: 0; flex: 1 1 320px; }
.chip-scroller::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
  background: linear-gradient(90deg, rgb(244 244 241 / 0), var(--paper));
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.chip-scroller.is-end::after { opacity: 0; }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--control);
  border-radius: var(--radius-ui);
  background: transparent;
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop__tools { display: flex; gap: var(--s-2); }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; }
.filter-count[hidden] { display: none; }
.shop__count { margin-block: var(--s-4) var(--s-5); font-size: var(--fs-small); color: var(--ink-2); }
.product-card[hidden] { display: none; }
.empty { padding: var(--s-8) 0; max-width: 48ch; }
.empty[hidden] { display: none; }
.empty__title { font-size: var(--fs-h3); }
.empty p { margin-block: var(--s-2) var(--s-5); color: var(--ink-2); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
.gallery { min-width: 0; margin-inline: calc(var(--gutter) * -1); }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track { height: 75vw; }
.gallery__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; background: var(--surface); }
.gallery__img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: flex; justify-content: center; padding-top: var(--s-2); }
.gallery__dots a { display: grid; place-items: center; width: 32px; height: 32px; }
.gallery__dots a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--control); }
.gallery__dots a.is-active::before { background: var(--ink); }
.dim-figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--surface); }
.dim-figure__stage { position: relative; min-height: 0; padding: 28px 52px 44px 16px; }
.dim-figure__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dim-line { position: absolute; color: var(--ink); font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dim-line--w { left: 16px; right: 52px; bottom: 16px; height: 1px; background: currentColor; }
.dim-line--w::before, .dim-line--w::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.dim-line--w::before { left: 0; }
.dim-line--w::after { right: 0; }
.dim-line--w span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 8px; background: var(--surface); }
.dim-line--h { top: 28px; bottom: 44px; right: 24px; width: 1px; background: currentColor; }
.dim-line--h::before, .dim-line--h::after { content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: currentColor; }
.dim-line--h::before { top: 0; }
.dim-line--h::after { bottom: 0; }
.dim-line--h span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; padding: 0 8px; background: var(--surface); }
.dim-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding: var(--s-3) var(--s-4) var(--s-4); font-size: var(--fs-small); }
.dim-list li { display: grid; }
.dim-list span { color: var(--ink-2); }
.dim-list strong { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.buy { min-width: 0; }
.buy__badge { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s-2); }
.buy__title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; }
.buy__summary { margin-top: var(--s-3); color: var(--ink-2); max-width: 52ch; }
.buy__price { margin-top: var(--s-2); }
.buy__klarna { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-2); }
.buy__klarna:empty { display: none; }
.buy__form { margin-top: var(--s-5); display: grid; gap: var(--s-5); }
.opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt__legend { padding: 0; margin-bottom: var(--s-3); font-weight: 500; }
.opt__note { margin-top: var(--s-2); font-size: var(--fs-micro); color: var(--ink-2); max-width: 52ch; }
.swatch-opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.swatch-opt { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.swatch-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch-opt input:checked + .swatch { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatch-opt input:focus-visible + .swatch { outline: 2px solid var(--accent); outline-offset: 5px; }
.size-opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-opt span { display: grid; place-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--control); border-radius: var(--radius-ui); font-size: var(--fs-small); font-weight: 500; cursor: pointer; }
.size-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy__row { display: flex; gap: var(--s-2); align-items: stretch; }
.buy__row .btn { min-height: 52px; }
.buy__row .icon-btn { width: 52px; height: 52px; flex: none; }
.qty { display: flex; align-items: center; border: 1px solid var(--control); border-radius: var(--radius-ui); flex: none; }
.qty__btn { display: grid; place-items: center; width: 40px; height: 100%; min-height: 44px; border: 0; background: none; cursor: pointer; }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__input { width: 36px; border: 0; background: none; text-align: center; font: inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.delivery-box { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--accent-soft); border-radius: var(--radius-ui); display: grid; gap: var(--s-2); font-size: var(--fs-small); }
.delivery-box p { display: flex; gap: var(--s-2); align-items: flex-start; }
.delivery-box .icon { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.delivery-box__date { font-size: 1rem; color: var(--accent); }
.delivery-box__date strong { color: var(--ink); }
.delivery-box__line:not(:has(.icon)) { padding-left: 26px; }
.buy__showroom { display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-4); font-size: var(--fs-small); }
.buy__showroom .icon { margin-top: 1px; flex: none; }
.accordions { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--dur-base) var(--ease-out); }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc__body { padding-bottom: var(--s-5); display: grid; gap: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); }
.acc__body a { color: var(--ink); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5); color: var(--ink); font-variant-numeric: tabular-nums; }
.spec > li > span:first-child { display: block; color: var(--ink-2); }
.spec--stack { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
  .gallery { margin-inline: 0; }
  .gallery__track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; height: auto; }
  .gallery__slide { height: auto; aspect-ratio: 4 / 3; }
  .gallery__slide--main, .gallery__slide--dim { grid-column: span 2; }
  .gallery__slide--main { aspect-ratio: auto; }
  .gallery__slide--main .gallery__img { height: auto; max-height: 820px; object-fit: cover; }
  .gallery__slide--dim { min-height: 0; aspect-ratio: 3 / 2; }
  .gallery__dots { display: none; }
  .buy { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
@media (min-width: 1200px) { .pdp { grid-template-columns: minmax(0, 56fr) minmax(0, 36fr); } }

.reviews { display: grid; gap: var(--s-7); }
@media (min-width: 900px) {
  .reviews { grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; }
  .reviews__summary { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
.reviews__score { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.reviews__avg { font-family: var(--font-display); font-size: 3.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.reviews__score .star { width: 18px; height: 18px; }
.reviews__count { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--fs-small); }
.reviews__empty { margin-top: var(--s-3); color: var(--ink-2); max-width: 36ch; }
.reviews__dist { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 2px; }
.dist {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; align-items: center; gap: var(--s-3); min-height: 36px; padding: 0 var(--s-2);
  margin-inline: calc(var(--s-2) * -1); width: calc(100% + var(--s-4));
  border: 0; border-radius: var(--radius-ui); background: none; color: var(--ink); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.dist:hover:not(:disabled) { background: var(--surface); }
.dist:disabled { cursor: default; color: var(--ink-2); }
.dist[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: inset 2px 0 0 var(--ink); }
.dist__bar, .sub__bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dist__bar > span, .sub__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.dist__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.reviews__subs { display: grid; gap: var(--s-3); margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.sub { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: var(--s-3); }
.sub dd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); margin: 0; }
.sub__v { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reviews__cta { margin-top: var(--s-6); }
.reviews__cta-note { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-small); text-align: center; }

.reviews__tools { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.reviews__search { position: relative; flex: 1 1 160px; }
.reviews__search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.reviews__search .field__input { width: 100%; }
.reviews__sort select { min-height: 48px; font-size: var(--fs-body); }
.reviews__status { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-small); }
.reviews__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.review { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.review:last-child { border-bottom: 1px solid var(--line); }
.review[hidden] { display: none; }
.review:focus { outline: none; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.review__date { color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.review__text { margin-top: var(--s-3); max-width: 68ch; line-height: 1.6; }
.review__text > * + * { margin-top: var(--s-3); }
.review__scores { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-small); }
.review__by { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-top: var(--s-3); font-size: var(--fs-small); }
.review__author { font-weight: 500; }
.review__verified { display: inline-flex; align-items: center; gap: 4px; color: #1F5B2E; }
.review__verified .icon { width: 16px; height: 16px; }
.reviews__none { margin-top: var(--s-5); color: var(--ink-2); }
.reviews__none[hidden], .reviews__more[hidden] { display: none; }
.reviews__more { margin-top: var(--s-5); }

/* Review form: an ordinary section under the list without JavaScript, a side drawer with it */
.review-compose { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.drawer .review-compose { margin: 0; padding: 0 0 var(--s-6); border: 0; }
.review-compose__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.review-compose__title { font-size: var(--fs-h3); font-weight: 600; }
.review-compose__product { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--fs-small); }
.review-compose .comment-form { display: grid; gap: var(--s-5); max-width: 560px; }
.review-compose .comment-form > p { margin: 0; }
.review-compose .comment-form-cookies-consent { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-small); color: var(--ink-2); }
.review-compose .comment-form-cookies-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.review-compose .form-submit { margin-top: var(--s-1); }
.drawer--review { width: min(520px, 100%); }
.drawer--review .drawer__inner { padding-top: var(--s-5); }
.star-input { margin: 0; padding: 0; border: 0; min-width: 0; }
.star-input__stars { display: flex; gap: 2px; margin-top: var(--s-2); }
.star-input label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-ui); color: var(--line); cursor: pointer; transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.star-input label .star { width: 30px; height: 30px; }
.star-input input:checked + label, .star-input label:has(~ input:checked) { color: var(--ink); }
@media (hover: hover) {
  .star-input__stars:hover label { color: var(--line); }
  .star-input__stars:hover label:hover, .star-input__stars:hover label:has(~ label:hover) { color: var(--ink); }
}
.star-input label:active { transform: scale(0.92); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 0; }
.star-input__error { display: none; margin-top: var(--s-2); }
.star-input.is-invalid .star-input__error { display: flex; }

.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgb(21 24 27 / 0.2);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
}
.buy-bar[hidden] { display: none; }
.buy-bar.is-visible { transform: none; }
.buy-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); }
.buy-bar__text { display: grid; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.buy-bar__name { font-weight: 500; }
@media (min-width: 900px) { .buy-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .buy-bar { transition: none; } }

/* ---------- Cart and checkout ---------- */
.cart, .checkout { padding-bottom: clamp(64px, 8vw, 128px); }
.cart .page-title, .checkout .page-title { margin-bottom: var(--s-6); }
.cart__grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .cart__grid { grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); } }
.cart-line { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 1px solid var(--line); }
.cart-line__img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; }
.cart-line__name { font-weight: 500; text-decoration: none; }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__meta { font-size: var(--fs-small); color: var(--ink-2); }
.cart-line__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); }
.cart-line__price { font-variant-numeric: tabular-nums; font-weight: 500; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 140px 1fr; } .cart-line__img { width: 140px; } }
.summary { padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.summary__title { font-size: var(--fs-h3); font-weight: 600; }
.summary__delivery { margin: 0; padding: 0; border: 0; display: grid; gap: var(--s-2); min-width: 0; }
.summary__delivery legend { padding: 0; margin-bottom: var(--s-2); font-weight: 500; }
.summary__rows { margin: 0; display: grid; gap: var(--s-2); }
.summary__rows div { display: flex; justify-content: space-between; gap: var(--s-4); }
.summary__rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary__total { padding-top: var(--s-3); border-top: 1px solid var(--line); font-weight: 600; font-size: 1.125rem; }
.summary__total dt span { font-weight: 400; font-size: var(--fs-small); color: var(--ink-2); }
.summary__note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-small); color: var(--ink-2); }
.summary__note .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.summary__lines { display: grid; gap: var(--s-3); }
.summary__lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-3); align-items: center; font-size: var(--fs-small); }
.summary__lines img { width: 64px; aspect-ratio: 4 / 3; object-fit: cover; }
.radio-card { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); border: 1px solid var(--control); border-radius: var(--radius-ui); background: var(--input-bg); cursor: pointer; font-size: var(--fs-small); }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.radio-card__price { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500; }
.radio-card__logos { margin-left: auto; display: flex; gap: var(--s-2); }
.radio-card small { display: block; color: var(--ink-2); }
.form-section { margin: 0 0 var(--s-6); padding: 0; border: 0; display: grid; gap: var(--s-4); min-width: 0; }
.form-section__title { padding: 0; margin-bottom: var(--s-2); font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.form-section[hidden] { display: none; }
.pay-opts, .slot-list { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .slot-list { grid-template-columns: repeat(3, 1fr); } }
.checkout__legal { margin-bottom: var(--s-4); font-size: var(--fs-small); color: var(--ink-2); }
.checkout__legal a { color: var(--ink); }
.checkout__status { margin-top: var(--s-4); font-weight: 500; }
.checkout__status:empty { display: none; }

/* ---------- Content pages ---------- */
.prose { max-width: 820px; padding-bottom: clamp(64px, 8vw, 128px); }
.prose .page-title { margin-bottom: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-h3); }
.prose h3 { font-size: 1.125rem; }
.prose p, .prose ul, .prose .table-wrap { margin-top: var(--s-3); }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--ink-2); font-weight: 500; }
.model-form { margin-top: var(--s-4); padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); }
.showroom-page { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
.showroom-page__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.showroom-page__text > * + * { margin-top: var(--s-4); }
.info-list { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
.info-list dt { display: flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.info-list dd { margin: var(--s-1) 0 0 28px; color: var(--ink-2); }
.info-list a { color: var(--ink); }
.hours-table { border-collapse: collapse; }
.hours-table th { text-align: left; font-weight: 400; padding: 2px var(--s-5) 2px 0; }
.hours-table td { padding: 2px 0; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .showroom-page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: var(--s-8); font-size: var(--fs-small); }
.site-footer__inner { display: grid; }
.site-footer__brand p { margin-top: var(--s-3); color: var(--ink-2); max-width: 32ch; }
.site-footer__contact a { color: var(--ink); }
.site-footer__brand { margin-bottom: var(--s-5); }
.footer-col { border-top: 1px solid var(--line); }
.footer-col summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; }
.footer-col[open] summary .icon { transform: rotate(180deg); }
.footer-col ul, .footer-col address { padding-bottom: var(--s-4); }
.footer-col li a { display: inline-block; padding-block: 6px; color: var(--ink-2); text-decoration: none; }
.footer-col li a:hover { color: var(--ink); text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--ink-2); }
.hours li { display: flex; justify-content: space-between; gap: var(--s-4); color: var(--ink-2); max-width: 280px; font-variant-numeric: tabular-nums; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-block: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2); }
.pay-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.pay-list img { width: 24px; height: 24px; opacity: 0.8; }
.pay-text { padding: 2px 6px; border: 1px solid var(--line); border-radius: var(--radius-ui); font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.legal-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.legal-list a, .legal-list .link-btn { color: var(--ink-2); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s-7); }
  .footer-col { border-top: 0; }
  .footer-col summary { pointer-events: none; min-height: 0; margin-bottom: var(--s-3); }
  .footer-col summary .icon { display: none; }
}

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 400; }
.cookie[hidden] { display: none; }
.cookie__inner { max-width: 600px; margin-left: auto; padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-ui); box-shadow: var(--overlay-shadow); display: grid; gap: var(--s-4); font-size: var(--fs-small); }
.cookie__text a { color: var(--ink); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
.cookie__actions .btn { flex: 1 1 160px; }

/* ---------- Reveal on scroll (opt-in through .js; off for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Cross-document view transitions (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-base); }
}

.related .section__title { margin-bottom: var(--s-6); }

html:has(dialog[open]) { overflow: hidden; }
.pdp { padding-bottom: 0; }
@media (min-width: 900px) { .pdp { padding-bottom: var(--s-8); } }

/* ---------- Guidelines review fixes ---------- */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-tap-highlight-color: rgb(21 24 27 / 0.08);
}
.page-product { scroll-padding-bottom: 88px; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
a, button, input, select, label, summary { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
.drawer, .mobile-nav { overscroll-behavior: contain; }
.container { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.buy-bar__inner { padding-bottom: max(var(--s-3), env(safe-area-inset-bottom)); }
.cookie { bottom: max(var(--s-4), env(safe-area-inset-bottom)); }
.drawer__actions { padding-bottom: max(var(--s-5), env(safe-area-inset-bottom)); }
/* Hover feedback on remaining controls */
.swatch-opt:hover .swatch { box-shadow: inset 0 0 0 1px rgb(21 24 27 / 0.18), 0 0 0 2px var(--paper), 0 0 0 3px var(--control); }
.size-opt:hover span { background: var(--surface); }
.size-opt input:checked + span:hover { background: var(--ink); }
.qty__btn:hover { background: var(--surface); }
.radio-card:hover { border-color: var(--ink); }
.check:hover span { text-decoration: underline; text-underline-offset: 3px; }
.gallery__dots a:hover::before { background: var(--ink-2); }
.cart__undo { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); background: var(--surface); border-radius: var(--radius-ui); font-size: var(--fs-small); }
.cart__undo:empty { display: none; }
.product-card__title, .cart-line__name, .look-item__text a { overflow-wrap: anywhere; }
.section.container > .section__title { margin-bottom: var(--s-6); }
.showroom-page + .section { padding-top: var(--s-6); }

/* ---------- Product card v2: equal heights, tag on the image ---------- */
.product-row > li, .product-grid > li { height: 100%; }
.product-card { height: 100%; }
.product-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-top: var(--s-3); }
.product-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.35em); }
@media (min-width: 900px) { .product-card__title { -webkit-line-clamp: 1; line-clamp: 1; min-height: 0; } }
.product-card__body .price { margin-top: var(--s-1); }
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
}
.swatches__more { font-size: var(--fs-micro); color: var(--ink-2); line-height: 16px; }
.rating--sm { gap: 4px; font-size: var(--fs-micro); flex: none; }
.rating--sm .star { width: 13px; height: 13px; }
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: var(--radius-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.card-tag--sale { background: var(--accent); color: var(--on-accent); }
.card-tag--new { background: var(--ink); color: var(--paper); }

/* ---------- Smooth menus and drawers (v2) ---------- */
@keyframes slide-in-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slide-out-left { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out-right { from { transform: none; } to { transform: translateX(100%); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes items-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: no-preference) {
  .mobile-nav[open] { animation: slide-in-left 320ms var(--ease-out); }
  .mobile-nav[open].is-closing { animation: slide-out-left 240ms var(--ease-in) forwards; }
  .drawer[open] { animation: slide-in-right 320ms var(--ease-out); }
  .drawer[open].is-closing { animation: slide-out-right 240ms var(--ease-in) forwards; }
  .mobile-nav[open]::backdrop, .drawer[open]::backdrop { animation: fade-in 320ms var(--ease-out); }
  .mobile-nav.is-closing::backdrop, .drawer.is-closing::backdrop { animation: fade-out 240ms var(--ease-in) forwards; }
  /* Menu items arrive in a short cascade after the panel */
  .mobile-nav[open]:not(.is-closing) .mobile-nav__list > li,
  .mobile-nav[open]:not(.is-closing) .mobile-nav__sub {
    animation: items-in 360ms var(--ease-out) both;
    animation-delay: calc(80ms + var(--i, 0) * 30ms);
  }
  .mobile-nav__list > li:nth-child(2) { --i: 1; }
  .mobile-nav__list > li:nth-child(3) { --i: 2; }
  .mobile-nav__list > li:nth-child(4) { --i: 3; }
  .mobile-nav__list > li:nth-child(5) { --i: 4; }
  .mobile-nav__list > li:nth-child(6) { --i: 5; }
  .mobile-nav__sub { --i: 6; }
  .mega.is-closing { animation: menu-out 180ms var(--ease-in) forwards; }
  /* Dropdown chevrons turn back as soon as closing starts */
  details.is-closing > summary .icon { transform: none !important; }
  .mobile-nav__group summary .icon, .footer-col summary .icon { transition: transform var(--dur-base) var(--ease-out); }
  /* Dropdown content fades in while the height animates */
  details.is-opening > :not(summary) { animation: fade-in 260ms var(--ease-out); }
}

/* ---------- Hero v2: headline, text, buttons and photo always fit the first screen ---------- */
/* The hero takes exactly the space left under the promise bar and header (small viewport
   height, so mobile browser bars never push content out). The photo absorbs the leftover
   space; the text keeps its natural height. */
.hero {
  display: flex;
  flex-direction: column;
  height: calc(100svh - var(--bar-h) - var(--header-h));
  min-height: 380px;
}
.hero__media { order: -1; flex: 1 1 auto; min-height: 120px; aspect-ratio: auto; }
.hero__img { position: absolute; inset: 0; }
.hero__text { flex: none; padding: clamp(16px, 3.2vh, 32px) var(--gutter) clamp(20px, 4vh, 40px); }
.hero__title { font-size: clamp(1.75rem, min(9vw, 5.2vh), 2.75rem); max-width: 20ch; }
.hero__lead { margin-top: clamp(8px, 1.6vh, 16px); font-size: clamp(0.9375rem, 0.8rem + 0.6vh, 1.125rem); }
.hero__actions { margin-top: clamp(12px, 2.4vh, 24px); gap: var(--s-2) var(--s-5); }

/* Landscape phones and small tablets: side by side so nothing is pushed off screen */
@media (min-width: 600px) and (orientation: landscape) and (max-width: 899px) {
  .hero { flex-direction: row; min-height: 260px; }
  .hero__media { order: 0; flex: 1 1 55%; min-height: 0; }
  .hero__text { flex: 0 0 45%; display: flex; flex-direction: column; justify-content: center; padding: 16px 24px 16px var(--gutter); }
  .hero__title { font-size: clamp(1.5rem, min(4.2vw, 9vh), 2.5rem); }
  .hero__lead { font-size: 0.9375rem; }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    height: clamp(300px, calc(100svh - var(--bar-h) - var(--header-h)), 820px);
    min-height: 0;
  }
  .hero__media { order: 0; min-height: 0; }
  .hero__text { padding: clamp(24px, 6vh, 64px) var(--s-8) clamp(24px, 6vh, 64px) var(--gutter); }
  .hero__title { font-size: clamp(2.25rem, min(0.9rem + 3vw, 0.75rem + 4.6vh), 4.5rem); }
  .hero__lead { font-size: clamp(1rem, 0.85rem + 0.5vh + 0.2vw, 1.25rem); }
}
@media (min-width: 1600px) {
  .hero__text { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
}
/* Very short screens: tighten type further */
@media (max-height: 520px) {
  .hero__lead { line-height: 1.45; }
  .hero__actions .btn { min-height: 44px; }
}

/* Narrowest phones: keep the promise bar on one line */
@media (max-width: 379px) { .promise-bar__link { display: none !important; } }
.product-card__note { min-height: calc(2 * 1.4em); font-size: var(--fs-micro); line-height: 1.4; }
@media (min-width: 640px) { .product-card__note { min-height: 1.4em; } }
.product-card__note { min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__foot { padding-top: var(--s-2); }
@media (max-width: 639px) { .product-card__title { line-height: 1.3; min-height: calc(2 * 1.3em); } }

/* ---------- Carousels: no visible scrollbars (swipe, arrows, keyboard and edge fade remain) ---------- */
.product-row, .filmstrip, .chips, .swatches, .gallery__track, .product-card__track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-row::-webkit-scrollbar, .filmstrip::-webkit-scrollbar { display: none; }
.product-row { padding-bottom: 4px; }
.filmstrip { padding-bottom: 0; }

/* ---------- Materials v2: a plain grid, no scroll container ----------
   The old phone carousel was a scroll box; its reveal animation briefly made it scroll
   vertically too. Now: 2 x 2 grid on phones, 4 across from 900px, nothing scrolls. */
.filmstrip {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-columns: auto;
  gap: var(--s-6) clamp(12px, 1.6vw, 24px);
  overflow: visible;
  scroll-snap-type: none;
}
.filmstrip > li { scroll-snap-align: none; }
@media (min-width: 900px) { .filmstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .material__name { font-size: 1.0625rem; }
  .material figcaption p { font-size: var(--fs-micro); line-height: 1.45; }
}

/* ---------- Product cards on touch screens ----------
   Inside horizontal product rows, a swipe must move the row, not the card's photos.
   So on touch devices the card photo strip is locked to the main image there; the
   other photos remain on the product page. In grids (no sideways scrolling) swiping
   between a card's photos still works. */
@media (hover: none) {
  .product-row .product-card__track { overflow-x: hidden; scroll-snap-type: none; }
  .product-row .product-card__dots { display: none; }
  .product-card__track { overscroll-behavior-x: auto; }
}

/* ---------- Shop by room v2: both columns end on the same line ----------
   Rows have fixed heights; every tile is a column where the photo takes the space left
   after its label. The tall living-room tile spans both rows plus the gap, so its label
   sits exactly level with the home-office label. */
@media (min-width: 640px) and (max-width: 899px) {
  .room-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .room-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, clamp(260px, 23vw, 420px));
  }
  .room-tile, .room-tile a { min-height: 0; }
  .room-tile a { display: flex; flex-direction: column; height: 100%; }
  .room-tile .room-tile__media,
  .room-tile--living .room-tile__media,
  .room-tile--office .room-tile__media { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
  .room-tile__label { flex: none; }
}

/* ---------- Journal v2: phone and tablet ---------- */
/* Phones: lead story on top, the other two as compact rows (thumbnail left, text right). */
@media (max-width: 639px) {
  .story--lead .story__img { aspect-ratio: 4 / 3; }
  .story-stack { grid-template-columns: 1fr; gap: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
  .story-stack .story { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto 1fr; column-gap: var(--s-4); align-items: start; }
  .story-stack .story a { display: contents; }
  .story-stack .story__img { grid-row: span 2; aspect-ratio: 1; }
  .story-stack .story__title { margin-top: 0; font-size: 1.0625rem; }
  .story-stack .story p { grid-column: 2; margin-top: var(--s-1); }
}
/* Tablets: wide lead image, then the other two side by side with equal images. */
@media (min-width: 640px) and (max-width: 899px) {
  .story--lead .story__img { aspect-ratio: 16 / 9; }
  .story-stack { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .story-stack .story__img { aspect-ratio: 3 / 2; }
}

/* ---------- In real homes v2: phones and tablets ----------
   A tidy 2 x 2 grid of equal 4:5 photos, with the last photo spanning both columns.
   Desktop keeps the 3-column masonry next to the sticky quotes. */
@media (max-width: 899px) {
  .homes__masonry {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 16px);
  }
  .homes__masonry li { margin: 0; }
  .homes__masonry .homes__img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .homes__masonry li:last-child { grid-column: 1 / -1; }
  .homes__masonry li:last-child .homes__img { aspect-ratio: 16 / 9; }
}
/* Tablets: the two review quotes sit side by side above the photos */
@media (min-width: 640px) and (max-width: 899px) {
  .homes__text { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .homes__text .section__title { grid-column: 1 / -1; }
  .homes__masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .homes__masonry .homes__img { aspect-ratio: 3 / 4; }
}
@media (max-width: 899px) { .homes__masonry li:nth-child(2) .homes__img { object-position: 80% 50%; } }

/* =====================================================================
   WordPress additions
   ===================================================================== */

/* Base rules Blocksy's removed stylesheet used to provide */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 8px 16px; background: var(--ink); color: var(--paper); z-index: 1000; }

/* Sticky header sits below the admin bar for logged-in users */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Leak guards: plugin and block styles must not restyle the theme's elements */
.tessel :where(button, input, select, textarea) { font-family: inherit; }
.tessel :where(.site-header, .site-footer, .mega, .drawer, .mobile-nav) :where(a) { transition-property: color, background-color, text-decoration-color; }
.tessel :where(.site-header, .site-footer, main) :where(ul, ol) { margin-top: 0; margin-bottom: 0; }
.tessel :where(table) { border-collapse: collapse; }

/* Promise bar: first promise stays on one line on phones */
@media (max-width: 899px) {
  .promise-bar__list li:first-child { min-width: 0; }
  .promise-bar__list li:first-child span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Category chips are links on WordPress (current category highlighted) */
.chip { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop__sort { display: flex; gap: var(--s-2); }
.price__from { font-weight: 400; color: var(--ink-2); font-size: 0.875em; }

/* Swatch inside filter checkboxes */
.check .swatch { width: 18px; height: 18px; }

/* Pagination */
.pagination, .nav-links { margin-top: var(--s-8); }
.pagination ul, .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.pagination a, .pagination span, .nav-links a, .nav-links span {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--control); border-radius: var(--radius-ui); text-decoration: none; color: inherit; font-size: var(--fs-small);
}
.pagination .current, .nav-links .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover, .nav-links a:hover { background: var(--surface); }

/* Journal index and article */
.story-grid { display: grid; gap: var(--s-7) clamp(12px, 1.6vw, 24px); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story-grid .story__title { font-size: var(--fs-h3); }
.article__meta { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-small); }
.article__hero { margin: var(--s-6) 0; }
.article__img { width: 100%; height: auto; }
.prose__content > * + * { margin-top: var(--s-3); }
.prose__content h2 { margin-top: var(--s-7); font-size: var(--fs-h3); }
.prose__content h3 { margin-top: var(--s-5); font-size: 1.125rem; }
.prose__content ul, .prose__content ol { padding-left: 1.25em; }
.prose__content ul { list-style: disc; }
.prose__content a { color: var(--ink); }
.prose__content img { height: auto; }
.prose__content .wp-block-table, .prose__content figure.wp-block-table { overflow-x: auto; }
.prose__content table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
.prose__content th, .prose__content td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.prose__content thead th { color: var(--ink-2); font-weight: 500; }
.prose__content .model-form, .prose__content .wp-block-group.is-style-panel { padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); }
.not-found { max-width: 720px; }
.not-found .shop__search { margin-block: var(--s-6); }

/* Review form */
.field__input--area { min-height: 140px; padding-block: var(--s-3); resize: vertical; }
.buy__error { color: var(--danger); font-size: var(--fs-small); font-weight: 500; }
.buy__error[hidden] { display: none; }

/* WooCommerce notices (for example after adding to cart without JavaScript) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); list-style: none;
  border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-ui); font-size: var(--fs-small);
}
.woocommerce-error { border-left-color: var(--danger); background: #FBEAEA; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-weight: 500; color: var(--ink); }
.tessel-notices { padding-top: var(--s-2); }

/* ---------- WooCommerce block cart, checkout and account (styled to the design) ---------- */
.wc-page { padding-bottom: clamp(64px, 8vw, 128px); }
.wc-page .page-title { margin-bottom: var(--s-6); }
.wc-page__content { font-size: var(--fs-body); }
.wc-page :where(.wc-block-cart, .wc-block-checkout, .woocommerce) { font-family: var(--font-text); color: var(--ink); }
.wc-page :where(h2, h3, .wc-block-components-title, .wc-block-components-checkout-step__title) { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.wc-page :where(.wc-block-components-button:not(.is-link), .wp-element-button, .button, button[type="submit"]) {
  min-height: 48px; padding: 0 var(--s-5); border: 0; border-radius: var(--radius-ui);
  background: var(--ink); color: var(--paper); font-weight: 500; font-family: var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.wc-page :where(.wc-block-components-button:not(.is-link)):hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
/* The one accent action on each page: proceed to checkout / place order */
.wc-page :where(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { background: var(--accent); color: var(--on-accent); }
.wc-page :where(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover { background: var(--accent-hover); }
.wc-page :where(.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .wc-block-components-textarea, .wc-blocks-components-select__select, input.input-text, select, textarea) {
  border: 1px solid var(--control) !important; border-radius: var(--radius-ui) !important; background: var(--input-bg) !important; color: var(--ink); font-family: var(--font-text);
}
.wc-page :where(.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus, input.input-text:focus) { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent) !important; box-shadow: none; }
.wc-page :where(.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper, .wc-block-cart__sidebar, .wc-block-checkout__sidebar) { border-color: var(--line); }
.wc-page :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) > * { background: var(--surface); }
.wc-page .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); }
.wc-page :where(.wc-block-components-product-name) { color: var(--ink); font-weight: 500; text-decoration: none; }
.wc-page :where(.wc-block-components-product-price, .wc-block-components-totals-item__value, .wc-block-formatted-money-amount) { font-variant-numeric: tabular-nums; }
.wc-page :where(.wc-block-components-sale-badge) { background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius-ui); }
.wc-page :where(.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option) { border-radius: var(--radius-ui); }
.wc-page :where(.wc-block-components-radio-control__input:checked) { border-color: var(--ink); }
.wc-page :where(.wc-block-components-radio-control__input:checked::before) { background: var(--ink); }
.wc-page :where(.wc-block-components-checkbox__input[type=checkbox]:checked) { background: var(--ink); border-color: var(--ink); }
.wc-page :where(a:not(.btn, .button)) { color: var(--ink); }
.wc-page :where(.wc-block-cart-items__header) { color: var(--ink-2); font-size: var(--fs-small); }
.wc-page :where(.wc-block-components-quantity-selector) { border-radius: var(--radius-ui); border-color: var(--control); }
/* ---------- Classic WooCommerce screens: My account, order received, view order ---------- */
/* Buttons WooCommerce prints as a.button / button.button. Explicit colours: a link colour rule must never win. */
.wc-page .woocommerce :is(a.button, button.button, input.button, button[type="submit"]) {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border: 0; border-radius: var(--radius-ui);
  background: var(--ink); color: var(--paper); font: 500 var(--fs-body)/1.2 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.wc-page .woocommerce :is(a.button, button.button, input.button, button[type="submit"]):hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); color: var(--paper); }
.wc-page .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-notice) a.button,
.wc-page .woocommerce .order-again a.button {
  min-height: 40px; padding: 0 var(--s-4); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--control); font-size: var(--fs-small);
}
.wc-page .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-notice) a.button:hover,
.wc-page .woocommerce .order-again a.button:hover { background: var(--paper); color: var(--ink); }
.wc-page .order-again { margin-top: var(--s-5); }
.wc-page mark { background: none; color: inherit; font-weight: 600; }
.wc-page address { font-style: normal; line-height: 1.6; }

/* Account layout: section menu beside the content on large screens, a swipeable row on small ones */
.wc-page .woocommerce-MyAccount-navigation { margin-bottom: var(--s-6); }
.wc-page .woocommerce-MyAccount-navigation ul {
  position: relative; list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); display: flex; gap: var(--s-2);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.wc-page .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.wc-page .woocommerce-MyAccount-navigation li { flex: none; }
.wc-page .woocommerce-MyAccount-navigation a {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-ui);
  color: var(--ink); text-decoration: none; font-size: var(--fs-small); white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.wc-page .woocommerce-MyAccount-navigation a:hover { border-color: var(--control); }
.wc-page .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 1024px) {
  .wc-page .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .wc-page :is(.ct-acount-nav, .woocommerce > .woocommerce-MyAccount-navigation) { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
  .wc-page .woocommerce-MyAccount-navigation { margin: 0; }
  .wc-page .woocommerce-MyAccount-navigation ul { flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .wc-page .woocommerce-MyAccount-navigation a { min-height: 44px; border: 0; font-size: var(--fs-body); }
  .wc-page .woocommerce-MyAccount-navigation a:hover { background: var(--surface); }
  .wc-page .woocommerce-MyAccount-navigation .is-active a { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--ink); }
  .wc-page .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
  .wc-page .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ink-2); }
}
.wc-page .woocommerce-MyAccount-content { min-width: 0; }
.wc-page .woocommerce-MyAccount-content > p:first-child { color: var(--ink-2); }
.wc-page .woocommerce-MyAccount-content :where(h2, h3) { font-size: var(--fs-h3); line-height: 1.2; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--s-2); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 500 var(--fs-micro)/1.5 var(--font-text); letter-spacing: 0; white-space: nowrap; vertical-align: middle;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--pending, .status-badge--on-hold { background: #F6EBD3; color: #6B4A00; }
.status-badge--processing { background: var(--accent-soft); color: var(--accent-hover); }
.status-badge--completed { background: #E1EFE4; color: #1F5B2E; }
.status-badge--cancelled, .status-badge--failed, .status-badge--refunded { background: #FBEAEA; color: var(--danger); }

/* Dashboard */
.wc-page .account-dash__title { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.02em; }
.account-dash__lead { margin-top: var(--s-2); color: var(--ink-2); }
.latest-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); }
.wc-page .latest-order__label { font: 500 var(--fs-small)/1.4 var(--font-text); color: var(--ink-2); letter-spacing: 0; }
.latest-order__number { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-1); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.latest-order__meta { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.account-tiles { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .account-tiles { grid-template-columns: 1fr 1fr; } }
.wc-page .account-tile { display: grid; align-content: start; gap: var(--s-1); height: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-ui); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out); }
.wc-page .account-tile:hover { border-color: var(--ink); }
.account-tile__icon { width: 24px; height: 24px; margin-bottom: var(--s-2); }
.account-tile__label { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.account-tile__text { color: var(--ink-2); font-size: var(--fs-small); }

/* Orders table: a table on wide screens, one card per order on phones */
.wc-page .woocommerce-orders-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wc-page .woocommerce-orders-table :is(th, td) { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; }
.wc-page .woocommerce-orders-table thead th { padding-block: var(--s-2); color: var(--ink-2); font-size: var(--fs-small); font-weight: 500; }
.wc-page .woocommerce-orders-table__cell-order-number a { font-weight: 600; text-decoration: none; }
.wc-page .woocommerce-orders-table__cell-order-number a:hover { text-decoration: underline; }
.wc-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions { text-align: right; padding-right: 0; white-space: nowrap; }
.wc-page .woocommerce-orders-table__cell-order-actions .btn + .btn { margin-left: var(--s-2); }
@media (max-width: 719px) {
  .wc-page .woocommerce-orders-table thead { display: none; }
  .wc-page .woocommerce-orders-table, .wc-page .woocommerce-orders-table tbody { display: block; }
  .wc-page .woocommerce-orders-table tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
  .wc-page .woocommerce-orders-table tr:first-child { border-top: 1px solid var(--line); }
  .wc-page .woocommerce-orders-table :is(th, td) { display: block; padding: 0; border: 0; }
  .wc-page .woocommerce-orders-table__cell-order-number { font-size: var(--fs-lead); }
  .wc-page .woocommerce-orders-table__cell-order-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .wc-page .woocommerce-orders-table :is(.woocommerce-orders-table__cell-order-date, .woocommerce-orders-table__cell-order-total) { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--fs-small); }
  .wc-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions { grid-column: 1 / -1; margin-top: var(--s-2); text-align: left; }
}
.wc-page .woocommerce-pagination { display: flex; gap: var(--s-2); margin-top: var(--s-5); }

/* Addresses */
.wc-page .u-columns { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .wc-page .u-columns { grid-template-columns: 1fr 1fr; } }
.wc-page .u-columns.woocommerce-Addresses { margin-top: var(--s-5); gap: var(--s-4); }
@media (min-width: 640px) { .wc-page .u-columns.woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.wc-page .woocommerce-Address { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-ui); }
.wc-page .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.wc-page .woocommerce-Address-title h2 { font-size: 1.25rem; }
.wc-page .woocommerce-Address-title a.edit { font-size: var(--fs-small); font-weight: 500; }
.wc-page .woocommerce-Address address { color: var(--ink-2); }

/* Forms: edit address, account details, login */
.wc-page .woocommerce :is(.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm, fieldset) { display: grid; gap: 0 var(--s-4); }
.wc-page .woocommerce :is(.woocommerce-address-fields, .woocommerce-EditAccountForm) { max-width: 760px; }
@media (min-width: 640px) {
  .wc-page .woocommerce :is(.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm, fieldset) { grid-template-columns: 1fr 1fr; }
  .wc-page .woocommerce :is(.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm, fieldset) > * { grid-column: 1 / -1; }
  .wc-page .woocommerce :is(.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm, fieldset) > :is(.form-row-first, .form-row-last) { grid-column: auto; }
}
.wc-page .woocommerce .clear { display: none; }
.wc-page .woocommerce-MyAccount-content form > h2 { margin-bottom: var(--s-5); }
.wc-page .woocommerce form .form-row { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); }
.wc-page .woocommerce form .form-row label { font-size: var(--fs-small); font-weight: 500; }
.wc-page .woocommerce form .form-row .required { color: var(--danger); text-decoration: none; border: 0; }
.wc-page .woocommerce form .form-row .optional { color: var(--ink-2); font-weight: 400; }
.wc-page .woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.wc-page .woocommerce form .form-row :is(input.input-text, select, textarea) { width: 100%; min-height: 48px; padding: 0 var(--s-4); font-size: var(--fs-body); }
.wc-page .woocommerce form .form-row textarea { padding-block: var(--s-3); min-height: 120px; }
.wc-page .woocommerce form .form-row select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%2315181B' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='m208 96-80 80-80-80'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 16px !important;
}
.wc-page .woocommerce form .form-row :is(select, textarea):focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent) !important; }
.wc-page .woocommerce form .form-row :is(em, #account_display_name_description) { color: var(--ink-2); font-size: var(--fs-small); font-style: normal; }
.wc-page .woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) { border-color: var(--danger) !important; }
.wc-page .woocommerce fieldset { margin: var(--s-3) 0 var(--s-5); padding: var(--s-5) var(--s-5) var(--s-1); border: 1px solid var(--line); border-radius: var(--radius-ui); min-width: 0; }
.wc-page .woocommerce fieldset legend { padding: 0 var(--s-2); margin-left: calc(var(--s-2) * -1); font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.wc-page .woocommerce fieldset > .form-row { grid-column: 1 / -1; }
.wc-page .woocommerce .password-input { position: relative; display: block; }
.wc-page .woocommerce .password-input input.input-text { padding-right: 52px; }
.wc-page .woocommerce .show-password-input {
  position: absolute; top: 50%; right: 2px; translate: 0 -50%; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: var(--radius-ui);
  background: var(--ink-2); cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M128 56C48 56 16 128 16 128s32 72 112 72 112-72 112-72-32-72-112-72Z'/%3E%3Ccircle cx='128' cy='128' r='40' fill='none' stroke='%23000' stroke-width='16'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M128 56C48 56 16 128 16 128s32 72 112 72 112-72 112-72-32-72-112-72Z'/%3E%3Ccircle cx='128' cy='128' r='40' fill='none' stroke='%23000' stroke-width='16'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.wc-page .woocommerce .show-password-input:hover { background: var(--ink); }
.wc-page .woocommerce .show-password-input.display-password {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='m48 40 160 176M154.9 157.6A40 40 0 0 1 101.1 98.4M74 68.6C33.2 89.2 16 128 16 128s32 72 112 72a118 118 0 0 0 54-12.6M208.6 169.1C230.4 149.6 240 128 240 128s-32-72-112-72a127 127 0 0 0-20.9 1.7M135.5 88.7a40 40 0 0 1 32.3 35.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='m48 40 160 176M154.9 157.6A40 40 0 0 1 101.1 98.4M74 68.6C33.2 89.2 16 128 16 128s32 72 112 72a118 118 0 0 0 54-12.6M208.6 169.1C230.4 149.6 240 128 240 128s-32-72-112-72a127 127 0 0 0-20.9 1.7M135.5 88.7a40 40 0 0 1 32.3 35.5'/%3E%3C/svg%3E");
}
.wc-page .woocommerce .show-password-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wc-page .woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: var(--s-2); margin-right: var(--s-4); font-size: var(--fs-small); }
.wc-page .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.wc-page .woocommerce :is(.woocommerce-form-login, .woocommerce-form-register) { max-width: 520px; }
.wc-page .woocommerce .lost_password { font-size: var(--fs-small); }

/* Order received ("thank you") */
.thanks__head { max-width: 760px; padding-top: var(--s-4); }
.thanks__mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-5); border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.thanks__mark .icon { width: 24px; height: 24px; }
.thanks__title { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.thanks__lead { margin-top: var(--s-4); font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.5; }
.thanks__lead strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.thanks__facts { display: grid; grid-template-columns: 1fr 1fr; margin: var(--s-7) 0 0; border-block: 1px solid var(--line); }
.thanks__facts > div { padding: var(--s-4) var(--s-4) var(--s-4) 0; min-width: 0; }
.thanks__facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.thanks__facts dt { color: var(--ink-2); font-size: var(--fs-small); }
.thanks__facts dd { margin: var(--s-1) 0 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .thanks__facts { grid-template-columns: repeat(4, 1fr); }
  .thanks__facts > div { padding: var(--s-5) var(--s-5) var(--s-5) 0; }
  .thanks__facts > div + div { padding-left: var(--s-5); border-left: 1px solid var(--line); }
  .thanks__facts > div:nth-child(n+3) { border-top: 0; }
  .thanks__facts dd { font-size: var(--fs-lead); }
}
.thanks__grid { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
@media (min-width: 1024px) {
  .thanks__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; }
  .thanks__aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
.wc-page :is(.thanks__h2, .order-box__title) { font-size: var(--fs-h3); line-height: 1.2; }
.wc-page .thanks__h3 { font-size: 1.125rem; }
.steps { list-style: none; counter-reset: step; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.steps__item { position: relative; display: grid; grid-template-columns: 32px 1fr; column-gap: var(--s-4); counter-increment: step; }
.steps__item::before {
  content: counter(step); grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--control); background: var(--paper); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps__item:first-child::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps__item:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 32px; bottom: calc(var(--s-5) * -1); width: 1px; background: var(--line); }
.steps__title { padding-top: 5px; font-weight: 600; }
.steps__text { max-width: 60ch; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }
.thanks__card { padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); }
.thanks__card > p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-small); }
.thanks__contact { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); font-size: var(--fs-small); }
.thanks__contact li { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.thanks__contact .icon { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.thanks__contact a { overflow-wrap: anywhere; }
.thanks__actions { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.thanks__head .thanks__actions { display: flex; flex-wrap: wrap; margin-top: var(--s-5); }
/* Bank transfer details and payment instructions printed by WooCommerce */
.wc-page .woocommerce-bacs-bank-details { margin-top: var(--s-7); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-ui); }
.wc-page .woocommerce-bacs-bank-details h2 { font-size: var(--fs-h3); }
.wc-page .wc-bacs-bank-details { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); }
.thanks__main > p { margin-top: var(--s-5); padding: var(--s-4); background: var(--accent-soft); border-radius: var(--radius-ui); font-size: var(--fs-small); }

/* Order details (thank you + view order) */
.order-box { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.order-head + .order-box { margin-top: var(--s-6); }
.order-box__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.order-box__count { font: 400 var(--fs-small)/1.4 var(--font-text); color: var(--ink-2); letter-spacing: 0; }
.order-items { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.order-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.order-item:first-child { border-top: 1px solid var(--line); }
.order-item__media { width: 72px; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.order-item__img { width: 100%; height: 100%; object-fit: cover; }
.order-item__name { font-weight: 500; line-height: 1.35; }
.order-item__name a { text-decoration: none; }
.order-item__name a:hover { text-decoration: underline; }
.order-item .wc-item-meta { list-style: none; margin: var(--s-1) 0 0; padding: 0; color: var(--ink-2); font-size: var(--fs-small); }
.order-item .wc-item-meta li { display: flex; gap: var(--s-1); }
.order-item .wc-item-meta :is(p, strong) { margin: 0; font-weight: 400; }
.order-item__qty { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.order-item__total { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.order-item__note { font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 640px) {
  .order-item { grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-5); }
  .order-item__media { width: 96px; }
}
.order-totals { width: 100%; margin-top: var(--s-4); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.order-totals :is(th, td) { padding: var(--s-2) 0; vertical-align: top; }
.order-totals th { text-align: left; font-weight: 400; color: var(--ink-2); }
.order-totals td { text-align: right; padding-left: var(--s-4); }
.order-totals small, .order-totals .shipped_via, .order-totals .includes_tax { display: block; color: var(--ink-2); font-size: var(--fs-micro); font-weight: 400; }
.order-totals__row--order_total :is(th, td) { padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: var(--fs-lead); }
.order-totals__row--order_total + tr :is(th, td) { padding-top: var(--s-4); }
.order-box__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.order-addresses { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 640px) { .order-addresses { grid-template-columns: 1fr 1fr; } }
.order-address { padding: var(--s-5); background: var(--surface); border-radius: var(--radius-ui); }
.wc-page .order-address__title { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); font-size: 1.0625rem; }
.order-address__title .icon { width: 18px; height: 18px; color: var(--ink-2); }
.order-address address { color: var(--ink-2); font-size: var(--fs-small); overflow-wrap: anywhere; }
.order-address__extra { display: block; }

/* View order header and updates */
.account-back { margin-bottom: var(--s-3); font-size: var(--fs-small); }
.wc-page .account-back a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; color: var(--ink-2); text-decoration: none; }
.wc-page .account-back a:hover { color: var(--ink); }
.account-back .icon { width: 16px; height: 16px; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.wc-page .order-head__title { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.02em; }
.order-head__meta { flex-basis: 100%; color: var(--ink-2); }
.order-updates { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.order-updates__item { padding-left: var(--s-4); border-left: 2px solid var(--line); }
.order-updates__date { color: var(--ink-2); font-size: var(--fs-small); }

/* Accent buttons in the block cart and checkout: higher specificity than WooCommerce block CSS */
.wc-page .wc-block-cart__submit-button,
.wc-page .wc-block-components-checkout-place-order-button,
.wc-page .wc-block-cart__submit-button .wc-block-components-button__text,
.wc-page .wc-block-components-checkout-place-order-button .wc-block-components-button__text { color: var(--on-accent) !important; }
.wc-page .wc-block-cart__submit-button, .wc-page .wc-block-components-checkout-place-order-button { background: var(--accent) !important; border-radius: var(--radius-ui); }
.wc-page .wc-block-cart__submit-button:hover, .wc-page .wc-block-components-checkout-place-order-button:hover { background: var(--accent-hover) !important; }

.promise-bar__link a { white-space: nowrap; }
.promise-bar__list { flex-wrap: nowrap; }
