/* ============================================================
   AMBAYA — design system
   Dark editorial. Two typefaces, two weights. One motif.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  --espresso:   #141009;
  --espresso-2: #2B2015;
  --hairline:   #3A2E1E;
  --cream:      #EFE6D6;
  --cream-2:    #F4EDDF;
  --taupe:      #B9A488;
  --gold:       #8F7A5C;
  --bark:       #4A2E1A;
  --bark-text:  #3E2814;
  --gold-lt:    #8A6238;

  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;

  --measure: 62ch;
  --site-width: 1100px;
  --gutter: clamp(20px, 5vw, 44px);

  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  /* Tightened 2026-09-19: at the old values (96 / up to 150) no product image
     appeared until the third screen. Keep the editorial calm, lose the void. */
  --space-7: clamp(56px, 7vw, 72px);
  --space-8: clamp(64px, 9vw, 104px);
}

/* ---- Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--espresso);
  color: var(--taupe);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--espresso); }

button:not(:disabled) { cursor: pointer; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream-2);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5.4vw, 54px); letter-spacing: 0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }

p { margin: 0 0 var(--space-3); max-width: var(--measure); }

a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
a:hover { color: var(--gold); text-decoration-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- Layout ------------------------------------------------- */
.container {
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }

.hairline    { border: 0; border-top: 0.5px solid var(--hairline); margin: 0; }

.prose p { color: var(--taupe); }
.prose a { color: var(--cream); }

/* ---- Type utilities ------------------------------------------ */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.serif-price {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--cream-2);
  font-variant-numeric: lining-nums;
}

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.35;
  color: var(--cream-2);
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

.muted { color: var(--taupe); }

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--gold); color: var(--espresso); text-decoration: none; }
.btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }

.btn--quiet { border-color: var(--hairline); color: var(--taupe); }
.btn--quiet:hover { border-color: var(--gold); background: transparent; color: var(--gold); }

.text-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: border-color 0.25s ease;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 0.5px solid var(--hairline);
  background: var(--espresso);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--cream-2);
}
.brand svg { align-self: center; }
.brand__word {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* balance the trailing tracking */
  color: var(--cream-2);
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.site-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cream); }

.cart-link { color: var(--gold) !important; }

/* Mobile menu: <details>, works without JS */
.menu-toggle { display: none; position: relative; }
.menu-toggle > summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 8px 0;
}
.menu-toggle > summary::-webkit-details-marker { display: none; }

@media (max-width: 760px) {
  .site-nav--desktop { display: none; }
  .menu-toggle { display: block; }
  .menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    min-width: 240px;
    background: var(--espresso-2);
    border: 0.5px solid var(--hairline);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  .menu-panel a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    padding: 6px 0;
  }
}

/* ---- Hero -------------------------------------------------------- */
.hero { padding-block: var(--space-8); text-align: center; }
.hero .eyebrow { margin-bottom: var(--space-5); }
.hero h1 { margin-bottom: var(--space-4); }
.hero__sub {
  margin-inline: auto;
  max-width: 44ch;
  margin-bottom: var(--space-6);
}

/* ---- Full-bleed photo band ---------------------------------------- */
.photo-band {
  position: relative;
  min-height: clamp(320px, 55vw, 520px);
  background: var(--espresso-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.photo-band img,
.photo-band picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band picture img { position: static; }
/* Dark overlay so text on photos keeps AA contrast */
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 9, 0.55);
}
.photo-band > .photo-band__content { position: relative; z-index: 1; padding: var(--space-7) var(--gutter); }

/* ---- Collections index (numbered editorial rows) ------------------- */
.collection-index { border-top: 0.5px solid var(--hairline); }
.collection-row {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 96px) minmax(56px, 104px) 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: clamp(24px, 3.5vw, 36px);
  border-bottom: 0.5px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.collection-row__thumb {
  aspect-ratio: 4 / 5;
  background: var(--espresso-2);
  border: 0.5px solid var(--hairline);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.collection-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.collection-row:hover .collection-row__thumb img { opacity: 0.82; }
.collection-row__number {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
  transition: color 0.3s ease;
}
.collection-row__name {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--cream-2);
  transition: color 0.3s ease;
}
.collection-row__tagline {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 14.5px;
}
.collection-row__meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}
.collection-row:hover .collection-row__number { color: var(--cream-2); }
.collection-row:hover .collection-row__name { color: var(--gold); }

