/* ============================================================
   Estia Home Art — Design System
   Three-colour editorial system. Everything in the UI resolves
   to one of the three palette anchors below; lighter/darker UI
   states are achieved by alpha-compositing ink on linen.
     1. Linen   — warm cream background
     2. Ink     — deep warm near-black
     3. Bronze  — warm mid-tone accent
   ============================================================ */

:root {
  /* ── The three colours ─────────────────────────────────── */
  --linen:        #ebe9e5;   /* warm stone — primary background */
  --ink:          #1d1d1b;   /* near-black — text & dark UI */
  --bronze:       #9a8c60;   /* muted antique gold — single accent */

  /* Ink-on-linen surface tints (just alpha-composited ink) */
  --paper:        rgba(29, 29, 27, 0.04);  /* faint card */
  --paper-2:      rgba(29, 29, 27, 0.06);
  --ivory:        var(--linen);
  --shell:        rgba(29, 29, 27, 0.07);
  --stone:        rgba(29, 29, 27, 0.18);
  --hair:         rgba(29, 29, 27, 0.16);  /* dividers */
  --hair-soft:    rgba(29, 29, 27, 0.10);

  /* Product card background — a quiet ink wash on linen */
  --product-bg:   rgba(29, 29, 27, 0.06);
  --product-bg-2: rgba(29, 29, 27, 0.10);

  /* Ink shades — pure ink at decreasing opacities (no new hue) */
  --ink-2:        rgba(29, 29, 27, 0.85);
  --ink-3:        rgba(29, 29, 27, 0.60);
  --ink-4:        rgba(29, 29, 27, 0.40);

  /* Bronze derivatives — accent shifted in opacity only */
  --bronze-deep:  var(--bronze);
  --bronze-warm:  var(--bronze);
  --bronze-tint:  rgba(154, 140, 96, 0.20);

  /* Semantic — all collapse to either ink or bronze */
  --green:        var(--bronze);
  --amber:        var(--bronze);
  --red:          var(--ink);

  /* Type */
  --serif: "Noto Serif Display", "Times New Roman", Georgia, serif;
  --sans:  "Google Sans", "Product Sans", system-ui, -apple-system, sans-serif;
  --mono:  "Google Sans", "Product Sans", system-ui, sans-serif;

  /* Layout */
  --max:          none;
  --gutter:       clamp(20px, 3.5vw, 72px);
  --gutter-sm:    clamp(16px, 4vw, 24px);
  --r-sm:         2px;
  --r-md:         4px;
  --r-lg:         8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; color: inherit; }

::selection { background: var(--bronze-tint); color: var(--ink); }

/* ---------- Type ---------- */

.h-display {
  font-family: var(--serif);
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 0.98;
  font-size: clamp(56px, 7vw, 132px);
  color: var(--ink);
  text-wrap: balance;
}
.h-display em { font-style: normal; font-weight: 380; color: var(--bronze-deep); }

.h1 {
  font-family: var(--serif);
  font-weight: 380;
  letter-spacing: -0.012em;
  line-height: 1.02;
  font-size: clamp(40px, 4.6vw, 84px);
  text-wrap: balance;
}
.h1 em { font-style: normal; color: var(--bronze-deep); font-weight: 380; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.05;
  font-size: clamp(28px, 2.6vw, 44px);
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--bronze-deep); }

.h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.15;
  font-size: clamp(20px, 1.4vw, 26px);
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow.bronze { color: var(--bronze-deep); }

.lede {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.small { font-size: 13px; color: var(--ink-3); }
.tiny  { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--ivory);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 200ms ease;
}
.btn:hover { background: var(--bronze-deep); }
.btn.lg { height: 56px; padding: 0 32px; font-size: 15px; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn.bronze { background: var(--bronze-deep); }
.btn.bronze:hover { background: var(--ink); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--ivory); }
/* Moments section "Read the story" — invert the ghost hover (white bg, black text) */
.btn.ghost.invert-hover:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
/* Solid dark btn — white bg + black text on hover */
.btn.invert-hover:not(.ghost):hover { background: #FFFFFF; color: var(--ink); }
.btn.ghost.light {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}
.btn.ghost.light:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }

/* Solid-light: white background, ink text. Hover → warm ivory background. */
.btn.solid-light {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid #FFFFFF;
}
.btn.solid-light:hover {
  background: var(--bronze);
  color: #FFFFFF;
  border-color: var(--bronze);
}
.btn.full { width: 100%; }
.btn.icon { padding: 0 18px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  color: var(--ink);
  cursor: pointer;
}
.link:hover { color: var(--bronze-deep); }

