/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over component display rules (grid/flex). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-000);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-8); }
@media (max-width: 700px) { .wrap { padding: 0 var(--space-4); } }

.skip-link {
  position: absolute; left: var(--space-4); top: -48px; z-index: 50;
  background: var(--brand); color: var(--on-brand);
  font: 700 14px/20px var(--font-sans); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ===== Buttons ===== */
.btn {
  font: 700 14px/20px var(--font-sans);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  transition: background .15s ease-out, color .15s ease-out;
}
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.secondary { background: var(--surface-000); color: var(--brand); border-color: var(--brand); }
.btn.secondary:hover { background: var(--brand-tint); }
.btn.lg { padding: 14px 28px; font-size: 16px; line-height: 24px; }

/* ===== Promo strip ===== */
.promo {
  background: var(--brand); color: var(--on-brand);
  font: 600 13px/20px var(--font-sans);
  text-align: center; padding: 6px var(--space-4);
}
.promo a { color: inherit; font-weight: 700; }

/* ===== Site header / menu ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface-000) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: var(--space-8); height: 72px; }

.logo { display: inline-flex; flex: none; }
.logo img { height: 40px; width: auto; }

.main-nav > ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  font: 700 14px/20px var(--font-sans);
  color: var(--ink); text-decoration: none;
  padding: 26px 0 24px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }
.main-nav a.sale { color: var(--accent); }

/* Dropdowns (menu from Admin > Content > Menus, up to 3 levels): open on hover or keyboard focus */
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; }
.main-nav .caret { color: var(--ink-muted); flex: none; transition: transform .15s; }
.main-nav > ul > li:hover > a .caret, .main-nav > ul > li:focus-within > a .caret { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: 100%; left: calc(-1 * var(--space-3)); z-index: 25;
  min-width: 220px; margin: 0; padding: var(--space-2); list-style: none;
  background: var(--surface-000); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(18, 24, 58, .14);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.main-nav li:hover > .nav-drop, .main-nav li:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.nav-drop .nav-drop { top: calc(-1 * var(--space-2) - 1px); left: 100%; }
.main-nav .nav-drop a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 9px var(--space-3); border: 0; border-radius: 8px; font-weight: 600; }
.main-nav .nav-drop a:hover, .main-nav .nav-drop li:focus-within > a { background: var(--surface-100); color: var(--brand); }

.search {
  flex: 1; max-width: 300px; margin-left: auto;
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface-100); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-4); height: 40px; color: var(--ink-muted);
}
.search:hover { border-color: var(--line-strong); }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
  font: 400 14px/20px var(--font-sans); color: var(--ink);
}
.search input::placeholder { color: var(--ink-muted); }

.header-icons { display: flex; gap: var(--space-2); }
.header-icons .icon-btn[aria-current="page"] { color: var(--brand); } /* e.g. Contact us while on /contact */
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-100); color: var(--brand); }
.icon-btn .count {
  position: absolute; top: 2px; right: 0;
  background: var(--accent); color: var(--on-accent);
  font: 700 11px/16px var(--font-sans);
  min-width: 16px; padding: 0 4px; border-radius: var(--radius-pill); text-align: center;
}
.menu-toggle { display: none; }
.search-toggle { display: none; }

@media (max-width: 1040px) {
  .site-header .bar { gap: var(--space-4); height: 64px; }
  .main-nav, .site-header .search { display: none; }
  .header-icons { margin-left: auto; }
  .menu-toggle { display: grid; margin-left: calc(-1 * var(--space-2)); }
  .search-toggle { display: grid; }
  .header-icons .wish-link { display: none; } /* phones and tablets: no heart in the header */
  .logo img { height: 34px; }
}
@media (max-width: 420px) {
  .header-icons .hide-xs { display: none; }
}

/* ===== Mobile drawer ===== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(13,18,48,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease-out;
}
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 31;
  width: min(360px, 88vw);
  background: var(--surface-000);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .25s ease-out, visibility 0s linear .25s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease-out; }
.drawer.open + .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--space-4); border-bottom: 1px solid var(--line);
}
.drawer-body { padding: var(--space-4); overflow-y: auto; flex: 1; }
.drawer .search { display: flex; max-width: none; margin: 0 0 var(--space-4); }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--line);
  font: 700 18px/24px var(--font-display); color: var(--ink); text-decoration: none;
}
.drawer-nav a[aria-current="page"] { color: var(--brand); }
.drawer-nav a.sale { color: var(--accent); }
.drawer-nav a svg { color: var(--line-strong); }
/* Mobile menu sub-items: arrow button expands them */
.drawer-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-row > a { flex: 1; border-bottom: 0; }
.drawer-sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: calc(-1 * var(--space-2)); border: 0; border-radius: 999px; background: none; color: var(--ink-muted); cursor: pointer; }
.drawer-sub-toggle:hover { background: var(--surface-100); color: var(--brand); }
.drawer-sub-toggle svg { transition: transform .15s; }
.drawer-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer-sub { padding-left: var(--space-4) !important; }
.drawer-sub a { font: 600 16px/22px var(--font-sans); padding: var(--space-3) 0; }
@media (prefers-reduced-motion: reduce) { .nav-drop, .main-nav .caret, .drawer-sub-toggle svg { transition: none; } }
.drawer-foot {
  padding: var(--space-4); border-top: 1px solid var(--line);
  display: grid; gap: var(--space-2);
}
.drawer-foot a {
  display: flex; align-items: center; gap: var(--space-3);
  font: 600 14px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding: var(--space-2) 0;
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop { transition: none; }
}

/* ===== Hero ===== */
:root { --card-overlap: 64px; }
/* Full-width photo. Sized so the hero plus the feature cards fit the first screen
   (viewport − promo strip and header ~104px − the card part below the hero and a gap ~96px). */
.hero {
  position: relative; overflow: hidden;
  min-height: max(560px, calc(100vh - 200px));
  min-height: max(560px, calc(100svh - 200px));
  display: flex; align-items: center;
  background: var(--hero-wall);
}
/* --hero-wall matches the video's wall, so the area around the video blends in. */
:root { --hero-wall: #e2ded8; }
.hero-bg { position: absolute; inset: 0; background: var(--hero-wall); }
/* Background video, anchored right and sized so the whole wardrobe (≈11–93% of the frame
   height) sits above the feature cards. Left and bottom edges fade into the wall color. */
.hero-video {
  position: absolute; top: 0; right: 0;
  height: calc((100% - var(--card-overlap)) / .93); width: auto; aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%), linear-gradient(180deg, #000 88%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 20%), linear-gradient(180deg, #000 88%, transparent);
          mask-composite: intersect;
}
/* Light wash on the text side so the headline stays crisp. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.35) 35%, rgba(255,255,255,0) 55%);
}
/* Extra bottom padding leaves room for the feature cards that overlap the hero. */
.hero-inner { position: relative; width: 100%; padding-top: var(--space-16); padding-bottom: calc(var(--card-overlap) + var(--space-16)); }
.hero-copy { max-width: 620px; }

.eyebrow {
  font: 700 12px/16px var(--font-display);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 var(--space-4);
}
.hero h1 {
  font: 700 clamp(48px, 7vw, 104px)/.92 var(--font-display);
  letter-spacing: -.01em; text-transform: uppercase;
  color: var(--brand); margin: 0;
}
.hero h1 .o { color: var(--accent); }
.hero .lead {
  font: 400 18px/28px var(--font-sans);
  color: var(--ink); max-width: 460px; margin: var(--space-6) 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* Tablet & phone: text on top, wardrobe visible below. */
@media (max-width: 900px) {
  .hero { align-items: flex-start; min-height: clamp(640px, calc(100svh - 96px), 880px); }
  /* Video 190% wide, centered on the wardrobe (≈69% across the frame), sitting just above
     the cards; top and bottom edges fade into the wall color. */
  .hero-video {
    top: auto; right: auto; bottom: calc(var(--card-overlap) - 24px);
    left: -81.1%; width: 190%; height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 88%, transparent);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 88%, transparent);
            mask-composite: add;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.6) 40%, rgba(255,255,255,0) 58%);
  }
  .hero-inner { padding-top: var(--space-12); padding-bottom: calc(var(--card-overlap) + var(--space-12)); }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ===== Feature cards ===== */
/* Each card takes a colorway pastel (same order as the hero video) and links to its collection.
   Two columns: icon | title + description. */
.features { position: relative; z-index: 1; margin-top: calc(-1 * var(--card-overlap)); padding-bottom: var(--space-16); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.feature-card {
  --tint: var(--surface-100); --cw-ink: var(--ink); --cw-dot: var(--line-strong);
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--tint);
  border: 1px solid rgba(18,24,58,.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--cw-ink); text-decoration: none;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(18,24,58,.06), 0 10px 24px rgba(18,24,58,.10); }
.feature-card.cw-pistachio { --tint: var(--pistachio-tint); --cw-ink: var(--pistachio-ink); --cw-dot: var(--pistachio); }
.feature-card.cw-taro      { --tint: var(--taro-tint);      --cw-ink: var(--taro-ink);      --cw-dot: var(--taro); }
.feature-card.cw-cream     { --tint: var(--cream-tint);     --cw-ink: var(--choco-ink);     --cw-dot: var(--mint); }

.feature-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--surface-000); color: var(--cw-ink);
  box-shadow: inset 0 0 0 1.5px var(--cw-dot);
}
.feature-text { min-width: 0; }
.feature-card h2 { font: 700 20px/26px var(--font-display); margin: 0 0 var(--space-1); color: var(--cw-ink); }
.feature-card p { font: 400 15px/22px var(--font-sans); color: var(--cw-ink); opacity: .85; margin: 0; }

@media (max-width: 900px) {
  :root { --card-overlap: 56px; }
  .features-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .feature-card { padding: var(--space-4) var(--space-6); }
}
/* Phone: one compact white bar with three columns (tinted icon + short title); the description
   stays for screen readers only. Thin lines split the columns. */
@media (max-width: 600px) {
  .features { padding-bottom: var(--space-10, 40px); }
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    margin-inline: var(--space-4); padding: var(--space-4) var(--space-2);
    background: var(--surface-000); border: 1px solid rgba(18,24,58,.06);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  }
  .feature-card {
    grid-template-columns: 1fr; justify-items: center; align-content: start; gap: var(--space-2);
    padding: var(--space-1) var(--space-2); text-align: center;
    background: none; border: 0; border-radius: var(--radius-md); box-shadow: none;
  }
  .feature-card + .feature-card { border-left: 1px solid var(--line); border-radius: 0; }
  .feature-card:hover { transform: none; box-shadow: none; }
  .feature-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-md); }
  .feature-icon { width: 48px; height: 48px; background: var(--tint); box-shadow: none; }
  .feature-card h2 { font-size: 14px; line-height: 18px; margin: 0; text-wrap: balance; }
  .feature-card p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card { transition: none; }
  .feature-card:hover { transform: none; }
}

/* ===== Featured products ===== */
.featured { padding: var(--space-4) 0 var(--space-16); scroll-margin-top: 88px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-head .eyebrow { margin-bottom: var(--space-2); }
.section-head h2 { font: 700 36px/42px var(--font-display); margin: 0; color: var(--ink); }
.section-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 700 14px/20px var(--font-sans); color: var(--brand); text-decoration: none; white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* No frame around the whole card: the white photo is the only frame, title and price sit under it. */
.product-card {
  --tint: var(--surface-100); --dot: var(--line-strong);
  position: relative;
  border-radius: var(--radius-lg);
}
.product-card.cw-pistachio { --tint: var(--pistachio-tint); --dot: var(--pistachio); }
.product-card.cw-taro      { --tint: var(--taro-tint);      --dot: var(--taro); }
.product-card.cw-cream     { --tint: var(--cream-tint);     --dot: var(--mint); }

.product-photo {
  position: relative;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--tint); overflow: hidden;
  transition: box-shadow .2s ease-out, border-color .2s ease-out;
}
.product-card:hover .product-photo { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(18, 24, 58, .10); }
.product-photo img {
  position: absolute; inset: 0; margin: auto;
  height: 82%; width: auto; max-width: 90%; object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .2s ease-out;
}
.product-card:hover .product-photo img { transform: scale(1.03); }

.badges { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 2; display: flex; gap: var(--space-1); }
/* Pill badges that float on the white photo: the discount ("−11%") and "New". */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font: 800 12px/1 var(--font-sans); letter-spacing: .01em; box-shadow: 0 2px 8px rgba(18, 24, 58, .12); }
.badge.new { background: rgba(255, 255, 255, .92); color: var(--brand); border: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge.new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.wish {
  position: absolute; top: var(--space-2); right: var(--space-2); z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: var(--radius-pill);
  background: var(--surface-000); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(18, 24, 58, .14); /* stays visible on the white photo */
}
.wish:hover, .wish[aria-pressed="true"] { color: var(--accent); }
.wish[aria-pressed="true"] svg { fill: currentColor; }

.product-body { padding: var(--space-3) var(--space-1) 0; display: flex; flex-direction: column; gap: 2px; }
.colorway {
  display: flex; align-items: center; gap: 6px;
  font: 700 11px/16px var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted);
}
.colorway i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.product-name { font: 700 16px/22px var(--font-display); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* 2 lines max keeps the grid even */
.product-name a { color: var(--ink); text-decoration: none; }
/* Stretch the title link over the whole card; the wishlist button sits above it. */
.product-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-name a:focus-visible { outline: none; }
.product-card:has(.product-name a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.product-meta { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin: 0; }
.product-model { font: 600 12px/16px ui-monospace, Menlo, monospace; color: var(--ink-muted); }
.product-price { font: 700 18px/24px var(--font-display); color: var(--ink); margin-top: 2px; }
.stock { font: 600 12px/16px var(--font-sans); }
.stock.low { color: var(--warning); }

/* Tablet: keep 4 columns with compact cards. Phone: 2 columns. */
@media (max-width: 700px) {
  .section-head h2 { font-size: 28px; line-height: 34px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { gap: var(--space-3); }
  .product-card .product-photo { border-radius: var(--radius-md); }
  .product-body { padding: var(--space-2) 2px 0; gap: 2px; }
  .colorway { font-size: 10px; letter-spacing: .16em; }
  .product-name { font-size: 14px; line-height: 19px; }
  .product-meta { font-size: 12px; line-height: 16px; }
  .product-model { font-size: 11px; }
  .product-price { font-size: 16px; line-height: 22px; }
  .wish { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}
/* Placeholder slots for products not added yet. */

.see-more { display: flex; justify-content: center; margin-top: var(--space-8); }

@media (prefers-reduced-motion: reduce) {
  .product-photo img { transition: none; }
  .product-card:hover .product-photo img { transform: none; }
}

/* ===== Why MUMI ===== */
.trust { background: var(--surface-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-12) 0; }
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
}
.trust-item { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start; }
.trust-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand);
}
.trust-item h3 { font: 700 16px/22px var(--font-display); margin: 2px 0 var(--space-1); color: var(--ink); }
.trust-item p { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin: 0; }

.help-bar {
  margin-top: var(--space-8); padding: var(--space-6);
  background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
}
.help-bar h3 { font: 700 20px/26px var(--font-display); margin: 0 0 var(--space-1); color: var(--ink); }
.help-bar p { font: 400 15px/22px var(--font-sans); color: var(--ink-muted); margin: 0; }
.help-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (max-width: 1040px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); }
}
@media (max-width: 560px) {
  .trust { padding: var(--space-8) 0; }
  /* Phone: 2 × 2 tiles, icon on top, centered. */
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .trust-item {
    grid-template-columns: 1fr; justify-items: center; align-content: start; gap: var(--space-2); text-align: center;
    padding: var(--space-4) var(--space-3); background: var(--surface-000);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
  }
  .trust-icon { width: 44px; height: 44px; }
  .trust-item h3 { font-size: 15px; line-height: 20px; margin: 0 0 2px; }
  .trust-item p { font-size: 13px; line-height: 18px; }
  .help-actions { width: 100%; }
  .help-actions .btn { flex: 1 1 100%; }
}

/* ===== Shop by room ===== */
.rooms { padding: var(--space-4) 0 var(--space-16); scroll-margin-top: 88px; }
.rooms-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto);
  gap: var(--space-6);
}
.room-tile {
  --tint: var(--surface-100); --tile-ink: var(--ink);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-6);
  background: var(--tint); color: var(--tile-ink);
  border-radius: var(--radius-lg); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(18,24,58,.05);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.room-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(18,24,58,.05), var(--shadow-card); }
.room-tone-0 { --tint: var(--taro-tint);      --tile-ink: var(--taro-ink); }
.room-tone-1 { --tint: var(--cream-tint);     --tile-ink: var(--choco-ink); }
.room-tone-2 { --tint: var(--pistachio-tint); --tile-ink: var(--pistachio-ink); }
.room-tone-3 { --tint: var(--brand-tint);     --tile-ink: var(--brand); }
.room-tone-4 { --tint: var(--surface-100);    --tile-ink: var(--ink); }

