/* ============================================================
   editorial.css — design tokens + type scale + base typography
   Loaded AFTER style.min.css, so overrides win by source order.
   Phase 0 foundation for mobile redesign (2026-04-24)
   ============================================================ */

/* ---------- @font-face ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-VF.woff2') format('woff2-variations'),
       url('/fonts/Fraunces-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
  font-feature-settings: 'ss01', 'ss02', 'ss03';
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-VF.woff2') format('woff2-variations'),
       url('/fonts/Inter-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — editorial, warm monochrome with ink accents */
  --ink-900: #1a1a1a;          /* primary text */
  --ink-700: #3a3a3a;          /* secondary text */
  --ink-500: #6b6b6b;          /* tertiary, labels */
  --ink-300: #c9c5bf;          /* dividers, faint borders */
  --ink-200: #e5e0d8;          /* soft card bg */
  --ink-100: #f4f0e8;          /* page bg warm */
  --ink-50:  #faf8f3;          /* lightest bg */

  --canvas: #ffffff;
  --canvas-warm: #faf8f3;       /* main page background */

  --accent: #c84c1a;            /* terracotta — CTA, links */
  --accent-dark: #a53d12;
  --accent-soft: #f5e0d4;

  --sage: #8a9d7c;              /* secondary accent */
  --cobalt: #2b4b6f;            /* rare accent */

  /* Type families */
  --ff-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale — mobile-first (390px baseline) */
  --fs-xxs: 11px;    /* microlabels */
  --fs-xs:  12px;    /* eyebrow caps */
  --fs-sm:  14px;    /* small body */
  --fs-base: 16px;   /* body default */
  --fs-md:  18px;    /* lead body */
  --fs-lg:  22px;    /* H4 */
  --fs-xl:  28px;    /* H3 */
  --fs-2xl: 34px;    /* H2 */
  --fs-3xl: 48px;    /* H1 mobile */
  --fs-4xl: 64px;    /* hero mobile */
  --fs-5xl: 80px;    /* oversized editorial */

  /* Tracking (letter-spacing) */
  --tr-caps: 0.14em;          /* UPPERCASE LABELS */
  --tr-tight: -0.02em;        /* display */
  --tr-tighter: -0.035em;     /* oversized display */
  --tr-normal: 0;
  --tr-wide: 0.02em;

  /* Line height */
  --lh-tight: 1.0;             /* oversized display */
  --lh-display: 1.08;          /* H1/H2 */
  --lh-heading: 1.2;           /* H3/H4 */
  --lh-body: 1.55;             /* paragraphs */
  --lh-ui: 1.3;                /* buttons, inputs */

  /* Spacing scale (8px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Container + rhythm */
  --container: min(100% - 32px, 1280px);
  --container-narrow: min(100% - 32px, 920px);
  --gutter-mobile: 16px;
  --gutter-tablet: 24px;
  --gutter-desktop: 40px;

  /* Border radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(26,26,26,.06);
  --shadow-md: 0 4px 12px rgba(26,26,26,.08);
  --shadow-lg: 0 16px 48px rgba(26,26,26,.12);
  --shadow-editorial: 0 24px 80px rgba(26,26,26,.16);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.22, 1, .36, 1);
  --t-base: 300ms cubic-bezier(.22, 1, .36, 1);
  --t-slow: 800ms cubic-bezier(.22, 1, .36, 1);

  /* Z-index scale */
  --z-nav: 100;
  --z-dropdown: 200;
  --z-sticky: 300;
  --z-drawer: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* Wider viewports — scale up */
@media (min-width: 768px) {
  :root {
    --fs-3xl: 64px;
    --fs-4xl: 88px;
    --fs-5xl: 120px;
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-3xl: 72px;
    --fs-4xl: 104px;
    --fs-5xl: 152px;
  }
}

/* ---------- Base typography overrides ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--canvas-warm);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .ed-display {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-display);
  color: var(--ink-900);
  font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 0;
}

h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  letter-spacing: var(--tr-tighter);
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 500;
  font-variation-settings: 'opsz' 72, 'SOFT' 30, 'WONK' 0;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-heading);
}

/* ---------- Utility classes (editorial) ---------- */
.ed-eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--ink-500);
}