.u-link { cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section.tight { padding: 56px 0; }
.divider { height: 1px; background: var(--hair); }

/* ---------- Pills & Badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.pill.dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pill.bronze { background: var(--bronze-tint); color: var(--bronze-deep); border-color: transparent; }
.pill.red { background: #F1D9D2; color: #7E2B1F; border-color: transparent; }
.pill.green { background: #DCE5CF; color: #34471D; border-color: transparent; }

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 180ms ease;
}
.input:focus { outline: none; border-color: var(--ink); }
.field-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 500;
}

/* ---------- Product / image placeholder swatches ---------- */
/* Each .swatch-XX is a CSS-painted product (drinkware mostly).
   The card background is intentionally a flat solid colour — no
   gradient and no inner shadow. */
.swatch {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--product-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* (removed grain/highlight overlay so the bg stays flat) */

/* Drinkware bottle shape (uses --bottle, --cap, --pattern) */
.bottle {
  width: 38%;
  height: 78%;
  position: relative;
  z-index: 1;
}
.bottle .body {
  position: absolute;
  inset: 14% 0 0 0;
  background: var(--bottle, #2C3742);
  border-radius: 22px 22px 30px 30px;
  box-shadow:
    inset 8px 0 18px rgba(255,255,255,0.10),
    inset -10px 0 22px rgba(0,0,0,0.18),
    0 18px 30px rgba(0,0,0,0.10);
  overflow: hidden;
}
.bottle .body::before {
  /* pattern overlay */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern, none);
  background-size: cover;
  mix-blend-mode: var(--pattern-blend, overlay);
  opacity: var(--pattern-opacity, 0.85);
}
.bottle .body::after {
  /* highlight */
  content: "";
  position: absolute;
  top: 6%;
  left: 12%;
  width: 14%;
  height: 78%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  filter: blur(4px);
  border-radius: 50%;
}
.bottle .cap {
  position: absolute;
  top: 0;
  left: 22%;
  width: 56%;
  height: 16%;
  background: var(--cap, #14181E);
  border-radius: 10px 10px 4px 4px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.12);
}
.bottle .loop {
  position: absolute;
  top: 4%;
  right: 8%;
  width: 14%;
  height: 12%;
  border: 3px solid var(--cap, #14181E);
  border-radius: 50%;
}

/* Plate shape */
.plate {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--plate-bg, #FAF5EC);
  position: relative;
  z-index: 1;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -2px 0 rgba(0,0,0,0.04) inset,
    0 18px 30px rgba(0,0,0,0.08);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: var(--plate-rim, #F4ECE0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04) inset;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: var(--plate-pattern, none);
  background-size: cover;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* Caption (mono) under placeholders */
.placeholder-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--ink-4);
  z-index: 2;
}

/* ---------- Product card ---------- */
.pcard { display: block; cursor: pointer; }
.pcard .img-wrap {
  position: relative;
  background: var(--product-bg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
/* Hide scrollbar on the moments product slider */
.moment-slider::-webkit-scrollbar { display: none; }
.moment-slider { -ms-overflow-style: none; }

/* ---- Category cards ("Elevate everyday living") ---- */
.cat-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.cat-card:hover .cat-card-img { transform: scale(1.07); }
.cat-card-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,8,0) 35%, rgba(15,12,8,0.45) 72%, rgba(15,12,8,0.82) 100%);
}
.cat-card-body {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: var(--ivory);
}
.cat-card-title {
  color: var(--ivory);
  font-size: 24px;
  transform: translateY(0);
  transition: transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.cat-card:hover .cat-card-title { transform: translateY(-46px); }

/* ---- Collections staggered grid ("Elevate everyday living") ---- */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 96px;
}
.coll-col {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.coll-col--raised { margin-top: -72px; }
.coll-card {
  display: block;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.coll-card.is-placeholder { cursor: default; }
.coll-card-imgwrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.coll-card-img {
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.coll-card:not(.is-placeholder):hover .coll-card-img { transform: scale(1.05); }
.coll-card-ph {
  background: var(--linen-3, #b9b6b0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coll-card-ph .mono { color: rgba(255,255,255,0.85); font-size: 12px; letter-spacing: 0.12em; }
.coll-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin: 26px 0 0;
}
.coll-card-blurb {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 14px auto 0;
  max-width: 40ch;
}
.coll-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 200ms ease;
}
.coll-card:not(.is-placeholder):hover .coll-card-cta { color: var(--bronze-deep); }
.coll-card.is-placeholder .coll-card-title,
.coll-card.is-placeholder .coll-card-cta { color: var(--ink-3); }
@media (max-width: 1100px) {
  .coll-grid { max-width: none; padding-top: 0; align-items: flex-start; }
  .coll-card { transform: none !important; opacity: 1 !important; }
  .coll-card-blurb br { display: none; }
  .coll-card-title { font-size: 22px; }
  .coll-card-blurb { font-size: 13px; }
}
.cat-card-cta {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform, opacity;
  pointer-events: none;
}
.cat-card:hover .cat-card-cta {
  opacity: 1;
  transform: translateY(-46px);
}
@media (prefers-reduced-motion: reduce) {
  .cat-card-img,
  .cat-card-cta,
  .cat-card-title { transition: none; }
}
.pcard .img-wrap .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}
.pcard:hover .img-wrap .alt { opacity: 1; }
.pcard:hover .img-wrap .main { transform: scale(1.02); }
.pcard .img-wrap .main { transition: transform 600ms ease; }

/* Photo-based product cards: no hover scale, no alt swap */
.pcard .img-wrap:has(.swatch-photo) .alt { display: none; }
.pcard:hover .img-wrap:has(.swatch-photo) .main { transform: none; }
.swatch.swatch-photo { aspect-ratio: 1/1; }

/* Badges — small rectangular pills, top-left */
.pcard .badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; z-index: 2;
}
.pcard .badges .badge {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 2px;
  border: 1px solid var(--hair);
}
.pcard .badges .badge.dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.pcard .badges .badge.sale {
  background: var(--red);
  color: var(--ivory);
  border-color: var(--red);
}

/* Wishlist — outline only, no circle background. Hidden until card hover. */
.pcard .wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  color: var(--ink-2);
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 260ms ease, transform 260ms ease, color 200ms ease;
  pointer-events: none;
}
.pcard:hover .wishlist { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pcard .wishlist:hover { color: var(--bronze-deep); }

/* Label row — top-left, holds Build-your-own / Best-seller / discount */
.pcard .card-labels {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; gap: 3px; align-items: center;
}
/* "Build your own" label — minimal variant */
.pcard .byo-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--linen);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* "Best seller" label — identical to "Build your own" */
.pcard .bs-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--linen);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Discount badge — sits beside the other labels, ink bg, white text */
.pcard .discount-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 4px 8px;
  border-radius: 2px;
}