.room-icon { display: block; opacity: .9; }
.room-text { display: flex; flex-direction: column; gap: var(--space-1); }
.room-name { font: 700 24px/30px var(--font-display); }
.room-desc { font: 400 16px/24px var(--font-sans); opacity: .85; max-width: 240px; }
.room-cta { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/20px var(--font-sans); margin-top: var(--space-1); }
.room-cta svg { transition: transform .15s ease-out; }
.room-tile:hover .room-cta svg { transform: translateX(3px); }

/* Featured Storage tile: 2×2, text left, product photo right. */
.room-tile.is-featured { grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: var(--space-8); }
.room-tile.is-featured .room-name { font-size: 36px; line-height: 42px; }
.room-tile.is-featured img {
  position: absolute; right: 6%; bottom: 0; height: 88%; width: auto;
  mix-blend-mode: multiply; transition: transform .2s ease-out;
}
.room-tile.is-featured:hover img { transform: scale(1.03); }
.room-tile.is-featured .room-text { position: relative; z-index: 1; max-width: 50%; }
.room-tile.is-featured:not(:has(img)) .room-text { max-width: none; } /* no thumbnail: icon + text only */

@media (max-width: 900px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(160px, auto); gap: var(--space-3); }
  .room-tile { padding: var(--space-4); gap: var(--space-4); }
  .room-tile.is-featured { grid-row: span 1; min-height: 280px; padding: var(--space-6); }
  .room-tile.is-featured .room-name { font-size: 28px; line-height: 34px; }
  .room-name { font-size: 20px; line-height: 26px; }
  .room-icon svg { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .room-tile.is-featured .room-text { max-width: 58%; }
  .room-tile.is-featured img { right: 2%; height: 80%; }
}

/* ===== FAQ ===== */
.faq { padding: var(--space-16) 0; scroll-margin-top: 72px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-12); align-items: start; }
.faq-intro h2 { font: 700 36px/42px var(--font-display); margin: 0 0 var(--space-3); color: var(--ink); }
.faq-intro p:not(.eyebrow) { font: 400 16px/24px var(--font-sans); color: var(--ink-muted); margin: 0; max-width: 360px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0;
  font: 700 17px/24px var(--font-display); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-toggle {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: var(--brand-tint);
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: translate(-50%, -50%);
  transition: transform .2s ease-out;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer p { font: 400 16px/24px var(--font-sans); color: var(--ink-muted); margin: 0; padding: 0 var(--space-12) var(--space-4) 0; }

@media (max-width: 900px) {
  .faq { padding: var(--space-12) 0; }
  .faq-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .faq-intro h2 { font-size: 28px; line-height: 34px; }
  .faq-answer p { padding-right: 0; }
}

/* ===== Footer ===== */
/* Blue footer with the brand's red hairline on top. The logo sits on a white tab,
   since the blue plate disappears on a blue background. */
.site-footer { position: relative; background: var(--brand); color: var(--on-brand); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-8);
  padding-top: var(--space-12); padding-bottom: var(--space-12);
}
.footer-logo { display: inline-flex; background: #fff; border-radius: var(--radius-md); padding: 8px 12px; }
.footer-logo img { height: 32px; width: auto; }
.footer-brand p { font: 400 15px/22px var(--font-sans); opacity: .85; margin: var(--space-4) 0; max-width: 260px; }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill);
  color: var(--on-brand); background: rgba(255,255,255,.12);
  transition: background .15s ease-out;
}
.footer-social a:hover { background: rgba(255,255,255,.24); }
.footer-col h2 {
  font: 700 12px/16px var(--font-display); letter-spacing: .24em; text-transform: uppercase;
  margin: var(--space-2) 0 var(--space-4); opacity: .75;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { font: 600 15px/22px var(--font-sans); color: var(--on-brand); text-decoration: none; opacity: .92; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-col .pay-title { margin-top: var(--space-6); }
.pay-methods { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pay-methods span {
  font: 700 12px/16px var(--font-sans); padding: 6px 12px; border-radius: var(--radius-pill);
  background: #fff; color: var(--brand);
}
.site-footer :focus-visible { outline-color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); }
.footer-bottom .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding-top: var(--space-4); padding-bottom: var(--space-4);
}
.footer-bottom p { margin: 0; font: 400 13px/20px var(--font-sans); opacity: .8; display: flex; gap: var(--space-2); }
.footer-bottom a { color: var(--on-brand); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Phone: centered brand, Shop and Help side by side, contact links as tappable pills, centered bottom line. */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-4); padding-top: var(--space-10, 40px); padding-bottom: var(--space-8); }
  .footer-brand { text-align: center; padding-bottom: var(--space-6); border-bottom: 1px solid rgba(255,255,255,.16); }
  .footer-brand p { margin: var(--space-3) auto var(--space-4); text-wrap: balance; }
  .footer-social { justify-content: center; }
  .footer-col h2 { margin: 0 0 var(--space-3); }
  .footer-col ul { gap: 6px; }
  .footer-col a { font-size: 14px; line-height: 22px; }
  .footer-col:last-child { grid-column: 1 / -1; padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.16); }
  .footer-col:last-child ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .footer-col:last-child ul a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4);
    border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-pill); opacity: 1;
  }
  .footer-col:last-child ul a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
  .footer-bottom .wrap { flex-direction: column; justify-content: center; gap: var(--space-1); text-align: center; padding-bottom: var(--space-6); }
  .footer-bottom p { justify-content: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .room-tile, .room-tile.is-featured img, .room-cta svg, .faq-toggle::before, .faq-toggle::after { transition: none; }
  .room-tile:hover, .room-tile.is-featured:hover img, .room-tile:hover .room-cta svg { transform: none; }
}

/* ===== Products page ===== */
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); }
.shop { padding: var(--space-6) 0 var(--space-16); }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); font: 600 13px/20px var(--font-sans); color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-strong); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin: var(--space-4) 0 var(--space-6); }
.shop-head h1 { font: 700 36px/42px var(--font-display); margin: 0; color: var(--ink); }
.shop-count { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin: var(--space-1) 0 0; }
.shop-tools { display: flex; align-items: center; gap: var(--space-3); }
.sort { display: flex; align-items: center; gap: var(--space-2); font: 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.sort select {
  height: 44px; padding: 0 36px 0 var(--space-3);
  font: 600 14px/20px var(--font-sans); color: var(--ink);
  background: var(--surface-000) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23565d7e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius-md); appearance: none; cursor: pointer;
}
.sort select:hover { border-color: var(--line-strong); }
.filters-toggle { display: inline-flex; height: 44px; padding-top: 0; padding-bottom: 0; }
.filter-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--on-brand); font: 700 12px/20px var(--font-sans); text-align: center;
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 32px; padding: 0 var(--space-3); border: 1px solid var(--brand); border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand); font: 700 13px/18px var(--font-sans); cursor: pointer;
}
.chip span { font-size: 16px; line-height: 1; }
.chip:hover { background: var(--surface-000); }
.chip-clear { border: 0; background: none; padding: 0 var(--space-2); color: var(--ink-muted); font: 700 13px/18px var(--font-sans); text-decoration: underline; cursor: pointer; }
.chip-clear:hover { color: var(--brand); }

.shop-layout { display: block; }
/* Filters live in a slide-in panel, so the products use the full width: 4 per row on desktop */
.shop-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

/* Filters: a slide-in panel from the right on every screen size (opened with the Filters button).
   The panel scrolls on its own; scrolling it never moves the page behind it. */
.filters {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(400px, 92vw); background: var(--surface-000); box-shadow: -8px 0 32px rgba(18,24,58,.16);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease-out, visibility 0s linear .25s;
}
.filters.open { transform: none; visibility: visible; transition: transform .25s ease-out; }
.filters-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--space-4) 0 var(--space-6); border-bottom: 1px solid var(--line); flex: none; }
.filters-head h2 { font: 700 20px/26px var(--font-display); margin: 0; }
.filters-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-6); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.filters-foot { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); flex: none; }
.filters-foot .btn { flex: 1; }
.filters-backdrop {
  display: block; position: fixed; inset: 0; z-index: 40; background: rgba(13,18,48,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease-out;
}
.filters.open + .filters-backdrop { opacity: 1; pointer-events: auto; }
/* Bigger screens: tablets get a wider panel; desktop uses 25% of the screen (never narrower than 380px) */
.filters .check > span:not(.opt-count) { min-width: 0; overflow-wrap: anywhere; }
/* Pill buttons (attribute values, Availability): wrap inline. The real checkbox stays inside for keyboard,
   screen readers and the filter logic; only its look is replaced. Room stays a list (it is a tree). */
.filters .filter-options.filter-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-pills .check {
  position: relative; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface-000); font: 600 14px/20px var(--font-sans); transition: border-color .15s, background .15s, color .15s;
}
.filter-pills .check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filter-pills .check:hover { border-color: var(--brand); color: var(--brand); }
.filter-pills .check:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.filter-pills .check:has(input:checked)::before { content: "✓"; font-weight: 700; }
.filter-pills .check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.filter-pills .check:has(input:disabled) { border-style: dashed; background: none; color: var(--line-strong); }
.filter-pills .check:has(input:disabled):hover { border-color: var(--line-strong); }
.filter-pills .check .opt-count { margin-left: 2px; padding: 0 7px; }
.filter-pills .check:has(input:checked) .opt-count { background: var(--surface-000); color: var(--brand); }
.filter-pills .swatch-dot { width: 16px; height: 16px; margin-left: -4px; }
@media (prefers-reduced-motion: reduce) { .filter-pills .check { transition: none; } }
@media (min-width: 701px) {
  .filters { width: min(440px, 92vw); }
}
@media (min-width: 1041px) {
  .filters { width: max(25vw, 380px); }
}
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: var(--space-4) 0 var(--space-6); }
.filters-body > fieldset:first-child { border-top: 0; padding-top: 0; } /* attribute groups sit in #attrFilters, so every other group gets the divider */
.filters fieldset.is-collapsed { padding-bottom: var(--space-4); }
.filters fieldset.is-collapsed legend { margin-bottom: 0; }
/* Collapsible group header (built by products.js inside each legend) */
.fg-toggle { display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.fg-toggle:hover { color: var(--brand); }
.fg-name { flex: 1; }
.fg-count { min-width: 20px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand, #fff); font: 700 11px/16px var(--font-sans); letter-spacing: 0; text-align: center; }
.fg-chev { color: var(--ink-muted); flex: none; transition: transform .15s; }
.fg-toggle[aria-expanded="true"] .fg-chev { transform: rotate(180deg); }
.fg-body[hidden], .filter-options > [hidden] { display: none; }
.fg-more { margin-top: var(--space-2); padding: 0; border: 0; background: none; color: var(--brand); font: 700 13px/18px var(--font-sans); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fg-chev { transition: none; } }
/* Float the legend so it sits inside the fieldset, below the divider, not on it. */
.filters legend { float: left; width: 100%; font: 700 12px/16px var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); padding: 0; margin-bottom: var(--space-3); }
.filters legend + * { clear: both; }
.filter-options { display: grid; gap: var(--space-1); }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: 36px; font: 600 15px/20px var(--font-sans); color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.check:has(input:disabled) { color: var(--line-strong); cursor: not-allowed; }
.check .opt-count { margin-left: auto; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); background: var(--surface-100); padding: 2px 8px; border-radius: var(--radius-pill); }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); margin-left: calc(-1 * var(--space-1)); }
.price-range { display: flex; align-items: center; gap: var(--space-2); }
.price-range label { position: relative; flex: 1; }
.price-range .peso { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 600 14px var(--font-sans); color: var(--ink-muted); }
.price-range input {
  width: 100%; height: 44px; padding: 0 var(--space-2) 0 26px;
  font: 400 15px/20px var(--font-sans); color: var(--ink);
  background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.price-range input:hover { border-color: var(--line-strong); }
.price-range .dash { color: var(--ink-muted); }
/* Dual-handle price slider: two range inputs stacked on one track; only their handles take the pointer */
.price-slider { position: relative; height: 32px; margin: 0 0 2px; }
.price-slider[hidden], .ps-scale[hidden] { display: none; }
.ps-track { position: absolute; left: 11px; right: 11px; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--radius-pill); background: var(--line); }
.ps-fill { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--brand); }
.price-slider input[type="range"] {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0;
  background: none; -webkit-appearance: none; appearance: none; pointer-events: none;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.price-slider input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--surface-000); border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(18,24,58,.25);
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-000); border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(18,24,58,.25);
}
.price-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.price-slider input[type="range"]:focus { outline: none; }
.price-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.price-slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.ps-scale { display: flex; justify-content: space-between; margin: 0 0 var(--space-3); font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }

/* Empty state */
.empty-state { text-align: center; padding: var(--space-16) var(--space-6); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-muted); }
.empty-state svg { color: var(--line-strong); }
.empty-state h2 { font: 700 22px/28px var(--font-display); color: var(--ink); margin: var(--space-3) 0 var(--space-2); }
.empty-state p { margin: 0 auto var(--space-6); max-width: 360px; }

/* Sale badge + price (used when a product has `was`) */
.badge.sale { background: var(--accent); color: var(--on-accent); }
.product-price.on-sale { color: var(--accent); }
.product-price .was { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin-left: var(--space-1); }

@media (max-width: 700px) {
  .shop-head h1 { font-size: 28px; line-height: 34px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-tools { width: 100%; }
  .shop-tools .sort { flex: 1; justify-content: flex-end; }
  .sort span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .filters, .filters-backdrop { transition: none; }
}

/* ===== Product page ===== */
.pdp-page { padding: var(--space-6) 0 var(--space-16); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; margin-top: var(--space-6); }

.pdp-gallery { --tint: var(--surface-100); position: sticky; top: 96px; }
.pdp-gallery.cw-pistachio { --tint: var(--pistachio-tint); }
.pdp-gallery.cw-taro      { --tint: var(--taro-tint); }
.pdp-gallery.cw-cream     { --tint: var(--cream-tint); }
.pdp-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--tint); overflow: hidden;
}
.pdp-photo img { position: absolute; inset: 0; margin: auto; height: 84%; width: auto; max-width: 88%; object-fit: contain; mix-blend-mode: multiply; }
/* Hover zoom (product.js, mouse only): the photo scales toward the pointer; badges fade so they don't cover it. */
.pdp-photo.can-zoom { cursor: zoom-in; }
.pdp-photo.can-zoom #pdpMain { transition: transform .2s ease-out; }
.pdp-photo.zooming #pdpMain { transform: scale(2); }
.pdp-photo .badges { transition: opacity .2s; }
.pdp-photo.zooming .badges { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .pdp-photo.can-zoom #pdpMain { transition: none; } }
.pdp-photo .badges { top: var(--space-4); left: var(--space-4); }
.pdp-photo .wish { top: var(--space-4); right: var(--space-4); width: 44px; height: 44px; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.pdp-thumbs button { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); background: var(--tint); overflow: hidden; cursor: pointer; }
.pdp-thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.pdp-thumbs button:hover { border-color: var(--line-strong); }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--brand); }

.pdp-info { display: flex; flex-direction: column; gap: var(--space-3); }
.pdp-info .colorway i { background: var(--dot); }
.pdp-info h1 { font: 700 40px/46px var(--font-display); margin: 0; color: var(--ink); }
.pdp-rating { display: inline-flex; align-items: center; gap: var(--space-2); font: 600 14px/20px var(--font-sans); color: var(--ink-muted); text-decoration: none; align-self: flex-start; }
.pdp-rating:hover span:last-child { text-decoration: underline; color: var(--brand); }
.pdp-price { font: 700 32px/38px var(--font-display); color: var(--ink); margin-top: var(--space-1); }
.pdp-price.on-sale { color: var(--accent); }
.pdp-price .was { font: 400 18px/24px var(--font-sans); color: var(--ink-muted); }
/* Under the price: the short description. Further down: the full description in its own section. */
.pdp-short { font: 400 17px/27px var(--font-sans); color: var(--ink-muted); margin: 0; max-width: 520px; }
.pdp-desc { font: 400 16px/26px var(--font-sans); color: var(--ink); margin: 0; max-width: 760px; }
.pdp-model { font: 600 13px/18px var(--font-sans); color: var(--ink-muted); margin: 0; }
.pdp-model span { font-family: ui-monospace, Menlo, monospace; color: var(--ink); }