.ed-hero-display {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tighter);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--ink-900);
}

.ed-oversize {
  font-family: var(--ff-display);
  font-size: var(--fs-5xl);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tighter);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
}

.ed-museum-label {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  font-style: italic;
  letter-spacing: var(--tr-tight);
  font-variation-settings: 'opsz' 72, 'SOFT' 100;
}

.ed-caption {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--ink-500);
  letter-spacing: var(--tr-wide);
}

/* Section containers */
.ed-section {
  padding: var(--sp-12) var(--gutter-mobile);
}

.ed-section--flush {
  padding-left: 0;
  padding-right: 0;
}

.ed-container {
  max-width: var(--container);
  margin: 0 auto;
}

.ed-container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ed-section { padding: var(--sp-20) var(--gutter-tablet); }
}

@media (min-width: 1200px) {
  .ed-section { padding: var(--sp-24) var(--gutter-desktop); }
}

/* Horizontal scroll-rail (Bestsellers, Colors, etc.) */
.ed-rail {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--sp-2) var(--gutter-mobile) var(--sp-4);
  margin: 0 calc(-1 * var(--gutter-mobile));
}

.ed-rail::-webkit-scrollbar { display: none; }

.ed-rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.ed-rail--cards > * { width: 64vw; max-width: 280px; }
.ed-rail--swatches > * { width: 30vw; max-width: 140px; }

/* CTA button — editorial */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  min-height: 48px; /* touch target */
}

.ed-btn--primary {
  background: var(--ink-900);
  color: var(--canvas);
  border-color: var(--ink-900);
}
.ed-btn--primary:hover { background: var(--ink-700); }

.ed-btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.ed-btn--ghost:hover { background: var(--ink-900); color: var(--canvas); }

.ed-btn--accent {
  background: var(--accent);
  color: var(--canvas);
  border-color: var(--accent);
}
.ed-btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Specificity-matched overrides ----------
   Existing rules like `.hero h1` (0,1,1) beat generic `h1` (0,0,1).
   Below matches the actual selectors used in style.min.css —
   same specificity, loaded later → wins via source order. */

.hero h1,
.hero-text h1,
.sec-head h1,
.sec-head h2,
.sec-head h3,
.sec h2,
.sec h3,
.frames-sec h2,
.reviews-sec h2,
.mood-sec h2,
.gift-card-sec h2,
.nl-sec h2,
.faq-sec h2,
.gw-sec h2,
.seo-block h2,
.hot-card-body h3,
.p-card h3,
.product-card h3,
.rooms-card h3,
.mood-card h3,
.review-card h3,
.review-card h4,
.faq-q {
  font-family: var(--ff-display);
  font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 0;
  letter-spacing: var(--tr-tight);
}

.hero h1,
.hero-text h1 {
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  letter-spacing: var(--tr-tighter);
  font-weight: 500;
}

/* Body copy: Inter wins over inherited Plus Jakarta Sans */
body,
body p,
body li,
body a,
body input,
body textarea,
body select,
body button {
  font-family: var(--ff-body);
}