/* ---------- Journal: full-width story carousel ---------- */
.journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.journal-slider { position: relative; --jfade: clamp(40px, 5vw, 90px); --story-w: calc(100vw - var(--gutter) - 240px); }
.journal-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(var(--jfade) + clamp(10px, 2vw, 30px));
  z-index: 4;
  cursor: pointer;
}
.journal-nav-left { left: 0; }
.journal-nav-right { right: 0; }
.journal-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}
.journal-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter) 4px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}
.journal-track::-webkit-scrollbar { display: none; }
.journal-track.dragging { cursor: grabbing; }

.story-slide {
  flex: 0 0 var(--story-w);
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
  -webkit-user-select: none;
}
.story-slide-img {
  flex: 0 0 auto;
  width: clamp(520px, 60%, 920px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.story-slide-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-slide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 460px;
}
.journal-card-img-inner {
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.story-slide-img:hover .journal-card-img-inner { transform: scale(1.03); }

/* Journal pagination bullets (line style, matches hero) */
.journal-bullets {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-left: var(--gutter);
}
.journal-bullet {
  display: block;
  width: 8px;
  height: 2px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: width 320ms ease, background 320ms ease;
}
.journal-bullet.active {
  width: 28px;
  background: var(--ink);
}

/* Discover cards (Wedding Registry / Gift Cards / At Home) — subtle hover */
.discover-card-img {
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  will-change: transform;
}
.discover-card:hover .discover-card-img { transform: scale(1.045); }
/* Minimal-variant subtitle line under title */
.pcard .info .subtitle {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* Minimal-variant price — full ink, not muted */
.pcard .info .price.plain {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}

/* Info block under image */
.pcard .info {
  padding: 16px 2px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.pcard .info .title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.pcard .info .price {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.pcard .info .price.was {
  text-decoration: line-through;
  margin-right: 8px;
}
.pcard .info .price.sale {
  color: var(--red);
}
.pcard .info .price-row {
  display: flex; align-items: baseline; gap: 4px;
}

/* Add to cart button — full-width outlined, always visible */
.pcard .add-cart {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pcard .add-cart:hover {
  background: var(--ink);
  color: var(--ivory);
}

/* Hero overlays */
.hero-overlay {
  background: linear-gradient(180deg, rgba(15,12,8,0.0) 30%, rgba(15,12,8,0.35) 100%);
}

/* Feature banner hover — slight image zoom */
.feature-banner:hover .feature-banner-img { transform: scale(1.04); }

/* Logo — sits on linen; flips white over dark hero */
.brand img { transition: filter 320ms ease; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  gap: 48px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}

/* Underline link — hidden by default, slides in on hover */
.u-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  cursor: pointer;
}
.u-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 320ms ease;
}
.u-link:hover::after { transform-origin: left center; transform: scaleX(1); }
.u-link.is-active::after { transform: scaleX(1); }

/* Sheet over content */
.scrim { position: fixed; inset: 0; background: rgba(15,12,8,0.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* MEGA MENU */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--linen);
  border-top: 1px solid var(--hair);
  z-index: 80;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
  box-shadow: 0 24px 40px -16px rgba(31,26,18,0.18);
}
.megamenu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* HEADER — fixed at top, overlays hero on hero pages */
.site-header-stack {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.site-header {
  background: transparent;
  color: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
  position: relative;
}
/* Top-of-page gradient scrim so light text is readable
   regardless of the hero image behind. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px 0;          /* bleed down a touch to soften the seam */
  background: linear-gradient(180deg, rgba(15,12,8,0.55) 0%, rgba(15,12,8,0.25) 60%, rgba(15,12,8,0) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 320ms ease;
  z-index: -1;
}
.site-header.solid,
.site-header:hover {
  background: var(--linen);
  color: var(--ink);
  border-bottom-color: var(--hair-soft);
}
.site-header.solid::before,
.site-header:hover::before { opacity: 0; }

/* Non-hero pages need a spacer so content isn't behind the fixed header */
.site-header-spacer {
  height: 140px;  /* 36 announce + 104 header */
}

/* Search field — colours follow the header state */
.site-header .input {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, padding-left 220ms ease;
}
.site-header .input::placeholder { color: rgba(255,255,255,0.8); }
.site-header.solid .input,
.site-header:hover .input {
  border-color: var(--hair);
  color: var(--ink);
}
.site-header.solid .input::placeholder,
.site-header:hover .input::placeholder { color: var(--ink-3); }

/* Search hover + focus — pure white fill, black text & icon, no border */
.site-header .input:hover,
.site-header .input:focus,
.site-header:hover .input:hover,
.site-header:hover .input:focus,
.site-header.solid .input:hover,
.site-header.solid .input:focus {
  background: #FFFFFF !important;
  border-color: transparent !important;
  color: var(--ink) !important;
  padding-left: 40px;
  box-shadow: 0 4px 16px -8px rgba(31,26,18,0.18);
}
.site-header .input:focus { outline: none; }
.site-header .input:hover::placeholder,
.site-header .input:focus::placeholder {
  color: var(--ink-3);
}
.site-header .input:hover + .search-icon,
.site-header .input:focus + .search-icon {
  color: var(--ink);
}
.site-header .search-icon {
  transition: color 220ms ease;
}

/* Search icon */
.site-header .search-icon { color: #FFFFFF; }
.site-header.solid .search-icon,
.site-header:hover .search-icon { color: var(--ink-3); }

/* Cart bag count badge — flip ink/white */
.site-header .bag-badge {
  background: #FFFFFF;
  color: var(--ink);
}
.site-header.solid .bag-badge,
.site-header:hover .bag-badge {
  background: var(--ink);
  color: var(--linen);
}

/* Language pill — adapt to header tone */
.site-header .lang-pill {
  border-color: rgba(255,255,255,0.55);
}
.site-header .lang-pill .lang-active {
  background: #FFFFFF; color: var(--ink);
}
.site-header .lang-pill .lang-inactive {
  background: transparent; color: #FFFFFF;
}
.site-header.solid .lang-pill,
.site-header:hover .lang-pill {
  border-color: var(--hair);
}
.site-header.solid .lang-pill .lang-active,
.site-header:hover .lang-pill .lang-active {
  background: var(--ink); color: var(--ivory);
}
.site-header.solid .lang-pill .lang-inactive,
.site-header:hover .lang-pill .lang-inactive {
  background: transparent; color: var(--ink-2);
}

/* Language dropdown — trigger borrows header foreground */
.site-header .lang-dd-trigger {
  border-color: rgba(255,255,255,0.55);
  color: #FFFFFF;
}
.site-header.solid .lang-dd-trigger,
.site-header:hover .lang-dd-trigger {
  border-color: var(--hair);
  color: var(--ink);
}
.site-header .lang-dd-trigger:hover {
  border-color: currentColor;
}

/* Logo — invert the SVG when over a dark hero, restore when solid */
.site-header .brand img {
  filter: brightness(0) invert(1);   /* white logo over hero */
  transition: filter 320ms ease;
}
.site-header.solid .brand img,
.site-header:hover .brand img {
  filter: none;                       /* original logo on linen */
}
.announce {
  background: var(--ink);
  color: var(--linen);
  font-size: 13px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-family: var(--sans);
  overflow: hidden;
}

/* Footer */
.site-footer { background: var(--linen); color: var(--ink-2); padding: 128px 0 40px; position: relative; }
.site-footer .wrap { color: var(--ink-2); position: relative; z-index: 1; }
.site-footer h4 { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; }
.site-footer a { color: var(--ink-3); font-size: 14px; cursor: pointer; transition: color 180ms ease; }
.site-footer a:hover { color: var(--bronze); }
.site-footer .link { color: var(--ink); border-color: var(--ink); transition: color 180ms ease, border-color 180ms ease; }
.site-footer .link:hover { color: var(--bronze); border-color: var(--bronze); }
.site-footer .input { background: var(--linen); border-color: var(--hair); color: var(--ink); transition: background 200ms ease, border-color 200ms ease; }
.site-footer .input::placeholder { color: var(--ink-4); }
.site-footer .input:hover, .site-footer .input:focus { background: #fff; }
.site-footer .footer-join { background: var(--ink); color: #fff; transition: background 200ms ease, color 200ms ease; }
.site-footer .footer-join:hover { background: var(--bronze); color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 48px; }
.social-ic { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--ink) !important; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.social-ic svg { width: 22px; height: 22px; }
.social-ic:hover { background: var(--ink); color: #fff !important; }

/* Footer accordion column — neutral on desktop (title + list always shown) */
.footer-col-head { display: inline-flex; align-items: baseline; gap: 8px; width: 100%; background: none; border: 0; padding: 0; margin: 0; color: inherit; cursor: default; text-align: left; }
.footer-col-head h4 { margin: 0 0 18px; }
.footer-col-chev { display: none; }
.footer-col-body { display: block; }

/* Footer: centered + accordion categories on mobile & tablet */
@media (max-width: 1100px) {
  .site-footer { text-align: center; }
  .site-footer .wrap > div:first-child > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .site-footer .wrap > div:first-child > div:first-child .body { max-width: 420px; }
  .footer-cols { grid-template-columns: 1fr !important; gap: 0 !important; }
  .footer-col { border-top: 1px solid var(--hair-soft); }
  .footer-col-head { justify-content: center; position: relative; cursor: pointer; padding: 16px 0; }
  .footer-col-head h4 { margin: 0; }
  .footer-col-chev { display: inline-block; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); transition: transform 220ms ease; color: var(--ink-3); }
  .footer-col.is-open .footer-col-chev { transform: translateY(-50%) rotate(180deg); }
  .footer-col-body { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
  .footer-col.is-open .footer-col-body { max-height: 360px; }
  .footer-col-body ul { align-items: center !important; padding-bottom: 18px !important; }
  /* Non-accordion columns (Visit us, newsletter) — centered, with dividers */
  .footer-cols > div:not(.footer-col) { border-top: 1px solid var(--hair-soft); padding-top: 24px; padding-bottom: 24px; }
  .footer-cols > div:not(.footer-col) ul { align-items: center !important; }
  .footer-cols > div:not(.footer-col) > div[style*="flex"] { max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-visit, .footer-news { grid-column: auto !important; }
  .footer-visit ul { grid-template-columns: 1fr !important; row-gap: 24px !important; }
  .footer-legal { justify-content: center !important; text-align: center; margin-top: 28px !important; }
  .footer-social { justify-content: center; gap: 6px !important; margin-top: 72px !important; margin-bottom: 12px !important; }
  .site-footer .wrap > div:first-child { margin-bottom: 36px !important; }
}

/* ===== Tablet ===== */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  /* Desktop nav → drawer; search becomes an icon next to the menu */
  .nav-mobile-left { display: flex !important; }
  .left-nav { display: none !important; }
  .search-wrap { display: none !important; }
  .site-header .right-nav { gap: 18px !important; }
  .site-header .right-nav a[title="My Estia"] span { display: none !important; }
  /* More breathing room between the account/fav/cart group and language */
  .nav-lang { display: inline-flex !important; align-items: center !important; margin-left: 14px !important; padding-left: 18px !important; border-left: 1px solid rgba(255,255,255,0.2) !important; }
  .site-header.solid .nav-lang,
  .site-header:hover .nav-lang { border-left-color: var(--hair) !important; }
  /* Hero title slightly bigger on tablet */
  .hero-title { font-size: 48px !important; }
  /* Section spacing — slightly tighter on tablet */
  .section { padding: 72px 0 !important; }
  .moment-section { padding-top: 44px !important; padding-bottom: 44px !important; }
  .cat-section { padding-top: 96px !important; padding-bottom: 32px !important; }
  .bestsellers-section { padding-top: 72px !important; }
  .drink-wrap { padding-top: 96px !important; }
  .prog-pinned { padding-top: 48px !important; }
  .loyalty-section { padding: 96px 0 72px !important; }
  .journal-section { padding-top: 72px !important; }
  .site-footer { padding-top: 64px !important; }
}

/* ===== Section pass: sliders + reflow (mobile + tablet) ===== */
@media (max-width: 1100px) {
  /* Horizontal drag/scroll slider for product & category rows */
  .m-slider {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scroll-padding-left: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 4px;
  }
  .m-slider.dragging { cursor: grabbing; scroll-snap-type: none; }
  .m-slider img { -webkit-user-drag: none; user-drag: none; }
  .m-slider::-webkit-scrollbar { display: none; }
  .m-slider > * {
    flex: 0 0 42% !important;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Feature banners: first card rests at the page margin, the rest bleed to the edge */
  .feature-banners {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 4px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scroll-padding-left: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* pan-x pan-y so a finger can swipe horizontally (native momentum scroll)
       AND still scroll the page vertically. The mouse-drag JS handles desktop;
       touch is left to native scroll, which pan-y alone would have blocked. */
    touch-action: pan-x pan-y;
    scroll-behavior: smooth;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .feature-banners.dragging { cursor: grabbing; scroll-snap-type: none; }
  .feature-banners::-webkit-scrollbar { display: none; }
  .feature-banners img { -webkit-user-drag: none; user-drag: none; }
  .feature-banners > * {
    flex: 0 0 64% !important;
    scroll-snap-align: start;
    min-width: 0;
  }
  .feature-banners > *:first-child { margin-left: var(--gutter); }
  .feature-banners > *:last-child { margin-right: var(--gutter); }
  .cat-grid { grid-template-rows: none !important; gap: 4px !important; -webkit-mask-image: none !important; mask-image: none !important; scroll-snap-type: none !important; scroll-padding-left: var(--gutter) !important; }
  .cat-grid > .cat-card { aspect-ratio: 3 / 4; flex: 0 0 46% !important; scroll-snap-align: start; }
  /* Category section title must wrap (not nowrap) so it centers on small screens */
  .cat-section h2 { white-space: normal !important; }
  /* fix the stray fixed-width gradient overlay on feature banners */
  .feature-banner [style*="460px"] { width: 100% !important; }

  /* Section header rows (title + “shop all”) stack */
  .mrow-head { flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; }
  .mrow-head h2, .mrow-head h3 { font-size: clamp(30px, 5vw, 44px) !important; }

  /* Editorial Moments: image on top, intro (+ product slider) below; no pin */
  .moment-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .moment-grid .moment-hero { order: -1; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; margin: 0 !important; }
  .moment-intro-col { margin-top: 0 !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
  .moment-intro-title { font-size: clamp(34px, 6vw, 52px) !important; max-width: none !important; }

  /* Featured collection: title → image (swatches on its bottom edge) → text → CTAs */
  .fc-section { display: flex !important; flex-direction: column !important; }
  .fc-overlay { display: contents !important; }
  .fc-grid { display: contents !important; }
  .fc-content { display: contents !important; }
  .fc-grid > div:first-child { display: none !important; }

  .fc-content > h2 { order: 1; padding: 0 var(--gutter); position: relative; z-index: 2; }
  .fc-img {
    order: 2;
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: cover;
  }
  .fc-content > div[role="group"] {
    order: 3;
    margin-top: -18px !important;     /* centre swatches on the image's bottom edge */
    position: relative;
    z-index: 2;
  }
  .fc-content > p {
    order: 4;
    width: auto !important;
    max-width: none !important;
    margin: 28px 0 0 !important;
    padding: 0 var(--gutter);
  }
  .fc-content > .moment-cta-row { order: 5; padding: 0 var(--gutter); }
  .fc-content svg { max-width: 100% !important; height: auto !important; }

  /* Programmes: simple stacked cards, no scroll animation */
  .programmes-grid { grid-template-columns: 1fr !important; gap: 32px !important; margin-left: calc(-1 * var(--gutter)) !important; margin-right: calc(-1 * var(--gutter)) !important; }
  .programmes-grid > .discover-card { transform: none !important; }
  /* Text under the image, centered (Wedding Registry / Gift Cards / At Home) */
  .discover-card { aspect-ratio: auto !important; overflow: visible !important; }
  .discover-card-img { position: static !important; inset: auto !important; width: 100% !important; aspect-ratio: 1 / 1; }
  .discover-card > div:nth-child(2) { display: none !important; }
  .discover-card > div:last-child {
    position: static !important;
    padding: 18px var(--gutter) 0 !important;
    align-items: center !important;
    text-align: center !important;
  }
  .discover-card > div:last-child h3 { color: var(--ink) !important; }
  .discover-card > div:last-child p { color: var(--ink-2) !important; max-width: none !important; }
  .discover-card .discover-card-cta { color: var(--ink) !important; border-bottom-color: var(--hair) !important; }

  /* Journal / blog: stack image over text (mobile + tablet) */
  .journal-head { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 24px !important; }
  .journal-track { gap: 4px !important; }
  .story-slide { flex-basis: calc(100vw - var(--gutter) * 2) !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; gap: 20px !important; }
  .story-slide-img { width: 100% !important; }
  .story-slide-text { align-items: center !important; justify-content: flex-start !important; text-align: center !important; padding: 0 !important; }
  .story-slide-copy { align-items: center !important; text-align: center !important; max-width: 86% !important; margin: 0 auto !important; }
  .story-slide-text .small { margin-left: 0 !important; }
  .story-slide-copy h3 { font-size: clamp(24px, 3.6vw, 32px) !important; }
  .story-slide-copy p { font-size: 15px !important; max-width: none !important; }
  .journal-bullets { justify-content: center !important; padding-left: 0 !important; }
}

/* ===== Hover interactions: disabled on touch (mobile + tablet) ===== */
@media (max-width: 1100px) {
  /* Image zooms */
  .cat-card:hover .cat-card-img,
  .feature-banner:hover .feature-banner-img,
  .discover-card:hover .discover-card-img,
  .story-slide-img:hover .journal-card-img-inner,
  .coll-card:not(.is-placeholder):hover .coll-card-img,
  .pcard:hover .img-wrap .main { transform: none !important; }
  .coll-card:not(.is-placeholder):hover .coll-card-cta { color: inherit !important; }
  /* Category card title slide + CTA reveal */
  .cat-card:hover .cat-card-title { transform: none !important; }
  .cat-card:hover .cat-card-cta { opacity: 0 !important; transform: none !important; }
  /* Product card alt-image swap */
  .pcard:hover .img-wrap .alt { opacity: 0 !important; }
  /* Wishlist shown at rest instead of on hover (touch-accessible) */
  .pcard .wishlist { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
}

/* Tablet: larger banner titles & text */
@media (min-width: 769px) and (max-width: 1100px) {
  .site-header .wrap > a.brand img { height: 30px !important; }
  .feature-banner .h3 { font-size: 30px !important; }
  .feature-banner .h3 + div { font-size: 16px !important; margin-top: 10px !important; }
  .fb-moment-spacer { height: 8px !important; }
  /* Featured collection — tablet: title floats in the empty space, smaller */
  .br-tablet { display: inline !important; }
  .fc-section { margin-top: -28px !important; }
  .fc-content > h2 {
    position: absolute !important;
    top: 34% !important;
    right: 1% !important;
    width: 50% !important;
    margin: 0 !important;
    z-index: 2;
  }
  .fc-img { aspect-ratio: 16 / 11; object-position: 30% 72%; }
}

/* Footer: stack brand above the link columns on tablet */
@media (max-width: 1100px) {
  .site-footer .wrap > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 56px !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .journal-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .story-slide { flex-basis: calc(100vw - var(--gutter) - 40px); flex-direction: column; align-items: stretch; gap: 20px; }
  .story-slide-img { width: 100%; }
  .story-slide-text { align-items: flex-start; text-align: left; padding: 0; }
  .story-slide-text .small { margin-left: 0; }
  .section { padding: 44px 0; }
  .section.tight { padding: 30px 0; }
  .bestsellers-section { padding-top: 52px !important; padding-bottom: 20px !important; }
  .wrap.myestia-inner { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; padding-top: 72px !important; padding-bottom: 72px !important; }
  .journal-section { padding-top: 56px !important; }
  .site-footer { padding-top: 48px !important; }
  /* Section spacing — noticeably tighter on mobile */
  .moment-section { padding-top: 28px !important; padding-bottom: 28px !important; }
  .cat-section { padding-top: 56px !important; padding-bottom: 20px !important; }
  .fb-moment-spacer { height: 12px !important; }
  .drink-wrap { padding-top: 56px !important; }
  .prog-pinned { padding-top: 56px !important; padding-bottom: 24px !important; }
  .loyalty-section { padding: 40px 0 32px !important; }
  .loyalty-tiers { margin-top: 28px !important; }
  /* Sliders: ~1.2 cards peeking on mobile */
  .m-slider > * { flex-basis: 78% !important; }
  .feature-banners > * { flex-basis: 86% !important; }
  .cat-grid > .cat-card { flex-basis: 80% !important; }
  .intro-statement { font-size: 16px !important; text-wrap: pretty !important; text-align: center !important; }
  .intro-section { padding-top: 40px !important; }
  .intro-statement { margin-bottom: 0 !important; padding-bottom: 8px !important; }
  /* Featured collection — locked mobile title overlap & crop */
  .fc-content > h2 { margin-bottom: -104px !important; }
  .fc-img { aspect-ratio: 4 / 5; object-position: 10% 70%; }
  .fc-section { padding-bottom: 44px !important; margin-top: 32px !important; }
  .h-display { font-size: clamp(40px, 12vw, 64px) !important; }
  .h1 { font-size: clamp(32px, 9vw, 48px) !important; }
  .h2 { font-size: clamp(24px, 6vw, 32px) !important; }
  .lede { font-size: 16px !important; }

  /* Header */
  .site-header .wrap {
    grid-template-columns: 1fr auto 1fr !important;
    height: 60px !important;
    gap: 12px !important;
  }
  .left-nav { display: none !important; }
  /* Right cluster: favorites + cart only */
  .nav-account, .nav-lang { display: none !important; }
  .site-header .right-nav { gap: 18px !important; }
  .nav-fav, .nav-cart { display: flex !important; }
  .site-header .wrap > a.brand { justify-content: center !important; }
  .site-header .wrap > a.brand img { height: 26px !important; }
  .megamenu { display: none !important; }
  .announce { font-size: 10px !important; gap: 16px !important; height: 32px !important; }

  /* All multi-col grids collapse */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.05fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 260px 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr"],
  [style*="grid-template-columns: 1.05fr 0.9fr"],
  [style*="grid-template-columns: 120px 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Footer specifically */
  .site-footer .wrap > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Hero side label hidden */
  [style*="EST. 1986"] { display: none !important; }
  /* Reduce category row tall items */
  [style*="grid-template-rows: 440px"] { grid-template-rows: auto !important; }
  [style*="grid-template-rows: 440px"] > a { aspect-ratio: 4/5 !important; grid-column: span 1 !important; }

  /* PLP sidebar -> on top */
  aside[style*="position: sticky"][style*="top: 120px"] { position: static !important; }

  /* Buttons & nav */
  .btn.lg { height: 50px !important; padding: 0 22px !important; font-size: 14px !important; }
  /* Moment hero CTAs: full width, stacked one below the other */
  .moment-cta-row { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 12px !important; width: 100%; }
  .moment-cta-row .btn.lg {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
    justify-content: center !important;
  }
  /* Dot indicator: equal gap above (from CTAs) and below (to hero end) */
  .moment-dots { margin-top: 40px !important; margin-bottom: 0 !important; }
  /* Hero: centered on mobile, symmetric bottom spacing.
     Higher specificity (.wrap.hero-wrap) so it beats the generic .wrap reset below. */
  .wrap.hero-wrap { padding-bottom: 40px !important; align-items: center !important; text-align: center !important; }
  .hero-wrap .moment-cta-row { align-items: center !important; }
  .hero-wrap .moment-dots { justify-content: center !important; }
  /* Hero title slightly bigger on mobile */
  .hero-title { font-size: 42px !important; margin-left: auto !important; margin-right: auto !important; }
  .pcard .quick-add { opacity: 1 !important; transform: none !important; }

  /* Article body */
  .wrap { padding: 0 var(--gutter) !important; }
}

@media (max-width: 480px) {
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Animations ===== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in 600ms ease both; }
.br-tablet { display: none; }

/* ---------- Neon title ("Make it yours") ---------- */
.neon-title .neon-core { fill: #fff; }
@media (prefers-reduced-motion: reduce) {
  .neon-trace { animation: none; opacity: 0; }
}

/* ---------- Mobile drawer (stepped nav) ---------- */
/* Mobile/tablet left cluster: hamburger + search icon. Hidden on desktop. */
.nav-mobile-left {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: -10px;
}
.nav-burger,
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
}
.mobile-nav.open { visibility: visible; }
.mobile-nav-scrim {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.38);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.open .mobile-nav-scrim { opacity: 1; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(88vw, 380px);
  background: var(--linen);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 60px rgba(29, 29, 27, 0.12);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--hair);
  flex: 0 0 auto;
}
.mobile-nav-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mobile-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px 0 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
}
.mobile-nav-levels {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.mobile-nav-list.mn-fwd { animation: mn-in-fwd 280ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.mobile-nav-list.mn-back { animation: mn-in-back 280ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mn-in-fwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes mn-in-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 20px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  transition: background 160ms ease, color 160ms ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:active { background: var(--ivory); color: var(--bronze); }
.mobile-nav-link svg { color: var(--ink-3); }
.mobile-nav-cathead { display: block; padding: 16px 20px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
/* Drawer rich cards (Collections / Services / Stores) */
.mobile-nav-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; color: var(--ink); }
.mobile-nav-card:active { background: var(--ivory); }
.mobile-nav-card-thumb { flex: 0 0 auto; width: 66px; height: 66px; border-radius: 8px; background-size: cover; background-position: center; }
.mobile-nav-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mobile-nav-card-title { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.15; color: var(--ink); }
.mobile-nav-card-blurb { font-family: var(--sans); font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.mobile-nav-card-cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); margin-top: 2px; }
.mobile-nav-card-cta svg { color: var(--bronze-deep) !important; }
.mobile-nav-inlinecard { display: block; margin: 10px 20px 6px; padding: 16px; border: 1px solid var(--hair); border-radius: 12px; color: var(--ink); }
.mobile-nav-inlinecard-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 12px; }
.mobile-nav-inlinecard .mobile-nav-card-title { display: block; font-size: 20px; }
.mobile-nav-inlinecard .mobile-nav-card-blurb { display: block; margin-top: 6px; }
.mobile-nav-inlinecard .mobile-nav-card-cta { margin-top: 10px; }
.mobile-nav-extra { display: block; padding: 12px 20px 4px; }
.mobile-nav-extra-text { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 6px 0 10px; }
.mobile-nav-link.is-sub { font-family: var(--sans); font-size: 16px; font-weight: 400; }
.mobile-nav-link.is-shopall {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bronze-deep);
  min-height: 48px;
  justify-content: flex-start;
  gap: 8px;
  border-top: 1px solid var(--hair-soft);
  margin-top: 18px;
  padding-top: 36px;
  align-items: flex-start;
}
.mobile-nav-link.is-shopall svg { color: var(--bronze-deep); }
.mobile-nav-account { border-top: 1px solid var(--hair); margin-top: 8px; padding-top: 8px; }
.mobile-nav-link.is-account { justify-content: flex-start; gap: 14px; font-family: var(--sans); font-weight: 400; font-size: 15px; }
.mobile-nav-link.is-account svg { color: var(--ink-2); flex: 0 0 auto; }
.mobile-nav-langrow { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px; font-family: var(--sans); color: var(--ink); }
.mobile-nav-langlabel { font-weight: 400; font-size: 15px; }
.mobile-nav-langtoggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-nav-langtoggle button { min-height: 46px; padding: 0 12px; background: none; border: 1px solid var(--hair); border-radius: 4px; cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.mobile-nav-langtoggle button.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.mobile-nav-foot {
  flex: 0 0 auto;
  display: flex;
  border-top: 1px solid var(--hair);
}
.mobile-nav-foot a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 160ms ease;
}
.mobile-nav-foot a:first-child { border-right: 1px solid var(--hair); }
.mobile-nav-foot a:hover { color: var(--bronze); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-scrim,
  .mobile-nav-panel { transition: none; }
  .mobile-nav-list.mn-fwd,
  .mobile-nav-list.mn-back { animation: none; }
}

/* ---------- Fullscreen search overlay (mobile / tablet) ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: var(--linen);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 240ms;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.search-overlay-icon { color: var(--ink-3); flex: 0 0 auto; }
.search-overlay-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 30px);
  color: var(--ink);
}
.search-overlay-input::placeholder { color: var(--ink-4); }
.search-overlay-input:focus { outline: none; }
.search-overlay-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.search-overlay-body { padding: 32px var(--gutter); }
.search-suggest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.search-suggest-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  transition: color 160ms ease;
}
.search-suggest-link:hover,
.search-suggest-link:active { color: var(--bronze); }
@media (prefers-reduced-motion: reduce) {
  .search-overlay { transition: opacity 240ms ease, visibility 0s linear 240ms; transform: none; }
  .search-overlay.open { transition: opacity 240ms ease; }
}

/* Scrollbar hidden in horizontal scrollers */
.h-scroll { overflow-x: auto; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* Grid utility */
.grid { display: grid; }

/* Form / select small */
.select-pill {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 32px 0 14px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%231d1d1b' stroke-width='1.4'/></svg>") no-repeat right 12px center,
    var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 13px;
}

/* Range slider */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--hair);
  border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  background: var(--bronze-deep);
  border-radius: 50%;
  cursor: pointer;
}

/* checkbox visual */
.check {
  width: 18px; height: 18px; border: 1px solid var(--ink-3); border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
}
.check.on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* Color swatch */
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--hair);
  cursor: pointer;
  position: relative;
}
.color-swatch.on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}