.pdp-option { margin-top: var(--space-2); }
.opt-label { font: 600 14px/20px var(--font-sans); color: var(--ink-muted); margin: 0 0 var(--space-2); }
.opt-label b { color: var(--ink); }
.pdp-swatches { display: flex; gap: var(--space-2); }
.cw-swatch {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid transparent; transition: border-color .15s ease-out;
}
.cw-swatch i { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cw-swatch:hover { border-color: var(--line-strong); }
.cw-swatch.is-current { border-color: var(--brand); }

.pdp-buy { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-000); }
.qty button { width: 44px; height: 52px; border: 0; background: none; font: 700 20px/1 var(--font-sans); color: var(--ink); cursor: pointer; }
.qty button:hover { color: var(--brand); background: var(--surface-100); }
.qty input { width: 44px; height: 52px; border: 0; text-align: center; font: 700 16px/24px var(--font-sans); color: var(--ink); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-cart { flex: 1; }
.pdp-stock { margin: 0; font-size: 14px; }
/* Backorder: what's coming and when (product page, under Add to cart) */
.pdp-backorder { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--cream-tint); color: var(--choco-ink); font: 400 14px/20px var(--font-sans); }
.pdp-backorder b { font-weight: 700; color: var(--warning); }
.pdp-perks { list-style: none; margin: var(--space-3) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-3); }
.pdp-perks li { display: flex; align-items: center; gap: var(--space-3); font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.pdp-perks svg { color: var(--brand); flex: none; }
.pdp-perks b { color: var(--ink); font-weight: 700; }

/* Section tabs (in-page links) */
.pdp-tabs { display: flex; gap: var(--space-6); margin-top: var(--space-16); border-bottom: 1px solid var(--line); }
.pdp-tabs a { font: 700 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding: var(--space-3) 0; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: var(--space-2); }
.pdp-tabs a:hover { color: var(--brand); border-color: var(--brand); }
.tab-count { font: 700 12px/16px var(--font-sans); background: var(--surface-100); color: var(--ink-muted); padding: 2px 8px; border-radius: var(--radius-pill); }

.pdp-section { padding-top: var(--space-12); scroll-margin-top: 88px; }
.pdp-section h2 { font: 700 28px/34px var(--font-display); margin: 0 0 var(--space-6); color: var(--ink); }

/* Specifications */
.spec-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-8); align-items: start; }
.spec-layout.no-guide { grid-template-columns: 1fr; } /* product without a size guide */
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); font: 400 15px/22px var(--font-sans); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 700; color: var(--ink); background: var(--surface-100); }
.spec-table td { color: var(--ink-muted); }
.spec-card { background: var(--surface-100); border-radius: var(--radius-lg); padding: var(--space-6); }
.spec-card h3 { font: 700 18px/24px var(--font-display); margin: 0 0 var(--space-4); }
.spec-card p { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin: var(--space-4) 0 0; }
.size-guide-img { display: block; padding: var(--space-3); background: var(--surface-000); border-radius: var(--radius-md); cursor: zoom-in; }
.size-guide-img img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.size-guide-img:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Reviews */
.stars {
  display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--warning) var(--pct), var(--line) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reviews-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.reviews-top h2 { margin: 0; }
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-8); align-items: start; }
.review-summary { background: var(--surface-100); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; }
.review-summary .avg { font: 700 48px/1 var(--font-display); color: var(--ink); margin-bottom: var(--space-2); }
.review-summary .stars { font-size: 22px; }
.review-summary > p { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin: var(--space-2) 0 var(--space-4); }
.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); text-align: left; }
.dist li { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: var(--space-2); font: 600 13px/18px var(--font-sans); color: var(--ink-muted); }
.dist .bar { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.dist .bar span { display: block; height: 100%; background: var(--warning); border-radius: inherit; }
.dist .bar-count { text-align: right; }
.review-list { display: grid; gap: var(--space-4); }
.review { border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
.review-head { display: flex; align-items: center; gap: var(--space-3); }
.review-date { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.review h3 { font: 700 16px/22px var(--font-display); margin: var(--space-2) 0 var(--space-1); }
.review p { font: 400 15px/22px var(--font-sans); color: var(--ink-muted); margin: 0; }
.review .review-author { font-weight: 700; color: var(--ink); margin-top: var(--space-2); font-size: 14px; }
.reviews-empty { text-align: center; padding: var(--space-12) var(--space-6); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-muted); }
.reviews-empty svg { color: var(--warning); }
.reviews-empty h3 { font: 700 20px/26px var(--font-display); color: var(--ink); margin: var(--space-2) 0 var(--space-1); }
.reviews-empty p { margin: 0; }

.review-form { margin-top: var(--space-8); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: var(--space-4); max-width: 760px; }
.review-form h3 { font: 700 20px/26px var(--font-display); margin: 0; }
.rate-field { border: 0; padding: 0; margin: 0; }
.rate-field legend { font: 700 14px/20px var(--font-sans); padding: 0; margin-bottom: var(--space-2); }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s; }
.rate-input label:hover, .rate-input label:hover ~ label,
.rate-input input:checked ~ label { color: var(--warning); }
.rate-input input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.review-form .f { display: flex; flex-direction: column; gap: 6px; }
.review-form label:not(.rate-input label) { font: 700 14px/20px var(--font-sans); color: var(--ink); }
.review-form .opt { font-weight: 400; color: var(--ink-muted); }
.review-form input:not([type="radio"]), .review-form textarea {
  font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-000);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px var(--space-3);
}
.review-form input:not([type="radio"]) { height: 44px; }
.review-form input:hover, .review-form textarea:hover { border-color: var(--line-strong); }
.review-form input::placeholder, .review-form textarea::placeholder { color: var(--ink-muted); }
.review-form .f.err input, .review-form .f.err textarea { border-color: var(--accent); }
.field-error { font: 600 13px/18px var(--font-sans); color: var(--accent); margin: var(--space-1) 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: var(--space-3); }
.review-thanks { margin-top: var(--space-6); padding: var(--space-4); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); font: 700 15px/22px var(--font-sans); }

.related-grid { grid-template-columns: repeat(4, 1fr); }
.pdp-missing { margin-top: var(--space-8); }
.pdp-missing h1 { font: 700 28px/34px var(--font-display); color: var(--ink); margin: 0 0 var(--space-2); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translateX(-50%) translateY(80px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font: 700 14px/20px var(--font-sans);
  padding: 10px 18px; border-radius: var(--radius-pill); max-width: calc(100vw - 32px);
  transition: transform .2s ease-out, opacity .2s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: var(--space-6); }
  .pdp-gallery { position: static; }
  .pdp-photo { aspect-ratio: 1; }
  .pdp-info h1 { font-size: 30px; line-height: 36px; }
  .pdp-price { font-size: 28px; line-height: 34px; }
  .spec-layout, .reviews-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-tabs { margin-top: var(--space-12); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .spec-table th { width: 46%; }
  .spec-table th, .spec-table td { padding: var(--space-3); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .cw-swatch { transition: none; }
}

/* Sample reviews (preview only) */
.sample-tag {
  margin-left: auto; font: 700 11px/16px var(--font-sans); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--surface-100); border: 1px dashed var(--line-strong);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.review-summary .sample-note { font: 600 12px/16px var(--font-sans); color: var(--ink-muted); margin: var(--space-4) 0 0; }

/* ===== Checkout ===== */
.checkout-page { background: var(--surface-100); }
.checkout-header { background: var(--surface-000); border-bottom: 1px solid var(--line); }
.checkout-header .wrap { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.checkout-header .secure { display: inline-flex; align-items: center; gap: var(--space-2); font: 700 14px/20px var(--font-sans); color: var(--success); }
.back-link { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2); font: 700 14px/20px var(--font-sans); color: var(--brand); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.checkout { padding: var(--space-8) 0 var(--space-16); }
.checkout h1 { font: 700 36px/42px var(--font-display); margin: 0 0 var(--space-6); color: var(--ink); }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--space-8); align-items: start; }

.checkout-form { display: grid; gap: var(--space-4); }
.co-card { background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.co-card h2 { display: flex; align-items: center; gap: var(--space-3); font: 700 20px/26px var(--font-display); margin: 0 0 var(--space-6); color: var(--ink); }
.step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 14px/1 var(--font-sans); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 700 14px/20px var(--font-sans); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-000);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px var(--space-3); width: 100%;
}
.field input { height: 44px; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field.err input, .field.err textarea { border-color: var(--accent); }
.form-alert { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #fdecee; color: var(--accent); font: 700 14px/20px var(--font-sans); border: 1px solid #f6c3c8; }

.choice-group { border: 0; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.co-card .choice-group:first-of-type:last-child { margin-top: 0; }
.choice-group legend { float: left; width: 100%; font: 700 14px/20px var(--font-sans); color: var(--ink); padding: 0; margin-bottom: var(--space-1); }
.choice-group legend + * { clear: both; }
/* A visually hidden legend (e.g. "Payment method") must stay 1px: the full-width rule above made it an
   invisible box sticking out past the page edge, which gave checkout a sideways scrollbar. */
.choice-group { position: relative; min-width: 0; }
.choice-group legend.sr-only { width: 1px; float: none; left: 0; top: 0; margin: -1px; }
.choice {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; background: var(--surface-000);
}
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.choice-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.choice-body b { font: 700 15px/22px var(--font-sans); color: var(--ink); }
.choice-body span { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.choice.is-disabled { opacity: .6; cursor: not-allowed; }
.choice.is-disabled:hover { border-color: var(--line); }
.choice-icon { color: var(--brand); flex: none; }

.place-order { width: 100%; margin-top: var(--space-2); }
.fine-print { font: 400 13px/20px var(--font-sans); color: var(--ink-muted); text-align: center; margin: 0; }
.fine-print a { color: var(--ink-muted); }

/* Order summary */
.order-summary { position: sticky; top: var(--space-6); background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.order-summary h2 { font: 700 20px/26px var(--font-display); margin: 0 0 var(--space-4); color: var(--ink); }
.order-summary h2 span { font: 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.summary-items { list-style: none; margin: 0; padding: 0; display: grid; }
.summary-item { --tint: var(--surface-100); display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.summary-item:first-child { padding-top: 0; }
.summary-item.cw-pistachio { --tint: var(--pistachio-tint); }
.summary-item.cw-taro { --tint: var(--taro-tint); }
.summary-item.cw-cream { --tint: var(--cream-tint); }
.thumb { display: grid; place-items: center; width: 64px; height: 80px; border-radius: var(--radius-sm); background: var(--tint); overflow: hidden; }
.thumb img { height: 88%; width: auto; mix-blend-mode: multiply; }
.item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-name { font: 700 15px/20px var(--font-display); color: var(--ink); text-decoration: none; }
.item-name:hover { color: var(--brand); text-decoration: underline; }
.item-meta { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.item-actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.qty.sm button { width: 32px; height: 32px; font-size: 16px; }
.qty.sm button:disabled { color: var(--line-strong); cursor: not-allowed; background: none; }
.qty-val { min-width: 24px; text-align: center; font: 700 14px/20px var(--font-sans); color: var(--ink); }
.remove { border: 0; background: none; padding: 0; font: 600 13px/18px var(--font-sans); color: var(--ink-muted); text-decoration: underline; cursor: pointer; }
.remove:hover { color: var(--accent); }
.item-price { font: 700 15px/20px var(--font-display); color: var(--ink); white-space: nowrap; }

.totals { margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.totals div { display: flex; justify-content: space-between; font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.totals dt, .totals dd { margin: 0; }
.totals dd { color: var(--ink); font-weight: 600; }
.totals .free { color: var(--success); font-weight: 700; }
.totals .grand { border-top: 1px solid var(--line); padding-top: var(--space-3); margin-top: var(--space-1); }
.totals .grand dt { font: 700 17px/24px var(--font-display); color: var(--ink); }
.totals .grand dd { font: 700 22px/28px var(--font-display); }
.total-note { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); margin: var(--space-2) 0 0; }
.summary-perks { list-style: none; margin: var(--space-6) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-2); }
.summary-perks li { display: flex; align-items: center; gap: var(--space-2); font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.summary-perks svg { color: var(--success); flex: none; }

/* Confirmation */
.confirmation { background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-12) var(--space-8); text-align: center; max-width: 820px; margin: 0 auto; outline: none; }
.confirm-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); margin: 0 auto var(--space-4); }
.confirmation h2 { font: 700 32px/38px var(--font-display); margin: 0 0 var(--space-2); color: var(--ink); }
.order-no { font: 400 16px/24px var(--font-sans); color: var(--ink-muted); margin: 0 0 var(--space-8); }
.order-no b { color: var(--ink); font-family: ui-monospace, Menlo, monospace; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); text-align: left; margin-bottom: var(--space-8); }
.confirm-grid h3 { font: 700 16px/22px var(--font-display); margin: 0 0 var(--space-3); color: var(--ink); }
.next-steps { margin: 0; padding-left: 20px; display: grid; gap: var(--space-2); font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.next-steps li::marker { color: var(--brand); font-weight: 700; }
.next-steps b { color: var(--ink); }
.confirm-total { display: flex; justify-content: space-between; font: 400 15px/22px var(--font-sans); color: var(--ink-muted); margin: var(--space-3) 0 0; }
.confirm-total b { color: var(--ink); }

.checkout-footer { border-top: 1px solid var(--line); background: var(--surface-000); }
.checkout-footer .wrap { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-4); padding-bottom: var(--space-4); }
.checkout-footer p { margin: 0; font: 400 13px/20px var(--font-sans); color: var(--ink-muted); display: flex; gap: var(--space-2); }
.checkout-footer a { color: var(--ink-muted); }

@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
}
@media (max-width: 600px) {
  .checkout h1 { font-size: 28px; line-height: 34px; margin-bottom: var(--space-4); }
  .checkout-header .wrap { height: 60px; gap: var(--space-3); }
  .checkout-header .logo img { height: 26px; }
  .checkout-header .secure { font-size: 13px; }
  .back-link span { display: none; }
  .co-card, .order-summary { padding: var(--space-4); }
  .field-grid { grid-template-columns: 1fr; }
  .confirmation { padding: var(--space-8) var(--space-4); }
  .confirm-grid { grid-template-columns: 1fr; }
  .confirmation h2 { font-size: 26px; line-height: 32px; }
}

/* ===== Contact page ===== */
.contact-page { padding: var(--space-6) 0 var(--space-16); background: var(--surface-100); }
.contact-head { max-width: 640px; margin: var(--space-6) 0 var(--space-8); }
.contact-head .eyebrow { margin-bottom: var(--space-2); }
.contact-head h1 { font: 700 40px/46px var(--font-display); margin: 0 0 var(--space-3); color: var(--ink); }
.contact-head p:not(.eyebrow) { font: 400 17px/27px var(--font-sans); color: var(--ink-muted); margin: 0; }
/* Form across the full width; "Other ways to reach us" in a band below it (photo left, options right). */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.contact-card h2 { font: 700 22px/28px var(--font-display); margin: 0 0 var(--space-6); color: var(--ink); }
.contact-form { display: grid; gap: var(--space-4); }
.field-foot { display: flex; justify-content: space-between; gap: var(--space-3); }
.field-foot .field-error { margin: 0; }
.char-count { margin-left: auto; font: 400 12px/18px var(--font-sans); color: var(--ink-muted); }
.contact-submit { justify-self: start; min-width: 220px; }
.contact-form .fine-print { text-align: left; }

.contact-success { text-align: center; padding: var(--space-8) var(--space-4); outline: none; }
.contact-success h3 { font: 700 24px/30px var(--font-display); margin: 0 0 var(--space-2); color: var(--ink); }
.contact-success p { font: 400 16px/24px var(--font-sans); color: var(--ink-muted); margin: 0 auto var(--space-6); max-width: 420px; }
.contact-success b { color: var(--ink); }

.contact-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-8); align-items: center; }
.contact-aside .contact-figure { margin: 0; order: 2; } /* options on the left, model on the right */
.contact-reach { display: grid; gap: var(--space-4); }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 900px) {
  .contact-aside { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .contact-aside .contact-figure { margin: 0 auto; order: 0; } /* stacked: model above the options */
}
@media (max-width: 560px) { .contact-options { grid-template-columns: minmax(0, 1fr); } }

.contact-aside h2 { font: 700 18px/24px var(--font-display); margin: 0 0 var(--space-1); color: var(--ink); }
.contact-option {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4);
  background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.contact-option:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.contact-option > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-option b { font: 700 16px/22px var(--font-display); }
.contact-option > span:last-child span { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.co-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); flex: none; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-head h1 { font-size: 30px; line-height: 36px; }
}
@media (max-width: 600px) {
  .contact-submit { justify-self: stretch; }
}

/* ===== Home: transparent header over the hero, white once you scroll ===== */
:root { --header-h: 72px; }
@media (max-width: 1040px) { :root { --header-h: 64px; } }

.home .site-header {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
  transition: background-color .25s ease-out, border-color .25s ease-out, box-shadow .25s ease-out;
}
.home .site-header.scrolled {
  background: color-mix(in srgb, var(--surface-000) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(18,24,58,.06);
}
.home .site-header:not(.scrolled) .search { background: rgba(255,255,255,.7); border-color: rgba(18,24,58,.08); }

/* Pull the hero up under the header, and push its content and video back down. */
.home .hero {
  margin-top: calc(-1 * var(--header-h));
  min-height: max(632px, calc(100vh - 128px));
  min-height: max(632px, calc(100svh - 128px));
}
.home .hero-inner { padding-top: calc(var(--header-h) + var(--space-16)); }
.home .hero-video {
  top: var(--header-h);
  height: calc((100% - var(--card-overlap) - var(--header-h)) / .93);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%), linear-gradient(180deg, transparent 0, #000 6%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 20%), linear-gradient(180deg, transparent 0, #000 6%, #000 88%, transparent);
}
@media (max-width: 900px) {
  .home .hero { min-height: clamp(704px, calc(100svh - 32px), 944px); }
  .home .hero-inner { padding-top: calc(var(--header-h) + var(--space-12)); }
  .home .hero-video {
    top: auto; height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 88%, transparent);
            mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 88%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .site-header { transition: none; }
}

/* FAQ model image: cut-out photo on a Taro circle, head rising above it. */
.faq-figure { position: relative; margin: var(--space-8) 0 0; width: min(340px, 100%); }
.faq-visual {
  position: relative; aspect-ratio: 1 / 1.2; overflow: hidden;
  /* Flat top (lets the head rise above the circle), round bottom matching the circle. */
  border-radius: 0 0 50% 50% / 0 0 41.67% 41.67%;
}
.faq-visual::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1;
  border-radius: 50%; background: var(--taro-tint);
  box-shadow: inset 0 0 0 1px rgba(74,59,99,.06);
}
.faq-visual img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 118%; width: auto; max-width: none; }
.faq-bubble {
  position: absolute; top: 14%; right: 6%;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50% 50% 50% 8px;
  background: var(--brand); color: var(--on-brand);
  font: 700 28px/1 var(--font-display);
  box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
  .faq-intro:has(.faq-figure) { display: grid; grid-template-columns: 1fr 132px; column-gap: var(--space-4); align-items: center; }
  .faq-intro > :not(.faq-figure) { grid-column: 1; }
  .faq-figure { grid-column: 2; grid-row: 1 / span 3; margin: 0; width: 132px; }
  .faq-bubble { width: 34px; height: 34px; font-size: 18px; top: 8%; right: -4%; }
}