/* Small UI labels keep Inter with tabular numerals for prices */
.price,
.hot-price,
.product-price,
[data-price],
.p-card-price,
.product-card-price {
  font-family: var(--ff-body);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ============================================================
   HERO SECTION — Phase 1 editorial refresh
   ============================================================ */
.hero {
  background: var(--canvas-warm);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
  display: flex;
  flex-direction: column;
}

/* Mobile: full-bleed photo bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(250,248,243,0) 0%, rgba(250,248,243,0.1) 40%, rgba(26,26,26,0.5) 85%, rgba(26,26,26,0.75) 100%),
    url('/img/rooms-homepage/living-room.webp');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-text {
  max-width: 560px;
  padding: 28px var(--gutter-mobile) 40px;
  margin-top: auto;
  color: var(--canvas);
}

.hero-pill {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--canvas);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--sp-5);
  line-height: 1;
}

.hero h1,
.hero-text h1 {
  font-family: var(--ff-display) !important;
  font-size: clamp(44px, 12.5vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--canvas);
  margin: 0 0 var(--sp-5) 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero h1 br + .hero-accent-line,
.hero-accent-line {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  color: #ffb896;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.hero-sub {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: rgba(255,255,255,.9);
  line-height: 1.5;
  margin: 0 0 var(--sp-6) 0;
  max-width: 420px;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.hero-price {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.72);
  letter-spacing: 0.01em;
  margin: var(--sp-4) 0 var(--sp-5) 0;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.2);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.hero-price strong {
  color: var(--canvas);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-2);
}

/* CTA overrides — editorial pill on photo bg */
.hero .btn--brand,
.hero .btn.btn--brand {
  background: var(--canvas);
  color: var(--ink-900);
  border: 1px solid var(--canvas);
  border-radius: var(--r-pill);
  padding: 16px 28px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: background var(--t-fast), transform var(--t-fast);
}

.hero .btn--brand:hover,
.hero .btn.btn--brand:hover {
  background: var(--ink-50);
  transform: translateY(-1px);
}

.hero .btn--glass,
.hero .btn.btn--glass {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(255,255,255,.5);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  padding: 15px 24px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border-radius: var(--r-pill);
}

.hero .btn--glass:hover,
.hero .btn.btn--glass:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--canvas);
}

/* ---------- Hero mosaic — hidden on mobile (photo bg instead) ---------- */
.hero-mosaic {
  display: none;
}

@media (min-width: 768px) {
  .hero-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
  }
}

.hero-mosaic-legacy-displayed {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.mosaic-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mosaic-col--2 { transform: translateY(20px); }

.mosaic-item {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink-100);
  transition: transform var(--t-base);
}

.mosaic-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t-slow);
}

.mosaic-item:hover {
  transform: translateY(-2px);
}

.mosaic-item:hover img {
  transform: scale(1.03);
}

/* Tablet + — revert to split layout without bg photo */
@media (min-width: 768px) {
  .hero {
    padding: var(--sp-12) var(--gutter-tablet) var(--sp-16);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
    min-height: 72vh;
    background: var(--canvas-warm);
  }
  .hero::before { display: none; }
  .hero-text {
    padding: 0;
    margin-top: 0;
    color: var(--ink-900);
  }
  .hero-pill {
    color: var(--ink-700);
    background: rgba(255,255,255,.5);
    border-color: var(--ink-300);
  }
  .hero h1, .hero-text h1 {
    color: var(--ink-900);
    text-shadow: none;
  }
  .hero-accent-line {
    color: var(--accent);
    text-shadow: none;
  }
  .hero-sub {
    color: var(--ink-700);
    text-shadow: none;
  }
  .hero-price {
    color: var(--ink-500);
    border-top-color: var(--ink-300);
    text-shadow: none;
  }
  .hero-price strong { color: var(--ink-900); }
  .hero .btn--brand, .hero .btn.btn--brand {
    background: var(--ink-900);
    color: var(--canvas);
    border-color: var(--ink-900);
    box-shadow: none;
  }
  .hero .btn--glass, .hero .btn.btn--glass {
    color: var(--ink-900);
    border-color: var(--ink-300);
    background: transparent;
  }
  .hero-mosaic { margin-top: 0; gap: var(--sp-3); }
  .mosaic-col--2 { transform: translateY(40px); }
  .hero-actions { margin-bottom: 0; }
  .hero-price { margin: var(--sp-6) 0 var(--sp-6) 0; padding-top: var(--sp-6); }
}

@media (min-width: 1200px) {
  .hero {
    padding: var(--sp-20) var(--gutter-desktop) var(--sp-24);
    gap: var(--sp-16);
  }
  .hero-mosaic { gap: var(--sp-4); }
  .mosaic-col--2 { transform: translateY(64px); }
}

/* ============================================================
   SHOP BY COLOUR / COLLECTIONS — Phase 2
   ============================================================ */
.ed-collections {
  background: var(--canvas);
  padding: var(--sp-12) 0 var(--sp-16);
}

.ed-collections .sec-head {
  padding: 0 var(--gutter-mobile);
  margin-bottom: var(--sp-8);
  max-width: 640px;
}

.ed-collections .sec-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.ed-collections h2,
.ed-collections .sec-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0 0 var(--sp-3) 0;
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
}