@media (max-width: 620px) {
  .collection-row { grid-template-columns: 64px 52px 1fr; }
  .collection-row__meta { display: none; }
  .collection-row__number { font-size: clamp(30px, 9vw, 40px); }
}

/* ---- Product presentation ------------------------------------------ */
.crumb {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
}
.crumb:hover { color: var(--gold); border-color: var(--gold); }

.edition {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6) var(--space-5);
}
.product-grid--calm { gap: var(--space-8) var(--space-6); max-width: 860px; margin-inline: auto; }

.product-card { text-decoration: none; color: inherit; display: block; }
.product-card__frame {
  aspect-ratio: 4 / 5;
  background: var(--espresso-2);
  border: 0.5px solid var(--hairline);
  overflow: hidden;
  margin-bottom: var(--space-4);
  display: grid;
  place-items: center;
}
.product-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.product-card:hover .product-card__frame img { opacity: 0.85; }
.product-card__name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream-2);
  margin: 6px 0 2px;
  transition: color 0.3s ease;
}
.product-card:hover .product-card__name { color: var(--gold); }
.product-card__price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--taupe);
  font-variant-numeric: lining-nums;
}

.product-card__poetic {
  margin: 4px 0 8px;
  font-size: 13.5px;
  color: var(--taupe);
  max-width: 34ch;
}
/* Plain Lithuanian for what the product is, under its English name. Sits
   between the serif name and the price as quiet supporting type — it is
   there to be read once, not to compete with the name. LT pages only. */
.product-card__type {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--taupe);
}
.product-type {
  margin: 2px 0 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--taupe);
}
.product-grid--heroes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Product facts (skincare) */
.product-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 2px 0 10px;
}
.inci {
  font-size: 13px;
  line-height: 1.7;
  color: var(--taupe);
  overflow-wrap: anywhere;
}
.pao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  vertical-align: middle;
  margin-right: 8px;
}
.pao svg { width: 18px; height: 20px; }
.pao__label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }
.pao-line { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
  max-width: none;
}
.cert-row__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; }
}

.gallery { display: grid; gap: var(--space-3); }
.gallery__main {
  aspect-ratio: 4 / 5;
  background: var(--espresso-2);
  border: 0.5px solid var(--hairline);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.gallery__thumbs a {
  aspect-ratio: 4 / 5;
  background: var(--espresso-2);
  border: 0.5px solid var(--hairline);
  overflow: hidden;
  display: block;
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.made-block {
  border: 0.5px solid var(--hairline);
  padding: var(--space-4);
  margin-block: var(--space-5);
}
.made-block p { font-size: 14px; margin: 0; }
.made-block .eyebrow { margin-bottom: var(--space-2); }

.facts { border-top: 0.5px solid var(--hairline); }
.facts details { border-bottom: 0.5px solid var(--hairline); }
.facts summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: "+"; color: var(--gold); font-family: var(--serif); font-size: 20px; }
.facts details[open] summary::after { content: "−"; }
.facts .facts__body { padding: 0 0 var(--space-4); font-size: 14.5px; }

/* ---- Lightbox: native <dialog> with a scroll-snap strip -------------------- */
.gallery__zoom { display: block; cursor: zoom-in; }

dialog.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
dialog.lightbox::backdrop { background: rgba(20, 16, 9, 0.94); }

/* Quiet fade-in on open (no JS): @starting-style + allow-discrete. */
dialog.lightbox[open] {
  opacity: 1;
  transition: opacity 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
}
@starting-style {
  dialog.lightbox[open] { opacity: 0; }
}

.lightbox__strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lightbox__slide {
  flex: 0 0 100%;
  margin: 0;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox__slide img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0.5px solid var(--hairline);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--serif);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: var(--espresso);
}

