/* ─────────────────────────────────────────────
   Aliwalas Home
   Palette taken from the brand card:
   ember #CF7541 · mustard #E4C378 · blush #EAC8B7 · sand #E7DACD · cream #F4EEE4
   ───────────────────────────────────────────── */
:root {
  --cream: #F4EEE4;
  --cream-2: #EFE7DB;
  --sand: #E7DACD;
  --blush: #EAC8B7;
  --mustard: #E4C378;
  --ember: #CF7541;
  --ember-deep: #A9542A;
  --logo: #CF5A1E;
  --ink: #4A3F38;
  --muted: #7A6D64;
  --line: #DDD0C1;
  --night: #1E1519;

  --font: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --header-h: 64px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 3px; border-radius: 6px; }

.sr-only, .hidden-field {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 48px);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(244, 238, 228, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 208, 193, .6);
}
/* Shown to visitors outside the Philippines by js/ph-notice.js */
.abroad-notice {
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: var(--sand); color: var(--ink); font-size: .9rem; line-height: 1.45;
}
.abroad-notice p { flex: 1; }
.abroad-notice button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.abroad-notice button:hover { background: rgba(74, 63, 56, .08); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
/* Header lockup: the arch sits beside the wordmark, stacked as in the logo. */
.brand-mark { width: 32px; height: auto; flex: none; }
.brand-word { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--logo); text-transform: uppercase; }
.brand-word-main { font-size: 1.08rem; font-weight: 400; letter-spacing: .14em; margin-right: -.14em; }
.brand-word-sub { margin-top: 4px; font-size: .56rem; font-weight: 500; letter-spacing: .62em; margin-right: -.62em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ember-deep); }
/* Phone menu button (js/nav.js); hidden on wider screens where the links fit in the header. */
.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  place-items: center;
}
@media (hover: hover) { .menu-btn:hover { background: rgba(74, 63, 56, .06); } }
.menu-icon { position: relative; display: block; width: 22px; height: 14px; }
.menu-icon span {
  position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform 250ms var(--ease), opacity 200ms;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 6.2px; }
.menu-icon span:nth-child(3) { bottom: 0; }
.menu-open .menu-icon span:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
.menu-open .menu-icon span:nth-child(2) { opacity: 0; }
.menu-open .menu-icon span:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: transparent;
  padding: 7px 14px 7px 16px; border-radius: 999px;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-btn[hidden] { display: none; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--cream); font-size: .75rem; font-weight: 500;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ───────────── Living room ───────────── */
.room {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 540px;
  max-height: 1100px;
  overflow: hidden;
  background: #E8DCCB;
  isolation: isolate;
}

/* The stage keeps a 16:9 room and covers the section, cropping the sides on narrow screens. */
.stage {
  /* Room photo proportions and where the piece hangs. Set from Store settings → Room photo. */
  --room-ratio: 2.2716;
  --wall-mm: 4700;
  --piece-x: 50.5%;
  --piece-bottom: 56%;
  position: absolute; left: 50%; top: 50%;
  width: max(100%, calc((100svh - var(--header-h)) * var(--room-ratio)), 960px);
  aspect-ratio: var(--room-ratio);
  transform: translate(calc(-50% - var(--shift, 0px)), -50%);
  transition: transform var(--slow) var(--ease);
}
@supports not (height: 100svh) {
  .room { height: calc(100vh - var(--header-h)); }
  .stage { width: max(100%, calc((100vh - var(--header-h)) * var(--room-ratio)), 960px); }
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }

.dusk {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 90% at 50% 30%, rgba(40, 22, 30, .6), rgba(16, 10, 16, .86));
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}
.cast {
  /* warm light the piece throws onto the wall and sofa; sits just behind the frame */
  position: absolute; pointer-events: none; z-index: -1;
  inset: -120% -140% -190% -140%;
  background: radial-gradient(closest-side, var(--glow, rgba(242,154,44,.55)) 0%, var(--glow-soft, rgba(242,154,44,.2)) 42%, transparent 100%);
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}
.lamp-glow {
  position: absolute; pointer-events: none;
  left: 81.8%; top: 31%;
  width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 150, .55) 0%, rgba(255, 190, 110, .18) 40%, transparent 100%);
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}
.lamp-glow { opacity: min(1, calc(var(--level) * 1.6)); }
.room { --level: 0; }
/* Brightness slider: the piece fades up and the room dims toward evening as you drag right. */
.dusk { opacity: min(1, calc(var(--level) * 1.6)); }
.cast { opacity: var(--level); }