.ed-collections .sec-sub {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}

.ed-swatch-rail {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--sp-4) var(--gutter-mobile) var(--sp-6);
  margin: 0;
}
.ed-swatch-rail::-webkit-scrollbar { display: none; }

.ed-swatch {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 136px;
  text-decoration: none;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  transition: transform var(--t-base);
}

.ed-swatch:hover {
  transform: translateY(-4px);
}

.ed-swatch-dot {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--c1), var(--c2), var(--c1));
  box-shadow:
    inset 0 -12px 28px rgba(0,0,0,.18),
    inset 0 12px 24px rgba(255,255,255,.12),
    0 8px 22px rgba(26,26,26,.12);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.ed-swatch-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse 60% 40% at 35% 30%, rgba(255,255,255,.25), transparent 60%);
  pointer-events: none;
}

.ed-swatch:hover .ed-swatch-dot {
  transform: scale(1.04);
  box-shadow:
    inset 0 -12px 28px rgba(0,0,0,.18),
    inset 0 12px 24px rgba(255,255,255,.12),
    0 14px 32px rgba(26,26,26,.18);
}

.ed-swatch-label {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--ink-700);
  max-width: 140px;
}

.ed-swatch-label em {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--ink-900);
  margin-bottom: 2px;
  font-variation-settings: 'opsz' 36, 'SOFT' 100, 'WONK' 0;
}

.ed-coll-all {
  display: block;
  text-align: center;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  margin-top: var(--sp-4);
  padding: 0 var(--gutter-mobile);
  transition: color var(--t-fast), text-underline-offset var(--t-fast);
}

.ed-coll-all:hover {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* Tablet+ */
@media (min-width: 768px) {
  .ed-collections { padding: var(--sp-20) 0 var(--sp-24); }
  .ed-collections .sec-head { padding: 0 var(--gutter-tablet); margin-bottom: var(--sp-10); }
  .ed-swatch-rail { padding: var(--sp-6) var(--gutter-tablet) var(--sp-8); gap: var(--sp-6); }
  .ed-swatch { width: 160px; }
  .ed-swatch-dot { width: 128px; height: 128px; }
  .ed-coll-all { padding: 0 var(--gutter-tablet); }
}

@media (min-width: 1200px) {
  .ed-collections .sec-head { padding: 0 var(--gutter-desktop); }
  .ed-swatch-rail { padding: var(--sp-8) var(--gutter-desktop); gap: var(--sp-8); justify-content: center; }
  .ed-coll-all { padding: 0 var(--gutter-desktop); }
}

/* ============================================================
   BESTSELLERS — convert product-masonry to horizontal rail on mobile
   ============================================================ */
@media (max-width: 767px) {
  .sec--flush .product-masonry,
  .product-masonry {
    display: flex !important;
    flex-direction: row;
    gap: var(--sp-3);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--sp-2) var(--gutter-mobile) var(--sp-4);
    margin: 0 calc(-1 * var(--gutter-mobile));
  }
  .sec--flush .product-masonry::-webkit-scrollbar,
  .product-masonry::-webkit-scrollbar { display: none; }

  .sec--flush .product-masonry .p-card,
  .product-masonry .p-card {
    flex: 0 0 62vw;
    max-width: 260px;
    scroll-snap-align: start;
    margin: 0;
  }
}

/* Polish product cards editorial-style (all breakpoints) */
.p-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--canvas);
  transition: transform var(--t-base);
}

.p-card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink-100);
  aspect-ratio: 5/7;
}

.p-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.p-card:hover .p-card-img img {
  transform: scale(1.04);
}

.p-card-meta {
  padding: var(--sp-3) 0 0;
}

.p-card-meta h3,
.p-card h3 {
  font-family: var(--ff-display) !important;
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-900);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 48, 'SOFT' 100, 'WONK' 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  min-height: calc(1.2em * 2);
}

.p-price {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.p-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  font-family: var(--ff-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--canvas);
  line-height: 1;
  background: var(--ink-900);
}

.p-badge--hot { background: var(--accent); }
.p-badge--sale { background: var(--ink-900); }
.p-badge--new { background: var(--sage); }

