/* ==========================================================================
   MOHXNIITY OFFICIAL FLAGSHIP (Official Flagship) — ARCHITECTURAL GALLERY DESIGN SYSTEM
   Designed & Built From Scratch for SEO, GEO (AI Search) & Amazon FBA Conversion
   ========================================================================== */

:root {
  --bg-canvas: #F7F4EE;
  --bg-elevated: #FFFFFF;
  --bg-parchment: #EFEAE1;
  --bg-obsidian: #161514;
  --bg-forest: #1E352B;
  --ink-primary: #181615;
  --ink-secondary: #57524B;
  --ink-muted: #857E75;
  --border-subtle: #E2DBD0;
  --border-strong: #C9BFB0;
  --accent-terracotta: #B85D3B;
  --accent-terracotta-dark: #964628;
  --accent-forest: #264638;
  --accent-gold: #B68D40;
  --amazon-orange: #FF9900;
  --amazon-amber: #F7CA00;
  --amazon-dark: #131921;
  --amazon-blue: #007185;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 30px rgba(24, 22, 21, 0.06);
  --shadow-card: 0 14px 40px rgba(24, 22, 21, 0.09);
  --shadow-frame: 0 18px 36px rgba(15, 14, 13, 0.22);
  --font-serif: "Cormorant Garamond", "Playfair Display", "Iowan Old Style", "Georgia", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max-w: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--bg-obsidian);
  color: #F5F1E9;
  font-size: 0.79rem;
  padding: 0.48rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.announcement-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.announcement-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.announcement-text {
  color: #E6E0D5;
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.prime-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 153, 0, 0.16);
  color: #FFB84D;
  border: 1px solid rgba(255, 153, 0, 0.35);
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.announcement-link {
  color: #FFB84D;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--ink-primary);
}

.brand-subword {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  color: var(--ink-muted);
  margin-top: 0.22rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 1.6vw, 1.65rem);
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-terracotta);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-amazon {
  background: linear-gradient(180deg, #FFB340 0%, #FF9900 100%);
  color: #111111;
  border-color: #E47911;
  box-shadow: 0 2px 6px rgba(228, 121, 17, 0.25);
}

.btn-amazon:hover {
  background: linear-gradient(180deg, #FFA724 0%, #F08804 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(228, 121, 17, 0.32);
}

.btn-primary {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.btn-primary:hover {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-parchment);
  border-color: var(--ink-primary);
}

.btn-sm {
  padding: 0.52rem 0.95rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 85% 20%, rgba(184, 93, 59, 0.08), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(38, 70, 56, 0.07), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--ink-secondary);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.1;
}

.metric-item span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.hero-showcase {
  position: relative;
  background: var(--bg-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.hero-showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-floating-card {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-parchment);
  border-radius: var(--radius-sm);
}

/* GEO Direct Answer Capsule (Optimized for AI Search Citation) */
.geo-capsule {
  background: linear-gradient(135deg, #FBF9F5 0%, #EFEAE1 100%);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent-forest);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}

.geo-capsule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-forest);
}

.geo-capsule p {
  font-size: 0.95rem;
  color: var(--ink-primary);
  line-height: 1.6;
}

/* Section Headers */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background: var(--bg-parchment);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-primary);
}

.section-desc {
  color: var(--ink-secondary);
  max-width: 62ch;
  margin-top: 0.45rem;
}

/* Filter Bar */
.filter-toolbar {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 240px;
  max-width: 340px;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-size: 0.88rem;
  font-family: inherit;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #F0ECE3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 2;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
}

.badge-dark {
  background: rgba(24, 22, 21, 0.88);
  color: #FFFFFF;
}

.badge-terracotta {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.badge-forest {
  background: var(--accent-forest);
  color: #FFFFFF;
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  color: var(--ink-primary);
}

.card-summary {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.palette-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
}

.variant-selector-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  margin-bottom: 1rem;
}

.variant-Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.variant-Row + .variant-Row {
  border-top: 1px dashed var(--border-subtle);
}

.asin-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--bg-parchment);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--ink-secondary);
}

.price-tag {
  font-weight: 700;
  color: var(--ink-primary);
  font-size: 0.95rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0.6rem;
}

/* Interactive Wall Scale & Sofa Proportion Simulator (Photorealistic Studio Edition) */
.simulator-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 390px 1fr;
  align-items: start;
}

.simulator-controls {
  padding: 1.75rem;
  background: var(--bg-canvas);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.control-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin-bottom: 0.4rem;
}

.control-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink-primary);
}

.wall-color-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.wall-swatch-btn {
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--ink-primary);
  transition: all 0.18s ease;
}

.wall-swatch-btn.active {
  border-color: var(--accent-terracotta);
  background: #FFF9F5;
  color: var(--accent-terracotta-dark);
}

.simulator-stage-container {
  display: flex;
  flex-direction: column;
  background: #181615;
}

.sim-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #181615;
  color: #F5F1E9;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.sim-mode-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sim-mode-tab {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: #D6D0C4;
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  transition: all 0.18s ease;
}

