/* ==========================================================================
   NELDRA — Design System
   A white architectural gallery. Furniture is the hero. Whitespace is a
   feature. Motion is quiet. See /docs/02-design-system.md.
   ========================================================================== */
@import url("../fonts/fonts.css");

/* Archivo Neldra Wide: the headline font since 4.3.0 (replaces TRT Cenzo), on
   every screen. Archivo Expanded at 160% of Archivo's normal width, made by
   dev/make-wide-font.py from Archivo (SIL Open Font License, OFL-Archivo.txt
   in assets/fonts). Weight 200 is the main one; 300 for small headline text
   and text over photos. */
@font-face {
  font-family: "Archivo Neldra Wide";
  src: url("../fonts/archivo-wide-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Neldra Wide";
  src: url("../fonts/archivo-wide-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Michroma: headlines on phones, a trial (Customize -> Layout & spacing ->
   "Headline font on phones"). SIL OFL, from Google Fonts, self-hosted, one
   weight. Declared here and not in fonts.css, which is imported without a
   version and may be an old copy on a visitor's phone. The files are only
   fetched where the font is used. */
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --c-bg:          #ffffff;
  --c-bg-soft:     #f7f7f6;
  --c-grey-light:  #e8e9ea;
  --c-grey-mid:    #a5a7a9;
  --c-text:        #161616;
  --c-text-soft:   #6b6c6e;
  --c-line:        rgba(22, 22, 22, .10);
  --c-line-soft:   rgba(22, 22, 22, .06);
  --c-dark:        #131313;
  --c-on-dark:     #f4f4f3;
  --c-accent:      #8a97a0; /* cold, desaturated — used almost never */

  /* Type */
  --font-display: "Archivo Neldra Wide", "Jost", "Montserrat", system-ui, sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero:    clamp(3rem, 9vw, 8rem);
  --fs-display: clamp(2.4rem, 6vw, 5.5rem);
  --fs-h2:      clamp(1.8rem, 3.6vw, 3.4rem);
  --fs-h3:      clamp(1.3rem, 2vw, 1.9rem);
  --fs-lead:    clamp(1rem, 1.1vw, 1.1rem); /* 4.3.0: smaller under the wide headline font, never under body size */
  --fs-body:    1rem;
  --fs-small:   .8125rem;
  --fs-meta:    .72rem;
  --type-scale: 1; /* headline size multiplier (Customize → Layout) */

  /* Spacing (8px base) */
  --sp-1: .5rem;   --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-6: 3rem;    --sp-8: 4rem;   --sp-12: 6rem;   --sp-16: 8rem;
  --sp-24: 12rem;  --sp-32: 16rem;
  --section-y: clamp(5rem, 12vw, 12rem);

  /* Layout */
  --wrap: 100rem;            /* 1600px at 100% size */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-h: 5.25rem;       /* 84px at 100% size */

  /* Motion */
  --ease-brand: cubic-bezier(.22, 1, .36, 1);
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1); /* on-screen movement (height settling) */
  --dur-press: .16s;  /* button press feedback */
  --dur-fast: .2s;
  --dur-base: .45s;
  --dur-slow: .65s;

  /* z-index */
  --z-header: 100;
  --z-overlay: 200;
  --z-cursor: 500;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* No page scrollbar: the page scrolls as usual (wheel, trackpad, keys,
   touch), only the bar is hidden. Panels that scroll inside the page (menu,
   text areas) keep a thin grey bar so their extra content stays
   discoverable. Anchor jumps stop below the fixed header. */
html {
  scrollbar-width: none;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html::-webkit-scrollbar { display: none; }
.overlay, textarea {
  scrollbar-width: thin;
  scrollbar-color: #cfd0d1 transparent;
}
.overlay::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 8px; }
.overlay::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
  background: #cfd0d1;
  border: 2px solid var(--c-bg);
  border-radius: 8px;
}
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* Touch screens (4.4.0): no grey or blue flash over a tapped control, no
   double-tap zoom on controls, and a long press does not select a label.
   Hover looks are written inside @media (hover: hover) throughout this file:
   a phone keeps :hover on whatever was tapped last, so a chip just switched
   off still looked chosen and a tapped button stayed inverted. */
a, button, label, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
button, label, .btn, .swatch { touch-action: manipulation; }
button, .btn, .swatch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--c-text); color: var(--c-bg); }
:focus-visible { outline: 1.5px solid var(--c-text); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: .01em;
}
.hero-title { font-size: calc(var(--fs-hero) * var(--type-scale)); letter-spacing: .04em; font-weight: 200; }
.display    { font-size: calc(var(--fs-display) * var(--type-scale)); }
h2, .h2     { font-size: calc(var(--fs-h2) * var(--type-scale)); letter-spacing: .02em; }
h3, .h3     { font-size: calc(var(--fs-h3) * var(--type-scale)); letter-spacing: .02em; font-weight: 300; }
.upper { text-transform: uppercase; }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  font-weight: 300;
  max-width: 46ch;
  color: var(--c-text);
}
.meta {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-text-soft);
}
.body-soft { color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 7rem); }
.bleed { width: 100%; }
.stack > * + * { margin-top: var(--sp-3); }
.center { text-align: center; }
.divider { height: 1px; background: var(--c-line); border: 0; }

/* --------------------------------------------------------------------------
   5. Buttons / links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1.15em 2.2em;
  border: 1px solid var(--c-text);
  color: var(--c-text);
  background: transparent;
  transition: background var(--dur-base) var(--ease-soft),
              color var(--dur-base) var(--ease-soft),
              transform var(--dur-press) var(--ease-brand);
}
.btn--solid { background: var(--c-text); color: var(--c-bg); }
.btn--ghost { border-color: transparent; padding-inline: 0; }
.btn--on-dark { border-color: var(--c-on-dark); color: var(--c-on-dark); }
@media (hover: hover) {
  .btn:hover { background: var(--c-text); color: var(--c-bg); }
  .btn--solid:hover { background: transparent; color: var(--c-text); }
  .btn--on-dark:hover { background: var(--c-on-dark); color: var(--c-dark); }
}

/* animated underline link */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-brand);
}
@media (hover: hover) { .link:hover::after { transform: scaleX(1); transform-origin: left; } }

/* --------------------------------------------------------------------------
   6. Header / overlay nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-soft),
              height var(--dur-base) var(--ease-soft);
}
.site-header__inner {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}
/* Over the gallery walk and the split hero the header has no background and
   must read on white AND on black. It is drawn in the normal text colour,
   inverted, then blended as "difference": on white that gives back exactly
   the normal colour and weight (the same as the solid header everywhere else),
   on black its light counterpart. White text + difference alone came out
   blacker and heavier, because browsers draw light text bolder. */
.site-header--overlay { filter: invert(1); mix-blend-mode: difference; }
.site-header--overlay .site-header__inner,
.site-header--overlay a,
.site-header--overlay button { color: var(--c-text); }
/* Solid state (internal pages or after scrolling past hero) */
.site-header--solid {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line-soft);
  mix-blend-mode: normal;
}
.site-header--solid a, .site-header--solid button { color: var(--c-text); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Logged in: the WordPress admin bar sits on top of the page; keep the header,
   menu, search, cart drawer and lightbox below it instead of under it. */
.admin-bar .site-header,
.admin-bar .overlay,
.admin-bar .drawer,
.admin-bar .lightbox { top: 32px; }
/* sliding away on scroll: go fully behind the bar, border line included */
.admin-bar .site-header.is-hidden { transform: translateY(calc(-100% - 48px)); }
@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .overlay,
  .admin-bar .drawer,
  .admin-bar .lightbox { top: 46px; }
}
/* WordPress lets the bar scroll away on phones, which left a gap above the
   fixed header; keep it fixed instead. */
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

.brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem; /* the wide font: as wide as the original Cenzo wordmark at 1.35rem */
  letter-spacing: .42em;
  text-transform: uppercase;
  padding-left: .42em; /* optically balance the tracking */
}
/* Uploaded logo (Customize → Site Identity): same visual size as the text wordmark */
.brand-logo .custom-logo-link { display: inline-block; line-height: 0; }
.brand-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 1.25rem;
  max-width: min(13.75rem, 42vw);
}
.nav-primary { justify-self: center; }
.nav-primary ul { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.nav-primary a { font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase; }
.nav-util {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.nav-util button { font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase; }
.cart-count { display: inline-block; font-variant-numeric: tabular-nums; } /* inline-block: the number can roll when it changes */
.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   7. Split-screen hero
   -------------------------------------------------------------------------- */
.hero {
  height: 100svh;
  min-height: 640px;
  width: 100%;
  display: flex;
  overflow: hidden;
}
.panel {
  position: relative;
  flex: 1 1 0%;   /* basis 0 so flex-grow ratios drive the moving boundary */
  min-width: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--c-on-dark);
  transition: flex-grow var(--dur-slow) var(--ease-brand);
  will-change: flex-grow;
}
/* moving boundary via flex-grow */
.hero[data-hover="shop"]     .panel--shop     { flex-grow: 1.6; }
.hero[data-hover="shop"]     .panel--contract { flex-grow: .9; }
.hero[data-hover="contract"] .panel--contract { flex-grow: 1.6; }
.hero[data-hover="contract"] .panel--shop     { flex-grow: .9; }

.panel__media {
  position: absolute;
  inset: 0;
  transition: transform var(--dur-slow) var(--ease-brand);
  will-change: transform;
}
.panel:hover .panel__media,
.hero[data-hover] .panel.is-active .panel__media { transform: scale(1.04); }

.panel__label {
  position: relative;
  z-index: 2;
  padding: var(--gutter);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.panel__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}
.panel__intro {
  font-size: var(--fs-small);
  letter-spacing: .04em;
  max-width: 34ch;
  opacity: .85;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-brand) .05s,
              transform var(--dur-base) var(--ease-brand) .05s;
}
.panel:hover .panel__intro,
.panel.is-active .panel__intro,
.panel:focus-visible .panel__intro { opacity: .9; transform: none; }
.panel__enter {
  margin-top: var(--sp-2);
  font-size: var(--fs-meta);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.panel__enter .arrow { margin-left: .1em; transition: transform var(--dur-base) var(--ease-brand); }
.panel:hover .panel__enter .arrow { transform: translateX(6px); }

/* Arrows and chevrons: one vector shape each, tinted with the text colour via
   a mask, so line and head can never drift apart (the old head was a rotated
   square and rendered misaligned).
   .arrow        →  big standalone/editorial calls to action
   .arrow--chev  ›  small text links */
:root {
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h21.4M17.6 1.4 22.4 6l-4.8 4.6'/%3E%3C/svg%3E");
  --icon-chev:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.6 1.6 6.4 7l-4.8 5.4'/%3E%3C/svg%3E");
}
.arrow {
  display: inline-block;
  width: 1.6em;
  height: .8em;
  margin-left: .45em;
  vertical-align: -.06em;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
          mask: var(--icon-arrow) no-repeat center / contain;
  transition: transform var(--dur-base) var(--ease-brand);
}
.arrow--chev {
  width: .5em;
  height: .875em;
  margin-left: .6em;
  vertical-align: -.1em;
  -webkit-mask-image: var(--icon-chev);
          mask-image: var(--icon-chev);
}
@media (hover: hover) { a:hover > .arrow--chev, a:hover .arrow--chev { transform: translateX(3px); } }

/* thin dividing line between panels */
.hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: rgba(255,255,255,.35);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) ease;
}

/* Placeholder art (until real photography is dropped in) */
.ph { position: absolute; inset: 0; }
.ph--shop { background: #f2f2f0; }
.ph--contract { background: var(--c-dark); }
.ph__note {
  position: absolute; top: var(--gutter); left: var(--gutter);
  font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase;
  opacity: .5;
}
.ph--shop .ph__note { color: #9a9a97; }
.panel--shop { color: var(--c-text); background: #fff; }
.panel--shop .panel__intro { opacity: 0; }
.panel--shop:hover .panel__intro,
.panel--shop.is-active .panel__intro { opacity: .7; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 5;
  font-size: var(--fs-meta);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-hint span { animation: nudge 2.4s var(--ease-soft) infinite; }
.scroll-hint i { width: 1px; height: 30px; background: currentColor; display: block; opacity: .6; }
@keyframes nudge { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* --------------------------------------------------------------------------
   8. Editorial / content sections
   -------------------------------------------------------------------------- */
.statement {
  padding-block: var(--section-y);
  text-align: center;
}

/* Newsletter / email collector */
.newsletter { padding-block: var(--section-y); }
.newsletter .display { max-width: 20ch; margin-inline: auto; }
.newsletter__sub {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: var(--fs-small);
  letter-spacing: .03em;
  color: var(--c-text-soft);
}
.newsletter__form {
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  max-width: 38.75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(22, 22, 22, .22);
  border-radius: 999px;
  padding: .4rem .4rem .4rem clamp(1.25rem, 3vw, 1.9rem);
  transition: border-color var(--dur-base) var(--ease-soft);
}
.newsletter__form:focus-within { border-color: var(--c-text); }
.newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: .03em;
  color: var(--c-text);
  padding: .95rem .25rem;
}
.newsletter__input::placeholder { color: var(--c-grey-mid); }
.newsletter__input:focus { outline: none; }
.newsletter__btn {
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--dur-base) var(--ease-soft), transform var(--dur-press) var(--ease-brand);
}
@media (hover: hover) {
  .newsletter__btn:hover { background: var(--c-bg-soft); }
  .newsletter__btn:hover .arrow { transform: translateX(3px); }
}
.newsletter__btn .arrow { margin: 0; width: 1.5em; height: .75em; vertical-align: middle; }
.newsletter__msg { margin-top: clamp(1.25rem, 3vw, 2rem); font-size: var(--fs-small); color: var(--c-text-soft); }
.newsletter__consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  max-width: 38.75rem;
  margin: 1.1rem auto 0;
  padding-inline: clamp(1.25rem, 3vw, 1.9rem);
  text-align: left;
  font-size: var(--fs-meta);
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--c-text-soft);
  cursor: pointer;
}
.newsletter__consent input { flex: none; margin-top: .25rem; accent-color: var(--c-text); }

/* Forms: option chips as real radios/checkboxes (label.swatch > input) */
.form-group { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.form-group legend { padding: 0; }
label.swatch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
label.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
label.swatch:has(input:checked) { border-color: var(--c-text); }
label.swatch:has(input:focus-visible) { outline: 1.5px solid var(--c-text); outline-offset: 3px; }
.form-error {
  max-width: 51.25rem;
  margin-bottom: var(--sp-3);
  padding: .8rem 1rem;
  border-left: 2px solid var(--c-text);
  background: var(--c-bg-soft);
  font-size: var(--fs-small);
}
.form-error[hidden] { display: none; }
.statement .display { max-width: 18ch; margin-inline: auto; }
.statement .lead { margin: var(--sp-6) auto 0; text-align: center; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.section-head .meta { margin-bottom: .6rem; }

/* Collections — 3-panel split that expands on hover (hero-style) */
.collections-split {
  display: flex;
  gap: 6px;
  height: clamp(22.5rem, 52vh, 37.5rem);
  overflow: hidden;
}
.collections-split .cpanel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--c-on-dark);
  transition: flex-grow var(--dur-slow) var(--ease-brand);
  will-change: flex-grow;
}
.cpanel__media { position: absolute; inset: 0; }
.cpanel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-brand);
  will-change: transform;
}
/* subtle bottom scrim so the label stays readable over the photo */
.cpanel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(17,17,17,.55), rgba(17,17,17,0));
  z-index: 1;
  pointer-events: none;
}
.cpanel__label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.cpanel__name {
  font-family: var(--font-display);
  font-weight: 300; /* white over photos */
  font-size: calc(var(--fs-h3) * .72); /* the wide font: as wide as the original names */
  letter-spacing: .02em;
  white-space: nowrap;
}
.cpanel__label .meta { color: rgba(244,244,243,.75); white-space: nowrap; }

.collections-split.is-hovering .cpanel { flex-grow: .8; }
.collections-split .cpanel.is-active { flex-grow: 2.4; }
.collections-split .cpanel.is-active .cpanel__media img { transform: scale(1.05); }
@media (max-width: 860px) {
  .collections-split { flex-direction: column; height: auto; }
  /* stacked: each panel needs a height of its own (with the row layout's
     "flex: 1 1 0" a stacked panel had no height at all and the section was empty) */
  .collections-split .cpanel { flex: 0 0 auto; height: 15rem; }
}

/* Full-bleed image block (editorial) */
.figure {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-soft);
  overflow: hidden;
}
.figure--tall { aspect-ratio: 4 / 5; }
.figure__media { position: absolute; inset: 0; }
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   9. Product card (borderless, floats on white)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
}
/* minmax(0, 1fr): a wide child (file input, long word) can't push a column past the screen */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: transparent; /* blends into the white page — no card, no border */
  padding: clamp(1rem, 3vw, 2.5rem);
}
.product__media img,
.product__media svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-base) var(--ease-brand),
              opacity var(--dur-base) var(--ease-soft);
}
@media (hover: hover) {
  .product:hover .product__media img,
  .product:hover .product__media svg { transform: scale(1.035); }
}
.product__meta { margin-top: var(--sp-3); }
.product__name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .02em;
}
.product__price { font-size: var(--fs-small); color: var(--c-text-soft); margin-top: .35rem; }
.product__tag { display: block; margin-top: .5rem; }

/* Grid density control */
.grid-control {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-content: flex-end;
}
.grid-control__label { font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-soft); }
.grid-control button {
  font-size: var(--fs-small);
  width: 2em; height: 2em;
  color: var(--c-text-soft);
  transition: color var(--dur-fast) ease, transform var(--dur-press) var(--ease-brand);
}
.grid-control button[aria-pressed="true"] { color: var(--c-text); text-decoration: underline; text-underline-offset: 4px; }
.grid-control__set { display: flex; align-items: center; gap: var(--sp-3); }
/* Phones/tablets: one square = 1 column, four squares = 2 columns */
.grid-control__set--narrow { display: none; gap: .3rem; }
.grid-control .grid-control__icon {
  width: 2.5rem; height: 2.5rem;
  display: inline-grid; place-items: center;
  border-radius: 9px;
  color: var(--c-grey-mid);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-brand);
}
.grid-control__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.grid-control .grid-control__icon[aria-pressed="true"] { color: var(--c-text); background: rgba(22, 22, 22, .06); }
.grid-control__icon:focus-visible { outline: 1px solid var(--c-text); outline-offset: 2px; }