/* ============================================================
   ROOMS SECTION — Phase 3 editorial refresh (light bg)
   ============================================================ */
.sec--dark {
  background: var(--canvas-warm) !important;
  color: var(--ink-900) !important;
}

.sec--dark .sec-head--light .sec-label,
.sec--dark .sec-head .sec-label {
  color: var(--accent);
}

.sec--dark .sec-head--light h2,
.sec--dark h2 {
  color: var(--ink-900);
}

#rooms {
  padding: var(--sp-12) 0 var(--sp-16);
}

#rooms .sec-head {
  padding: 0 var(--gutter-mobile);
  margin-bottom: var(--sp-8);
  max-width: 640px;
}

#rooms h2,
#rooms .sec-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-3) 0;
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
}

.room-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  padding: 0 var(--gutter-mobile);
}

.bento-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink-100);
  aspect-ratio: 4/5;
  text-decoration: none;
  color: var(--canvas);
  isolation: isolate;
}

.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  z-index: 0;
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-label {
  position: absolute;
  left: var(--sp-5);
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  color: var(--canvas);
  pointer-events: none;
}

.bento-label::before {
  content: attr(data-eyebrow);
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 2px;
}

/* The main label = text content of .bento-label */
.bento-label {
  font-family: var(--ff-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 1;
}

.bento-item--wide {
  /* tablet+ will override */
}

/* Tablet 2-col, desktop 3-col */
@media (min-width: 640px) {
  .room-bento {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }
  .bento-item { aspect-ratio: 4/5; }
  .bento-item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
  }
}

@media (min-width: 1024px) {
  .room-bento {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--sp-4);
  }
  .bento-item { aspect-ratio: auto; }
  .bento-item--wide {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

/* ============================================================
   EDITORIAL MAGAZINE TILE — Phase 3 new section
   ============================================================ */
.ed-magazine {
  background: var(--canvas);
  padding: var(--sp-12) 0 var(--sp-12);
  position: relative;
}

.ed-magazine-tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--canvas);
  overflow: hidden;
  aspect-ratio: 4/5;
  isolation: isolate;
}

.ed-magazine-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--t-slow);
}

.ed-magazine-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.65) 100%),
    linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.ed-magazine-tile:hover img { transform: scale(1.04); }

.ed-magazine-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: var(--sp-6) var(--gutter-mobile);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ed-magazine-issue {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.ed-magazine-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 11vw, 80px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--canvas);
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  max-width: 10ch;
}

.ed-magazine-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}

.ed-magazine-copy {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.9);
  line-height: 1.45;
  max-width: 26ch;
}

.ed-magazine-cta {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--canvas);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 3px;
}

@media (min-width: 768px) {
  .ed-magazine { padding: var(--sp-20) 0; }
  .ed-magazine-tile { aspect-ratio: 16/9; }
  .ed-magazine-content { padding: var(--sp-12) var(--gutter-tablet); }
  .ed-magazine-title { max-width: 14ch; }
}

@media (min-width: 1200px) {
  .ed-magazine-content { padding: var(--sp-16) var(--gutter-desktop); }
}

/* ============================================================
   PRICE TIERS — Phase 4 (Artfinder-unique pattern)
   ============================================================ */
.ed-price-tiers {
  background: var(--canvas-warm);
  padding: var(--sp-12) 0 var(--sp-16);
}

.ed-price-tiers .sec-head {
  padding: 0 var(--gutter-mobile);
  margin-bottom: var(--sp-8);
  max-width: 640px;
}

.ed-price-tiers .sec-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.ed-price-tiers h2,
.ed-price-tiers .sec-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-3) 0;
  color: var(--ink-900);
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
}

.ed-price-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding: 0 var(--gutter-mobile);
}

.ed-price-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  background: var(--ink-100);
  padding: var(--sp-4);
  color: var(--ink-900);
  isolation: isolate;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 1px solid var(--ink-200);
}

.ed-price-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ed-price-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}