/* the piece: width is its real size against a 3.6 m wide wall */
.piece {
  position: absolute;
  left: var(--piece-x); bottom: var(--piece-bottom);
  width: calc(var(--mm, 800) / var(--wall-mm) * 100%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  padding: 0; border: 0; background: none;
  transition: width 600ms var(--ease);
  z-index: 2;
}
.piece-frame {
  position: absolute; inset: 0;
  border-radius: 2px;
  /* drop-shadow (not box-shadow) so the shadow follows the photo's own edge, not the full square */
  filter: drop-shadow(6px 14px 16px rgba(70, 45, 25, .42)) drop-shadow(1px 2px 3px rgba(70, 45, 25, .25));
  transition: filter var(--slow) var(--ease), transform 300ms var(--ease);
}
/* the frame itself comes from the product photo, so the art fills the whole piece */
.art {
  position: absolute; inset: 0; border-radius: inherit;
  background-size: cover; background-position: center;
  transition: opacity var(--slow) var(--ease);
}
.art-on {
  opacity: var(--level);
  /* drop-shadow, not box-shadow, so the glow follows the photo's edge instead of the full square */
  filter:
    drop-shadow(0 0 26px var(--glow, rgba(242,154,44,.55)))
    drop-shadow(0 0 110px var(--glow-soft, rgba(242,154,44,.25)));
}
/* follow the finger while dragging; ease only for taps and keys */
.room.dragging .dusk, .room.dragging .cast, .room.dragging .lamp-glow, .room.dragging .art { transition: none; }
.piece:hover .piece-frame { transform: translateY(-2px); }

.hotspot {
  position: absolute; right: -14px; top: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); border: 1px solid rgba(74,63,56,.2);
  box-shadow: 0 4px 12px rgba(60,40,25,.2);
  display: grid; place-items: center;
  transition: opacity 300ms, transform 300ms var(--ease);
}
.hotspot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.hotspot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid var(--ember);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.room.is-open .hotspot { opacity: 0; transform: scale(.6); }

/* intro text on the wall: color and shadow (color, distance, size, spread) are set from
   Store settings in the admin, with these as the fallback/default look. Always light, with
   a dark shadow for contrast against the wall, so it doesn't need to change with day/night
   brightness. Stays visible even with the configurator open since it's on the opposite side
   of the room now. */
