/* Simpli Selection — dealer catalog site. Dark theme, mint + gold. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0c100e;
  --surface: #141a17;
  --surface2: #1d2521;
  --surface3: #26302a;
  --border: #2b352f;
  --text: #f2f5f2;
  --muted: #a9b3ac;
  --faint: #7d877f;
  --mint: #7fd6a8;
  --mint-deep: #4f9d76;
  --gold: #d9a441;
  --gold-hover: #e5b45a;
  --rose: #d1949a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--mint); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 16, 14, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { flex: none; }
.logo-word { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.logo-sub { display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.32em; color: var(--mint); margin-top: 2px; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { color: var(--text); background: var(--surface2); }
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { height: 56px; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; color: var(--mint); margin: 0 0 14px; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 600; }
.hero-sub { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--mint); color: var(--mint); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat b { display: block; font-size: 26px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 13px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 38px; }
  .hero { padding: 36px 0 28px; }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.step-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--mint); margin: 0 0 8px; }
.section h2 { font-size: 32px; letter-spacing: -0.015em; margin: 0 0 10px; font-weight: 600; }
.section-intro { color: var(--muted); max-width: 44rem; margin: 0 0 28px; font-size: 17px; }
@media (max-width: 640px) { .section h2 { font-size: 26px; } .section { padding: 40px 0; } }

/* ---------- step 1: light slider ---------- */
.light-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.window-illustration { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.window-frame {
  position: relative; border: 10px solid #3a3f3a; border-radius: 6px; overflow: hidden;
  aspect-ratio: 4 / 3; background: linear-gradient(180deg, #9db8c4 0%, #c8d8cf 55%, #8a9a7d 100%);
}
.window-frame::before, .window-frame::after {
  content: ""; position: absolute; background: #3a3f3a; z-index: 2;
}
.window-frame::before { left: 50%; top: 0; bottom: 0; width: 8px; transform: translateX(-50%); }
.window-frame::after { top: 50%; left: 0; right: 0; height: 8px; transform: translateY(-50%); }
.window-sun {
  position: absolute; top: 12%; right: 12%; width: 46px; height: 46px; border-radius: 50%;
  background: #ffd97a; box-shadow: 0 0 32px 12px rgba(255, 214, 110, 0.55); z-index: 1;
}
.window-buildings {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 8%, #6d7d8a 8% 20%, transparent 20% 30%, #77878f 30% 46%, transparent 46% 58%, #67777f 58% 74%, transparent 74% 84%, #7d8c92 84% 96%, transparent 96%);
  filter: blur(2px);
}
.window-sheer {
  position: absolute; inset: 0; z-index: 3; transition: background 0.35s ease;
  background: rgba(240, 244, 240, 0.25);
}
.window-sheer[data-level="1"] { background: rgba(240, 244, 240, 0.55); }
.window-sheer[data-level="2"] { background: rgba(52, 58, 54, 0.72); }
.window-sheer[data-level="3"] { background: rgba(18, 22, 20, 0.94); }
.daylight { margin-top: 16px; }
.daylight-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.daylight-bar { height: 10px; background: var(--surface3); border-radius: 999px; overflow: hidden; }
.daylight-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.35s ease; width: 60%; }
.illustration-note { font-size: 12px; color: var(--faint); margin: 10px 0 0; }
.level-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.level-btn {
  background: var(--surface2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500;
}
.level-btn[aria-pressed="true"] { background: var(--mint); color: #0c1a12; border-color: var(--mint); font-weight: 600; }
.slider-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--mint); height: 28px; }
.slider-row span { font-size: 13px; color: var(--faint); white-space: nowrap; }
.level-detail h3 { margin: 0 0 8px; font-size: 21px; }
.level-detail p { color: var(--muted); margin: 0 0 16px; }
.level-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.level-meta b { color: var(--text); }
.level-styles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.style-chip {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; font-size: 13px; color: var(--text);
}
.level-note { font-size: 13px; color: var(--faint); margin: -8px 0 20px; }
@media (max-width: 860px) { .light-layout { grid-template-columns: 1fr; } }

/* ---------- step 3: styles ---------- */
.need-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.need-chip {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500;
}
.need-chip:hover { color: var(--text); border-color: var(--mint-deep); }
.need-chip[aria-pressed="true"] { background: var(--mint); color: #0c1a12; border-color: var(--mint); font-weight: 600; }

/* ---------- price tiers (Value / Everyday / Premium) ---------- */
/* Tag colors match the tier demo: Value mint, Everyday gold, Premium rose.
   Since v7.1 the tags are fabric-level only (library cards, dialog fabric
   rows, roller collection cards) — no style-level tier labels anywhere. */
.tier-tag {
  display: inline-flex; align-items: center; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: #0c100e; white-space: nowrap; line-height: 1.5;
}
.tier-value { background: var(--mint); }
.tier-everyday { background: var(--gold); }
.tier-premium { background: var(--rose); }
.tier-legend { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.tile-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile-name-row h3 { margin: 0; }
.dialog-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dialog-name-row h2 { margin: 0; }
/* most popular row (roller, honeycomb, zebra — the three dealers ask for most) */
.popular { margin-bottom: 26px; }
.popular h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.popular-note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.popular-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.popular-card {
  display: flex; align-items: stretch; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); padding: 0; min-height: 96px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.popular-card:hover { border-color: var(--mint-deep); }
.popular-card.dimmed { opacity: 0.35; }
.popular-card.matched { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.popular-photo { flex: none; width: 104px; overflow: hidden; }
.popular-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popular-body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 12px 14px; min-width: 0; }
.popular-name { font-size: 17px; font-weight: 600; }
.popular-tag { color: var(--muted); font-size: 13px; line-height: 1.4; }
.popular-meta { font-size: 12px; color: var(--faint); margin-top: auto; padding-top: 4px; }
.popular-arrow { flex: none; align-self: center; padding: 0 14px 0 6px; color: var(--mint); font-size: 18px; }
@media (max-width: 900px) { .popular-row { grid-template-columns: 1fr; } }

.styles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.style-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: left; color: var(--text); padding: 0; display: flex; flex-direction: column;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.style-tile:hover { border-color: var(--mint-deep); }
.style-tile.dimmed { opacity: 0.35; }
.style-tile.matched { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.tile-photo { aspect-ratio: 16 / 10; background: var(--surface2); overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-body h3 { margin: 0; font-size: 20px; }
.tile-tagline { color: var(--muted); font-size: 14px; margin: 0; }
.tile-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.tile-link { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--mint); }
@media (max-width: 900px) { .styles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .styles-grid { grid-template-columns: 1fr; } }

/* photo placeholder tile (no matching photo exists) */
.ph {
  width: 100%; height: 100%; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #1a221e 0%, #232d27 55%, #1a221e 100%);
  color: var(--faint); text-align: center; padding: 18px;
}
.ph-mark { width: 44px; height: 34px; border: 2px solid var(--border); border-radius: 4px; position: relative; }
.ph-mark::before, .ph-mark::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--border); }
.ph-mark::before { top: 9px; } .ph-mark::after { top: 19px; }
.ph b { color: var(--muted); font-size: 14px; font-weight: 600; }
.ph span { font-size: 12px; }

/* ---------- step 4: compare ---------- */
.compare-note { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.swipe-hint {
  display: none; font-size: 13px; font-weight: 600; color: var(--gold);
  margin: 0 0 8px; text-align: right;
}
.swipe-hint.visible { display: block; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.compare-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th { background: var(--surface2); font-size: 15px; white-space: nowrap; position: sticky; top: 0; }
.compare-table thead th:first-child { position: sticky; left: 0; top: 0; z-index: 3; background: var(--surface2); }
.compare-table tbody th { background: var(--surface); color: var(--muted); font-weight: 600; white-space: nowrap; width: 150px; position: sticky; left: 0; z-index: 1; }
.compare-table td { min-width: 130px; }
.compare-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.style-name-btn { background: none; border: none; color: var(--mint); font-size: 15px; font-weight: 600; padding: 0; text-align: left; }
.style-name-btn:hover { text-decoration: underline; }
.compare-table .yes { color: var(--mint); font-weight: 600; }
.compare-table .dash { color: var(--faint); }

/* mobile compare picker: pick 2 or 3 styles instead of the 10-column table */
.compare-picker { display: none; }
.picker-instruction { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.picker-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.picker-chip {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; min-height: 44px;
}
.picker-chip:hover { color: var(--text); border-color: var(--mint-deep); }
.picker-chip[aria-pressed="true"] { background: var(--mint); color: #0c1a12; border-color: var(--mint); font-weight: 600; }
.picker-hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; min-height: 20px; }
.picker-hint:empty { display: none; }
.picker-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.picker-table-wrap:empty { display: none; }
/* fixed layout so 2-3 style columns always fit a phone screen with no
   sideways scroll and no cut-off column (the shutter site's mobile-table
   bug, not repeated here) */
.picker-table { min-width: 0; table-layout: fixed; width: 100%; }
.compare-table.picker-table th, .compare-table.picker-table td { padding: 10px 8px; font-size: 13px; }
.picker-table th:first-child { width: 88px; white-space: normal; }
.picker-table thead th { white-space: normal; }
.picker-table .style-name-btn { font-size: 14px; }
.picker-table td { min-width: 0; }
.picker-table thead th:first-child, .picker-table tbody th { position: static; }
@media (max-width: 720px) {
  .compare-wrap, .swipe-hint { display: none !important; }
  .compare-note { display: none; }
  .compare-picker { display: block; }
}

/* ---------- step 5: library ---------- */
.library-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.search-box { flex: 1 1 260px; }
.search-box input, .style-select select {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; font-size: 15px; font-family: inherit;
}
.search-box input::placeholder { color: var(--faint); }
.style-select select { appearance: none; cursor: pointer; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.filter-btn {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500;
}
.filter-btn[aria-pressed="true"] { background: var(--mint); color: #0c1a12; border-color: var(--mint); font-weight: 600; }
.color-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border);
  padding: 0; position: relative;
}
.color-btn[aria-pressed="true"] { border-color: var(--mint); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--mint); }
.color-btn.all { width: auto; height: auto; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; background: var(--surface); color: var(--muted); }
.color-btn.all[aria-pressed="true"] { background: var(--mint); color: #0c1a12; border-color: var(--mint); }
.library-count { color: var(--muted); font-size: 14px; margin: 16px 0 14px; }
.library-groups { display: flex; flex-direction: column; gap: 14px; }
.lib-group { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lib-group-head {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: none; color: var(--text); font-family: inherit;
  padding: 15px 18px; cursor: pointer; min-height: 56px;
}
.lib-group-head.static { cursor: default; }
.lib-group-head:hover { background: var(--surface2); }
.lib-group-head.static:hover { background: none; }
.lib-group-name { font-size: 17px; font-weight: 600; }
.lib-group-count { color: var(--muted); font-size: 13px; }
.lib-group-btn {
  margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--mint);
  border: 1px solid var(--mint-deep); border-radius: 999px; padding: 6px 13px; white-space: nowrap;
}
.lib-group-head[aria-expanded="true"] .lib-group-btn { background: var(--mint); color: #0c1a12; border-color: var(--mint); }
.lib-group .library-grid { padding: 4px 18px 18px; }
.lib-show-more { text-align: center; padding: 0 18px 18px; }
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fabric-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.fabric-swatch { height: 74px; overflow: hidden; }
.fabric-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabric-body { padding: 10px 12px 12px; }
.fabric-code { font-weight: 600; font-size: 14px; word-break: break-word; }
.fabric-color { color: var(--muted); font-size: 13px; }
.fabric-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.meta-chip { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; color: var(--muted); }
.meta-chip.light { color: var(--mint); border-color: var(--mint-deep); }
.library-empty { color: var(--muted); padding: 32px 0 8px; text-align: center; }
.library-groups > p { text-align: center; }
@media (max-width: 900px) { .library-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .library-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .library-grid { grid-template-columns: 1fr; } }
.roller-link-btn {
  background: none; border: none; color: var(--mint); font-size: inherit; font-weight: 600;
  padding: 0; text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- step 2: gallery ---------- */
.room-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.room-chip {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500;
}
.room-chip[aria-pressed="true"] { background: var(--mint); color: #0c1a12; border-color: var(--mint); font-weight: 600; }
.room-chip .n { opacity: 0.75; font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: left; color: var(--text); padding: 0; cursor: pointer;
}
.gallery-tile:hover { border-color: var(--mint-deep); }
.gallery-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface2); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cap { padding: 12px 14px 13px; }
.gallery-cap .g-style { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--mint); text-transform: uppercase; }
.gallery-cap .g-text { font-size: 14px; margin-top: 2px; }
.gallery-cap .g-tag { font-size: 12px; color: var(--faint); margin-top: 2px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- clear answers (dealers) ---------- */
.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.answer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
}
.answer-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 16px; line-height: 1.35; }
.answer-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mint); margin: 0 0 8px;
}
.answer-card p:last-child { margin-bottom: 0; color: var(--muted); }
@media (max-width: 720px) { .answers-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer p { color: var(--muted); font-size: 14px; margin: 0; max-width: 40rem; }
.back-top { color: var(--mint); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* ---------- dialog ---------- */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 6, 0.78);
  display: none; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto;
}
.dialog-backdrop.open { display: flex; }
.dialog {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-width: 860px; overflow: hidden; margin: auto 0;
}
.dialog-header { position: relative; }
.dialog-header-img { aspect-ratio: 16 / 6; overflow: hidden; background: var(--surface2); }
.dialog-header-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog-header-body { padding: 22px 26px 0; }
.dialog-header-body h2 { margin: 0; font-size: 28px; }
.dialog-tagline { color: var(--muted); margin: 0 0 6px; }
.dialog-range { font-size: 13px; color: var(--mint); font-weight: 600; margin: 0; }
.dialog-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(12, 16, 14, 0.85); color: var(--text); border: 1px solid var(--border);
  font-size: 20px; line-height: 1; z-index: 2;
}
.dialog-tabs { display: flex; gap: 4px; padding: 18px 26px 0; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn[aria-selected="true"] { color: var(--mint); border-bottom-color: var(--mint); }
.dialog-body { padding: 22px 26px 28px; max-height: 62vh; overflow-y: auto; }
.dialog-body h3 { font-size: 17px; margin: 22px 0 10px; }
.dialog-body h3:first-child { margin-top: 0; }
/* section breaks: each dialog section gets a divider above its heading
   (the tab bar already stays fixed above this scrolling body) */
.dialog-body h3:not(:first-child) { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.dialog-body p { color: var(--muted); margin: 0 0 12px; }
/* v7 Part 3a voice blocks: one-line tagline + short plain blocks. */
.dialog-body p.voice-tagline { color: var(--text); font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.voice-blocks { display: grid; gap: 8px; margin: 16px 0 4px; }
.voice-block { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.voice-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); padding-top: 3px; }
@media (max-width: 640px) { .voice-block { grid-template-columns: 1fr; gap: 2px; } }
.need-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.feature-list { margin: 0; padding-left: 20px; color: var(--muted); }
.feature-list li { margin-bottom: 6px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 34%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.look-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.look-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-align: left; color: var(--text); padding: 0; cursor: pointer; }
.look-item .look-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface3); }
.look-item .look-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-item .look-cap { padding: 9px 11px; font-size: 13px; }
.see-all-btn { margin-top: 14px; }
.hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hardware-grid figure { margin: 0; }
.hardware-grid img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; }
.hardware-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) {
  .look-grid { grid-template-columns: 1fr 1fr; }
  .hardware-grid { grid-template-columns: 1fr; }
  .dialog-body { padding: 18px; }
  .dialog-header-body, .dialog-tabs { padding-left: 18px; padding-right: 18px; }
}