.ed-price-tile:nth-child(1) .ed-price-bg {
  background: linear-gradient(135deg, #F4EFE6 0%, #E8DECA 60%, #D8C7A8 100%);
}
.ed-price-tile:nth-child(2) .ed-price-bg {
  background: linear-gradient(135deg, #E8C9A8 0%, #C28464 50%, #8B4D2B 100%);
}
.ed-price-tile:nth-child(3) .ed-price-bg {
  background: linear-gradient(135deg, #4F5F3E 0%, #2B4B6F 100%);
}
.ed-price-tile:nth-child(4) .ed-price-bg {
  background: linear-gradient(135deg, #2A2A2A 0%, #1a1a1a 100%);
}

.ed-price-tile:nth-child(n+3) { color: var(--canvas); }
.ed-price-tile:nth-child(n+3) .ed-price-label { color: var(--canvas); }
.ed-price-tile:nth-child(n+3) .ed-price-meta { color: rgba(255,255,255,.75); }

.ed-price-tile > :not(.ed-price-bg) { position: relative; z-index: 1; }
.ed-price-tile > .ed-price-bg { position: absolute; }

.ed-price-range {
  font-family: var(--ff-display);
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-3);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 0;
  font-variant-numeric: tabular-nums;
}

.ed-price-label {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.ed-price-meta {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
  color: var(--ink-500);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .ed-price-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    padding: 0 var(--gutter-tablet);
  }
  .ed-price-tile { aspect-ratio: 3/4; }
  .ed-price-tiers .sec-head { padding: 0 var(--gutter-tablet); }
}

@media (min-width: 1200px) {
  .ed-price-rail { padding: 0 var(--gutter-desktop); gap: var(--sp-6); }
  .ed-price-tiers .sec-head { padding: 0 var(--gutter-desktop); margin-bottom: var(--sp-10); }
  .ed-price-tile { padding: var(--sp-6); }
}

/* ============================================================
   FAQ section — editorial refresh
   ============================================================ */
.faq-sec {
  background: var(--canvas);
  padding: var(--sp-12) var(--gutter-mobile);
}

.faq-header {
  margin-bottom: var(--sp-8);
  max-width: 640px;
}

.faq-sec h2,
#faq-h {
  font-family: var(--ff-display) !important;
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0 0 var(--sp-3) 0;
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
}

.faq-sub {
  font-family: var(--ff-body);
  color: var(--ink-500);
  font-size: var(--fs-sm);
  margin: 0;
}

.faq-sub a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  border-top: 1px solid var(--ink-300);
}

.faq-item {
  border-bottom: 1px solid var(--ink-300);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.faq-item summary::-webkit-details-marker { display: none; }

.fq-q {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 48, 'SOFT' 100, 'WONK' 0;
}

.fq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-700);
  transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}

.faq-item[open] .fq-icon {
  transform: rotate(45deg);
  background: var(--ink-900);
  color: var(--canvas);
  border-color: var(--ink-900);
}

.fq-body {
  padding: 0 0 var(--sp-5);
  font-family: var(--ff-body);
  color: var(--ink-700);
  line-height: 1.6;
  font-size: var(--fs-base);
  max-width: 60ch;
}

/* ============================================================
   SEO BLOCK — collapsible editorial tail
   ============================================================ */
.seo-block {
  background: var(--canvas-warm);
  padding: var(--sp-12) var(--gutter-mobile);
  border-top: 1px solid var(--ink-200);
}

.seo-block h2,
#seo-h {
  font-family: var(--ff-display) !important;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-900);
  margin: 0 0 var(--sp-5) 0;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 0;
}

.seo-block p {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--ink-700);
  line-height: 1.65;
  margin: 0 0 var(--sp-4);
}

.seo-block strong { color: var(--ink-900); font-weight: 600; }

.seo-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-nav {
  margin-top: var(--sp-8);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
}

.seo-nav h3 {
  font-family: var(--ff-body) !important;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 var(--sp-3);
}

.seo-nav a {
  display: inline-block;
  margin-right: var(--sp-4);
  margin-bottom: var(--sp-2);
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-300);
  padding-bottom: 1px;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.seo-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   JOURNAL / BLOG ROW — Phase 5
   ============================================================ */
.ed-journal {
  background: var(--canvas);
  padding: var(--sp-12) 0 var(--sp-16);
}