.sim-mode-tab:hover, .sim-mode-tab.active {
  background: var(--amazon-orange);
  color: #111111;
  border-color: var(--amazon-orange);
}

.simulator-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #E8E2D8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sim-room-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Wall tint overlay for subtle room ambiance adjustment without losing real photo texture */
.sim-wall-tint-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: background-color 0.35s ease, opacity 0.35s ease;
  z-index: 1;
}

.sim-dimension-banner {
  margin-top: 0.9rem;
  background: rgba(20, 18, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 6;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

/* Wall mounting zone positioned accurately above the real sofa in the background photo */
.sim-wall-mount-zone {
  position: absolute;
  top: 10%;
  left: 50.15%;
  transform: translateX(-50%);
  transition: left 0.3s ease, top 0.3s ease;
  height: 38%;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.sim-ruler-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E1C1A;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.sim-ruler-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(24, 22, 21, 0.65);
  border-left: 2px solid rgba(24, 22, 21, 0.85);
  border-right: 2px solid rgba(24, 22, 21, 0.85);
  padding: 0 8px 2px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.sim-triptych-frame-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: gap 0.3s ease;
}

/* Photorealistic 3D Canvas & Frame Rendering */
.sim-panel {
  position: relative;
  width: 148px;
  height: 222px;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease, box-shadow 0.25s ease, border 0.25s ease;
  background: #FAF8F5;
}

/* Subtle tactile woven canvas surface overlay + 3D edge bevel highlight */
.sim-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0.08) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 2px);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.48),
    inset -2px -2px 3px rgba(18, 15, 12, 0.28);
}

/* 1. Black Wood-Grain Floater Frame (Recessed Shadow Slot + Matte Black Outer Molding) */
.sim-panel.craft-floater {
  border: 3px solid #1C1B1A;
  padding: 1.5px;
  background: #121213;
  box-shadow:
    0 2px 4px rgba(20, 16, 12, 0.38),
    4px 10px 22px rgba(25, 18, 12, 0.30),
    10px 20px 34px rgba(25, 18, 12, 0.16),
    inset 0 0 3px rgba(0, 0, 0, 0.85);
}

/* 2. Stretched Solid Wood Inner Frame (3D Gallery-Wrapped Side Depth + Realistic Wall Contact Shadow) */
.sim-panel.craft-stretched {
  border: none;
  padding: 0;
  border-right: 3px solid rgba(35, 30, 25, 0.55);
  border-bottom: 3px solid rgba(28, 24, 20, 0.65);
  box-shadow:
    0 2px 4px rgba(25, 18, 12, 0.34),
    5px 11px 20px rgba(25, 18, 12, 0.26),
    12px 22px 36px rgba(25, 18, 12, 0.14);
}

/* 3. Unframed Canvas Print Set (Flush Fine-Art Print Mounting) */
.sim-panel.craft-unframed {
  border: 1px solid rgba(40, 35, 30, 0.18);
  padding: 0;
  box-shadow:
    0 1px 3px rgba(25, 18, 12, 0.22),
    2px 5px 12px rgba(25, 18, 12, 0.14);
}

.sim-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.02);
}

/* Furniture Reference Width Indicator Bracket Locked to Exact Furniture Edges in Each Photo */
.sim-sofa-reference-bar {
  position: absolute;
  bottom: 11.5%;
  left: 2.3%;
  width: 95.7%;
  transform: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: left 0.3s ease, width 0.3s ease, bottom 0.3s ease;
}