/* roller fabrics tab — groups are collapsible <details>, open by default */
.roller-group { margin-bottom: 28px; }
.roller-group summary { cursor: pointer; list-style: none; }
.roller-group summary::-webkit-details-marker { display: none; }
.roller-group summary h3 { display: inline; font-size: 18px; margin: 0 0 4px; }
.roller-group summary::after { content: "\25be"; color: var(--mint); margin-left: 8px; font-size: 14px; }
.roller-group:not([open]) summary::after { content: "\25b8"; }
.roller-group h3 { font-size: 18px; margin: 0 0 4px; }
.roller-group .group-desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.roller-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roller-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.roller-card .swatch-img { aspect-ratio: 16 / 5; overflow: hidden; background: var(--surface3); }
.roller-card .swatch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.roller-card-body { padding: 12px 14px 14px; }
.roller-card-body h4 { margin: 0 0 2px; font-size: 16px; }
/* v7 Part 1: collection name + its per-fabric tier tag on one line. */
.roller-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.roller-name-row h4 { margin-bottom: 0; }
.roller-type { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--mint); text-transform: uppercase; margin: 0 0 8px; }
.mini-spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-spec th, .mini-spec td { text-align: left; padding: 4px 8px 4px 0; vertical-align: top; }
.mini-spec th { color: var(--faint); font-weight: 500; width: 92px; }
.mini-spec td { color: var(--text); }
.roller-note { font-size: 13px; color: var(--faint); margin-top: 8px; }
@media (max-width: 640px) { .roller-cards { grid-template-columns: 1fr; } }