.ed-journal .sec-head {
  padding: 0 var(--gutter-mobile);
  margin-bottom: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.ed-journal .sec-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.ed-journal h2,
.ed-journal .sec-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink-900);
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
}

.ed-journal-all {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.ed-journal-all:hover { color: var(--accent); }

.ed-journal-rail {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--sp-2) var(--gutter-mobile) var(--sp-4);
  margin: 0;
}
.ed-journal-rail::-webkit-scrollbar { display: none; }

.ed-journal-card {
  flex: 0 0 72vw;
  max-width: 320px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--t-base);
}

.ed-journal-card:hover { transform: translateY(-3px); }

.ed-journal-card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink-100);
  aspect-ratio: 4/5;
}

.ed-journal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.ed-journal-card:hover .ed-journal-card-img img { transform: scale(1.04); }

.ed-journal-card-eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--sp-1);
}

.ed-journal-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
  font-variation-settings: 'opsz' 48, 'SOFT' 100, 'WONK' 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-journal-card-excerpt {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ed-journal { padding: var(--sp-20) 0 var(--sp-24); }
  .ed-journal .sec-head { padding: 0 var(--gutter-tablet); }
  .ed-journal-rail { padding: var(--sp-4) var(--gutter-tablet) var(--sp-6); gap: var(--sp-6); }
  .ed-journal-card { flex: 0 0 40vw; max-width: 360px; }
}

@media (min-width: 1200px) {
  .ed-journal .sec-head { padding: 0 var(--gutter-desktop); }
  .ed-journal-rail { padding: var(--sp-6) var(--gutter-desktop); gap: var(--sp-6); }
}

/* ============================================================
   FLOATING RATING WIDGET — Phase 5 (Poster Store pattern)
   ============================================================ */
.ed-rating-widget {
  position: fixed;
  bottom: 80px; /* above mobile bottom-nav */
  right: var(--sp-4);
  z-index: var(--z-sticky);
  background: var(--canvas);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink-900);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.22, 1, .36, 1), opacity 0.3s;
  max-width: calc(100vw - 2 * var(--sp-4));
  font-family: var(--ff-body);
}

.ed-rating-widget.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.ed-rating-widget:hover {
  box-shadow: var(--shadow-editorial);
}

.ed-rating-stars {
  display: inline-flex;
  gap: 1px;
  color: #f5a623;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.ed-rating-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.ed-rating-score {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.ed-rating-count {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
}

.ed-rating-close {
  background: transparent;
  border: none;
  padding: 0;
  margin-left: var(--sp-2);
  color: var(--ink-500);
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  transition: color var(--t-fast), background var(--t-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ed-rating-close:hover {
  color: var(--ink-900);
  background: var(--ink-100);
}

@media (min-width: 768px) {
  .ed-rating-widget {
    bottom: var(--sp-6);
    right: var(--sp-6);
  }
}

/* ============================================================
   NEWSLETTER SECTION — editorial refresh + result UI (Phase 6)
   ============================================================ */
.nl-sec {
  background: var(--ink-900);
  color: var(--canvas);
  padding: var(--sp-16) var(--gutter-mobile);
  position: relative;
  overflow: hidden;
}

.nl-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(200, 76, 26, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(200, 76, 26, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.nl-sec > * { position: relative; z-index: 1; }

.nl-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.nl-sec h2 {
  font-family: var(--ff-display) !important;
  font-size: clamp(36px, 10vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--canvas);
  margin: 0 0 var(--sp-4) 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
}

.nl-highlight {
  font-family: var(--ff-display) !important;
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.nl-sec p {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  color: rgba(255,255,255,.72);
  margin: 0 0 var(--sp-8) 0;
  line-height: 1.5;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 400px;
  margin: 0 auto;
}

.nl-form input[type="email"] {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  padding: 16px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill);
  color: var(--canvas);
  transition: border-color var(--t-fast), background var(--t-fast);
  text-align: center;
  min-height: 48px;
}

.nl-form input[type="email"]::placeholder {
  color: rgba(255,255,255,.4);
}

.nl-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
}

.nl-form input[type="email"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nl-form button {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--canvas);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  min-height: 48px;
}

.nl-form button:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nl-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nl-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.newsletter-result {
  max-width: 400px;
  margin: var(--sp-6) auto 0;
}

.newsletter-success {
  padding: var(--sp-6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  text-align: center;
}

.ns-title {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--canvas);
  margin-bottom: var(--sp-2);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
}

.ns-sub {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.72);
  margin-bottom: var(--sp-4);
}

.ns-code {
  display: block;
  width: 100%;
  background: var(--canvas);
  color: var(--ink-900);
  border: none;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-3);
  cursor: pointer;
  margin-bottom: var(--sp-4);
  transition: background var(--t-fast);
}

.ns-code:hover { background: var(--ink-50); }

.ns-code-val {
  display: block;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-900);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.ns-code-hint {
  display: block;
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--ink-500);
}