/* Search with no match (functions.php): one line and the way to all pieces */
.search-empty { display: grid; gap: var(--sp-4); justify-items: start; max-width: 36rem; margin-top: var(--sp-4); }
@media (max-width: 860px) {
  .grid-control { gap: var(--sp-2); }
  .grid-control__set--wide { display: none; }
  .grid-control__set--narrow { display: flex; }
  /* the visitor's pick wins over the default 1 (phone) / 2 (tablet) columns */
  .products.grid.grid--m1 { grid-template-columns: minmax(0, 1fr); }
  .products.grid.grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  /* two columns on a phone: tighter gutters, smaller card text */
  .woocommerce ul.products.grid.grid--m2 { gap: var(--sp-4) .75rem; }
  .woocommerce ul.products.grid--m2 li.product a img { padding: .5rem; }
  .woocommerce ul.products.grid--m2 li.product .woocommerce-loop-product__title { font-size: .82rem; line-height: 1.45; margin-top: .6rem; }
  .woocommerce ul.products.grid--m2 li.product .price { font-size: .75rem; }
  .woocommerce ul.products.grid--m2 li.product .product__tag { font-size: .6rem; letter-spacing: .14em; }
}

/* --------------------------------------------------------------------------
   10. Dark / contract block
   -------------------------------------------------------------------------- */
.block-dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
/* The photo in a full-width dark block is scaled up by its scroll parallax
   (motion.js) and stuck out past the right edge: phones then let the whole
   page slide sideways, a white strip showing on the right. Cropped here
   (clip, where supported, so nothing inside becomes a scroll box). */
.block-dark.bleed { overflow: hidden; overflow: clip; }
.block-dark .meta { color: rgba(244,244,243,.6); }
.block-dark .lead { color: var(--c-on-dark); }
.contract-teaser {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.contract-teaser__content { max-width: 40ch; }
/* The wide headline font (4.3.0): the title's longest word (FURNITURE, about
   10.3em) stays left of the photo, which starts at 44% of the width; its own
   width (not the 40ch text column) keeps "AT SCALE" on one line. */
.contract-teaser .display { font-size: calc(clamp(2rem, 3.4vw, 3.6rem) * var(--type-scale)); width: 11em; max-width: none; }

/* Sectors / capabilities lists. Numbered ones are an <ol>, which keeps the
   browser's indent unless it is reset here (only <ul> is reset in section 2). */
.rows { border-top: 1px solid var(--c-line); list-style: none; padding: 0; }
.rows li {
  border-bottom: 1px solid var(--c-line);
  padding-block: clamp(1rem, 2.4vw, 1.9rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: padding-left var(--dur-base) var(--ease-brand);
}
/* mouse only: on a phone a tap left the row stuck in its hover position */
@media (hover: hover) { .rows li:hover { padding-left: var(--sp-3); } }
/* lighter and a little smaller than h3: in the wide font the rows read as packed */
.rows .row__title { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.1rem, 1.7vw, 1.6rem); letter-spacing: .02em; }
.rows .row__note { font-size: var(--fs-small); color: var(--c-text-soft); max-width: 40ch; text-align: right; }
.block-dark .rows { border-color: rgba(244,244,243,.16); }
.block-dark .rows li { border-color: rgba(244,244,243,.16); }
.block-dark .rows .row__note { color: rgba(244,244,243,.55); }

/* --------------------------------------------------------------------------
   11. Project cards
   -------------------------------------------------------------------------- */
.project {
  display: block;
}
.project__media {
  aspect-ratio: 3 / 2;
  background: var(--c-bg-soft);
  overflow: hidden;
}
.project__media > * { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-brand); }
@media (hover: hover) { .project:hover .project__media > * { transform: scale(1.04); } }
.project__meta { margin-top: var(--sp-3); display: flex; justify-content: space-between; gap: var(--sp-3); }
.project__name { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h3); letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   11b. Projects page (editorial, parallax, scroll-interactive)
   -------------------------------------------------------------------------- */
.proj-hero { padding-block: clamp(3rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem); }
.proj-hero .hero-title { display: block; }
.proj-hero .lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* full-bleed helper (escape the wrap to the viewport edges) */
.fullbleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* parallax figure: inner image is oversized and translated on scroll */
.pfig { position: relative; overflow: hidden; background: var(--c-bg-soft); }
.pfig img {
  position: absolute;
  inset: -15% 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}
.pfig--wide { aspect-ratio: 16 / 9; }
.pfig--cine { aspect-ratio: 21 / 9; }
.pfig--tall { aspect-ratio: 3 / 4; }
.pfig--sq   { aspect-ratio: 1 / 1; }

/* caption under/over a project image */
.pcap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: var(--sp-3); flex-wrap: wrap; }
.pcap__name { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h3); letter-spacing: .02em; }
.pcap__tag { color: var(--c-text-soft); }

/* alternating editorial block: image + minimal text */
.pblock { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pblock--rev { grid-template-columns: 1fr 1.5fr; }
.pblock--rev .pblock__text { order: -1; }
.pblock__num { font-family: var(--font-display); font-weight: 200; font-size: clamp(2rem, 4vw, 3.4rem); color: var(--c-grey-light); line-height: 1; }
.pblock__text .meta { margin-top: 1rem; }
.pblock__text h3 { margin-top: .5rem; }
.pblock__text p { margin-top: 1rem; color: var(--c-text-soft); font-size: var(--fs-small); max-width: 38ch; }

/* two-up images */
.ptwo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }

/* horizontal scroll strip */
.pstrip {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pstrip::-webkit-scrollbar { display: none; }
.pstrip > figure { flex: 0 0 min(72vw, 27.5rem); scroll-snap-align: start; margin: 0; }
.pstrip .pfig { aspect-ratio: 4 / 5; }

@media (max-width: 860px) {
  .pblock, .pblock--rev { grid-template-columns: 1fr; gap: var(--sp-3); }
  .pblock--rev .pblock__text { order: 0; }
  .ptwo { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   11c. Collection page header (editorial: title → large image → intro)
   -------------------------------------------------------------------------- */
.collection-hero .section--tight { padding-bottom: clamp(2rem, 5vw, 4rem); }
.collection-hero__intro { padding-block: clamp(3rem, 7vw, 7rem) clamp(2rem, 5vw, 5rem); }
.collection-hero__intro .lead { max-width: 46ch; }
/* a collection without products yet: "Coming soon" + the newsletter sign-up */
.coming-soon { padding-block: 0 var(--section-y); }
.coming-soon .newsletter__sub { max-width: 46ch; margin-inline: auto; }
.collection-block { color: inherit; }

/* --------------------------------------------------------------------------
   12. Product page
   -------------------------------------------------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(4rem, 9vw, 12rem);   /* generous air between gallery and info column */
  align-items: start;
}
.pdp__info h1 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); letter-spacing: .01em; }
.pdp__gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.pdp__figure {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}
.pdp__figure img, .pdp__figure svg { width: 100%; height: 100%; object-fit: contain; }
.pdp__figure img { cursor: zoom-in; }
.pdp__figure--main { aspect-ratio: 3 / 2; padding: clamp(1rem, 2.5vw, 2.5rem); }

/* Front / side / back — a touch larger (less padding, wider ratio) */
.pdp__trio .pdp__figure { aspect-ratio: 4 / 3; padding: clamp(.4rem, 1.4vw, 1.1rem); }
/* the three side shots stay small and side by side at every width */
.pdp__trio.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Detail shots: at the foot of the left column, so the info column stays
   beside them while they scroll by. They bleed to the left screen edge,
   stacked and touching, no gaps. */
.pdp-details__stack {
  /* distance from the content's left edge to the viewport's left edge */
  --pull: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2));
  margin-left: calc(-1 * var(--pull));
  width: calc(100% + var(--pull));
  margin-top: clamp(1rem, 2vw, 2rem);
  margin-bottom: clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
}
.pdp-details__stack .pdp__figure--detail {
  aspect-ratio: auto;
  padding: 0;      /* image reaches the edges */
  margin: 0;       /* images touch each other, no gaps */
  display: block;
}
.pdp-details__stack .pdp__figure--detail img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
/* The info column follows the page beside the photos. neldra.js sets
   --pdp-top when the column is taller than the screen, so it sticks by its
   bottom edge and every part of it can be reached. */
.pdp__info { position: sticky; top: var(--pdp-top, calc(var(--header-h) + 1.5rem + var(--wp-admin--admin-bar--height, 0px))); }
/* Prices: body font (the display face's numerals read badly at this size) */
.pdp__price {
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: .04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.pdp__row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.swatch {
  border: 1px solid var(--c-line);
  padding: .8em 1.2em;
  font-size: var(--fs-small);
  transition: border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-brand);
}
.swatch[aria-pressed="true"] { border-color: var(--c-text); }
@media (hover: hover) { .swatch:hover { border-color: var(--c-text); } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); }
.qty button { width: 2.6em; height: 2.6em; }
.qty input { width: 3em; text-align: center; border: 0; font: inherit; }
.pdp__cta { display: grid; gap: var(--sp-2); margin-top: var(--sp-6); }

/* Accordion */
.acc { border-top: 1px solid var(--c-line); margin-top: var(--sp-8); }
.acc__item { border-bottom: 1px solid var(--c-line); }
.acc__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.35rem;
  font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase;
}
.acc__icon { transition: transform var(--dur-base) var(--ease-brand); }
.acc__item[aria-expanded="true"] .acc__icon { transform: rotate(45deg); }
.acc__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-base) var(--ease-brand);
}
.acc__body > div { padding-bottom: 1.6rem; color: var(--c-text-soft); font-size: var(--fs-small); }
.acc__body > div > * + * { margin-top: .6rem; }
.acc__figure { margin-top: var(--sp-3) !important; }
.acc__figure img { width: 100%; height: auto; cursor: zoom-in; }