/* style fabrics tab (non-roller) */
.style-fabrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.style-fabric-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.style-fabric-row .sw { flex: none; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); }
.style-fabric-row .sw-img { overflow: hidden; padding: 0; }
.style-fabric-row .sw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-fabric-row .fc { font-weight: 600; }
.style-fabric-row .fcol { color: var(--muted); }
.style-fabric-row .fl { margin-left: auto; color: var(--mint); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* Per-series spec line (v7): full-width second line under the code, muted.
   Rows without solid spec data simply have no .fspec element. */
.style-fabric-row .fspec { flex: 1 1 100%; font-size: 12px; line-height: 1.45; color: var(--muted); padding-left: 36px; margin-top: -4px; }
@media (max-width: 640px) { .style-fabrics { grid-template-columns: 1fr; } }

/* dialog photos tab */
.dialog-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .dialog-photos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- lightbox ---------- */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 6, 0.9);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox-backdrop.open { display: flex; }
.lightbox { max-width: 900px; width: 100%; }
.lightbox-photo { border-radius: 12px; overflow: hidden; background: var(--surface2); max-height: 72vh; }
.lightbox-photo img { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; display: block; background: #0c100e; }
.lightbox-photo .ph { min-height: 320px; }
.lightbox-meta { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; flex-wrap: wrap; }
.lightbox-meta .lb-style { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--mint); text-transform: uppercase; }
.lightbox-meta .lb-cap { font-size: 16px; }
.lightbox-meta .lb-tag { font-size: 13px; color: var(--faint); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(12, 16, 14, 0.85); color: var(--text); border: 1px solid var(--border); font-size: 22px;
}

/* larger tap targets on phones */
@media (max-width: 720px) {
  .level-btn, .need-chip, .room-chip, .filter-btn { padding-top: 11px; padding-bottom: 11px; min-height: 44px; }
  .color-btn { width: 36px; height: 36px; }
  .tab-btn { padding-top: 12px; padding-bottom: 12px; }
  .dialog-close { width: 44px; height: 44px; }
  .slider-row input[type="range"] { height: 44px; }
}