.lightbox__close {
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  font-size: 26px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  padding-bottom: 4px;
}
.lightbox__nav--prev { left: clamp(8px, 2.5vw, 32px); }
.lightbox__nav--next { right: clamp(8px, 2.5vw, 32px); }

@media (max-width: 620px) {
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---- Trust row -------------------------------------------------------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) clamp(24px, 6vw, 72px);
  text-align: center;
}
.trust-row__item {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Motif (tree rings) ------------------------------------------------ */
.motif { color: var(--gold); }
.motif--sm svg { width: 26px; height: 26px; }
.motif svg { width: 44px; height: 44px; }
.motif--lg svg { width: 76px; height: 76px; }
.section-mark { display: flex; justify-content: center; margin-bottom: var(--space-5); }

/* ---- Forms -------------------------------------------------------------- */
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.25s ease;
}
.field select option { background: var(--espresso-2); color: var(--cream); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field .helptext { display: block; font-size: 13px; margin-top: 6px; color: var(--taupe); }
.field .errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--cream);
}
/* Contact form. The honeypot must be unreachable for a person but present in
   the DOM for the bots that fill in every input they find — so it is moved
   off-screen rather than display:none, which some scripts skip, and taken out
   of the tab order and the accessibility tree. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--cream);
}
.form-note {
  border: 0.5px solid var(--gold);
  padding: var(--space-4);
  margin-top: var(--space-5);
}
.form-note p { margin: 0; }
.contact-form button { margin-top: var(--space-2); }

.field__legend {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 0;
}
.delivery-choice { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.delivery-choice div { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.delivery-choice label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--cream);
  cursor: pointer;
}
.delivery-choice input[type="radio"] { accent-color: var(--gold); width: 18px; height: 18px; }

/* Show only the relevant block for the chosen delivery method (pure CSS via :has;
   browsers without :has simply show both — the server validates either way). */
.checkout-form:has(input[name="delivery_method"][value="courier"]:checked) .locker-block { display: none; }
.checkout-form:has(input[name="delivery_method"][value="locker"]:checked) .address-block { display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
.form-grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- Cart table ----------------------------------------------------------- */
.cart-lines { border-top: 0.5px solid var(--hairline); }
.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-4);
  border-bottom: 0.5px solid var(--hairline);
}
.cart-line__frame {
  aspect-ratio: 4 / 5;
  background: var(--espresso-2);
  border: 0.5px solid var(--hairline);
  overflow: hidden;
}
.cart-line__frame img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-family: var(--serif); font-size: 20px; color: var(--cream-2); text-decoration: none; }
.cart-line__qty { display: flex; align-items: center; gap: 0; margin-top: 10px; }
.qty-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.qty-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-value {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream-2);
  font-variant-numeric: lining-nums;
}
.link-quiet {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
}
.link-quiet:hover { color: var(--gold); }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--space-4);
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq-group { margin-bottom: var(--space-6); }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 0.5px solid var(--hairline);
  padding-block: var(--space-7) var(--space-5);
  text-align: center;
}
.site-footer__logo { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.site-footer__line {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}
.site-footer nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--cream); }
.site-footer__legal { font-size: 12px; color: var(--taupe); opacity: 0.75; }
.site-footer__legal a { color: inherit; }

.lang-switch { display: inline-flex; gap: var(--space-3); margin-top: var(--space-4); }
.lang-switch button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
}
.lang-switch button[aria-current="true"] { color: var(--gold); text-decoration: none; }

/* ---- Empty state / 404 ------------------------------------------------------- */
.empty-state { text-align: center; padding-block: var(--space-8); }
.empty-state .motif { display: flex; justify-content: center; margin-bottom: var(--space-5); }

/* ---- Messages ------------------------------------------------------------------ */
.messages { list-style: none; margin: 0; padding: 0; }
.messages li {
  border: 0.5px solid var(--hairline);
  border-left: 2px solid var(--gold);
  padding: var(--space-3) var(--space-4);
  margin-block: var(--space-4);
  color: var(--cream);
  font-size: 14px;
}