/* Contact page: company details (left, sticky) + message form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
  padding-bottom: var(--section-y);
}
.contact-info { display: grid; gap: var(--sp-6); position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-info__block p:not(.meta) { margin-top: .5rem; font-size: .95rem; line-height: 1.7; user-select: text; }
.contact-select {
  width: 100%;
  padding: .7em 0;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
}
.contact-select:focus { outline: none; border-color: var(--c-text); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-info { position: static; }
}

/* Lightbox / image zoom (product gallery) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  overflow: hidden; /* a zoomed image stays inside the viewer */
  touch-action: none; /* swipes and pinches belong to the viewer (neldra.js), not to the browser */
  transition: opacity var(--dur-base) var(--ease-brand), visibility var(--dur-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
/* px on purpose: the viewer uses the screen, whatever the site's overall size */
.lightbox__stage {
  margin: 0;
  width: min(90vw, 1400px);
  height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0;
  cursor: zoom-in;
  touch-action: none;           /* neldra.js handles drag and pinch */
  -webkit-user-select: none; user-select: none;
  /* leaving: out fast. Zoom steps (wheel clicks) glide briefly instead of jumping. */
  transition: opacity .12s var(--ease-soft), transform .14s var(--ease-brand);
}
.lightbox__stage img.is-ready { opacity: 1; transition: opacity var(--dur-fast) var(--ease-soft), transform .14s var(--ease-brand); }
.lightbox__stage img.is-zoomed { cursor: grab; }
/* dragging / pinching: the image follows the hand exactly, no easing */
.lightbox__stage img.is-dragging { cursor: grabbing; transition: opacity var(--dur-fast) var(--ease-soft); }
/* Controls sit above the image and invert against it, so they read on the
   white backdrop and on a dark, zoomed-in piece alike. */
.lightbox__close, .lightbox__nav, .lightbox__count { z-index: 2; mix-blend-mode: difference; }
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2.2rem);
  right: clamp(1rem, 3vw, 2.2rem);
  font-size: var(--fs-meta);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem; height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.lightbox__nav::before {
  content: "";
  width: .8125rem; height: 1.5rem;
  background: currentColor;
  -webkit-mask: var(--icon-chev) no-repeat center / contain;
          mask: var(--icon-chev) no-repeat center / contain;
}
.lightbox__nav--prev { left: clamp(.25rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.25rem, 2vw, 2rem); }
.lightbox__nav--prev::before { transform: scaleX(-1); }
@media (hover: hover) { .lightbox__nav:hover { opacity: .55; } }
.lightbox__count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-meta);
  letter-spacing: .2em;
  color: #fff;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding-block: var(--sp-12) var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-6) var(--sp-4);
}
.footer-brand .brand { padding-left: 0; display: inline-block; margin-bottom: var(--sp-3); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-soft); font-weight: 400; margin-bottom: var(--sp-3); }
.footer-col li + li { margin-top: .7rem; }
.footer-col a { font-size: var(--fs-small); }
.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: var(--fs-meta); letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-soft);
}
.footer-email { font-size: var(--fs-small); color: var(--c-text); user-select: text; }
/* Social icons under the tagline (Customize -> Footer -> Social media).
   Solid brand glyphs in the soft text grey (4.4.2, owner: darker); no hover
   change (owner's wish, 4.4.1). The cut-out shapes inside the masks carry
   their own black fill: inherited from the icon's grey, Facebook's f was only
   half cut and read dark. The list is pulled left so the first
   glyph lines up with the text above it. Admins also see the ones without an
   address, faded. */
.footer-social { display: flex; flex-wrap: wrap; margin: var(--sp-4) 0 0 -.45rem; }
.footer-social a {
  display: grid; place-items: center;
  width: 2.05rem; height: 2.4rem;
  color: var(--c-text-soft);
  transition: transform var(--dur-press) var(--ease-brand);
}
.footer-social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; stroke: none; }
.footer-social a:active { transform: scale(.92); }
.footer-social .is-unset a { opacity: .4; }
.footer-draft, .footer-draft a { font-size: var(--fs-small); color: var(--c-grey-mid); }
.lang-switch { display: flex; gap: .8rem; }
.lang-switch button { letter-spacing: inherit; text-transform: inherit; }
.footer-bottom .lang-switch button[aria-pressed="true"] { color: var(--c-text); }
@media (hover: hover) { .footer-bottom .lang-switch button:hover { color: var(--c-text); } }

/* Header + mobile menu: the inactive language is dimmed with opacity, so it
   also works on the hero, where the header colours are inverted. */
.lang-switch--header,
.lang-switch--menu { gap: .7rem; font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase; }
.lang-switch--header button,
.lang-switch--menu button { opacity: .45; transition: opacity var(--dur-fast) ease; }
.lang-switch--header button[aria-pressed="true"],
.lang-switch--menu button[aria-pressed="true"] { opacity: 1; }
@media (hover: hover) {
  .lang-switch--header button:hover,
  .lang-switch--menu button:hover { opacity: 1; }
}
.lang-switch--menu { display: none; margin-top: var(--sp-4); gap: 1.4rem; }
@media (max-width: 560px) {
  .lang-switch--header { display: none; }
  .lang-switch--menu { display: flex; }
}

/* --------------------------------------------------------------------------
   14. Overlays (menu / search / cart)
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--c-bg);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-brand), visibility var(--dur-base);
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__close { align-self: flex-end; font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase; }
.overlay__body { margin-block: auto; }
.menu-list a {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}
.overlay.is-open .menu-list a { opacity: 1; transform: none; transition: opacity var(--dur-base) var(--ease-brand), transform var(--dur-base) var(--ease-brand); }
.menu-list li:nth-child(1) a { transition-delay: .06s; }
.menu-list li:nth-child(2) a { transition-delay: .12s; }
.menu-list li:nth-child(3) a { transition-delay: .18s; }
.menu-list li:nth-child(4) a { transition-delay: .24s; }
.menu-list li:nth-child(5) a { transition-delay: .30s; }

.search-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  padding-block: .4em;
  background: transparent;
}
.search-input:focus { outline: none; border-color: var(--c-text); }

/* Cart drawer */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(27.5rem, 92vw);
  background: var(--c-bg);
  z-index: var(--z-overlay);
  border-left: 1px solid var(--c-line);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-brand);
  display: flex; flex-direction: column;
  /* the page gutter grows to 5rem on wide screens; the drawer's own sides
     stop at 2.25rem, so a piece's name fits on one line beside its picture */
  padding: var(--gutter) min(var(--gutter), 2.25rem);
  touch-action: pan-y; /* up/down scrolls the list; a sideways swipe closes the drawer (neldra.js) */
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
/* the cart contents (re-rendered in place after add/remove) */
.drawer__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.drawer__empty { margin-block: auto; font-size: .9rem; }
.drawer__foot { margin-top: auto; padding-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.drawer__foot .btn { justify-content: center; }

/* Cart drawer items (4.4.3): compact rows, so four or five pieces show at
   once. A small picture on the left; beside it the name and, under it, the
   price; the × on the right, centred on the row. The chosen options appear
   only when the same piece is in the cart twice (functions.php). The 4.4.1
   cards (a large picture each) looked good with one piece but became a long
   scroll with more. The list has no scrollbar: a soft fade at its top or
   bottom edge shows there is more (neldra.js, fadeEdges). */
.mini-cart {
  margin: var(--sp-4) 0 0;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.mini-cart::-webkit-scrollbar { display: none; }
.mini-cart.is-more-below {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent);
}
.mini-cart.is-more-above {
  -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 3rem), transparent);
          mask-image: linear-gradient(to top, #000 calc(100% - 3rem), transparent);
}
.mini-cart.is-more-above.is-more-below {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.mini-cart__item {
  position: relative;
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  column-gap: 1.1rem;
  align-items: center;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--c-line-soft);
}
.mini-cart__media { display: block; }
.mini-cart__media img { width: 6.25rem; height: 4.4rem; object-fit: contain; }
.mini-cart__info { display: grid; justify-items: start; row-gap: .3rem; min-width: 0; padding-right: 2.1rem; } /* room for the × */
.mini-cart__name { font-size: .9rem; font-weight: 400; line-height: 1.4; }
.mini-cart__qty { color: var(--c-text-soft); font-size: var(--fs-small); white-space: nowrap; }
.mini-cart__meta { font-size: var(--fs-small); color: var(--c-text-soft); line-height: 1.4; }
.mini-cart__price { font-size: .86rem; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
/* Remove: a small × at the row's right end, centred on it. The tap area
   reaches left from the mark, never past the edge (the list scrolls, so
   anything wider gave it a sideways scroll). */
.mini-cart__remove {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  margin-block: auto;
  display: grid;
  justify-items: end;
  align-items: center;
  width: 2.5rem; height: 2.5rem;
  color: var(--c-grey-mid);
  transition: color var(--dur-fast) ease, transform var(--dur-press) var(--ease-brand);
}
.mini-cart__remove svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.mini-cart__remove:active { transform: scale(.88); }
@media (hover: hover) { .mini-cart__remove:hover { color: var(--c-text); } }
.mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; }
.mini-cart__note { font-size: var(--fs-meta); letter-spacing: .02em; margin-bottom: var(--sp-2); }
.scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-overlay) - 1);
  background: rgba(19,19,19,.28);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) ease, visibility var(--dur-base);
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
/* Hidden only when JS runs (html.js), so the page is complete without JS. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease-brand), transform .8s var(--ease-brand);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   16b. In-place actions (neldra.js): add to cart, cart removals, newsletter,
   enquiry and contact forms answer in place instead of reloading the page.
   A button morphs between faces (idle → busy → done); the faces share one
   grid cell, so the button never changes size, and they crossfade with a
   light blur so two labels read as one label changing.
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Press: every real button gives a little under the finger/cursor */
.woocommerce .quantity button { transition: transform var(--dur-press) var(--ease-brand); }
.btn:active, .newsletter__btn:active, .swatch:active, .grid-control button:active,
.woocommerce .quantity button:active, .woocommerce .button:active,
.woocommerce .single_add_to_cart_button:active { transform: scale(.97); }