.room-intro {
  position: absolute; left: clamp(16px, 4vw, 56px); top: clamp(20px, 4.5vh, 48px);
  max-width: 25rem; z-index: 3; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start;
  color: var(--hero-text-color, #F6E9DA);
  text-shadow:
    0 var(--hero-shadow-distance, 1px) var(--hero-shadow-size, 1px) var(--hero-shadow-color, rgba(10, 6, 4, .85)),
    0 0 var(--hero-shadow-spread, 3px) var(--hero-shadow-color, rgba(10, 6, 4, .7));
}
.intro-mark { width: 38px; height: auto; display: block; margin-bottom: 14px; }
/* A soft dark-amber wash behind the text keeps it readable on the bright parts of the room photo. */
.room-intro::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -64px -96px -64px calc(-1 * clamp(16px, 4vw, 56px) - 40px);
  background: radial-gradient(closest-side, rgba(24, 14, 8, .55), rgba(40, 22, 10, .32) 60%, transparent);
}
.hero-headline {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 400; line-height: 1.15; letter-spacing: -.005em;
  text-wrap: balance;
}
.hero-subcopy { margin-top: 12px; font-size: 1rem; line-height: 1.5; opacity: .95; }
.hero-cta { margin-top: 20px; text-shadow: none; text-decoration: none; }
/* Tagline follows the brand card's spaced capitals. */
.tagline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400; letter-spacing: .28em; line-height: 1.7;
  text-transform: uppercase;
}
/* What we make: the page's main heading, set small above the tagline. */
.kicker { margin-bottom: 10px; font-size: .8rem; font-weight: 500; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; opacity: .9; }
.room-hint { margin-top: 12px; font-size: .95rem; max-width: 18rem; color: var(--hero-text-color, #F6E9DA); opacity: .82; }

.mobile-intro { display: none; }
.mobile-intro .hero-headline { font-size: 1.6rem; color: var(--ink); }
.mobile-intro .hero-subcopy { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.mobile-intro .hero-cta { margin-top: 16px; }

/* piece switcher */
.switcher {
  position: absolute; left: clamp(16px, 4vw, 56px); bottom: clamp(20px, 5vh, 56px); z-index: 3;
  display: flex; gap: 8px; padding: 6px;
  border-radius: 999px;
  background: rgba(244, 238, 228, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -10px rgba(60, 40, 25, .35);
  text-shadow: none;
  transition: opacity 400ms var(--ease);
}
.switcher button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; border-radius: 999px;
  padding: 6px 14px 6px 6px; font-size: .95rem;
}
.switcher button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.swatch {
  /* the whole piece, frame included, so the two read differently even this small */
  width: 26px; height: 26px; border-radius: 5px; flex: none;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.room-error {
  position: absolute; inset: auto 16px 16px; z-index: 5;
  background: var(--cream); padding: 14px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--ember);
}

/* ───────────── Floating configurator ───────────── */
.config {
  position: absolute; z-index: 6;
  right: clamp(16px, 4vw, 64px); top: 50%;
  width: min(360px, calc(100% - 32px));
  padding: 26px 26px 22px;
  border-radius: var(--radius-lg);
  background: rgba(247, 242, 234, .9);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 60px -24px rgba(50, 30, 20, .45), 0 0 0 1px rgba(255,255,255,.5) inset;
  opacity: 0; visibility: hidden;
  transform: translateY(-46%) scale(.97);
  transition: opacity 350ms var(--ease), transform 450ms var(--ease), visibility 0s linear 450ms;
}
.room.is-open .config {
  opacity: 1; visibility: visible;
  transform: translateY(-50%) scale(1);
  transition: opacity 350ms var(--ease), transform 450ms var(--ease), visibility 0s;
}
.config-close {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(74, 63, 56, .07);
  display: grid; place-items: center;
}
.config-close:hover { background: rgba(74, 63, 56, .14); }
.config-meta { font-size: .85rem; color: var(--muted); padding-right: 40px; }
.config-name { margin-top: 6px; font-size: 2.1rem; font-weight: 300; letter-spacing: -.01em; }
.config-meaning { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.config-short { margin-top: 8px; font-size: .98rem; color: var(--muted); line-height: 1.5; }

.control { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.control legend { padding: 0; font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: 14px; background: rgba(74, 63, 56, .07);
}
.segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: transparent; border-radius: 10px;
  padding: 9px 10px; font-size: .92rem; white-space: nowrap;
  transition: background 200ms, color 200ms, box-shadow 200ms;
}
.segmented button:hover { background: rgba(255,255,255,.5); }
.segmented button[aria-pressed="true"] {
  background: #fff; box-shadow: 0 2px 8px -2px rgba(60, 40, 25, .25); font-weight: 500;
}

.brightness-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.brightness-head output { font-size: .85rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.turn-off {
  margin: -6px 0 -6px -10px; padding: 6px 10px; border: 0; border-radius: 999px; background: none;
  font-size: .85rem; color: var(--ember-deep); text-decoration: underline; text-underline-offset: 3px;
  touch-action: manipulation;
}
.turn-off:hover { background: rgba(74, 63, 56, .07); }
.turn-off[disabled] { color: var(--muted); text-decoration: none; cursor: default; background: none; opacity: .6; }
.brightness-track {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: rgba(74, 63, 56, .07);
}
.b-icon { flex: none; color: var(--muted); }
.b-icon:last-child { color: var(--ember-deep); }
.range {
  --fill: 0%;
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y;
}
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #3A2A2A 0%, var(--ember) 55%, var(--mustard) 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}
.range::-moz-range-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #3A2A2A 0%, var(--ember) 55%, var(--mustard) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(74, 63, 56, .15);
  box-shadow: 0 3px 10px -2px rgba(60, 40, 25, .4), 0 0 0 calc(var(--lvl, 0) * 8px) rgba(228, 195, 120, .35);
  transition: transform 150ms var(--ease);
}
.range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(74, 63, 56, .15);
  box-shadow: 0 3px 10px -2px rgba(60, 40, 25, .4), 0 0 0 calc(var(--lvl, 0) * 8px) rgba(228, 195, 120, .35);
}
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ember-deep); outline-offset: 2px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--ember-deep); outline-offset: 2px; }