/* ---- Motion: the only two moments ---------------------------------------------- */
.fade-up { opacity: 0; transform: translateY(16px); }
.js .fade-up { animation: fadeUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--d, 0s);
}
.reveal.revealed { opacity: 1; transform: none; }

/* Grid cards reveal in sequence rather than as one block. Delay comes from
   nth-child, so no inline style is needed and the CSP stays strict. */
.product-grid > .reveal:nth-child(2) { --d: 0.08s; }
.product-grid > .reveal:nth-child(3) { --d: 0.16s; }
.product-grid > .reveal:nth-child(4) { --d: 0.24s; }
.product-grid > .reveal:nth-child(5) { --d: 0.32s; }
.product-grid > .reveal:nth-child(6) { --d: 0.40s; }
.product-grid > .reveal:nth-child(n + 7) { --d: 0.48s; }

/* No-JS and reduced motion: everything simply visible, nothing moves. */
html:not(.js) .fade-up,
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .js .fade-up, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---- Rating & reviews -------------------------------------------------------- */
.rating-line {
  display: inline-block;
  margin: 2px 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.rating-line:hover { border-color: var(--gold); }

.review-summary { display: flex; align-items: baseline; gap: 10px; margin: var(--space-4) 0; }
.review-list { border-top: 0.5px solid var(--hairline); max-width: 62ch; }
.review { border-bottom: 0.5px solid var(--hairline); padding: var(--space-4) 0; }
.review__stars { color: var(--gold); letter-spacing: 4px; margin: 0 0 4px; }
.review__meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 8px;
}
.review__verified { color: var(--gold); }
.review__text { margin: 0; font-size: 14.5px; }
.review-form-fold { margin-top: var(--space-5); }
.review-form-fold > summary { list-style: none; cursor: pointer; display: inline-block; }
.review-form-fold > summary::-webkit-details-marker { display: none; }
.review-form { margin-top: var(--space-5); max-width: 620px; }

/* ---- Sticky add-to-cart (mobile) ----------------------------------------------- */
.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--espresso-2);
  border-top: 0.5px solid var(--hairline);
}
.sticky-atc__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sticky-atc__price { font-size: 20px; }
.sticky-atc .btn { padding: 13px 26px; }
@media (max-width: 860px) {
  .sticky-atc:not([hidden]) { display: flex; }
}

/* ---- Card hover swap ------------------------------------------------------------- */
.product-card__frame { position: relative; }
.card-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card-alt img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .card-alt,
.product-card:focus-visible .card-alt { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card-alt { transition: none; }
}

/* ---- Cross-document view transitions (Chrome/Safari; others: instant nav) -------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
[id^="vt-"] { view-transition-name: auto; }

.made-block__returns { font-size: 13px; margin: 10px 0 0; }
.made-block__returns a { color: var(--taupe); }

/* ---- Account & loyalty ------------------------------------------------------------ */
.tier-panel {
  border: 0.5px solid var(--hairline);
  padding: var(--space-4);
}
.tier-panel__name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream-2);
  margin: 2px 0 6px;
}
.tier-list { display: grid; gap: 8px; }
.tier-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13.5px;
}
.order-table { border-top: 0.5px solid var(--hairline); }
.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: var(--space-3);
  align-items: baseline;
  padding-block: var(--space-3);
  border-bottom: 0.5px solid var(--hairline);
  font-size: 14px;
}
.order-row__total { font-size: 16px; }
@media (max-width: 620px) {
  .order-row { grid-template-columns: 1fr auto; }
}
.cart-total--sub { padding-block: 6px; }
.cart-total--sub .serif-price { font-size: 18px; color: var(--taupe); }
.link-plain {
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
}
.link-plain:hover { color: var(--gold); }