.act { display: inline-grid; justify-items: center; align-items: center; vertical-align: middle; }
.single_add_to_cart_button .act { justify-items: start; }
.act__face {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: .75em;
  transition: opacity var(--dur-fast) var(--ease-brand),
              transform var(--dur-fast) var(--ease-brand),
              filter var(--dur-fast) var(--ease-brand);
}
[data-act] .act__face { opacity: 0; transform: scale(.94); filter: blur(2px); }
[data-act="idle"] .act__face--idle,
[data-act="busy"] .act__face--busy,
[data-act="done"] .act__face--done { opacity: 1; transform: none; filter: none; }
[data-act="busy"] { cursor: progress; }

/* busy: a small ring, fast so the wait feels short; it only runs while shown */
.act__spin {
  width: 1em; height: 1em; flex: none;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: neldra-spin .7s linear infinite paused;
}
[data-act="busy"] .act__spin { animation-play-state: running; }
@keyframes neldra-spin { to { transform: rotate(360deg); } }

/* done: the check draws itself */
.act__check {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
[data-act="done"] .act__check { stroke-dashoffset: 0; transition: stroke-dashoffset .36s var(--ease-brand) .06s; }

/* uploads: a hairline along the bottom of the button fills with the progress */
.act-host { position: relative; overflow: hidden; }
.act__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; opacity: .55;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .12s linear, opacity var(--dur-fast) ease;
}

/* messages that appear in place */
.act-error { animation: neldra-msg-in .26s var(--ease-brand) both; }
form.cart .act-error { margin: 0; }
.act-done-msg { display: flex; align-items: flex-start; gap: .7em; animation: neldra-msg-up .38s var(--ease-brand) both; }
.act-done-msg .act__check { margin-top: .3em; stroke-dashoffset: 0; animation: neldra-draw .46s var(--ease-brand) .18s both; }
.newsletter__msg.is-done {
  justify-content: center; align-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: var(--fs-lead); color: var(--c-text);
}
.newsletter__msg.is-done .act__check { margin-top: 0; }
.newsletter__msg.is-error { animation: neldra-msg-in .26s var(--ease-brand) both; }

/* cart drawer: what just went in rises into place; what's removed dims, then folds away */
.mini-cart__item.is-new { animation: neldra-item-in .38s var(--ease-brand) .2s both; }
.mini-cart__item.is-removing { opacity: .4; pointer-events: none; transition: opacity var(--dur-fast) ease; }
.drawer__body.is-swapped { animation: neldra-fade-in .3s var(--ease-brand) both; }

@keyframes neldra-msg-in  { from { opacity: 0; transform: translateY(-4px); } }
@keyframes neldra-msg-up  { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }
@keyframes neldra-item-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes neldra-fade-in { from { opacity: 0; } }
@keyframes neldra-draw    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-act] .act__face { transform: none; filter: none; } /* labels simply swap */
  /* a frozen ring reads as broken: keep it turning, slowly */
  .act__spin { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pdp__info { position: static; }
  /* one column: main shot, the three views, the info, then the detail shots
     (the gallery box steps aside so its parts can be ordered around the info) */
  .pdp__gallery { display: contents; }
  .pdp__figure--main { order: 1; }
  .pdp__trio { order: 2; margin-top: var(--sp-4); }
  .pdp__info { order: 3; margin-top: var(--sp-6); }
  /* the detail shots: from screen edge to screen edge, one under the other
     (owner's wish, 4.4.0; the scrollbar is hidden, so 100vw is the screen) */
  .pdp-details__stack { order: 4; width: 100vw; margin: var(--sp-6) 0 var(--sp-6) calc(50% - 50vw); gap: .5rem; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  /* nav hidden: brand left, utilities right (a 3-column grid pushed Menu off-screen) */
  .site-header__inner { grid-template-columns: auto 1fr; }
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* hero stacks into two full-width sections */
  .hero { flex-direction: column; height: auto; }
  .panel { flex-basis: auto; height: 60svh; min-height: 380px; }
  .hero::after { display: none; }
  .hero[data-hover] .panel { flex-grow: 1 !important; }
  .panel.is-active { height: 66svh; }
  .rows .row__note { display: none; }
  .section-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .pdp__trio.grid--3 { gap: .5rem !important; }
  /* single-word page titles (COLLECTIONS, KOLLEKCIÓK) must fit a phone */
  :root { --fs-hero: clamp(2.1rem, 9.5vw, 3rem); }
  .footer-grid { grid-template-columns: 1fr; }
  /* phones: a compact bar. Small wordmark on the content's left edge; Cart and
     Menu at one size on the right, and they always keep their room (the
     wordmark gives way first). Search lives in the menu overlay. */
  :root { --header-h: 58px; }
  .site-header--solid { background: rgba(255, 255, 255, .96); } /* small text behind must not show through */
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2); }
  .brand { font-size: .7rem; letter-spacing: .3em; padding-left: 0; line-height: 1; white-space: nowrap; overflow: hidden; }
  .brand-logo { min-width: 0; line-height: 0; }
  .brand-logo .custom-logo { max-height: 13px; max-width: 100%; }
  .nav-util { gap: 1.1rem; }
  .nav-util button { font-size: .66rem; letter-spacing: .14em; line-height: 1; white-space: nowrap; padding-block: .8rem; }
  .nav-util [data-open="search-overlay"] { display: none; }
}
.menu-search { display: none; margin-top: var(--sp-6); font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 560px) { .menu-search { display: inline-block; } }

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .panel__intro { opacity: .8 !important; transform: none !important; }
}


/* ==========================================================================
   19. WooCommerce — mapped onto the Neldra design system
   ========================================================================== */