/* ===== Newsletter ===== */
.newsletter { padding: 0 0 var(--space-16); }
.contact-page + .newsletter { background: var(--surface-100); }
.nl-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: var(--space-8); align-items: center;
  padding: var(--space-12); border-radius: var(--radius-lg);
  background: var(--brand-tint);
}
.nl-copy, .nl-form, .nl-success { position: relative; z-index: 1; }
.nl-copy .eyebrow { margin-bottom: var(--space-2); }
.nl-copy h2 { font: 700 32px/38px var(--font-display); margin: 0 0 var(--space-2); color: var(--ink); }
.nl-copy p:not(.eyebrow) { font: 400 16px/24px var(--font-sans); color: var(--ink-muted); margin: 0; max-width: 460px; }

.nl-row {
  display: flex; gap: var(--space-2); padding: 6px;
  background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.nl-row:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.nl-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 var(--space-4);
  border: 0; background: transparent; outline: 0;
  font: 400 16px/24px var(--font-sans); color: var(--ink);
}
.nl-row input::placeholder { color: var(--ink-muted); }
.nl-row:has(input.err) { border-color: var(--accent); }
.nl-row .btn { border-radius: var(--radius-pill); padding-left: var(--space-6); padding-right: var(--space-6); }
.nl-form .field-error { margin: var(--space-2) 0 0 var(--space-4); }
.nl-note { font: 400 12px/18px var(--font-sans); color: var(--ink-muted); margin: var(--space-2) 0 0 var(--space-4); }
.nl-note a { color: var(--ink-muted); }

.nl-success {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-000);
  outline: none;
}
.nl-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); flex: none; }
.nl-success b { display: block; font: 700 16px/22px var(--font-display); color: var(--ink); }
.nl-success span { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }

@media (max-width: 900px) {
  .nl-card { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); gap: var(--space-6); }
  .nl-copy h2 { font-size: 26px; line-height: 32px; }
}
@media (max-width: 480px) {
  .nl-row { flex-direction: column; border-radius: var(--radius-lg); padding: var(--space-2); }
  .nl-row input { height: 44px; }
  .nl-row .btn { width: 100%; border-radius: var(--radius-md); }
  .nl-form .field-error, .nl-note { margin-left: 0; }
}

/* Contact page: model above the contact options, FAQ below the form */
.contact-figure { width: min(280px, 100%); margin: 0 auto var(--space-4); }
.contact-page + .faq { background: var(--surface-000); }
@media (max-width: 900px) {
  /* On small screens the aside sits under the form; keep the model compact. */
  .contact-figure { width: 180px; grid-column: auto; grid-row: auto; margin: 0 auto var(--space-4); }
  .contact-figure .faq-bubble { width: 40px; height: 40px; top: 10%; right: 0; }
  .contact-figure .faq-bubble svg { width: 20px; height: 20px; }
}

/* ===== Contact page: pastel background + frosted-glass cards ===== */
.contact-page { position: relative; overflow: hidden; isolation: isolate; background: #f7f6fb; }
.contact-page > .wrap { position: relative; z-index: 1; }
/* Frosted glass: translucent white, strong backdrop blur, soft white glow */
.contact-page .co-card,
.contact-page .contact-option,
.glass-card {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
          backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow:
    0 10px 40px rgba(74, 59, 99, .10),
    0 0 24px rgba(255, 255, 255, .55),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.contact-page .co-card { border-radius: 24px; }
.contact-page .contact-option { border-radius: 18px; }
.contact-page .contact-option:hover { background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .95); box-shadow: 0 14px 44px rgba(74, 59, 99, .14), 0 0 28px rgba(255, 255, 255, .7), inset 0 1px 0 #fff; }
.contact-page .field input, .contact-page .field textarea { background: rgba(255, 255, 255, .78); border-color: rgba(18, 24, 58, .10); }
.contact-page .field input:focus, .contact-page .field textarea:focus { background: #fff; }
.contact-page .co-icon { background: rgba(232, 235, 247, .85); }
.contact-page .contact-success { background: transparent; }

/* Browsers without backdrop-filter: use a solid, readable card. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-page .co-card, .contact-page .contact-option, .glass-card { background: rgba(255, 255, 255, .92); }
}

/* ===== Reusable glass section: pastel background ===== */
.glass-section { position: relative; overflow: hidden; isolation: isolate; background: #f7f6fb; }
.glass-section > .wrap { position: relative; z-index: 1; }
.glass-card { border-radius: 24px; }

/* Homepage FAQ: accordion in a glass card */
.faq .faq-list.glass-card { border-top: 0; padding: var(--space-2) var(--space-6); }
.faq .faq-list.glass-card .faq-item:last-child { border-bottom: 0; }
.faq .faq-item { border-bottom-color: rgba(18, 24, 58, .08); }

@media (max-width: 900px) {
  .faq .faq-list.glass-card { padding: 0 var(--space-4); }
}

/* ===== Homepage zone: Featured products -> Newsletter, one white background with soft section tints ===== */
.float-zone { position: relative; isolation: isolate; background: #fff; }
.float-zone > section { position: relative; z-index: 1; }

/* Each section keeps its own soft tint. */
.float-zone .featured   { background: rgba(255, 255, 255, .55); }
.float-zone .rooms      { background: rgba(245, 246, 250, .72); padding-top: var(--space-16); }
.float-zone .trust      { background: rgba(232, 235, 247, .6); }
.float-zone .faq        { background: rgba(243, 239, 247, .62); }
.float-zone .newsletter { background: rgba(255, 255, 255, .55); padding-top: var(--space-16); }


/* ===== Phone & tablet hero (≤900px): centered text, video in its own frame below =====
   The video is cropped (object-position tuned to the wardrobe at ~69% across the clip)
   so the whole wardrobe always fits, and its top edge fades into the wall color.
   It never sits behind the text, whatever the screen's shape. */
@media (max-width: 900px) {
  :root { --card-overlap: 28px; }
  .home .hero {
    min-height: 0; flex-direction: column; align-items: stretch;
    background: linear-gradient(180deg, #f1efeb 0%, var(--hero-wall) 100%);
  }
  .hero-bg { position: relative; inset: auto; order: 2; background: transparent; }
  .hero-bg::after { display: none; }
  .home .hero-video {
    position: relative; inset: auto; display: block;
    width: 100%; height: auto; aspect-ratio: 1 / 1.1;
    object-fit: cover; object-position: 89% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
            mask-image: linear-gradient(180deg, transparent 0, #000 14%);
  }
  .home .hero-inner {
    order: 1; text-align: center;
    padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-2);
  }
  .hero-copy { margin: 0 auto; }
  .hero h1 { font-size: clamp(44px, 13vw, 56px); }
  .hero .lead { font-size: 17px; line-height: 26px; margin: var(--space-4) auto 0; max-width: 320px; text-wrap: balance; }
  .hero-actions { justify-content: center; margin-top: var(--space-6); }
  .hero-actions .btn { flex: 0 0 auto; min-width: 200px; }
}
/* Phone (≤600px): the video fills the first screen and the text sits in its exact middle,
   on a soft light veil so it stays readable over the wardrobe. object-position 77% puts the
   wardrobe (~69% across the 16:9 clip) in the middle of a tall phone screen. */
@media (max-width: 600px) {
  .home .hero {
    flex-direction: row; align-items: center; justify-content: center;
    margin-top: 0; /* the header is solid white on phones, so the hero starts below it */
    min-height: calc(100svh - 32px - var(--header-h) - 190px); background: var(--hero-wall); /* leaves the feature bar in view, above the chat button */
  }
  .hero-bg { position: absolute; inset: 0; order: 0; }
  .home .hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
    object-fit: cover; object-position: 77% 50%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-bg::after {
    display: block; content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 95% 42% at 50% 50%, rgba(247, 245, 241, .86) 0%, rgba(247, 245, 241, .62) 55%, rgba(247, 245, 241, 0) 100%);
  }
  .home .hero-inner { order: 0; padding-top: var(--space-4); padding-bottom: calc(var(--card-overlap) + var(--space-4)); }
  /* Header: solid white from the start (no see-through over the hero). */
  .home .site-header, .home .site-header.scrolled {
    background: var(--surface-000); backdrop-filter: none;
    border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(18,24,58,.06);
  }
}

/* ===== Checkout steps (Cart → Checkout → Order complete) ===== */
.checkout-steps { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: var(--space-3); font: 700 14px/20px var(--font-sans); color: var(--ink-muted); }
.checkout-steps li + li::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: var(--line); }
.checkout-steps li.done + li::before, .checkout-steps li.done::before { background: var(--brand); }
.checkout-steps a, .checkout-steps span:not(.step-num) { display: inline-flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; }
.checkout-steps a:hover { color: var(--brand); text-decoration: underline; }
.step-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); font: 700 12px/1 var(--font-sans); background: var(--surface-000); }
.checkout-steps li.current { color: var(--ink); }
.checkout-steps li.current .step-num { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.checkout-steps li.done { color: var(--brand); }
.checkout-steps li.done .step-num { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }

/* ===== Cart page ===== */
.cart-page { padding: var(--space-8) 0 var(--space-16); background: var(--surface-100); }
.cart-page h1 { font: 700 36px/42px var(--font-display); margin: 0 0 var(--space-6); color: var(--ink); }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-8); align-items: start; }
.cart-items { background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-6) var(--space-6); }
.cart-head, .cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 110px 130px 110px 36px; gap: var(--space-4); align-items: center; }
.cart-head { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); font: 700 12px/16px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.cart-head span:first-child { grid-column: 1 / 3; }
.cart-head span:nth-child(4) { text-align: right; }
.cart-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.cart-row { --tint: var(--surface-100); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.cart-row.cw-pistachio { --tint: var(--pistachio-tint); }
.cart-row.cw-taro { --tint: var(--taro-tint); }
.cart-row.cw-cream { --tint: var(--cream-tint); }
.cart-row .thumb { width: 72px; height: 90px; }
.cart-product { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-product .item-name { font-size: 16px; line-height: 22px; }
.cart-price, .cart-line { font: 600 15px/22px var(--font-sans); color: var(--ink); }
.cart-line { text-align: right; font-weight: 700; font-family: var(--font-display); }
.cell-label { display: none; }
.cart-qty .qty { display: inline-flex; }
.cart-remove { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.cart-remove:hover { background: #fdecee; color: var(--accent); }
.cart-items .continue { padding-left: 0; }

.cart-totals { position: sticky; top: 96px; background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.cart-totals h2 { font: 700 20px/26px var(--font-display); margin: 0; color: var(--ink); }
.cart-totals .totals dd.muted { color: var(--ink-muted); font-weight: 400; font-size: 14px; }
.cart-totals .total-note { margin: var(--space-3) 0 var(--space-4); }
.cart-totals .proceed { width: 100%; }

/* Checkout summary header with "Edit cart" */
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.summary-head h2 { margin: 0 !important; }
.edit-cart { font: 700 14px/20px var(--font-sans); color: var(--brand); }

@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-totals { position: static; }
}
@media (max-width: 700px) {
  .cart-page h1 { font-size: 28px; line-height: 34px; }
  .cart-items { padding: 0 var(--space-4) var(--space-4); }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb product remove" "thumb price price" "thumb qty line"; row-gap: var(--space-2); column-gap: var(--space-3); align-items: start; }
  .cart-row .thumb { grid-area: thumb; }
  .cart-product { grid-area: product; }
  .cart-remove { grid-area: remove; justify-self: end; margin-top: -6px; }
  .cart-price { grid-area: price; font-size: 14px; color: var(--ink-muted); }
  .cart-qty { grid-area: qty; }
  .cart-line { grid-area: line; align-self: center; }
  .cart-price .cell-label { display: inline; margin-right: 6px; }
  .checkout-steps { gap: var(--space-2); font-size: 13px; }
  .checkout-steps li { gap: var(--space-2); font-size: 13px; }
  .checkout-steps li + li::before { width: 16px; }
}

/* ===== Login page ===== */
.auth-page { padding: var(--space-6) 0 var(--space-16); min-height: 70vh; }
.auth-card {
  display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  max-width: 980px; margin: var(--space-6) auto 0; padding: 0;
}
.auth-visual {
  position: relative; padding: var(--space-12) var(--space-8) 0; min-height: 560px;
  background: linear-gradient(160deg, rgba(243,239,247,.92), rgba(203,189,216,.55));
  display: flex; flex-direction: column; overflow: hidden;
}
.auth-visual .eyebrow { margin-bottom: var(--space-2); }
.auth-visual h2 { font: 700 34px/40px var(--font-display); margin: 0 0 var(--space-4); color: var(--ink); }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); position: relative; z-index: 1; }
.auth-perks li { display: flex; align-items: center; gap: var(--space-2); font: 600 14px/20px var(--font-sans); color: var(--taro-ink); }
.auth-perks svg { color: var(--brand); flex: none; }
.auth-visual img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 58%; width: auto; mix-blend-mode: multiply; }

.auth-forms { padding: var(--space-8) var(--space-8) var(--space-8); background: rgba(255,255,255,.55); }
.auth-form { display: grid; gap: var(--space-4); }
.auth-page .field input { background: rgba(255,255,255,.85); }
.field-hint { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 36px; border: 0; background: none; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--ink-muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--brand); background: var(--brand-tint); }
.pw-toggle .i-hide, .pw-toggle[aria-pressed="true"] .i-show { display: none; }
.pw-toggle[aria-pressed="true"] .i-hide { display: block; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.auth-row .check { min-height: 0; font-size: 14px; }
.link-btn { border: 0; background: none; padding: 0; font: 700 14px/20px var(--font-sans); color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--brand-strong); }
.auth-submit { width: 100%; margin-top: var(--space-1); }
.auth-switch { margin: 0; text-align: center; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.auth-page .field-error { margin-top: 0; }
.panel-title { font: 700 24px/30px var(--font-display); margin: 0 0 var(--space-2); color: var(--ink); }
.panel-text { font: 400 15px/22px var(--font-sans); color: var(--ink-muted); margin: 0 0 var(--space-6); }
.auth-done { text-align: center; padding: var(--space-8) 0; outline: none; }
.done-actions { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }

@media (max-width: 800px) {
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
  .auth-visual { display: none; }
  .auth-forms { padding: var(--space-6) var(--space-4); }
}

/* ===== My account (WooCommerce-style) ===== */
.account-page { padding: var(--space-6) 0 var(--space-16); background: var(--surface-100); }
.acc-h1 { font: 700 36px/42px var(--font-display); margin: var(--space-4) 0 var(--space-6); color: var(--ink); }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); align-items: start; }