/* ---- Utilities (keep templates free of inline styles: strict CSP) ---------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.no-max { max-width: none; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.pb-8 { padding-bottom: var(--space-8); }

.container--sm { max-width: calc(640px + 2 * var(--gutter)); }
.container--md { max-width: calc(720px + 2 * var(--gutter)); }
.container--lg { max-width: calc(760px + 2 * var(--gutter)); }
.measure-52 { max-width: 52ch; }
.measure-56 { max-width: 56ch; }
.measure-58 { max-width: 58ch; }

.d-0 { --d: 0s; }
.d-1 { --d: 0.12s; }
.d-2 { --d: 0.24s; }
.d-3 { --d: 0.36s; }

.h-display { font-size: clamp(28px, 4vw, 42px); margin-top: 10px; }
.h-empty { font-size: clamp(26px, 4vw, 40px); }
.quote--sm { font-size: clamp(20px, 2.6vw, 26px); }
.poetic { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--cream); }
.price-line { margin: 20px 0 28px; }
.price-featured { margin: 24px 0 32px; }
.price-lg { font-size: 30px; }
.small-note { font-size: 13.5px; }
.label-sm { font-size: 12px; }
.tiny-note { font-size: 13px; margin-top: var(--space-6); }
.eyebrow--center { text-align: center; display: block; }
.eyebrow--flat { margin: 0; }
.eyebrow--gap-top { margin-top: var(--space-6); }
.product-layout--center { align-items: center; }
.stack-t-12 { margin-top: 12px; }
.hr-gap { margin-block: var(--space-6); }
.hr-gap-b { margin-bottom: var(--space-7); }
.cart-total--rule { border-top: 0.5px solid var(--hairline); margin-top: var(--space-4); }
.memorial-note { max-width: 56ch; margin: var(--space-8) auto 0; text-align: center; }
.site-footer .brand__word { display: block; font-size: 26px; margin-top: 6px; }

/* ---- Skip link -------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--espresso);
  padding: 10px 18px;
  z-index: 100;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: var(--space-3); }

/* ---- Cookie notice --------------------------------------------------- */
/* A quiet bar, not a modal: nothing here needs consent, so it must never
   block the page or the first thing a visitor came to read. */
/* This has to come first and it has to be here: `display: flex` below is an
   author rule and beats the browser's own `[hidden] { display: none }`, so
   without it the notice ignores the hidden attribute entirely — it shows
   before JavaScript runs and the Got it button appears to do nothing. */
.cookie-notice[hidden] { display: none !important; }
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--gutter);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--espresso-2);
  border-top: 0.5px solid var(--hairline);
}
.cookie-notice__text {
  margin: 0;
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--taupe);
}
.cookie-notice__text a { color: var(--gold); }
.btn--sm {
  padding: 10px 20px;
  font-size: 11px;
  min-height: 44px;
}
@media (max-width: 620px) {
  .cookie-notice { justify-content: flex-start; }
  .cookie-notice__text { font-size: 12.5px; }
}

/* Locker search box: sits directly above the select it filters. */
.locker-search {
  width: 100%;
  margin-bottom: var(--space-2);
}
.locker-count { display: block; margin-top: 6px; }

.locker-search__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---- Locker combobox -------------------------------------------------- */
/* One field with its results directly beneath. The <select> it drives is
   hidden by the script, never by CSS: with JavaScript off the select is the
   whole control and must stay visible. */
.combobox { position: relative; }

.combobox__input {
  width: 100%;
  padding: 13px 40px 13px 14px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--espresso-2);
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
}
.combobox__input::placeholder { color: var(--taupe); opacity: 0.75; }

.combobox__clear {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--taupe);
  font-size: 20px;
  line-height: 1;
}
.combobox__clear:hover { color: var(--cream); }

/* Absolute, so the results overlay the page instead of pushing the rest of
   the checkout form down on every keystroke. */
.combobox__list {
  position: absolute;
  z-index: 40;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  background: var(--espresso-2);
  border: 1px solid var(--gold);
}
.combobox__option {
  padding: 11px 14px;
  color: var(--cream);
  font-size: 14.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
}
.combobox__option:last-child { border-bottom: 0; }
.combobox__option[aria-selected="true"],
.combobox__option:hover {
  background: var(--gold);
  color: var(--espresso);
}
.combobox__status { display: block; margin-top: 6px; }