/* Shop / collection archive grid */
.woocommerce ul.products { margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products.grid { display: grid; }
.woocommerce ul.products li.product,
.woocommerce ul.products li.product::before { width: auto; margin: 0; float: none; clear: none; content: none; }
.woocommerce ul.products li.product { text-align: center; }
.woocommerce ul.products li.product a { text-decoration: none; color: inherit; }
.woocommerce ul.products li.product a img {
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: clamp(1rem, 3vw, 2.5rem);
  transition: transform var(--dur-base) var(--ease-brand);
}
@media (hover: hover) { .woocommerce ul.products li.product:hover a img { transform: scale(1.035); } }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: .02em;
  line-height: 1.7; padding: 0; margin-top: var(--sp-3);
}
.woocommerce ul.products li.product .price {
  color: var(--c-text-soft); font-size: var(--fs-small); font-weight: 300;
  display: block; margin-top: .35rem;
}
.woocommerce ul.products li.product .price del { opacity: .5; margin-right: .4em; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .product__tag { display: block; margin-top: .5rem; }

/* Buttons: remove the default purple, use the Neldra .btn look */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button, .woocommerce .single_add_to_cart_button {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  background: var(--c-text);
  color: var(--c-bg);
  border: 1px solid var(--c-text);
  border-radius: 0;
  padding: 1.1em 2.2em;
  transition: background var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft),
              transform var(--dur-press) var(--ease-brand);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .button:hover, .woocommerce .single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover { background: transparent; color: var(--c-text); }
/* archive add-to-cart: quieter, borderless until hover */
.woocommerce ul.products li.product .button {
  margin-top: var(--sp-2); background: transparent; color: var(--c-text);
}
.woocommerce ul.products li.product .button:hover { background: var(--c-text); color: var(--c-bg); }

/* Single product (woocommerce/content-single-product.php) reuses the
   prototype's .pdp markup; these rules only fit WooCommerce's add-to-cart
   form into the info column. */
.pdp__excerpt { margin-top: 1.5rem; font-size: .95rem; }

/* variations: one block per option — meta label, then a row of swatches */
.pdp__info form.cart { margin-top: var(--sp-4); }
.pdp__info table.variations,
.pdp__info table.variations tbody,
.pdp__info table.variations tr,
.pdp__info table.variations th,
.pdp__info table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.pdp__info table.variations { margin: 0; }
.pdp__info table.variations tr + tr { margin-top: var(--sp-3); }
.pdp__info table.variations th.label label {
  display: block;
  margin-bottom: .8rem;
  font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; color: var(--c-text-soft);
}
.pdp__info .swatches { margin-top: 0; }
.js .pdp__info table.variations select { display: none; }
html:not(.js) .pdp__info .swatches { display: none; }
.pdp__info table.variations select { font: inherit; padding: .7em; border: 1px solid var(--c-line); background: transparent; }
.pdp__info .single_variation .price { display: block; margin-top: var(--sp-3); font-family: var(--font-body); font-weight: 300; font-size: 1.2rem; letter-spacing: .04em; }
.woocommerce .price, .woocommerce .amount, .mini-cart__total { font-variant-numeric: lining-nums tabular-nums; }
.pdp__info .woocommerce-variation-availability { font-size: var(--fs-small); color: var(--c-text-soft); }

/* quantity block + CTA stack (Add to cart, For projects, note) */
.pdp__info .variations_button,
.pdp__info form.cart:not(.variations_form) { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.pdp__qty { margin-bottom: calc(var(--sp-6) - var(--sp-2)); }
.pdp__qty .meta { margin-bottom: .8rem; }
/* same box as the prototype's .btn: body line-height, left-aligned label */
.woocommerce .pdp__info .single_add_to_cart_button { width: 100%; text-align: left; line-height: inherit; padding: 1.15em 2.2em; }
.pdp__note { font-size: .8rem; margin-top: calc(1rem - var(--sp-2)); }

/* WooCommerce quantity input as the prototype's −/+ stepper */
.woocommerce .quantity { display: inline-flex; align-items: center; border: 1px solid var(--c-line); }
.woocommerce .quantity button { width: 2.6em; height: 2.6em; }
.woocommerce .quantity input.qty {
  width: 3em; text-align: center; border: 0; padding: 0; background: transparent; font: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity:has(input[type="hidden"]) { display: none; }

/* Notices ("added to your cart" etc.): one quiet line + a text link, no box,
   no icon. WooCommerce focuses the notice for screen readers; that focus
   ring drew an extra frame, so it is hidden on these non-interactive boxes. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 var(--sp-4);
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
  color: var(--c-text-soft);
  font-size: var(--fs-small);
  list-style: none;
}
.woocommerce-message,
.woocommerce-info { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none; display: none; }
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-notices-wrapper:focus { outline: none; }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button {
  order: 2;
  float: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-text);
  font-size: var(--fs-meta);
  letter-spacing: .18em;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-info .button:hover { background: none; color: var(--c-text); text-decoration-color: transparent; }
.woocommerce-error li + li { margin-top: .4rem; }
.woocommerce table.shop_table { border-radius: 0; }


/* Primary (.alt) WooCommerce buttons — beat the default accent decisively */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce .button.alt, .woocommerce .single_add_to_cart_button,
.woocommerce #respond input#submit.alt {
  background: var(--c-text) !important;
  color: var(--c-bg) !important;
  border-color: var(--c-text) !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce .button.alt:hover, .woocommerce .single_add_to_cart_button:hover,
.woocommerce #respond input#submit.alt:hover {
  background: transparent !important;
  color: var(--c-text) !important;
}


/* WooCommerce adds clearfix ::before/::after to ul.products; in a grid they
   become phantom cells and shove the first product over. Remove them. */
.woocommerce ul.products.grid::before,
.woocommerce ul.products.grid::after { content: none; display: none; }


/* Shop header (editable intro) */
.woocommerce-products-header { margin: 0; padding: 0; }
.shop-intro { padding-block: clamp(3rem, 7vw, 7rem); } /* = .section--tight, as in shop.html */


/* ==========================================================================
   20. WooCommerce — single-product CTAs, cart & checkout redesign
   ========================================================================== */

/* ---- Cart & Checkout: no boxes, only hairlines ---- */
.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-column__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .02em;
  font-size: var(--fs-h3);
}
/* "Cart totals" reads as a quiet label, like the rest of the UI */
.woocommerce .cart_totals h2,
.woocommerce .cart-collaterals h2 {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-2);
}
.woocommerce table.shop_table {
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  margin: 0 0 var(--sp-4);
}
.woocommerce table.shop_table th {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--fs-meta);
  font-weight: 400;
  color: var(--c-text-soft);
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border: 0;
  border-bottom: 1px solid var(--c-line);
  padding: 1.25rem .75rem;
  background: none;
}
.woocommerce table.shop_table thead th { padding-top: 0; }
.woocommerce table.shop_table td.product-name a { color: var(--c-text); }
.woocommerce table.shop_table .variation,
.woocommerce table.shop_table td.product-name dl { font-size: var(--fs-small); color: var(--c-text-soft); }
/* the whole piece in small: an uncropped image (functions.php) fitted into
   the box, never cut (4.4.0) */
.woocommerce table.cart td.product-thumbnail { width: 8.5rem; }
.woocommerce table.cart img { width: 7rem; height: 5.25rem; max-width: none; object-fit: contain; }
.woocommerce a.remove {
  border: 0;
  border-radius: 0;
  color: var(--c-grey-mid) !important;
  font-weight: 300;
  font-size: 1.4rem;
}
.woocommerce a.remove:hover { background: transparent !important; color: var(--c-text) !important; }

/* form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce #order_comments,
.select2-container .select2-selection,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--c-line);
  border-radius: 0;
  padding: .9em 1em;
  font: inherit;
  background: transparent;
  min-height: 3rem;
}
.woocommerce form .form-row label { font-size: var(--fs-small); letter-spacing: .02em; }
.woocommerce form .form-row .required { color: var(--c-text-soft); } /* no red */

/* totals: a plain list (Subtotal / Shipping / Total), no grey box */
.woocommerce .cart_totals table.shop_table,
.woocommerce-checkout #order_review { background: transparent; border: 0; }
.woocommerce .cart_totals table.shop_table th { width: 38%; padding-left: 0; }
.woocommerce .cart_totals table.shop_table td { padding-right: 0; text-align: right; }
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td { border-bottom: 0; color: var(--c-text); font-size: 1rem; }
.woocommerce .cart_totals .order-total strong { font-weight: 400; }
.woocommerce .cart_totals ul#shipping_method { margin: 0; padding: 0; }
.woocommerce .cart_totals .woocommerce-shipping-destination,
.woocommerce .cart_totals .shipping-calculator-button { font-size: var(--fs-small); color: var(--c-text-soft); }
.woocommerce #payment, .woocommerce-checkout #payment { background: var(--c-bg-soft); border: 0; border-radius: 0; }
.woocommerce #payment .payment_methods { border: 0; }

/* disabled buttons (e.g. "Update cart" before a change): quiet outline, not a grey slab */
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
  background: transparent; color: var(--c-grey-mid); border-color: var(--c-line); opacity: 1; padding: 1.1em 2.2em;
}

/* primary actions: full width, same size as every other button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order { width: 100%; text-align: center; font-size: var(--fs-meta); padding: 1.15em 2.2em; }
.woocommerce-cart .wc-proceed-to-checkout { padding: var(--sp-2) 0 0; }
.woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; }

/* coupon (left) + update cart (right): quiet, on one line */
.woocommerce table.cart td.actions { border-bottom: 0; padding: var(--sp-3) 0 0; }
.woocommerce-cart-form .actions .coupon { display: flex; align-items: center; gap: var(--sp-2); }
/* (selector beats WooCommerce's ".woocommerce-cart table.cart td.actions .coupon .input-text") */
.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon .input-text {
  width: min(14rem, 50vw); min-height: 0; margin: 0; padding: .7rem 0;
  border: 0; border-bottom: 1px solid var(--c-line); background: transparent;
  font: inherit; font-size: var(--fs-small);
}
.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon .input-text:focus { outline: none; border-color: var(--c-text); }
.woocommerce-cart-form .actions .button,
.woocommerce-cart-form .actions .button:disabled[disabled] {
  background: transparent; color: var(--c-text); border: 1px solid var(--c-line);
  padding: .9em 1.6em; width: auto;
}
.woocommerce-cart-form .actions .button:hover { background: transparent; color: var(--c-text); border-color: var(--c-text); }
.woocommerce-cart-form .actions .button:disabled[disabled] { color: var(--c-grey-mid); }

@media (min-width: 900px) {
  .woocommerce-cart .cart-collaterals { display: grid; grid-template-columns: 1fr 25rem; gap: var(--sp-6); align-items: start; margin-top: var(--sp-6); }
  .woocommerce-cart .cart-collaterals .cross-sells { grid-column: 1; }
  .woocommerce-cart .cart-collaterals .cart_totals { grid-column: 2; }
}

/* Touch screens keep :hover on the last tapped button. WooCommerce's own
   stylesheet has hover looks of its own, so here the hover is set back to
   the resting look (4.4.0). */
@media (hover: none) {
  .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
  .woocommerce .button:hover, .woocommerce #respond input#submit:hover { background: var(--c-text); color: var(--c-bg); }
  .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
  .woocommerce .button.alt:hover, .woocommerce .single_add_to_cart_button:hover,
  .woocommerce #respond input#submit.alt:hover { background: var(--c-text) !important; color: var(--c-bg) !important; }
  .woocommerce ul.products li.product .button:hover { background: transparent; color: var(--c-text); }
  .woocommerce .woocommerce-message .button:hover,
  .woocommerce .woocommerce-info .button:hover { background: none; text-decoration-color: currentColor; }
  .woocommerce-cart-form .actions .button:hover { border-color: var(--c-line); }
  .woocommerce a.remove:hover { color: var(--c-grey-mid) !important; }
}