.config-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
/* "Notify me when available" is too long to sit beside the price, so it takes its own row */
.config-buy.is-notify { flex-wrap: wrap; }
.config-buy.is-notify .btn { flex: 1 1 100%; }
.config-price { font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.price-was { color: var(--muted); font-weight: 400; text-decoration: line-through; font-size: .78em; }
.price-now { color: var(--ember-deep); }
.price-off {
  display: inline-block; margin-left: 2px; padding: 2px 9px; border-radius: 999px;
  background: var(--ember-deep); color: #fff; font-size: .62em; font-weight: 500;
  vertical-align: middle; letter-spacing: .01em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font-size: .98rem; font-weight: 500;
  border: 1px solid transparent; text-decoration: none;
  transition: background 200ms, transform 150ms, border-color 200ms;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ember-deep); color: #fff; }
.btn-primary:hover { background: #8F4521; }
.btn-primary[disabled] { background: #B9ADA3; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }
.link-btn {
  margin-top: 14px; padding: 4px 0; border: 0; background: none;
  font-size: .92rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--ink); }

/* ───────────── Collection ───────────── */
.collection { padding: clamp(64px, 10vw, 128px) clamp(16px, 5vw, 64px); max-width: 1280px; margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 38rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -.01em; }
.section-head p { color: var(--muted); }
.section-head .day-night { color: var(--ink); font-size: 1.15rem; }
/* Collection: title and tagline on the left, intro and launch note on the right, lined up with the two
   product columns below; stacked on narrow screens. */
.collection-head { max-width: none; gap: 20px 0; }
.collection-head-main, .collection-head-side { display: grid; gap: 12px; align-content: end; }
.collection-head-side { gap: 16px; }
@media (min-width: 900px) {
  .collection-head { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); align-items: end; }
  .collection-head-side p:not(.launch-note) { max-width: 34rem; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); }
.product { display: grid; gap: 18px; min-width: 0; }
.product-photo {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px;
  background: var(--sand); border: 0; padding: 0; width: 100%;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--ease); }