.acc-sidebar { position: sticky; top: 96px; background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.acc-user { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); min-width: 0; }
.acc-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 16px/1 var(--font-display); flex: none; }
.acc-user div { display: flex; flex-direction: column; min-width: 0; }
.acc-user b { font: 700 15px/20px var(--font-display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-user div span { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-nav a, .acc-logout {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; height: 44px; padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-md); background: none; cursor: pointer; text-align: left;
  font: 700 15px/20px var(--font-sans); color: var(--ink); text-decoration: none;
}
.acc-nav a svg, .acc-logout svg { color: var(--ink-muted); flex: none; }
.acc-nav a:hover { background: var(--surface-100); color: var(--brand); }
.acc-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }
.acc-nav a[aria-current="page"] svg { color: var(--brand); }
.acc-logout { color: var(--ink-muted); margin-top: var(--space-2); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.acc-logout:hover { color: var(--accent); background: #fdecee; }
.acc-logout:hover svg { color: var(--accent); }

.acc-content { background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); min-width: 0; }
.acc-title { font: 700 24px/30px var(--font-display); margin: 0 0 var(--space-4); color: var(--ink); display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.acc-hello { font: 400 16px/24px var(--font-sans); margin: 0 0 var(--space-2); color: var(--ink); }
.acc-text { font: 400 15px/24px var(--font-sans); color: var(--ink-muted); margin: 0 0 var(--space-6); }
.acc-text a { color: var(--brand); font-weight: 700; }
.muted { color: var(--ink-muted); font-weight: 400; }

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.acc-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg); background: var(--surface-100); text-decoration: none; color: var(--ink-muted); font: 600 14px/20px var(--font-sans); border: 1px solid transparent; }
.acc-stat:nth-child(1) { background: var(--brand-tint); }
.acc-stat:nth-child(2) { background: var(--taro-tint); }
.acc-stat:nth-child(3) { background: var(--pistachio-tint); }
.acc-stat:hover { border-color: var(--line-strong); }
.acc-stat .n { font: 700 32px/38px var(--font-display); color: var(--ink); }

.acc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.acc-section-head h3 { font: 700 18px/24px var(--font-display); margin: 0; color: var(--ink); }
.acc-section-head a { font: 700 14px/20px var(--font-sans); color: var(--brand); }

.acc-table { width: 100%; border-collapse: collapse; }
.acc-table th { text-align: left; font: 700 12px/16px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); }
.acc-table td { padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); font: 400 15px/22px var(--font-sans); color: var(--ink); vertical-align: middle; }
.acc-table .order-no { font-weight: 700; color: var(--brand); margin-right: var(--space-2); }
.acc-actions { text-align: right; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.status-pill { display: inline-block; font: 700 12px/16px var(--font-sans); padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-100); color: var(--ink-muted); }
.status-pill.s-processing { background: var(--brand-tint); color: var(--brand); }
.status-pill.s-completed, .status-pill.s-delivered { background: #e3f1f6; color: var(--success); }
.status-pill.s-cancelled { background: #fdecee; color: var(--accent); }
.acc-empty { padding: var(--space-8); }
.acc-empty h3 { font: 700 20px/26px var(--font-display); color: var(--ink); margin: 0 0 var(--space-1); }
.acc-empty p { margin: 0 0 var(--space-4); }

.acc-back { display: inline-block; font: 700 14px/20px var(--font-sans); color: var(--brand); text-decoration: none; margin-bottom: var(--space-3); }
.acc-back:hover { text-decoration: underline; }
.acc-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4); }
.acc-card h3 { font: 700 18px/24px var(--font-display); margin: 0 0 var(--space-4); color: var(--ink); }
.acc-card .acc-text { margin: 0; }
.addr-card address { font: 400 15px/24px var(--font-sans); font-style: normal; color: var(--ink); }

.acc-form { display: grid; gap: var(--space-6); }
.acc-fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6) var(--space-6); margin: 0; display: grid; gap: var(--space-4); }
.acc-fieldset legend { font: 700 16px/22px var(--font-display); padding: 0 var(--space-2); color: var(--ink); }
.acc-fieldset .field-hint { margin: 0; }
.acc-form-actions { display: flex; gap: var(--space-3); }
.acc-saved { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #e3f1f6; color: var(--success); font: 700 14px/20px var(--font-sans); }
.acc-content > .acc-saved { margin-top: var(--space-4); }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .account-layout > * { min-width: 0; }
  .acc-sidebar { position: static; padding: var(--space-3); }
  .acc-user { padding-bottom: var(--space-3); }
  /* Menu becomes a horizontal scroll of pills */
  .acc-nav ul { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
  .acc-nav ul::-webkit-scrollbar { display: none; }
  .acc-nav a, .acc-logout { width: auto; white-space: nowrap; height: 40px; border-radius: var(--radius-pill); background: var(--surface-100); }
  .acc-logout { margin-top: 0; border-top: 0; border-radius: var(--radius-pill); }
  .acc-content { padding: var(--space-6) var(--space-4); }
}
@media (max-width: 640px) {
  .acc-h1 { font-size: 28px; line-height: 34px; }
  .acc-stats { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2); }
  .acc-stat { padding: var(--space-3); font-size: 12px; line-height: 16px; }
  .acc-stat .n { font-size: 24px; line-height: 30px; }
  /* Orders table becomes stacked cards */
  .acc-table thead { display: none; }
  .acc-table, .acc-table tbody, .acc-table tr, .acc-table td { display: block; width: 100%; }
  .acc-table tr { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
  .acc-table td { border: 0; padding: var(--space-1) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-3); text-align: right; }
  .acc-table .cell-val { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px var(--space-2); }
  .acc-table .order-no { margin-right: 0; }
  .acc-table td[data-label]::before { content: attr(data-label); font: 700 13px/22px var(--font-sans); color: var(--ink-muted); }
  .acc-table .acc-actions { padding-top: var(--space-2); }
  .acc-table .acc-actions .btn { width: 100%; }
}

/* ===== Warehouse picker (product page): same price everywhere, pick where to buy from ===== */
.wh-pick { margin: var(--space-4) 0 0; padding: 0; border: 0; min-width: 0; }
.wh-pick-label { display: block; margin-bottom: var(--space-2); padding: 0; font: 700 14px/20px var(--font-sans); color: var(--ink); }
.wh-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-2); }
.wh-opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-3) var(--space-3) 40px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface-000); cursor: pointer; transition: border-color .15s, background .15s; }
.wh-opt input { position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.wh-opt:hover { border-color: var(--line-strong); }
.wh-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.wh-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.wh-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.wh-note { font-size: 13px; color: var(--success); }
.wh-opt.is-out { cursor: not-allowed; background: var(--surface-100); }
.wh-opt.is-out .wh-name, .wh-opt.is-out .wh-note { color: var(--ink-muted); }
.wh-select { width: 100%; max-width: 420px; height: 46px; padding: 0 var(--space-3); border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface-000); color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.wh-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Cart line: which warehouse it comes from */
/* Warehouse picker under the product name: stays inside the product column (the select shrinks and
   cuts its text short) instead of spilling over the Price column. */
.cart-wh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); max-width: 100%; min-width: 0; margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.cart-wh > span { flex: none; }
.cart-wh select { flex: 1 1 150px; min-width: 0; max-width: 240px; text-overflow: ellipsis; height: 32px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-000); color: var(--ink); font: 600 13px/1 var(--font-sans); }

/* Product description from the rich text editor */
.pdp-desc > * { margin: 0 0 12px; }
.pdp-desc > :last-child { margin-bottom: 0; }
.pdp-desc h3 { font: 700 20px/28px var(--font-display); color: var(--ink); }
.pdp-desc h4 { font: 700 17px/24px var(--font-display); color: var(--ink); }
.pdp-desc ul, .pdp-desc ol { padding-left: 22px; }
.pdp-desc blockquote { padding-left: 14px; border-left: 3px solid var(--line-strong); }
.pdp-desc a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.pdp-desc hr { border: 0; border-top: 1px solid var(--line); }
.pdp-desc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.pdp-desc th, .pdp-desc td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.pdp-desc th { background: var(--surface-100); color: var(--ink); }

/* ===== Content pages (Privacy Policy, Terms, ...) written in the admin ===== */
.content-page { padding-bottom: var(--space-16); }
.page-article { max-width: 760px; }
.page-article .page-head { margin: var(--space-4) 0 var(--space-8); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.page-article .page-head h1 { margin: 0; font: 700 clamp(30px, 4vw, 42px)/1.15 var(--font-display); color: var(--ink); }
.page-updated { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 14px; }
.page-content { font: 400 17px/28px var(--font-sans); color: var(--ink); }
.page-content > * { margin: 0 0 var(--space-4); }
.page-content > :last-child { margin-bottom: 0; }
.page-content h3 { margin-top: var(--space-8); font: 700 22px/30px var(--font-display); }
.page-content h4 { margin-top: var(--space-6); font: 700 18px/26px var(--font-display); }
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content li + li { margin-top: 6px; }
.page-content blockquote { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--brand); background: var(--surface-100); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.page-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.page-content hr { border: 0; border-top: 1px solid var(--line); }
.page-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.page-content th { background: var(--surface-100); }
.page-draft-note { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #fff4e0; color: var(--warning); font-weight: 700; font-size: 14px; }

/* Dealer prices (signed-in dealers see their level's price) */
.dealer-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--brand-tint, #e8ebf7); color: var(--brand); font: 700 11px/16px var(--font-sans); letter-spacing: .02em; vertical-align: middle; }
.dealer-retail { display: block; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }

/* ===== Product page: variation picker ===== */
.pdp-variations { display: grid; gap: var(--space-4); margin-top: var(--space-2); }
.pdp-variations .pdp-option { margin-top: 0; }
.var-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.var-choice {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface-000); color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.var-choice:hover { border-color: var(--brand); color: var(--brand); }
.var-choice[aria-pressed="true"] { border: 2px solid var(--brand); padding: 0 calc(var(--space-4) - 1px); background: var(--brand-tint, #e8ebf7); color: var(--brand); }
.var-choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Sold out: struck through. Not made with the other choices: faded (picking it switches them). */
.var-choice.is-out { color: var(--ink-muted); text-decoration: line-through; }
.var-choice.is-none { color: var(--line-strong); border-style: dashed; }
/* Color swatches: round, the selected one ringed */
.var-color .var-choice { width: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.var-color .var-choice[aria-pressed="true"] { padding: 0; background: var(--surface-000); box-shadow: 0 0 0 2px var(--surface-000) inset; }
.var-swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.var-color .var-choice.is-out::after, .var-color .var-choice.is-none::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--ink-muted); transform: rotate(-45deg); }
.var-color .var-choice.is-none .var-swatch { opacity: .45; }
/* Image swatches */
.var-image .var-choice { padding: 4px var(--space-3) 4px 4px; }
.var-image .var-choice img { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; }
.var-select { height: 44px; min-width: 220px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-000); font: 600 14px/20px var(--font-sans); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .var-choice { transition: none; } }

/* Disabled buttons (e.g. "Out of stock") must not look clickable */
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-100); border-color: var(--line); color: var(--ink-muted); cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: var(--surface-100); color: var(--ink-muted); }