.ns-cta {
  display: inline-block;
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.ns-cta:hover { color: var(--canvas); }

.newsletter-error {
  padding: var(--sp-4);
  background: rgba(200,76,26,.15);
  border: 1px solid rgba(200,76,26,.4);
  border-radius: var(--r-md);
  color: #ffb896;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  text-align: center;
}

@media (min-width: 640px) {
  .nl-form {
    flex-direction: row;
    max-width: 480px;
  }
  .nl-form input[type="email"] { flex: 1; text-align: left; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mosaic-item:hover,
  .mosaic-item:hover img { transform: none; }
}


/* ============================================================
   MOBILE DRAWER — Phase 8 (additions to existing nav.min.css)
   ============================================================ */
.unav-mobile-drawer {
  background: var(--canvas-warm) !important;
  padding-top: 80px !important;
  font-family: var(--ff-body);
}

.unav-mobile-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-900);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unav-mobile-menu {
  padding: 0 var(--sp-6) !important;
}

.unav-mobile-menu-item {
  border-bottom: 1px solid var(--ink-300) !important;
}

.unav-mobile-menu-link {
  font-family: var(--ff-body);
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  letter-spacing: var(--tr-caps) !important;
  text-transform: uppercase !important;
  color: var(--ink-900) !important;
  padding: 18px 0 !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.unav-mobile-menu-link[data-mobile-accordion-trigger]::after {
  content: '+';
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-500);
  transition: transform var(--t-fast);
}

.unav-mobile-menu-item[data-open="1"] .unav-mobile-menu-link[data-mobile-accordion-trigger]::after {
  content: '−';
  color: var(--accent);
}

.unav-mobile-menu-item.unav-sale .unav-mobile-menu-link {
  color: var(--accent) !important;
}

.unav-mobile-accordion {
  padding: 0 0 var(--sp-4) var(--sp-4) !important;
  border-left: 2px solid var(--ink-300) !important;
  margin-left: 0 !important;
}

.unav-mobile-accordion-link {
  font-family: var(--ff-body);
  font-size: var(--fs-sm) !important;
  color: var(--ink-700) !important;
  padding: 6px 0 !important;
  letter-spacing: 0;
  text-transform: none;
}

.unav-mobile-footer {
  margin-top: auto;
  padding: var(--sp-6);
  border-top: 1px solid var(--ink-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.unav-mobile-phone,
.unav-mobile-email {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--ink-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.unav-mobile-phone {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--ink-900);
  font-variation-settings: 'opsz' 48, 'SOFT' 100;
}

/* ============================================================
   v13 fixes — hero spacing / rating-widget mobile / drawer z-index
   ============================================================ */

/* Bug 2: hide floating rating widget on mobile — overlaps "Ваш вайб" and room photos.
   Static stats row already has "4.9 средняя оценка / 10 000+ покупателей" — no info lost. */
@media (max-width: 768px) {
  .ed-rating-widget { display: none !important; }
}

/* Bug 3: mobile drawer (z:998) was below .unav-main (z:1000) so logo/cart/hamburger
   showed through on top of the drawer. Lift the drawer above everything. */
.unav-mobile-drawer { z-index: 1100 !important; }
.unav-mobile-drawer-backdrop, .unav-mobile-backdrop { z-index: 1095 !important; }
.unav-mobile-drawer .unav-mobile-drawer-close { z-index: 3; }