.product-photo .on { opacity: 0; }
.product-photo.show-on .on { opacity: 1; }
/* Hover preview only with a real mouse: on phones :hover sticks after a tap and fights the toggle */
@media (hover: hover) and (pointer: fine) { .product-photo:not(.hover-off):hover .on { opacity: 1; } }
.photo-state {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem;
  background: rgba(244, 238, 228, .9); color: var(--ink); pointer-events: none;
}
.sale-badge {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: var(--ember-deep); color: #fff;
}
.product-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.product-name { font-size: 1.9rem; font-weight: 300; }
.product-name small { font-size: 1rem; color: var(--muted); margin-left: 6px; }
.product-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-short { color: var(--muted); margin-top: -8px; max-width: 34rem; }
.product-frame { font-size: .9rem; color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.launch-note {
  margin: 0; padding: 10px 16px; border-radius: 12px; width: fit-content; justify-self: start;
  background: rgba(207, 117, 65, .12); color: var(--ember-deep) !important; font-weight: 500; font-size: .95rem; line-height: 1.5;
}
.launch-note[hidden], .trust[hidden] { display: none; }
/* Delivery, payment and making details under the collection and on product pages. */
.trust {
  list-style: none; padding: 20px 0 0; margin: clamp(40px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink); font-size: .95rem;
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; }
.trust-pdp { margin-top: 24px; flex-direction: column; gap: 8px; }
.sold-out { color: var(--ember-deep); font-weight: 500; }

/* ───────────── About ───────────── */
.about { background: var(--sand); padding: clamp(64px, 10vw, 128px) clamp(16px, 5vw, 64px); }
.about-inner {
  max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 300; letter-spacing: -.015em; max-width: 14ch; }
.about p { max-width: 34rem; font-size: 1.1rem; line-height: 1.75; }
.values { margin-top: 28px; font-size: .85rem !important; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

/* ───────────── Questions ───────────── */
.faq { padding: clamp(64px, 10vw, 128px) clamp(16px, 5vw, 64px); max-width: 1152px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--muted); transition: transform 300ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 22px; max-width: 42rem; color: var(--muted); line-height: 1.7; }

/* ───────────── Product page ───────────── */
.pdp { max-width: 1152px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 64px) clamp(64px, 10vw, 128px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-underline-offset: 4px; }
.pdp-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pdp-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
/* the main photo is the same switch-on photo as the collection cards (js/photo-toggle.js); any extra
   gallery photos sit under it, two to a row */
.pdp-media .pdp-photo { grid-column: 1 / -1; border-radius: 8px; }
/* on wide screens the photo stays in view while you read the details beside it */
@media (min-width: 900px) { .pdp-media { position: sticky; top: calc(var(--header-h) + 24px); } }
.pdp-media > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sand); }
.pdp-kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pdp h1 { margin-top: 8px; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 300; }
.pdp h1 small { display: block; margin-top: 6px; font-size: 1rem; color: var(--muted); }
.pdp-lead { margin-top: 18px; font-size: 1.15rem; }
.pdp-desc { margin-top: 14px; line-height: 1.75; }
.pdp h2 { margin-top: 32px; font-size: 1.1rem; font-weight: 500; }
.pdp ul { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.8; }
.pdp-sizes { width: 100%; margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pdp-sizes th, .pdp-sizes td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.pdp-sizes td:last-child { text-align: right; }
.pdp-specs th { width: 34%; padding-right: 16px; color: var(--muted); vertical-align: top; }
.pdp-specs td:last-child { text-align: left; }
.pdp-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-cta .btn { text-decoration: none; }
.pdp-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.product-name a { text-decoration: none; }
.product-name a:hover { color: var(--ember-deep); }

/* ───────────── Guide pages (Sol Study comparison, art lamps guide) ───────────── */
/* ───────────── Blog ───────────── */
.blog { max-width: 1152px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 64px) clamp(64px, 10vw, 128px); }
.blog-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.blog-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.1; }
.blog-head p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 40px); }
.blog-card { display: grid; gap: 16px; align-content: start; color: inherit; text-decoration: none; height: 100%; }
.blog-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--sand); transition: transform 500ms var(--ease); }
.blog-card:hover img { transform: scale(1.015); }
.blog-card-body { display: grid; gap: 8px; }
.blog-card time { font-size: .85rem; color: var(--muted); }
.blog-card strong { font-size: 1.3rem; font-weight: 400; line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms; }
.blog-card:hover strong, .blog-card:focus-visible strong { text-decoration-color: currentColor; }
.blog-card-body > span { color: var(--muted); font-size: .98rem; }

.guide { max-width: 880px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 64px) clamp(64px, 10vw, 128px); }
.guide h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 300; line-height: 1.15; }
.guide h2 { margin-top: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 400; }
.guide p { line-height: 1.75; margin: 14px 0 0; }
.guide h2 + p, .guide h2 + div { margin-top: 12px; }
.guide-date { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.guide-note { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--mustard); background: var(--cream-2); font-size: .92rem; color: var(--muted); }
.guide-section { margin-top: clamp(40px, 7vw, 72px); }
/* TikTok's player centers its card on a white background as wide as the embed, so keep each
   embed at the card's own width (325 px, TikTok's minimum) and no white shows around it. */