/* Staff previewing a draft product on the store */
.draft-banner { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 1px dashed var(--warning, #9a6200); border-radius: var(--radius-md); background: var(--tint-warn, #fff4e0); color: var(--ink); font: 400 14px/20px var(--font-sans); }
.pdp-nophoto { display: grid; place-items: center; min-height: 360px; color: var(--ink-muted); font: 600 15px/20px var(--font-sans); }

/* ===== Dealer invite wizard (agreement → delivery address → password) ===== */
.invite-page .wrap { max-width: 760px; }
.wizard { padding: var(--space-8); border-radius: 20px; }
.wizard-head .panel-title { margin-top: var(--space-1); }
.wizard-steps { display: flex; gap: var(--space-2); margin: var(--space-6) 0 0; padding: 0; list-style: none; counter-reset: none; }
.wizard-steps li { flex: 1; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-100); color: var(--ink-muted); font: 600 14px/20px var(--font-sans); }
.wizard-steps .ws-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-000); border: 1px solid var(--line-strong); font-weight: 700; flex: none; }
.wizard-steps li.is-current { background: var(--brand-tint, #e8ebf7); color: var(--brand); }
.wizard-steps li.is-current .ws-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.wizard-steps li.is-done { color: var(--ink); }
.wizard-steps li.is-done .ws-n { background: var(--success, #1d7a46); border-color: var(--success, #1d7a46); color: #fff; font-size: 0; }
.wizard-steps li.is-done .ws-n::after { content: "✓"; font-size: 14px; }
.wizard:not(.is-stepped) .wizard-steps { display: none; } /* without JavaScript the steps are one long form */
.wizard-form { margin-top: var(--space-6); }
.wizard-step { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.wizard:not(.is-stepped) .wizard-step + .wizard-step { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.wizard:not(.is-stepped) .wizard-nav { display: none; }
.wizard-step h2 { margin: 0; font: 700 22px/28px var(--font-display); color: var(--ink); }
.wizard-step h2:focus { outline: none; }
.agreement-box { max-height: 300px; overflow-y: auto; padding: var(--space-4) var(--space-5, 20px); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-000); font: 400 15px/24px var(--font-sans); color: var(--ink); }
.agreement-box h3 { margin: var(--space-4) 0 var(--space-1); font: 700 15px/22px var(--font-sans); }
.agreement-box p { margin: 0 0 var(--space-2); }
.agreement-box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.agree-check { align-items: flex-start; }
.agree-check input { margin-top: 2px; }
.wizard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.wizard-grid .field.wide { grid-column: 1 / -1; }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.wizard-nav .btn { min-width: 160px; }
.pw-meter { height: 6px; margin-top: var(--space-2); border-radius: 999px; background: var(--surface-100); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .2s, background .2s; }
.pw-meter span[data-level="fair"] { background: var(--warning, #c98a00); }
.pw-meter span[data-level="strong"] { background: var(--success, #1d7a46); }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; font: 400 13px/20px var(--font-sans); color: var(--ink-muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 18px; }
.pw-rules li.ok { color: var(--success, #1d7a46); }
.pw-rules li.ok::before { content: "✓"; font-weight: 700; }
@media (max-width: 640px) {
  .wizard { padding: var(--space-5, 20px) var(--space-4); }
  .wizard-steps li span:not(.ws-n) { display: none; }
  .wizard-steps li { justify-content: center; }
  .wizard-grid, .pw-rules { grid-template-columns: 1fr; }
  .wizard-nav .btn { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .pw-meter span { transition: none; } }
/* Wizard fixes: the "I agree" box is a normal checkbox (not a text field), and done steps show ✓ inside the circle */
.wizard .agree-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 0; font: 600 15px/22px var(--font-sans); }
.wizard .agree-check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; flex: none; border-radius: 4px; accent-color: var(--brand); }
.wizard-steps li.is-done .ws-n { position: relative; font-size: 14px; color: transparent; }
.wizard-steps li.is-done .ws-n::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; }

/* ===== Messenger chat bubble (Admin > System > Messenger chat) ===== */
.msgr-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.msgr-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 20% 110%, #ffc300 0%, #ff4f8b 35%, #a334fa 65%, #0695ff 100%);
  box-shadow: 0 6px 20px rgba(18, 24, 58, .28); transition: transform .15s ease-out, box-shadow .15s; }
.msgr-label { padding: 8px 14px; border-radius: 999px; background: var(--surface-000); color: var(--ink); font: 700 14px/20px var(--font-sans); box-shadow: 0 4px 16px rgba(18, 24, 58, .16); white-space: nowrap; }
.msgr-bubble:hover .msgr-icon, .msgr-bubble:focus-visible .msgr-icon { transform: scale(1.06); box-shadow: 0 8px 26px rgba(18, 24, 58, .34); }
.msgr-bubble:focus-visible { outline: none; }
.msgr-bubble:focus-visible .msgr-icon { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 700px) { .msgr-bubble { right: 14px; bottom: 14px; } .msgr-label { display: none; } .msgr-icon { width: 52px; height: 52px; } }
/* Out of the way while a panel is open */
body.no-scroll .msgr-bubble { display: none; }
@media (prefers-reduced-motion: reduce) { .msgr-icon { transition: none; } }
@media print { .msgr-bubble { display: none; } }
/* The label shows on the first page of a visit (is-intro), then only on hover/focus */
.msgr-label { opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.msgr-bubble.is-intro .msgr-label, .msgr-bubble:hover .msgr-label, .msgr-bubble:focus-visible .msgr-label { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .msgr-label { transition: none; } }

/* Create an account: hidden bot trap; agree box like the dealer wizard */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#registerForm .agree-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 0; font: 600 14px/21px var(--font-sans); }
#registerForm .agree-check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--brand); }

/* Newsletter unsubscribe page: one column */
.auth-card.unsub-card { grid-template-columns: 1fr; max-width: 520px; }

/* ===== Dealer welcome (after the invite wizard) ===== */
.auth-card.welcome-card { grid-template-columns: 1fr; max-width: 560px; text-align: center; }
.welcome-card .auth-forms { padding: var(--space-8) var(--space-8); }
.welcome-burst { position: relative; width: 88px; height: 88px; margin: 0 auto var(--space-4); }
.welcome-badge { position: absolute; inset: 8px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 10px 28px rgba(23, 42, 137, .35); animation: welcome-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.welcome-confetti { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: 0; animation: welcome-fly 1.1s ease-out .15s both; }
.welcome-confetti:nth-child(3n) { background: var(--brand); }
.welcome-confetti:nth-child(3n+1) { background: #f6b93b; border-radius: 50%; }
.welcome-confetti.c1 { --x: -70px; --y: -40px; } .welcome-confetti.c2 { --x: 70px; --y: -36px; } .welcome-confetti.c3 { --x: -54px; --y: 44px; }
.welcome-confetti.c4 { --x: 58px; --y: 48px; } .welcome-confetti.c5 { --x: 0; --y: -68px; } .welcome-confetti.c6 { --x: -84px; --y: 4px; }
.welcome-confetti.c7 { --x: 86px; --y: 6px; } .welcome-confetti.c8 { --x: -28px; --y: -62px; } .welcome-confetti.c9 { --x: 30px; --y: 64px; }
.welcome-confetti.c10 { --x: 34px; --y: -64px; } .welcome-confetti.c11 { --x: -36px; --y: 62px; } .welcome-confetti.c12 { --x: 0; --y: 72px; }
@keyframes welcome-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes welcome-fly { 0% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(200deg); } }
.welcome-title { font-size: 28px; line-height: 34px; }
.welcome-level { display: inline-block; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.welcome-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); text-align: left; }
.welcome-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .7); }
.welcome-list b { display: block; color: var(--ink); font-size: 15px; }
.welcome-list span:not(.welcome-tick) { display: block; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.welcome-tick { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5f4ec; color: #1d7a46; }
@media (max-width: 560px) { .welcome-card .auth-forms { padding: var(--space-6) var(--space-4); } .welcome-title { font-size: 24px; line-height: 30px; } }
@media (prefers-reduced-motion: reduce) { .welcome-badge, .welcome-confetti { animation: none; } .welcome-confetti { display: none; } }

/* ===== My account walkthrough (js/account-tour.js) ===== */
.tour { position: fixed; inset: 0; z-index: 3000; }
.tour-spot { position: fixed; border-radius: var(--radius-md); box-shadow: 0 0 0 9999px rgba(18, 24, 58, .62); outline: 3px solid #fff; outline-offset: 0; transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.tour.is-centered .tour-spot { top: 50%; left: 50%; width: 0; height: 0; outline: 0; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 32px)); padding: var(--space-4) var(--space-4) var(--space-3); border-radius: var(--radius-lg); background: var(--surface-000); color: var(--ink); box-shadow: var(--shadow-pop, 0 24px 64px rgba(18, 24, 58, .3)); outline: none; }
.tour.is-centered .tour-card { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); text-align: center; padding: var(--space-6) var(--space-6) var(--space-4); }
.tour-count { margin: 0 0 var(--space-1); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.tour-title { margin: 0 0 var(--space-2); font: 700 19px/25px var(--font-display); color: var(--ink); }
.tour-text { margin: 0 0 var(--space-3); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.tour-dots { display: flex; gap: 6px; margin-bottom: var(--space-3); }
.tour.is-centered .tour-dots { justify-content: center; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong, #c9cde0); }
.tour-dots i.on { width: 20px; border-radius: 4px; background: var(--brand); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tour-nav { display: flex; gap: var(--space-2); margin-left: auto; }
.tour-skip { color: var(--ink-muted); font-size: 14px; }
body.tour-open .msgr-label { display: none; }
@media (max-width: 719px) {
  .tour:not(.is-centered) .tour-card { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* My account > Addresses (several, saved on the server) */
.acc-title-row { align-items: center; margin-bottom: var(--space-2); }
.acc-title-row .acc-title { margin: 0; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.addr-grid .addr-card { margin: 0; display: flex; flex-direction: column; }
.addr-card.is-default { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.addr-card address { font-style: normal; color: var(--ink-muted); line-height: 22px; flex: 1; }
.addr-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.link-btn.danger { color: var(--accent); }
.check-row { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-4); font-size: 15px; color: var(--ink); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ===== Staff sign-in ===== */
body.staff-auth-body { background: linear-gradient(160deg, #192989 0%, #22349c 55%, #2b3fae 100%); min-height: 100vh; }
.staff-auth { min-height: 100vh; display: grid; place-items: center; padding: var(--space-8) 16px; }
.staff-card { width: min(440px, 100%); padding: var(--space-8); border-radius: var(--radius-lg); background: var(--surface-000); box-shadow: 0 24px 64px rgba(10, 16, 60, .35); }
.staff-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.staff-brand img { display: block; border-radius: 8px; }
.staff-brand span { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.staff-title { margin: 0 0 var(--space-2); font: 700 24px/30px var(--font-display); color: var(--ink); }
.staff-text { margin: 0 0 var(--space-6); color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.staff-form { display: grid; gap: var(--space-4); }
.staff-form .field input { width: 100%; }
.staff-submit { width: 100%; justify-content: center; margin-top: var(--space-2); }
.staff-steps { margin: 0 0 var(--space-3); padding-left: 20px; color: var(--ink); font-size: 15px; line-height: 22px; }
.staff-steps li + li { margin-top: var(--space-2); }
.staff-qr { display: grid; place-items: center; margin: 0 auto var(--space-3); width: 216px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.staff-qr svg { display: block; width: 200px; height: 200px; }
.staff-key { margin: 0 0 var(--space-4); font-size: 14px; color: var(--ink-muted); }
.staff-key summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.staff-key code, .staff-codes code { font: 700 15px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); letter-spacing: .06em; }
.staff-key code { display: block; margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface-100); font-size: 14px; letter-spacing: .02em; word-spacing: .1em; }
.staff-code { text-align: center; font: 700 28px/36px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .3em; }
.staff-codes { list-style: none; margin: 0 0 var(--space-4); padding: var(--space-3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--surface-100); }
.staff-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.staff-foot { margin: var(--space-4) 0 0; text-align: center; font-size: 14px; }
@media (max-width: 480px) { .staff-card { padding: var(--space-6) var(--space-4); } }
@media print { body.staff-auth-body { background: #fff; } .staff-card { box-shadow: none; } .staff-row, .staff-submit { display: none; } }

/* ===== Staff bar on store pages (signed-in staff only, like the WordPress admin bar) ===== */
.staff-bar { background: #12183a; color: #e8ebf7; font: 600 13px/20px var(--font-sans); position: relative; z-index: 60; }
.staff-bar-in { display: flex; align-items: center; gap: 2px; max-width: 100%; padding: 0 12px; min-height: 36px; overflow-x: auto; scrollbar-width: none; }
.staff-bar-in::-webkit-scrollbar { display: none; }
.staff-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: inherit; text-decoration: none; white-space: nowrap; border-radius: 6px; }
.staff-bar a:hover, .staff-bar a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.staff-bar a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.staff-bar .sb-home { font-weight: 800; color: #fff; }
.sb-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.sb-spacer { flex: 1; }
.sb-user { padding: 0 6px; color: #aeb5d6; white-space: nowrap; }
@media (max-width: 640px) {
  /* icons only on phones; the labels stay for screen readers */
  .staff-bar a:not(.sb-home) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sb-user { display: none; }
  .staff-bar a { padding: 9px 10px; }
}
@media print { .staff-bar { display: none; } }

/* ===== 404 page (resources/views/errors/404.blade.php) ===== */
.nf-page { position: relative; overflow: hidden; padding: var(--space-12) 0 var(--space-16); background: linear-gradient(180deg, var(--surface-100) 0%, #fff 100%); }
.nf-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-8); align-items: center; }
.nf-code { margin: 0; font: 700 clamp(88px, 14vw, 168px)/1 var(--font-display); color: var(--brand); letter-spacing: -.02em; }
.nf-code span { display: inline-block; color: #b9a3d8; transform-origin: 50% 60%; animation: nf-wobble 3.2s ease-in-out infinite; }
.nf-title { margin: var(--space-2) 0 var(--space-3); font: 700 clamp(28px, 3.4vw, 40px)/1.2 var(--font-display); color: var(--ink); }
.nf-text { margin: 0 0 var(--space-6); max-width: 30em; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.nf-search { display: flex; align-items: center; gap: var(--space-2); max-width: 520px; margin-bottom: var(--space-4); padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; box-shadow: 0 6px 20px rgba(23, 42, 137, .08); }
.nf-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.nf-search svg { flex: none; color: var(--ink-muted); }
.nf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 16px/24px var(--font-sans); color: var(--ink); }
.nf-search .btn { border-radius: var(--radius-pill); }
.nf-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.nf-links-label { font-weight: 700; color: var(--ink); margin-right: var(--space-1); }
.nf-links a { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.nf-links a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.nf-visual { position: relative; display: grid; place-items: end center; min-height: 460px; }
.nf-blob { position: absolute; inset: 12% 6% 0; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: radial-gradient(circle at 30% 30%, #efe6fb 0%, #dccbf2 55%, #cdb8ec 100%); animation: nf-blob 9s ease-in-out infinite; }
.nf-visual picture, .nf-visual img { position: relative; display: block; width: min(100%, 420px); height: auto; }
.nf-bubble { position: absolute; top: 14%; left: 2%; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 10px 30px rgba(23, 42, 137, .15); animation: nf-float 4s ease-in-out infinite; }
.nf-shapes svg { position: absolute; fill: none; stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.nf-s1 { width: 90px; top: 8%; left: 3%; stroke: #b9a3d8; }
.nf-s2 { width: 70px; bottom: 6%; left: 44%; stroke: #a8d5b5; }
.nf-s3 { width: 64px; top: 12%; right: 4%; stroke: #f2c4a0; }
@keyframes nf-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes nf-blob { 0%, 100% { border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; } 50% { border-radius: 56% 44% 52% 48% / 45% 55% 45% 55%; } }
@keyframes nf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 860px) {
  .nf-page { padding-top: var(--space-6); }
  .nf-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .nf-visual { order: -1; min-height: 0; height: 280px; overflow: hidden; }
  .nf-visual picture, .nf-visual img { width: 230px; }
  .nf-blob { inset: 18% 18% -10%; }
  .nf-bubble { top: 10%; left: 4%; font-size: 14px; }
  .nf-copy { text-align: center; }
  .nf-text { margin-left: auto; margin-right: auto; }
  .nf-search, .nf-actions, .nf-links { margin-left: auto; margin-right: auto; justify-content: center; }
  .nf-actions .btn { flex: 1 1 200px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nf-code span, .nf-blob, .nf-bubble { animation: none; } }

/* Product photos sit on plain white everywhere on the store (cards, product page, cart, checkout),
   not on the colorway tint. A thin border keeps each white frame visible. */
.product-card, .product-card[class*="cw-"], .pdp-gallery, .pdp-gallery[class*="cw-"],
.summary-item, .summary-item[class*="cw-"], .cart-row, .cart-row[class*="cw-"] { --tint: #fff; }
.product-photo, .pdp-photo, .pdp-thumbs button:not([aria-pressed="true"]), .summary-item .thumb, .cart-row .thumb { border: 1px solid var(--line); }

/* Reviews: only customers who received the product can review (product.js + ReviewController). */
.verified-tag { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/16px var(--font-sans); color: var(--success); }
.verified-tag::before { content: "✓"; }
.review-note { margin: 0; font-size: 14px; color: var(--ink-muted); max-width: 320px; text-align: right; }
@media (max-width: 700px) { .review-note { text-align: left; } }

/* Messenger bubble help panel (partials/messenger-bubble): FAQ first, then "Message us on Messenger" */
button.msgr-bubble { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.msgr-bubble.is-open .msgr-label { opacity: 0; }
.msgr-panel { position: fixed; right: 20px; bottom: 92px; z-index: 26; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--surface-000); box-shadow: 0 18px 50px rgba(18, 24, 58, .24); border: 1px solid var(--line);
  animation: msgrin .18s ease-out; }
.msgr-panel[hidden] { display: none; }
@keyframes msgrin { from { transform: translateY(10px); opacity: 0; } }
.msgr-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: linear-gradient(135deg, #0a7cff, #a033ff 60%, #ff5c87); color: #fff; }
.msgr-head h2 { margin: 0; font: 700 16px/22px var(--font-display); color: #fff; }
.msgr-head p { margin: 0; font-size: 13px; line-height: 18px; opacity: .9; }
.msgr-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.msgr-avatar svg { width: 22px; height: 22px; }
.msgr-close { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.msgr-close:hover { background: rgba(255, 255, 255, .3); }
.msgr-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.msgr-body { flex: 1; overflow-y: auto; padding: var(--space-4); background: var(--surface-100); display: grid; gap: var(--space-3); align-content: start; }
.msgr-say { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-000); color: var(--ink); font-size: 14px; line-height: 20px; box-shadow: 0 1px 2px rgba(18, 24, 58, .08); }
.msgr-faqs { display: grid; gap: var(--space-2); }
.msgr-faq { border-radius: 14px; background: var(--surface-000); border: 1px solid var(--line); }
.msgr-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 10px 14px; cursor: pointer; font: 700 14px/20px var(--font-sans); color: var(--brand); }
.msgr-faq summary::-webkit-details-marker { display: none; }
.msgr-faq summary::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.msgr-faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.msgr-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 14px; }
.msgr-answer { padding: 0 14px 12px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.msgr-answer > * { margin: 0 0 8px; }
.msgr-answer > :last-child { margin-bottom: 0; }
.msgr-answer a { color: var(--brand); }
.msgr-foot { padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--line); background: var(--surface-000); text-align: center; }
.msgr-foot p { margin: 0 0 var(--space-2); font-size: 13px; color: var(--ink-muted); }
.msgr-cta { width: 100%; justify-content: center; gap: var(--space-2); background: #0a7cff; border-color: #0a7cff; }
.msgr-cta:hover { background: #0866d6; border-color: #0866d6; }
.msgr-cta svg { width: 20px; height: 20px; }
@media (max-width: 700px) {
  .msgr-panel { right: 8px; left: 8px; bottom: 76px; width: auto; max-height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) { .msgr-panel { animation: none; } .msgr-faq summary::after { transition: none; } }
@media print { .msgr-panel { display: none; } }

/* Header account: "Sign in" button when signed out, initials circle when signed in (partials/header + js/auth.js) */
.btn-signin { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand); background: transparent; font: 700 14px/1 var(--font-sans); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.btn-signin:hover { background: var(--brand); color: var(--on-brand); }
.btn-signin:focus-visible, .header-account.is-user:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.header-account.is-user { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.avatar-initials { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 14px/1 var(--font-display); letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 3.5px var(--brand-tint); transition: box-shadow .15s; }
.header-account.is-user:hover .avatar-initials { box-shadow: 0 0 0 2px var(--surface-000), 0 0 0 3.5px var(--brand); }
@media (max-width: 700px) { .btn-signin { height: 34px; padding: 0 12px; font-size: 13px; } }

/* Signed-in profile menu (partials/header): opens on hover or keyboard focus. */
.account-menu { position: relative; }
.account-drop { position: absolute; right: 0; top: 100%; z-index: 40; min-width: 220px; padding: 8px; margin-top: 6px;
  background: var(--surface-000); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(18, 24, 58, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; }
.account-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge from the circle */
.account-menu:hover .account-drop, .account-menu:focus-within .account-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.account-who { margin: 0 0 6px; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); }
.account-who b { display: block; font: 700 14px/20px var(--font-sans); color: var(--ink); }
.account-who span { display: block; font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.account-drop a, .account-drop button { display: flex; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 14px/20px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.account-drop a:hover, .account-drop button:hover, .account-drop a:focus-visible, .account-drop button:focus-visible { background: var(--surface-100); color: var(--brand); outline: none; }
.account-drop button { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .account-drop { transition: none; } }

/* Shop: "Showing 12 of 48 products" + Show more (more also load on their own when scrolling) */
.shop-more { display: grid; justify-items: center; gap: var(--space-3); margin-top: var(--space-8); text-align: center; }
.shop-shown { margin: 0; font-size: 14px; color: var(--ink-muted); }
#moreSentinel { height: 1px; }

/* ===== Scroll animations (home, shop, product page) =====
   Blocks marked .reveal animate in the first time they scroll into view (main.js adds .is-in and
   --d, the stagger). data-reveal picks the direction. Only opacity / translate / scale are animated,
   so it stays on the GPU, and the individual properties don't clash with the cards' hover transform. */
.js-reveal .reveal:not(.is-in) { opacity: 0; }
.js-reveal .reveal.is-in { animation: reveal-up .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards; }
.js-reveal .reveal.is-in[data-reveal="left"]  { animation-name: reveal-left; }
.js-reveal .reveal.is-in[data-reveal="right"] { animation-name: reveal-right; }
.js-reveal .reveal.is-in[data-reveal="zoom"]  { animation-name: reveal-zoom; }
@keyframes reveal-up    { from { opacity: 0; translate: 0 56px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes reveal-left  { from { opacity: 0; translate: -72px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-right { from { opacity: 0; translate: 72px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-zoom  { from { opacity: 0; scale: .88; translate: 0 32px; } to { opacity: 1; scale: 1; translate: 0 0; } }

/* Inner details follow their card: product photos settle in, icons and the FAQ bubble pop. */
.js-reveal .product-card:not(.is-in) .product-photo img,
.js-reveal .trust-item:not(.is-in) .trust-icon,
.js-reveal .room-tile:not(.is-in) .room-icon,
.js-reveal .faq-intro:not(.is-in) .faq-bubble { opacity: 0; }
.js-reveal .product-card.is-in .product-photo img { animation: reveal-photo 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + 150ms) backwards; }
.js-reveal .room-tile.is-in .room-icon,
.js-reveal .trust-item.is-in .trust-icon { animation: reveal-pop .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + 250ms) backwards; }
.js-reveal .faq-intro.is-in .faq-bubble { animation: reveal-pop .7s cubic-bezier(.34, 1.56, .64, 1) 600ms backwards; }
@keyframes reveal-photo { from { opacity: 0; scale: 1.18; translate: 0 16px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes reveal-pop   { from { opacity: 0; scale: .3; rotate: -20deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* Home feature cards overlap the hero, so they're on screen from the start: they rise in right
   after the page loads (one after another) instead of waiting for a scroll. */
/* They fade in together with the hero heading, description and button. */
.js-reveal .home .feature-card { animation: hero-fade-in .9s ease-out .1s backwards; }

/* Hero parallax tied to the scroll position (CSS scroll-driven animation, no JS; browsers
   without support just keep a still hero). The copy drifts up and fades, the video eases in. */
@supports (animation-timeline: scroll()) {
  .js-reveal .home .hero-copy,
  .js-reveal .home .hero-video { animation-timeline: scroll(root); animation-range: 0 80vh; animation-fill-mode: both; animation-timing-function: linear; }
  .js-reveal .home .hero-copy  { animation-name: hero-copy-out; }
  .js-reveal .home .hero-video { animation-name: hero-video-zoom; }
  @keyframes hero-copy-out   { to { opacity: 0; translate: 0 -120px; } }
  @keyframes hero-video-zoom { to { scale: 1.12; translate: 0 60px; } }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal:not(.is-in), .js-reveal .product-card:not(.is-in) .product-photo img, .js-reveal .trust-item:not(.is-in) .trust-icon,
  .js-reveal .room-tile:not(.is-in) .room-icon, .js-reveal .faq-intro:not(.is-in) .faq-bubble { opacity: 1; }
  .js-reveal .reveal.is-in, .js-reveal .reveal.is-in *, .js-reveal .home .feature-card, .js-reveal .home .hero-copy, .js-reveal .home .hero-video { animation: none; }
}

/* My account: dealer note on the dashboard */
.acc-dealer-note { display: block; margin: 0 0 var(--space-6); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--ink); font: 400 15px/22px var(--font-sans); text-decoration: none; }
.acc-dealer-note span { color: var(--brand); font-weight: 700; white-space: nowrap; }

/* Checkout > Delivery address: saved addresses to pick from (signed in) */
.choice-group.saved-addresses { margin: 0 0 var(--space-6); }
.saved-addresses .choice-body > span + span { margin-top: 2px; }
.addr-default { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font: 700 11px/16px var(--font-sans); vertical-align: middle; }

/* Product page: "Added to your cart" dialog */
.cart-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-000); color: var(--ink); box-shadow: 0 24px 64px rgba(18, 24, 58, .25); }
.cart-dialog::backdrop { background: rgba(18, 24, 58, .45); }
.cart-dialog[open] { animation: cd-in .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes cd-in { from { opacity: 0; translate: 0 16px; scale: .97; } }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.cd-head h2 { display: flex; align-items: center; gap: var(--space-2); margin: 0; font: 700 18px/24px var(--font-display); }
.cd-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; flex: none; }
.cd-item { --tint: var(--surface-100); display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6); }
.cd-item.cw-pistachio { --tint: var(--pistachio-tint); }
.cd-item.cw-taro { --tint: var(--taro-tint); }
.cd-item.cw-cream { --tint: var(--cream-tint); }
.cd-thumb { display: grid; place-items: center; width: 64px; height: 80px; border-radius: var(--radius-sm); background: var(--tint); overflow: hidden; }
.cd-thumb img { height: 88%; width: auto; mix-blend-mode: multiply; }
.cd-info { display: grid; gap: 2px; min-width: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.cd-info b { font: 700 16px/22px var(--font-sans); color: var(--ink); }
.cd-line { font: 700 16px/22px var(--font-sans); font-variant-numeric: tabular-nums; }
.cd-cart { margin: 0; padding: var(--space-3) var(--space-6); background: var(--surface-100); font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.cd-cart b { color: var(--ink); }
.cd-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-4) var(--space-6) var(--space-6); }
.cd-actions .btn { flex: 1 1 auto; justify-content: center; }
.cd-actions .btn.primary { flex-basis: 100%; order: -1; }
@media (prefers-reduced-motion: reduce) { .cart-dialog[open] { animation: none; } }

/* Add to cart feedback (product.js flyToCart): the flying photo, the cart bounce, the "Added" button */
.fly-to-cart { position: fixed; z-index: 1000; object-fit: contain; pointer-events: none; border-radius: var(--radius-md); background: var(--surface-000); box-shadow: 0 12px 32px rgba(18, 24, 58, .25); mix-blend-mode: normal; }
.cart-link.bump { animation: cart-bump .55s cubic-bezier(.34, 1.56, .64, 1); }
.cart-link.bump .count { animation: count-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-bump { 0% { scale: 1; } 30% { scale: 1.3; rotate: -8deg; } 60% { scale: .92; rotate: 6deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes count-pop { 0% { scale: 1; } 40% { scale: 1.6; } 100% { scale: 1; } }
.add-cart.is-added { background: var(--success); border-color: var(--success); }
@media (prefers-reduced-motion: reduce) { .cart-link.bump, .cart-link.bump .count { animation: none; } }
.cd-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; animation: count-pop .55s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
@media (prefers-reduced-motion: reduce) { .cd-badge { animation: none; } }
.item-sku b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Contact form spam check: a short answer box */
.captcha-field input { max-width: 200px; }

/* ===== Login: form first (left), "why sign in" with the model on the right ===== */
.auth-card.is-login { grid-template-columns: 1.1fr 1fr; }
.login-visual { background: linear-gradient(165deg, var(--brand-tint) 0%, #dde3f6 100%); min-height: 620px; padding: var(--space-12) var(--space-8) 0; }
.login-visual .auth-perks li { color: var(--ink); }
.login-figure { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(72%, 330px); margin: 0; }
.login-figure::before { content: ""; position: absolute; left: -6%; right: -6%; bottom: 4%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.login-figure img { position: relative; display: block; width: 100%; height: auto; }
/* The "safe" badge beside her: a shield with a check, in brand blue */
.login-shield { position: absolute; top: 14%; right: -4%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50% 50% 50% 10px; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-card), 0 8px 20px rgba(23, 42, 137, .25); }
.auth-secure { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-3); border-radius: var(--radius-md); background: var(--brand-tint); font: 400 13px/19px var(--font-sans); color: var(--ink-muted); }
.auth-secure svg { flex: none; margin-top: 1px; color: var(--brand); }
.auth-secure b { color: var(--ink); font-weight: 700; }
@media (max-width: 800px) { .auth-card.is-login { grid-template-columns: 1fr; } }

/* Home hero: heading, description and button softly fade in together when the page loads (with the
   cards). A pure fade, no movement: the page just settles in. */
.home .hero-copy h1, .home .hero-copy .lead, .home .hero-copy .hero-actions { animation: hero-fade-in .9s ease-out .1s backwards; }
@keyframes hero-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .home .hero-copy h1, .home .hero-copy .lead, .home .hero-copy .hero-actions { animation: none; } }

/* Cart badge reminder (cart.js): a small hop when the cart has items */
.icon-btn .count.nudge { animation: badge-hop .7s cubic-bezier(.28, .84, .42, 1); }
@keyframes badge-hop { 0%, 100% { translate: 0 0; } 30% { translate: 0 -7px; } 50% { translate: 0 0; } 65% { translate: 0 -3px; } 80% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .icon-btn .count.nudge { animation: none; } }

/* ===== Add-on services on the product page (assembly, haul-away, ...) ===== */
.pdp-services { margin: var(--space-4) 0 0; padding: 0; border: 0; min-width: 0; }
.pdp-services > legend { padding: 0; }
.svc-group { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.pdp-services > .svc-opt { margin-bottom: var(--space-2); }
.svc-title { margin: 0; font: 600 14px/20px var(--font-sans); color: var(--ink); display: grid; }
.svc-opt { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) 42px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface-000); cursor: pointer; transition: border-color .15s, background .15s; }
.svc-opt input { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin: -8px 0 0; accent-color: var(--brand); }
.svc-opt:hover { border-color: var(--line-strong); }
.svc-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.svc-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.svc-opt.is-required { cursor: default; }
.svc-main { display: grid; gap: 2px; flex: 1; min-width: 0; font: 400 14px/20px var(--font-sans); color: var(--ink); }
.svc-main b { font-weight: 600; }
.svc-desc { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.svc-price { flex: none; font: 600 14px/20px var(--font-sans); color: var(--ink); white-space: nowrap; }
.svc-price small { font-weight: 400; color: var(--ink-muted); }
.svc-req { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-100); font: 600 11px/18px var(--font-sans); color: var(--ink-muted); vertical-align: 1px; }
.svc-total { margin: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.svc-total b { color: var(--ink); }
.svc-need { margin: 0; font: 600 13px/18px var(--font-sans); color: var(--accent); }
/* Services the product always comes with (a required checkbox): a perk line near the price, not a choice. */
.pdp-included { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.pdp-included li { display: flex; align-items: flex-start; gap: var(--space-2); font: 400 15px/22px var(--font-sans); color: var(--ink); }
.pdp-included svg { flex: none; margin-top: 3px; padding: 2px; box-sizing: content-box; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.pdp-included b { font-weight: 600; }
.pdp-included small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pdp-included .inc-price { color: var(--ink-muted); }

/* ===== Product page: Video tutorials (cards; each plays in a pop-up) ===== */
.pdp-tabs { overflow-x: auto; scrollbar-width: none; }
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tabs a { white-space: nowrap; flex: none; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.video-card { display: grid; gap: var(--space-2); align-content: start; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-100); cursor: pointer; }
.video-thumb img, .video-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.video-thumb:hover img, .video-thumb:hover video { transform: scale(1.04); }
.video-thumb:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.video-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(18, 24, 58, .72); color: #fff; padding-left: 3px; transition: background .2s, scale .2s; }
.video-thumb:hover .video-play { background: var(--brand); scale: 1.08; }
.video-title { margin: var(--space-1) 0 0; font: 700 16px/22px var(--font-sans); }
.video-title button { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.video-title button:hover { color: var(--brand); }
.video-desc { margin: 0; font: 400 14px/21px var(--font-sans); color: var(--ink-muted); }
.video-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-000); color: var(--ink); box-shadow: 0 24px 64px rgba(18, 24, 58, .35); overflow: auto; }
.video-dialog::backdrop { background: rgba(10, 14, 36, .72); }
.vd-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6); }
.vd-head h2 { margin: 0; font: 700 17px/24px var(--font-sans); }
.vd-frame { aspect-ratio: 16 / 9; background: #000; }
.vd-frame iframe, .vd-frame video { display: block; width: 100%; height: 100%; border: 0; }
.vd-desc { margin: 0; padding: var(--space-4) var(--space-6); font: 400 14px/21px var(--font-sans); color: var(--ink-muted); }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } .vd-desc { padding: var(--space-3) var(--space-4); } }
@media (prefers-reduced-motion: reduce) { .video-thumb img, .video-thumb video, .video-play { transition: none; } }

/* ===== Add-ons under a cart / checkout / order item: name left, amount right ===== */
.addons { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-100); }
.addons-title { display: block; margin-bottom: 2px; font: 700 11px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.addons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.addons li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); font: 400 14px/20px var(--font-sans); color: var(--ink); }
.addon-name { min-width: 0; }
.addon-price { flex: none; text-align: right; font-weight: 600; white-space: nowrap; }
.addon-price small { display: block; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.addon-free { color: var(--success); }
/* Cart page: the block spans the row under the product, lined up with the product name. */
.cart-addons { grid-column: 2 / 6; max-width: 560px; }
.cart-addons .addons { margin-top: 0; }
@media (max-width: 900px) { .cart-addons { grid-column: 1 / -1; max-width: none; } }
.cd-info .addons { margin-top: var(--space-2); }

/* ===== Checkout: delivery or store pickup (Settings > Delivery) ===== */
.method-choice { margin-bottom: var(--space-4); }
.pickup-note { margin: 0 0 var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--brand-tint); font: 400 14px/21px var(--font-sans); color: var(--ink); }

/* ===== Become a dealer (application wizard) ===== */
.apply-page .wizard { max-width: 860px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.upload-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0; } /* a long file name never widens the page */
.upload-label { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.upload-drop { display: flex; align-items: center; gap: var(--space-3); min-height: 84px; padding: var(--space-3); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: rgba(255, 255, 255, .7); cursor: pointer; transition: border-color .15s, background .15s; }
.upload-drop:hover { border-color: var(--brand); background: #fff; }
.upload-drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.upload-box.has-file .upload-drop { border-style: solid; border-color: var(--brand); background: var(--brand-tint); }
.upload-box.err .upload-drop { border-color: var(--accent); }
.upload-preview { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 8px; background: var(--surface-100); color: var(--brand); overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.upload-box.has-file .upload-text { color: var(--ink); font-weight: 600; }
.upload-remove { justify-self: start; font-size: 13px; }
.apply-review { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.ar-block { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .7); }
.ar-block h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--space-2); font: 700 15px/22px var(--font-sans); }
.ar-block h3 .link-btn { font-size: 13px; font-weight: 600; }
.ar-block dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); margin: 0; }
.ar-block dt { font-size: 12px; color: var(--ink-muted); }
.ar-block dd { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.ar-block p { margin: 0; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.ar-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ar-files li { display: flex; justify-content: space-between; gap: var(--space-3); min-width: 0; }
.ar-files li span { flex: none; }
.ar-files li b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-files li.none b { color: var(--ink-muted); font-weight: 400; }
.apply-done { text-align: center; padding: var(--space-8) var(--space-4); display: grid; gap: var(--space-3); justify-items: center; }
.apply-done h2 { margin: 0; }
.apply-done .panel-text { max-width: 520px; }
@media (max-width: 640px) { .upload-grid, .ar-block dl { grid-template-columns: minmax(0, 1fr); } }

/* ===== CMS pages with shortcodes ([contact-form], [dealer-form], [faq], [newsletter]) ===== */
.has-shortcodes .page-article .page-head { border-bottom: 0; margin-bottom: var(--space-4); padding-bottom: 0; }
.has-shortcodes .page-content { margin-bottom: var(--space-6); }
.page-shortcode { margin-bottom: var(--space-8); }
.sc-dealer-form .wizard { max-width: 860px; margin: 0 auto; }
.sc-dealer-form .field input { background: rgba(255, 255, 255, .85); }
.sc-dealer-form .field-error { margin-top: 0; }

/* ===== Business documents panel (My account › Business documents, and the "Add documents" link) ===== */
.dd-loading { display: grid; gap: var(--space-3); }
.dd-loading .sk-line { display: block; height: 52px; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--surface-100) 25%, #fff 50%, var(--surface-100) 75%); background-size: 200% 100%; animation: dd-shimmer 1.2s linear infinite; }
@keyframes dd-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dd-loading .sk-line { animation: none; } }
.dd-head { margin: var(--space-4) 0 var(--space-2); font: 700 16px/22px var(--font-sans); }
.dd-head:first-of-type { margin-top: 0; }
.dd-head .opt { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.dd-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .8); }
.dd-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.dd-row + .dd-row { border-top: 1px solid var(--line); }
.dd-row.is-picked { background: var(--brand-tint); }
.dd-main { display: grid; gap: 2px; min-width: 0; }
.dd-main b { font: 600 15px/21px var(--font-sans); color: var(--ink); }
.dd-status { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-muted); }
.dd-status.is-ok { color: var(--success); }
.dd-status.is-verified { color: var(--brand); font-weight: 600; }
.dd-picked { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.dd-picked .link-btn { font-size: 13px; margin-left: 4px; }
.dd-err { font-size: 13px; font-weight: 600; color: var(--accent); }
.dd-acts { display: flex; gap: var(--space-2); flex: none; }
.dd-pick { cursor: pointer; }
.dd-pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dd-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
.dd-hint { font-size: 13px; color: var(--ink-muted); }
.dd-done { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 14px; }
.dd-alert { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #fdecec; color: var(--accent); font-weight: 600; font-size: 14px; }
.dd-page { max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .dd-row { flex-direction: column; align-items: flex-start; } }
.dd-row.is-rejected { background: #fdf2f2; }
.dd-status.is-rejected { color: var(--accent); font-weight: 600; }
.dd-note { font-size: 13px; color: var(--ink); font-style: italic; overflow-wrap: anywhere; }

/* My account: payment of an order (paid / partly paid / overdue) and a dealer's payment terms */
.pay-tag { display: block; margin-top: 4px; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }
.pay-tag.is-paid { color: var(--success); }
.pay-tag.is-overdue { color: var(--accent); }
dt .pay-tag { display: inline; margin: 0 4px 0 0; }
.acc-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.acc-terms > div { display: grid; gap: 2px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md, 12px); background: var(--surface-000, #fff); }
.acc-terms span { font: 600 12px/16px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.acc-terms b { font: 700 20px/28px var(--font-display); color: var(--ink); }
.acc-terms small { font-size: 13px; color: var(--ink-muted); }
.acc-terms .bad { color: var(--accent); font-weight: 600; }

/* ===== Home: Videos (portrait cards; the player opens in a pop-up) ===== */
.home-videos { padding: var(--space-4) 0 var(--space-16); scroll-margin-top: 88px; }
.hv-row { list-style: none; margin: 0; padding: 0 0 var(--space-2); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: var(--space-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hv-item { scroll-snap-align: start; min-width: 0; }
.hv-card { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-100); cursor: pointer; color: #fff; text-align: left; }
.hv-card img, .hv-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; pointer-events: none; }
/* YouTube's own thumbnail is 4:3 with black bars above and below: cropped off */
.hv-card img.is-yt { top: -16.7%; height: 133.4%; }
.hv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 36, 0) 45%, rgba(10, 14, 36, .78) 100%); }
.hv-card:hover img, .hv-card:hover video { transform: scale(1.04); }
.hv-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hv-play { position: absolute; left: 50%; top: 45%; translate: -50% -50%; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1.5px solid rgba(255, 255, 255, .7); padding-left: 3px; transition: background .2s, scale .2s; }
.hv-card:hover .hv-play { background: var(--brand); border-color: var(--brand); scale: 1.08; }
.hv-text { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 1; display: grid; gap: 2px; }
.hv-text b { font: 700 15px/20px var(--font-sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-text small { font: 400 13px/18px var(--font-sans); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1100px) { .hv-row { grid-auto-columns: calc((100% - 4 * var(--space-4)) / 5); } }
@media (max-width: 640px) { .hv-row { grid-auto-columns: 62%; margin-right: calc(var(--space-4) * -1); padding-right: var(--space-4); } }
/* Portrait pop-up player */
.video-dialog.is-portrait { width: fit-content; max-width: calc(100vw - 32px); background: #000; color: #fff; overflow: hidden; }
.video-dialog.is-portrait .vd-head { padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); background: #000; }
.video-dialog.is-portrait .vd-head h2 { color: #fff; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-dialog.is-portrait .vd-close { color: #fff; }
.video-dialog.is-portrait .vd-frame { width: min(calc((100vh - 110px) * 9 / 16), 460px, calc(100vw - 32px)); height: auto; aspect-ratio: 9 / 16; }
.video-dialog.is-portrait .vd-frame video { object-fit: contain; background: #000; }
.video-dialog.is-portrait .vd-desc { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: var(--space-6) var(--space-4) var(--space-4); background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); color: #fff; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hv-card img, .hv-card video, .hv-play { transition: none; } }

/* Videos carousel: arrows at the top right, dots under the row */
.home-videos .section-head { align-items: flex-end; }
.hv-nav { display: flex; gap: var(--space-2); flex: none; }
.hv-nav[hidden], .hv-dots[hidden] { display: none; }
.hv-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong, var(--line)); background: var(--surface-000, #fff); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.hv-arrow:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }
.hv-arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hv-arrow:disabled { opacity: .35; cursor: default; }
.hv-row { scrollbar-width: none; scroll-behavior: auto; }
.hv-row::-webkit-scrollbar { display: none; }
.hv-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-5, 20px); }
.hv-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong, #c7cbe0); cursor: pointer; transition: width .25s, background .25s; }
.hv-dot[aria-current="true"] { width: 24px; background: var(--brand); }
.hv-dot:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* A bigger tap area around the small dots */
.hv-dot { position: relative; }
.hv-dot::before { content: ""; position: absolute; inset: -10px -4px; }
@media (max-width: 640px) { .home-videos .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } .hv-arrow { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .hv-arrow, .hv-dot { transition: none; } }
.hv-count { font: 600 13px/20px var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* The signed-in dealer's level color (Admin › Dealer levels), set as --dealer on <body> */
body[style*="--dealer"] .dealer-tag { background: color-mix(in srgb, var(--dealer) 16%, transparent); color: color-mix(in srgb, var(--dealer) 75%, var(--ink)); }
body[style*="--dealer"] .acc-dealer-note { border-color: color-mix(in srgb, var(--dealer) 45%, transparent); background: color-mix(in srgb, var(--dealer) 10%, var(--surface-000, #fff)); }
body[style*="--dealer"] .acc-dealer-note b { color: color-mix(in srgb, var(--dealer) 75%, var(--ink)); }

/* ===== Dealer prices as a discount: retail crossed out, "Save N%" badge, highlighted box on the product page.
   --dealer is the level's color (Admin › Dealer levels); without one the brand blue is used. ===== */
.dealer-tag { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; padding: 3px 9px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--dealer, var(--brand)) 14%, transparent); color: color-mix(in srgb, var(--dealer, var(--brand)) 78%, var(--ink));
  font: 700 11px/16px var(--font-sans); letter-spacing: .02em; vertical-align: middle; }
.product-price.dealer { color: var(--success, #1a7f5a); }
.product-price.dealer .was, .pdp-price.dealer .was { color: var(--ink-muted); font-weight: 400; text-decoration-thickness: 1.5px; }
.product-price.dealer .was { font-size: 14px; margin-left: 4px; }
.badge.dealer-badge { background: var(--success, #1a7f5a); color: #fff; }
.product-body .dealer-tag { justify-self: start; width: fit-content; }
.dealer-box { position: relative; margin-top: var(--space-2); padding: var(--space-4) var(--space-5, 20px); border-radius: var(--radius-lg, 16px);
  background: color-mix(in srgb, var(--dealer, var(--brand)) 7%, var(--surface-000, #fff)); border: 1px solid color-mix(in srgb, var(--dealer, var(--brand)) 28%, transparent);
  box-shadow: inset 4px 0 0 var(--dealer, var(--brand)); }
.dealer-box-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.dealer-box .dealer-tag { margin: 0; font-size: 12px; padding: 4px 10px; }
.dealer-off { display: inline-grid; place-items: center; min-width: 56px; height: 30px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--success, #1a7f5a); color: #fff; font: 800 15px/1 var(--font-display); }
.pdp-price.dealer { margin-top: var(--space-2); color: var(--success, #1a7f5a); font-size: 38px; line-height: 44px; }
.pdp-price.dealer .was { font: 400 20px/26px var(--font-sans); margin-left: 6px; }
.dealer-save { margin: var(--space-1) 0 0; font: 400 14px/20px var(--font-sans); color: var(--ink); }
.dealer-save b { color: var(--success, #1a7f5a); }
.dealer-save.is-same { color: var(--ink-muted); }
@media (max-width: 640px) { .pdp-price.dealer { font-size: 32px; line-height: 38px; } }

/* ===== Promo strip messages: one line each; several take turns sliding up (js/promo.js) ===== */
.promo { position: relative; display: flex; align-items: center; justify-content: center; }
.promo-track { position: relative; flex: 1; min-width: 0; display: grid; overflow: hidden; }
/* Long messages wrap onto more lines instead of being cut off with "…"; very long words (links) break too.
   Messages share one grid cell, so a rotating bar is as tall as its longest message and never jumps. */
.promo-msg { grid-area: 1 / 1; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.promo.is-rotating .promo-msg { opacity: 0; transform: translateY(100%); transition: transform .45s ease, opacity .45s ease; }
.promo.is-rotating .promo-msg.is-on { opacity: 1; transform: none; }
.promo:not(.is-rotating) .promo-msg:not(.is-on) { visibility: hidden; } /* keeps its space, so the bar is its final height from the first paint */
.promo-arrow { flex: none; display: grid; place-items: center; width: 24px; height: 20px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer; opacity: .75; transition: background .2s, opacity .2s; }
.promo-arrow:hover, .promo-arrow:focus-visible { opacity: 1; background: rgba(255, 255, 255, .18); }
.promo-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.promo:has(.promo-arrow) .promo-track { max-width: 760px; margin: 0 var(--space-2); }
/* Going back: the previous message comes down from the top */
.promo.is-rotating.is-back .promo-msg:not(.is-on) { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .promo.is-rotating .promo-msg { transition: none; transform: none; } }

/* ===== Search box in the middle of the screen (phones and tablets; the 🔍 in the header) ===== */
.search-pop { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg, 16px);
  background: var(--surface-000, #fff); color: var(--ink); box-shadow: 0 24px 64px rgba(18, 24, 58, .28); }
.search-pop::backdrop { background: rgba(10, 14, 36, .55); backdrop-filter: blur(2px); }
.search-pop[open] { animation: search-pop-in .2s ease-out; }
@keyframes search-pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.search-pop-form { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5, 20px) var(--space-5, 20px); }
.search-pop-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.search-pop-head h2 { margin: 0; font: 700 18px/24px var(--font-display); }
.search-pop-field { display: flex; align-items: center; gap: var(--space-2); padding: 6px 6px 6px 14px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: var(--radius-pill, 999px); background: var(--surface-000, #fff); }
.search-pop-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-pop-field svg { flex: none; color: var(--ink-muted); }
.search-pop-field input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 16px/22px var(--font-sans); }
.search-pop-field .btn { border-radius: var(--radius-pill, 999px); flex: none; }
.search-pop-label { margin: var(--space-2) 0 0; font: 700 11px/16px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.search-pop-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search-pop-chips a { padding: 7px 14px; border-radius: var(--radius-pill, 999px); background: var(--surface-100, #f2f3f8); color: var(--ink); font: 600 14px/20px var(--font-sans); text-decoration: none; }
.search-pop-chips a:hover, .search-pop-chips a:focus-visible { background: var(--brand-tint, #e8ebf7); color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .search-pop[open] { animation: none; } }
/* Very small phones (≤360px): a little less space between the header icons so they still fit with the 🔍 */
@media (max-width: 360px) {
  .site-header .bar { gap: var(--space-2); }
  .header-icons { gap: 0; }
}

/* Reviews: where a staff-added review came from, and customers' photos (open larger in a pop-up) */
.review-source { font-weight: 400; color: var(--ink-muted); }
.review-photos { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.review-photo { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md, 10px); overflow: hidden; background: var(--surface-100); cursor: zoom-in; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-photo:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-dialog { max-width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg, 16px); background: #000; overflow: hidden; }
.photo-dialog::backdrop { background: rgba(10, 14, 36, .75); }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.photo-close { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 50%; }
.review-variation { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); }
.review-variation b { font-weight: 600; color: var(--ink); }

/* Reviews: who wrote it, at the top (initial, name, Verified buyer / where it came from) */
.review-who { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.review-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--brand-tint, #e8ebf7); color: var(--brand); font: 700 15px/1 var(--font-display); }
.review-who-text { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--space-2); min-width: 0; }
.review-name { font: 700 15px/20px var(--font-sans); color: var(--ink); }
.review-who-text .review-source { font-size: 13px; color: var(--ink-muted); }
.review-variation { margin: 6px 0 0; }

/* ===== Favorites (js/favorites.js): header/menu counts, My account › Favorites and /favorites ===== */
.favorites-page { padding: var(--space-6) 0 var(--space-16); background: var(--surface-100); }
.fav-note { margin: calc(-1 * var(--space-3)) 0 var(--space-6); color: var(--ink-muted); font: 400 15px/22px var(--font-sans); }
.fav-note a { color: var(--brand); font-weight: 600; }
.fav-count { margin: 0 0 var(--space-4); color: var(--ink-muted); font: 600 14px/20px var(--font-sans); }
.fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.favorites-page .fav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fav-empty { background: var(--surface-000); }
.fav-empty h3 { font: 700 20px/26px var(--font-display); color: var(--ink); margin: var(--space-3) 0 var(--space-2); }
.fav-empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-tint); }
.fav-empty-icon svg { width: 26px; height: 26px; color: var(--accent); }
.acc-nav-count, .drawer-count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand); font: 700 12px/18px var(--font-sans); text-align: center;
}
.acc-nav-count[hidden], .drawer-count[hidden] { display: none; }
.drawer-fav { width: 100%; }
@media (max-width: 1040px) { .fav-grid, .favorites-page .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fav-grid, .favorites-page .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }

/* ===== Loading skeletons (storefront): the shape of what's coming, until the page's script draws it ===== */
:root { --sk-a: #eceef5; --sk-b: #f7f8fb; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--sk-a) 25%, var(--sk-b) 40%, var(--sk-a) 55%); background-size: 300% 100%; animation: sk-shimmer 1.4s ease-in-out infinite; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-line { height: 14px; }
.sk-line.w30 { width: 30%; } .sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w70 { width: 70%; } .sk-line.w80 { width: 80%; } .sk-line.w90 { width: 90%; }
/* Shop grid: product cards (the wrapper takes the grid's place so its columns apply) */
.sk-grid { display: contents; }
.sk-card { display: grid; gap: var(--space-2); }
.sk-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); margin-bottom: var(--space-2); }
/* Product page: photo left, details right */
.sk-pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; margin-top: var(--space-6); }
.sk-pdp-photo { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.sk-pdp-info { display: grid; gap: var(--space-4); padding-top: var(--space-4); }
.sk-pdp-info .sk-title { height: 40px; }
.sk-pdp-info .sk-price { height: 32px; margin-top: var(--space-2); }
.sk-box { height: 72px; border-radius: var(--radius-md); margin-top: var(--space-2); }
.sk-btn { height: 52px; border-radius: var(--radius-md); }
@media (max-width: 900px) { .sk-pdp { grid-template-columns: 1fr; gap: var(--space-6); } }
/* Cart: one row per item */
.sk-cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 90px; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); list-style: none; }
.sk-thumb { width: 72px; height: 90px; border-radius: var(--radius-md); }
.sk-cart-text { display: grid; gap: var(--space-2); }
.sk-amt { width: 90px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; background: var(--sk-a); } }

/* Favorites heart, signed out: "Sign in to save favorites" dialog (favorites.js) */
.fav-dialog { width: min(400px, calc(100vw - 32px)); }
.fav-dlg-body { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-8) var(--space-6) 0; text-align: center; }
.fav-dlg-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-tint); color: var(--accent); margin-bottom: var(--space-2); }
.fav-dlg-body h2 { margin: 0; font: 700 20px/26px var(--font-display); color: var(--ink); }
.fav-dlg-body p { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.fav-dlg-body .cd-actions { width: 100%; padding: var(--space-4) 0 var(--space-6); }

/* ===== Welcome pop-up (js/welcome.js): the photo in its chosen shape, × in the corner ===== */
.welcome-pop { position: fixed; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-000); overflow: auto; box-shadow: 0 24px 64px rgba(18, 24, 58, .3); }
.welcome-pop::backdrop { background: rgba(18, 24, 58, .5); }
.welcome-pop[open] { animation: wp-in .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes wp-in { from { opacity: 0; scale: .96; } }
.wp-photo { display: block; }
.wp-photo img { display: block; width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: cover; }
.wp-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(18, 24, 58, .2); }
.wp-close:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) { .welcome-pop[open] { animation: none; } }

/* My account › Orders: Review beside View (completed, paid orders), and per item on the order page */
.acc-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.acc-reviewed { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/18px var(--font-sans); color: var(--success); white-space: nowrap; }
.acc-reviewed::before { content: "✓"; font-weight: 700; }
.summary-item .item-price .acc-review-btn, .summary-item .item-price .acc-reviewed { display: flex; width: max-content; margin: var(--space-2) 0 0 auto; }

/* Footer: store email and showroom address (Settings > Store details) */
.footer-store { margin-top: var(--space-3); }
.footer-store a { line-height: 22px; }