.sim-sofa-bracket {
  width: 100%;
  height: 12px;
  border-bottom: 2.5px dashed rgba(255, 255, 255, 0.92);
  border-left: 3px solid #FFB84D;
  border-right: 3px solid #FFB84D;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sim-sofa-pill {
  margin-top: 6px;
  background: rgba(20, 18, 16, 0.84);
  backdrop-filter: blur(6px);
  color: #F5F1E9;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 184, 77, 0.45);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Full Scene Photo Viewer Mode (when user switches to Official Scene / Size Guide tabs) */
.sim-static-photo-view {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #141312;
  display: none;
  align-items: center;
  justify-content: center;
}

.sim-static-photo-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Comparison Table — Zero-Scroll Desktop + Sticky Right Buy Column on Narrow Screens */
.table-card-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.table-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1.15rem;
  background: var(--bg-parchment);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.table-meta-count {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.table-meta-count strong {
  color: var(--ink-primary);
  font-size: 0.85rem;
}

.table-scroll-controls {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.table-scroll-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-terracotta-dark);
  background: #FFF7F2;
  border: 1px solid rgba(184, 93, 59, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.table-scroll-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.table-scroll-btn:hover {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.table-card-shell .table-responsive {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Always show a clear custom horizontal scrollbar when a table overflows horizontally */
.table-responsive::-webkit-scrollbar {
  height: 9px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #ECE6DC;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #B5AA99;
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #8C8170;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  text-align: left;
}

.spec-table th {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.79rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 0.85rem;
  white-space: nowrap;
}

.spec-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  background: var(--bg-elevated);
}

.spec-table tr:hover td {
  background: #FBF8F3;
}

.table-series-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  line-height: 1.3;
}

.table-series-link:hover {
  color: var(--accent-terracotta);
}

.table-room-sub,
.table-dim-sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 0.18rem;
  line-height: 1.3;
}

.table-sku-sub {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
  word-break: break-all;
}

.asin-code-link {
  text-decoration: none;
  border: 1px solid var(--border-strong);
  font-weight: 700;
  color: var(--ink-primary);
}

.asin-code-link:hover {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.table-craft-badge {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-secondary);
}

/* Sticky Right Column: Price + Buy on Amazon Button Always Visible Without Scrolling */
.spec-table th.sticky-action-col {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #23201E;
  box-shadow: -6px 0 12px rgba(0, 0, 0, 0.18);
  text-align: right;
}

.spec-table td.sticky-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #FFFDF9;
  box-shadow: -6px 0 14px rgba(24, 22, 21, 0.07);
  border-left: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.spec-table tr:hover td.sticky-action-col {
  background: #FFF8EE;
}

.table-action-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.table-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.table-buy-btn {
  white-space: nowrap;
  padding: 0.48rem 0.85rem;
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .table-scroll-controls {
    display: flex;
  }
}

@media (max-width: 640px) {
  .table-action-inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
  .table-price {
    font-size: 0.88rem;
  }
  .table-buy-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.74rem;
  }
}

/* Product Detail Page (PDP) */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 5.5rem;
}

.pdp-main-image-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.pdp-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.pdp-thumb-btn {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--bg-elevated);
  padding: 0;
}

.pdp-thumb-btn.active, .pdp-thumb-btn:hover {
  border-color: var(--accent-terracotta);
}

.pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-variant-card {
  border: 2px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pdp-variant-card.active, .pdp-variant-card:hover {
  border-color: var(--accent-terracotta);
  background: #FFFDF9;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  background: var(--bg-obsidian);
  color: #D6D0C4;
  padding: 4rem 0 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #FFB84D;
}

/* Prevent Grid Children from Causing Horizontal Viewport Overflow */
.hero-grid > *,
.pdp-grid > *,
.simulator-wrap > *,
.footer-grid > *,
.product-grid > * {
  min-width: 0;
}

/* Responsive — Switch Header to 2-Row Layout Below 1140px So Nav Never Collides With Logo or CTA Button */
@media (max-width: 1140px) {
  .hide-compact {
    display: none;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "nav nav";
    gap: 0.65rem 0.75rem;
    padding: 0.75rem 1.25rem;
  }
  .brand-logo {
    grid-area: logo;
  }
  .header-actions {
    grid-area: actions;
  }
  .main-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.45rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.38rem 0.4rem;
    border-radius: 999px;
    background: var(--bg-parchment);
    border: 1px solid var(--border-subtle);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-link.active {
    background: var(--ink-primary);
    color: #FFFFFF;
    border-color: var(--ink-primary);
  }
  .nav-link.active::after {
    display: none;
  }
}

/* Responsive — Tablet & Narrow Windows (<= 980px): 3x2 Symmetrical Navigation Grid (All 6 Links 100% Visible) */
@media (max-width: 980px) {
  .announcement-bar {
    padding: 0.45rem 1rem;
    font-size: 0.74rem;
  }
  .announcement-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .main-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .hero-grid,
  .pdp-grid,
  .simulator-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .simulator-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .pdp-gallery {
    position: static;
  }
  .hero-trust-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive — Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    padding: 0 1rem;
  }
  .header-inner {
    padding: 0.65rem 1rem;
    gap: 0.55rem;
  }
  .brand-wordmark {
    font-size: 1.35rem;
    letter-spacing: 0.12em;
  }
  .brand-subword {
    font-size: 0.53rem;
    letter-spacing: 0.05em;
  }
  .header-actions .btn {
    padding: 0.44rem 0.72rem;
    font-size: 0.75rem;
  }
  .main-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding-top: 0.5rem;
  }
  .nav-link {
    font-size: 0.74rem;
    padding: 0.36rem 0.25rem;
    border-radius: 6px;
  }
  .hero-section {
    padding: 1.85rem 0 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7.8vw, 2.45rem);
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .search-input-wrap {
    min-width: 100%;
    max-width: 100%;
  }
  .simulator-controls {
    padding: 1.15rem;
  }
  .sim-mode-bar {
    padding: 0.6rem 0.85rem;
  }
  .sim-mode-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .sim-mode-tabs::-webkit-scrollbar {
    display: none;
  }
  .sim-mode-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sim-dimension-banner {
    margin-top: 0.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
    max-width: 94%;
    text-align: center;
  }
  .sim-ruler-top {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }
  .sim-sofa-pill {
    font-size: 0.64rem;
    padding: 0.22rem 0.65rem;
    max-width: 96%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