.guide-videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 20px; align-items: flex-start; }
.guide-videos figure { margin: 0; width: min(100%, 325px); }
.guide-videos .tiktok-embed { margin: 0 !important; width: 100% !important; min-width: 0 !important; max-width: 325px !important; border-radius: 8px; overflow: hidden; }
.guide-videos section { padding: 24px; border-radius: 8px; background: var(--sand); text-align: center; }
.guide-videos figcaption { text-align: center; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.guide-table-wrap { margin-top: 16px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.guide-table th, .guide-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.guide-table thead th { font-weight: 500; border-bottom-color: var(--ink); }
.guide-table tbody th { font-weight: 500; width: 22%; }
.guide-table td:last-child { color: var(--ember-deep); }
.guide-pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 16px; }
.guide-piece { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.guide-piece img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sand); }
.guide-piece-name { margin-top: 6px; font-size: 1.2rem; }
.guide-piece-name small { color: var(--muted); font-size: .9rem; }
.guide-piece:hover .guide-piece-name { color: var(--ember-deep); }
.guide .faq-list { margin-top: 12px; }
.guide ul { margin: 14px 0 0; padding-left: 1.2em; line-height: 1.75; }
.guide li + li { margin-top: 6px; }
.guide-summary { padding: 18px 20px; border-radius: var(--radius-md); background: var(--cream-2); font-size: 1.05rem; }
.guide-toc { margin-top: clamp(32px, 5vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); }
.guide-toc h2 { font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide-toc ol { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.9; }
.guide-toc a { color: inherit; }
.guide-toc a:hover { color: var(--ember-deep); }
.guide-day-night { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.guide-day-night figure { margin: 0; }
.guide-day-night img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sand); }
.guide-day-night figcaption { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.guide-more { font-size: .95rem; color: var(--muted); }
@media (max-width: 640px) {
  .guide-table thead { display: none; }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: auto; }
  .guide-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .guide-table th, .guide-table td { border: 0; padding: 4px 0; }
  .guide-table tbody th { width: auto; }
  .guide-table td::before { content: attr(data-label); display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

/* ───────────── Footer ───────────── */
.site-footer {
  padding: 40px clamp(16px, 5vw, 64px) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; font-size: .92rem; color: var(--muted);
}
.foot-logo { width: 150px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.foot-links a { text-underline-offset: 4px; }

/* ───────────── Details dialog ───────────── */
.details {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(40, 25, 15, .5);
}
.details::backdrop { background: rgba(40, 28, 22, .5); backdrop-filter: blur(4px); }
.details[open] { animation: rise 400ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.details-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; }
.details-close { z-index: 2; background: rgba(244, 238, 228, .9); }
.details-media { padding: 16px; display: grid; gap: 10px; align-content: start; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--sand); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Off / On (or gallery caption) under each thumbnail, and on the big photo */
.thumbs button.labelled { width: auto; height: auto; display: grid; gap: 6px; justify-items: center; border: 0; background: transparent; cursor: pointer; }
.thumbs button.labelled img { width: 64px; height: 64px; border-radius: 8px; border: 2px solid transparent; background: var(--sand); }
.thumbs button.labelled[aria-pressed="true"] img { border-color: var(--ink); }
.thumb-label { font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.thumbs button[aria-pressed="true"] .thumb-label { color: var(--ink); font-weight: 500; }
.details-photo { position: relative; }
.details-photo > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--sand); }
.photo-tag {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(30, 21, 25, .62); color: #fff; font-size: .8rem; letter-spacing: .04em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.photo-tag[hidden] { display: none; }
.details-body { padding: 40px 36px 32px 20px; }
.details-name { margin-top: 6px; font-size: 2.6rem; font-weight: 300; }
.details-desc { margin-top: 14px; line-height: 1.7; max-width: 34rem; }

/* ───────────── Cart ───────────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(40, 28, 22, .4); opacity: 0; transition: opacity 300ms; }
.scrim.show { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%);
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 450ms var(--ease), visibility 0s linear 450ms;
  overflow-y: auto;
}
.cart.open { transform: none; visibility: visible; transition: transform 450ms var(--ease); box-shadow: -30px 0 60px -30px rgba(40, 25, 15, .4); }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-head h2 { font-size: 1.6rem; font-weight: 300; }
.cart-head .config-close { position: static; }
.cart-step { display: flex; flex-direction: column; flex: 1; }
.cart-step[hidden] { display: none; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-item h3 { font-size: 1.1rem; font-weight: 500; }
.cart-item .size { font-size: .9rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; font-size: 1.1rem; }
.qty span { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.remove { border: 0; background: none; padding: 0; margin-top: 8px; font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: block; }
.line-price { font-variant-numeric: tabular-nums; }
.cart-empty { text-align: left; display: grid; gap: 16px; justify-items: start; padding: 12px 0; color: var(--muted); }
.cart-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart-total strong { font-size: 1.3rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-note { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.checkout { gap: 14px; }
.checkout label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.checkout input, .checkout textarea, .checkout select {
  width: 100%; padding: 11px 14px; font-weight: 400; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #FBF8F3;
}
.checkout input:focus, .checkout textarea:focus, .checkout select:focus { outline: none; border-color: var(--ember-deep); box-shadow: 0 0 0 3px rgba(207, 117, 65, .2); }
.optional { font-weight: 400; color: var(--muted); }
.form-error { color: var(--ember-deep); font-size: .92rem; }
.checkout .cart-total { margin-top: 8px; }
.checkout-country { display: flex; justify-content: space-between; font-size: .9rem; padding: 11px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink); }
.checkout-country span { font-weight: 500; }
.notify-piece { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.notify-piece img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.notify-piece h3 { font-size: 1.1rem; font-weight: 500; }
.notify-piece .size { font-size: .9rem; color: var(--muted); }
.notify-sizes { margin-top: 8px; }
.notify-sizes button { padding: 6px 8px; font-size: .86rem; white-space: nowrap; }
.coming-soon { color: var(--ember-deep); font-weight: 500; }
.done { gap: 16px; align-items: flex-start; padding-top: 24px; }
.done-mark { width: 52px; height: auto; }
.done h3 { font-size: 1.8rem; font-weight: 300; }
.done p { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: .95rem;
  transition: opacity 300ms, transform 300ms var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────────── Responsive ───────────── */
@media (max-width: 899px) {
  .about-inner { grid-template-columns: 1fr; }
  .details-inner { grid-template-columns: 1fr; }
  .pdp-inner { grid-template-columns: 1fr; }
  .details-body { padding: 8px 20px 28px; }
  .details-name { font-size: 2.1rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .brand-mark { width: 26px; }
  .brand-word-main { font-size: .98rem; }
  /* the links fold into a drop-down under the header, opened by the menu button */
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(40, 28, 22, .35);
    font-size: 1.05rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms, transform 250ms var(--ease), visibility 0s 250ms;
  }
  .menu-open .nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 200ms, transform 250ms var(--ease), visibility 0s;
  }
  .nav > a { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .nav > a:last-of-type { border-bottom: 0; }
  .nav .cart-btn { align-self: flex-start; margin-top: 14px; }
  /* short enough that the headline and hero button below it are on the first screen */
  .room { height: 58svh; min-height: 400px; }
  .stage { width: max(100%, calc(max(58svh, 400px) * var(--room-ratio))); }
  .room-intro { display: none; }
  .mobile-intro { display: block; padding: 20px 20px 0; }
  .mobile-intro .tagline { font-size: .95rem; }
  .mobile-intro .room-hint { margin-top: 6px; font-size: .92rem; color: var(--muted); opacity: 1; }
  .switcher { left: 16px; right: auto; bottom: 20px; }
  .room.is-open .room-intro, .room.is-open .switcher { opacity: 0; pointer-events: none; }
  /* configurator becomes a sheet at the bottom of the room */
  /* the room is its own stacking context, so lift it above the page below while the sheet is open */
  .room.is-open { z-index: 30; }
  .config {
    position: fixed;
    background: var(--cream);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; width: auto;
    padding: 20px 20px 16px;
    max-height: 60svh; overflow-y: auto;
    transform: translateY(24px);
  }
  .room.is-open .config { transform: none; }
  .config-name { font-size: 1.7rem; }
  .config-short { display: none; }
  .control { margin-top: 14px; }
  .config-buy { margin-top: 16px; }
  .link-btn { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