/* --------------------------------------------------------------------------
   19. Phones and small tablets: a calmer page
   The owner found the phone version big and cramped. The root size drops
   there (Customize -> Layout & spacing -> "Overall size on phones"; the rule
   is in the inline CSS, inc/customizer.php), which makes all text and
   controls smaller. Here the spacing steps open up, so there is more room
   between things than before, and a few places get room of their own.
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --sp-1: .6rem;   --sp-2: 1.2rem;  --sp-3: 1.9rem;  --sp-4: 2.6rem;
    --sp-6: 4rem;    --sp-8: 5.25rem; --sp-12: 7.5rem;
  }
  /* text fields: iOS zooms the whole page when a focused field's text is under 16px */
  input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"],
  input[type="number"], input[type="password"], textarea, select { font-size: 16px !important; }

  .section-head { margin-bottom: var(--sp-4); }
  /* page intros (Shop, a collection): label, title and text each on their own */
  .shop-intro .meta { margin-bottom: .8rem; }
  .shop-intro .lead { margin-top: 1.4rem; }

  /* product page: title, price, then each choice as a block of its own */
  .pdp__price { font-size: 1.05rem; }
  .pdp__info form.cart { margin-top: var(--sp-6); }
  .pdp__info table.variations tr + tr { margin-top: var(--sp-4); }
  .pdp__info table.variations th.label label { margin-bottom: 1.1rem; }
  .swatch { font-size: .875rem; }
  .pdp__qty { margin-top: var(--sp-4); }
  .pdp__qty .meta { margin-bottom: 1.1rem; }
  .pdp__info .variations_button,
  .pdp__info form.cart:not(.variations_form) { gap: var(--sp-2); }

  /* image viewer: the arrows sit at the bottom, either side of the count,
     clear of the picture; a swipe changes the picture as well (neldra.js) */
  .lightbox__stage { width: 94vw; height: 72vh; height: 72svh; }
  .lightbox__count { bottom: 2.1rem; }
  .lightbox__nav { top: auto; bottom: .75rem; transform: none; width: 3.4rem; height: 3.4rem; }
  .lightbox__nav--prev { left: calc(50% - 6.6rem); }
  .lightbox__nav--next { right: calc(50% - 6.6rem); }
  .lightbox__nav::before { width: .7rem; height: 1.25rem; }

  /* (product page detail shots: edge to edge, one under the other, see 17) */
}
@media (max-width: 560px) {
  :root { --gutter: 1.7rem; }           /* a little more room at the screen's edges */
  /* cart: the coupon field gives way, so the row fits a 320px phone */
  .woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon .input-text { width: auto; flex: 1 1 0; min-width: 0; }
  .nav-util button { font-size: .74rem; } /* Cart / Menu: not under 10px now that the base is smaller */
}

/* WooCommerce stacks the cart table on small screens (its breakpoint is 768px);
   as a real table it still sized itself to its contents and stuck out 39px on
   a 320px phone. As plain blocks it keeps to the page width (4.4.0). */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive,
  .woocommerce table.shop_table_responsive tbody { display: block; width: 100%; }
}

/* --------------------------------------------------------------------------
   20. Michroma for headlines on phones (a trial the owner asked for)
   Body class .hfont-michroma (functions.php), from Customize -> Layout &
   spacing -> "Headline font on phones". Desktop is not touched. Michroma is
   about 1.6 times as wide as Jost, so the headline sizes step down with it:
   the longest single words (COLLECTIONS, KOLLEKCIOK) must fit a 320px screen.
   It has one weight (400).
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hfont-michroma {
    --font-display: "Michroma", "Jost", "Montserrat", system-ui, sans-serif;
    --fs-hero:    clamp(1.4rem, 7.9vw, 2.6rem);
    --fs-display: clamp(1.4rem, 7.9vw, 2.6rem);
    --fs-h2:      clamp(1.25rem, 5.6vw, 2rem);
    --fs-h3:      clamp(1.05rem, 4.2vw, 1.5rem);
  }
  .hfont-michroma .panel__title { font-size: clamp(1.5rem, 7.2vw, 2.6rem); letter-spacing: .06em; }
  /* the Contract page's hero title sets its size inline */
  .hfont-michroma .panel__title[style] { font-size: clamp(1.4rem, 7vw, 2.6rem) !important; line-height: 1.12; }
  .hfont-michroma .menu-list a { font-size: clamp(1.4rem, 6.6vw, 3rem); }
  .hfont-michroma .is-live .walk__word { font-size: calc(clamp(1.5rem, 7vw, 2.6rem) * var(--type-scale)); line-height: 1.08; }
  .hfont-michroma .pdp__info h1 { font-size: 1.3rem; line-height: 1.35; }
  .hfont-michroma .brand { font-size: .82rem; letter-spacing: .24em; }
  .hfont-michroma h1, .hfont-michroma h2, .hfont-michroma h3 { line-height: 1.18; }
}

/* ==========================================================================
   21. Legal (4.1.0): policy pages, the manufacturer line, the EU legal
       guarantee notice dialog, the withdrawal form (inc/legal.php)
   ========================================================================== */
.content-body--legal { max-width: 78ch; font-size: var(--fs-body); line-height: 1.65; }
.content-body--legal h2 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; text-transform: none; margin: var(--sp-6) 0 var(--sp-2); }
.content-body--legal h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; margin: var(--sp-4) 0 var(--sp-1); }
.content-body--legal p,
.content-body--legal ul { margin: 0 0 .9rem; }
.content-body--legal ul { padding-left: 1.25rem; list-style: disc; }
.content-body--legal ul ul { margin: .35rem 0 0; list-style: circle; }
.content-body--legal li + li { margin-top: .35rem; }
.content-body--legal a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.content-body--legal .legal-note { font-size: var(--fs-small); color: var(--c-text-soft); }
.legal-box { background: var(--c-bg-soft); border-left: 2px solid var(--c-text); padding: var(--sp-2) var(--sp-3); margin: var(--sp-3) 0; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: var(--sp-2) 0 var(--sp-4); font-size: var(--fs-small); line-height: 1.55; }
.legal-table th,
.legal-table td { border-bottom: 1px solid var(--c-line); padding: .6rem 1rem .6rem 0; text-align: left; vertical-align: top; }
.legal-table th { font-weight: 600; color: var(--c-text-soft); border-bottom-color: var(--c-text); }
.legal-table td:first-child { width: 32%; color: var(--c-text-soft); }
mark.legal-todo { background: #fff3a8; color: inherit; padding: 0 .15em; }

/* Product page: manufacturer (GPSR) + "Your legal guarantee rights" */
.pdp-legal { margin-top: var(--sp-4); font-size: var(--fs-small); line-height: 1.6; color: var(--c-text-soft); }
.pdp-legal p + p { margin-top: .45rem; }
.pdp-legal__label { font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase; margin-right: .6rem; }
.pdp-legal .link,
.checkout-legal .link { color: var(--c-text); }
.checkout-legal { font-size: var(--fs-small); margin: 0 0 var(--sp-2); }
/* The privacy note and the terms checkbox above the order button: one quiet size */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: var(--fs-small); line-height: 1.6; color: var(--c-text-soft); }
.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a { color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; }

/* The official notice in a dialog: shown whole, never cropped or redrawn */
.legal-notice { border: 0; padding: 0; margin: auto; width: min(94vw, 720px); max-height: 92vh; max-height: 92svh; overflow: auto; background: var(--c-bg); color: var(--c-text); box-shadow: 0 30px 80px rgba(19, 19, 19, .28); }
.legal-notice::backdrop { background: rgba(19, 19, 19, .55); }
.legal-notice img { display: block; width: 100%; height: auto; }
.legal-notice__close { position: sticky; top: 0; left: 0; z-index: 1; display: block; padding: .9rem 1.1rem; font-size: var(--fs-small); letter-spacing: .08em; background: var(--c-bg); }
.legal-notice__links { padding: var(--sp-2) var(--sp-3) var(--sp-3); font-size: var(--fs-small); color: var(--c-text-soft); }

/* WooCommerce's withdrawal form (My account → withdraw-order) */
.woocommerce-order-withdrawal-content { max-width: 46rem; }
.woocommerce-order-withdrawal-content__steps { display: flex; gap: var(--sp-3); margin: var(--sp-3) 0 var(--sp-4); padding: 0; list-style: none; font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-soft); }
.woocommerce-order-withdrawal-content__step--current { color: var(--c-text); }
.woocommerce-order-withdrawal-content__note { font-size: var(--fs-small); color: var(--c-text-soft); }
.woocommerce-order-withdrawal-content__review-row { display: flex; gap: var(--sp-2); padding: .6rem 0; border-bottom: 1px solid var(--c-line); }
.woocommerce-order-withdrawal-content__review-row dt { width: 38%; color: var(--c-text-soft); }
.woocommerce-order-withdrawal-content__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

@media (max-width: 640px) {
  .legal-table td:first-child { width: 40%; }
  .legal-table th, .legal-table td { padding-right: .6rem; }
  /* The notice must be legible at its default size: on phones it keeps a
     readable width and the dialog scrolls instead of shrinking it. */
  .legal-notice img { width: 560px; max-width: none; }
}

/* ==========================================================================
   22. The wide headline font on phones (4.3.0)
   The longest single words must fit a 320px screen inside the page gutters:
   COLLECTIONS in the menu, FURNITURE in the Contract page's hero title
   (which sets its size inline) and in the homepage's Contract block.
   ========================================================================== */
@media (max-width: 860px) {
  .menu-list a { font-size: clamp(1.4rem, 7vw, 3rem); }
  /* the big page titles too (COLLECTIONS was 73px wider than a 375px phone) */
  .hero-title { font-size: min(calc(var(--fs-hero) * var(--type-scale)), 7vw); }
  .panel__title[style] { font-size: clamp(1.4rem, 7vw, 2.6rem) !important; line-height: 1.12; }
  .contract-teaser .display { font-size: calc(clamp(1.4rem, 7.6vw, 2.6rem) * var(--type-scale)); line-height: 1.12; }
}

/* ==========================================================================
   23. Phones (4.5.0): calmer lists, steadier pictures, a tidier cart and
   checkout. Only phones change; the desktop layout is left as it was.
   ========================================================================== */
@media (max-width: 860px) {
  /* Contract and Projects lists: in the headline font at almost headline
     size they read like more titles. Smaller and soft grey (the owner chose
     this of three versions), so the section title stays the strong line. */
  .rows li { padding-block: 1.05rem; }
  .rows .row__title { font-size: .92rem; color: var(--c-text-soft); }
  .block-dark .rows .row__title { color: rgba(244, 244, 243, .72); }

  /* Pictures went blank on iPhones after a while. Every picture kept on a
     graphics layer of its own (will-change) adds to what Safari must hold
     in memory, and when it runs short it stops drawing layers. Here the
     layers exist only while something moves; motion.js also removes the
     reveal clip-paths once they are open. */
  .panel, .cpanel,
  .panel__media, .cpanel__media img, .pfig img,
  .js [data-reveal],
  .motion .w__i,
  .motion-live .collections-split,
  .motion-live .block-dark.bleed { will-change: auto; }

  /* Text fields stay 16px (iPhones zoom into anything smaller), but the grey
     hints inside them ("Coupon code", "https://", "House number…") can be
     quiet: the zoom only looks at the field's own size. */
  input::placeholder,
  textarea::placeholder { font-size: .9rem; }
}

/* Cart page on phones (WooCommerce stacks the table below 768px). One line
   per piece like the cart drawer: picture, name and options, then the
   quantity and the line's total; no "Product:" / "Price:" labels in bold, no
   grey stripes. The coupon field waits behind "Have a coupon code?", and a
   changed quantity updates the cart by itself (neldra.js, initCartPage). */
.coupon-toggle { display: none; }
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive tr:nth-child(2n) td,
  .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td { background: none; }

  .woocommerce-cart table.cart tr.cart_item {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name remove"
      "thumb qty  total";
    column-gap: 1.1rem;
    row-gap: .85rem;
    align-items: center;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--c-line);
  }
  .woocommerce-cart table.cart tr.cart_item td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    text-align: left !important;
  }
  .woocommerce-cart table.cart tr.cart_item td::before { content: none !important; }
  .woocommerce-cart table.cart tr.cart_item td.product-thumbnail { grid-area: thumb; display: block; align-self: center; }
  .woocommerce-cart table.cart tr.cart_item td.product-thumbnail img { width: 6.25rem; height: 4.4rem; }
  .woocommerce-cart table.cart tr.cart_item td.product-name { grid-area: name; font-size: .9rem; line-height: 1.4; align-self: end; }
  .woocommerce-cart table.cart tr.cart_item td.product-name dl.variation { margin: .25rem 0 0; font-size: var(--fs-small); line-height: 1.45; }
  .woocommerce-cart table.cart tr.cart_item td.product-name dl.variation dd p { margin: 0; }
  .woocommerce-cart table.cart tr.cart_item td.product-price { display: none; } /* the line's total says it */
  .woocommerce-cart table.cart tr.cart_item td.product-quantity { grid-area: qty; align-self: start; }
  .woocommerce-cart table.cart tr.cart_item td.product-subtotal {
    grid-area: total; align-self: start; padding-top: .55rem;
    font-size: .9rem; white-space: nowrap; text-align: right !important;
  }
  .woocommerce-cart table.cart tr.cart_item td.product-remove { grid-area: remove; align-self: start; }
  .woocommerce-cart table.cart tr.cart_item a.remove { width: 1.6rem; height: 1.6rem; line-height: 1.4rem; font-size: 1.2rem; text-align: right; }
  .woocommerce-cart .woocommerce .quantity button { width: 2.2em; height: 2.2em; }
  .woocommerce-cart .woocommerce .quantity input.qty { width: 2.2em; height: 2.2em; padding: 0; }

  /* coupon + update: one quiet line; the field opens below the link */
  .woocommerce-cart table.cart td.actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; padding: var(--sp-3) 0 0 !important; background: none;
  }
  .coupon-toggle {
    display: inline-block;
    font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase;
    color: var(--c-text-soft);
    text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-line);
    padding: .4rem 0;
  }
  .coupon-toggle[aria-expanded="true"] { color: var(--c-text); }
  .woocommerce-cart-form .actions .coupon { display: none; width: 100%; order: 3; }
  /* no flex gap: the hidden "Coupon:" label still took a gap's width in front of the field */
  .woocommerce-cart-form .actions .coupon.is-open { display: flex; align-items: flex-end; gap: 0; }
  .woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon .input-text { flex: 1 1 0; width: auto; min-width: 0; padding: .55rem 0; }
  .woocommerce-cart-form .actions .coupon .button { float: none; margin-left: var(--sp-2); padding: .75em 1.2em; font-size: var(--fs-meta); }
  .woocommerce-cart-form .actions > .button[name="update_cart"] { display: none !important; } /* quantities update by themselves (WooCommerce's phone sheet sets display: block) */

  /* totals: a plain list, labels in the quiet label style */
  .woocommerce-cart .cart-collaterals { margin-top: var(--sp-6); }
  .woocommerce .cart_totals table.shop_table_responsive tr td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: 1.05rem 0; text-align: right !important; font-size: .92rem;
  }
  .woocommerce .cart_totals table.shop_table_responsive tr td::before {
    content: attr(data-title);
    float: none; flex: none;
    font-weight: 400; font-size: var(--fs-meta); letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-text-soft);
  }
  .woocommerce .cart_totals tr.woocommerce-shipping-totals td { display: block; text-align: left !important; font-size: var(--fs-small); color: var(--c-text-soft); line-height: 1.55; }
  .woocommerce .cart_totals tr.woocommerce-shipping-totals td::before { display: block; margin-bottom: .55rem; }
  .woocommerce .cart_totals tr.woocommerce-shipping-totals td p { margin: 0; }
  .woocommerce .cart_totals .order-total td { font-size: 1rem; }
  .woocommerce .cart_totals .order-total td strong { font-weight: 400; }
  .woocommerce .cart_totals .shipping-calculator-button { display: inline-block; margin-top: .5rem; }
  .woocommerce .cart_totals .shipping-calculator-button::after { display: none; } /* WooCommerce's little truck */
}

/* Checkout on phones: the same quiet scale. Section titles smaller with
   room around them; "Ship to a different address?" is a checkbox line, not
   a title; the order table is stacked, so a long note (e.g. "no shipping
   options") can no longer squeeze the product names into a narrow column. */
@media (max-width: 768px) {
  .woocommerce-checkout h3,
  .woocommerce-checkout .woocommerce-column__title { font-size: 1.15rem; line-height: 1.3; margin: var(--sp-6) 0 var(--sp-3); }
  .woocommerce-checkout #ship-to-different-address {
    margin: var(--sp-4) 0 var(--sp-3);
    font-family: var(--font-body); font-weight: 400; font-size: .92rem; letter-spacing: 0; text-transform: none; line-height: 1.5;
  }
  .woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: .6rem; }
  .woocommerce form .form-row { margin-bottom: 1.15rem; }
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select,
  .select2-container .select2-selection,
  .select2-container--default .select2-selection--single { padding: .6em .85em; min-height: 0; line-height: 1.3; }
  .select2-container--default .select2-selection--single { height: auto; }
  .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.6; }
  .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }

  .woocommerce-checkout-review-order-table,
  .woocommerce-checkout-review-order-table thead,
  .woocommerce-checkout-review-order-table tbody,
  .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
  .woocommerce-checkout-review-order-table tr {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding-block: 1.05rem;
    border-bottom: 1px solid var(--c-line);
  }
  .woocommerce table.shop_table.woocommerce-checkout-review-order-table th,
  .woocommerce table.shop_table.woocommerce-checkout-review-order-table td { display: block; padding: 0; border: 0; background: none; }
  .woocommerce-checkout-review-order-table thead tr { padding-top: 0; }
  .woocommerce-checkout-review-order-table td.product-name { flex: 1 1 auto; min-width: 0; font-size: .9rem; line-height: 1.45; }
  .woocommerce-checkout-review-order-table td.product-total,
  .woocommerce-checkout-review-order-table tfoot td { flex: none; white-space: nowrap; text-align: right; font-size: .92rem; }
  .woocommerce-checkout-review-order-table tfoot td,
  .woocommerce-checkout-review-order-table tfoot td * { font-weight: 400; }
  .woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot th {
    font-weight: 400; font-size: var(--fs-meta); letter-spacing: .18em; color: var(--c-text-soft);
  }
  .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: .55rem; }
  .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
    white-space: normal; text-align: left; font-size: var(--fs-small); font-weight: 300; color: var(--c-text-soft); line-height: 1.55;
  }
  .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td * { font-weight: 300; font-size: inherit; }
}
