:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --stone: #f2f1ee;
  --ink: #111111;
  --muted: #5a5a57;
  --line: #e4e2dd;
  --line-strong: #bdbab3;
  --accent: #15365a;
  --accent-hover: #0d2540;
  --accent-ink: #ffffff;
  --accent-soft: #e7edf4;
  --ring: rgba(21, 54, 90, .3);
  --warm: #15365a;
  --warm-ink: #5a5a57;
  --dark: #111111;
  --error: #b3261e;
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 4px;
  --radius: var(--r-md);
  --shadow: none;
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .10);
  --serif: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 20px; --t-xl: 26px; --t-2xl: 44px; --t-3xl: 64px;
  --section: 96px;
}
@media (max-width: 760px) { :root { --section: 64px; --t-2xl: 34px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--t-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.fine { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.kicker, .eyebrow {
  font: 600 var(--t-xs)/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em;
  color: var(--warm-ink); margin: 0 0 14px;
}
.section-head h2 { font-size: var(--t-2xl); margin: 0; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--sans); font-size: 21px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-sm); }
.nav a:not(.btn):hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: 1px solid transparent; border-radius: var(--r-md); padding: 0 22px;
  font: 600 var(--t-sm) var(--sans); cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--stone); color: var(--muted); cursor: not-allowed; }
.btn-secondary, .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline { color: var(--accent); border-color: var(--accent); margin-top: 10px; }
.btn-outline:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.btn-outline:disabled { opacity: .45; cursor: not-allowed; }
.btn-quiet, .btn-link { background: none; color: var(--ink); padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.btn-quiet:hover, .btn-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.btn-ghost { background: transparent; color: var(--accent); padding: 6px 10px; }
.btn-block { width: 100%; }
.btn-reason { display: none; font-size: var(--t-xs); color: var(--muted); margin: 8px 0 0; }
button:disabled + .btn-reason { display: block; }
.fill-note { margin-top: 16px; }
.qty-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

.announce { background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; }
.announce-inner { display: flex; justify-content: center; gap: 32px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .announce { font-size: 12px; } .announce-inner { gap: 4px 14px; justify-content: center; } }

.hero { padding: 0; }
.hero-banner { position: relative; overflow: hidden; height: min(760px, calc(100vh - 100px)); min-height: 520px; background: #222; color: #fff; }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide img[style*="--zoom"] { object-position: var(--focus, center); transform-origin: var(--focus, center); transform: scale(calc(var(--zoom) * 1.03)); }
.hero-slide.is-active img[style*="--zoom"] { transform: scale(var(--zoom)); }
.hero-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 65%),
    linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 70%);
}
.hero-copy, .hero-caption { text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.hero-copy .btn { text-shadow: none; }
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 56px; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.04em; margin-bottom: 18px; color: #fff; }
.lede { max-width: 30em; margin: 0 0 28px; color: var(--muted); font-size: var(--t-lg); line-height: 1.45; }
.hero .lede { color: rgba(255, 255, 255, .9); }
.hero-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececec; }
.hero .btn-quiet { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.hero .btn-quiet:hover { color: #fff; text-decoration-color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.hero-caption { font-size: var(--t-xs); color: rgba(255, 255, 255, .85); margin-right: 8px; }
.hero-arrow {
  width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .6); cursor: pointer;
  background: transparent; color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.hero-dots { display: flex; gap: 6px; margin-right: 6px; }
.hero-dots button { width: 18px; height: 3px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .45); transition: background .3s; }
.hero-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 760px) {
  .hero-banner { height: calc(100svh - 120px); min-height: 520px; max-height: 720px; }
  .hero-banner::after { background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .05) 80%); }
  .hero-inner { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 24px; padding-bottom: 24px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: var(--t-md); margin-bottom: 22px; }
  .hero-caption { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img { transition: none; } }

.fabrics { padding: var(--section) 0 0; }
.fabrics .section-head { margin-bottom: 40px; }
.fabrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 32px; }
.fabric-col img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); background: var(--stone); margin-bottom: 20px; }
.fabric-col:nth-child(2) { margin-top: 0; }
.fabric-col img { aspect-ratio: 3 / 2; }
.fabric-col h3 { font-size: var(--t-xl); margin-bottom: 8px; }
.fabric-col p { color: var(--muted); margin: 0; max-width: 62ch; }
@media (max-width: 760px) {
  .fabrics-grid { grid-template-columns: 1fr; gap: 40px; }
  .fabric-col:nth-child(2) { margin-top: 0; }
}

.builder { padding: var(--section) 0; }
.builder-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.builder-head .kicker { margin-bottom: 10px; }
.builder-head h2 { font-size: var(--t-2xl); margin: 0; }
.progress { min-width: 220px; font-size: 13px; color: var(--muted); font-weight: 500; }
.progress-track { height: 6px; background: var(--line); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
/* The preview takes about a third of the width (360–460px), so the fabric picker beside it gets room for four
   fabrics across from about 1280px wide, and its filters fit on one row from about 1440px. */
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 34%, 460px); gap: 36px; align-items: start; }
@media (max-width: 900px) { .builder-grid { grid-template-columns: 1fr; } .summary { display: none; } }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); scroll-margin-top: 84px; transition: border-color .2s;
}
.step.is-open { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.step.is-done .step-head:hover .step-title { color: var(--accent); }
.step.is-locked { opacity: .5; box-shadow: none; }
.step-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; width: 100%;
  background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.step.is-locked .step-head { cursor: default; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.step.is-open .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.is-done .step-num { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.step-title { font-family: var(--serif); font-size: 20px; font-weight: 600; flex: 1; }
.step-value { color: var(--muted); font-size: 14px; text-align: right; }
.step-edit { color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 560px) {
  .step-head { flex-wrap: wrap; row-gap: 2px; }
  .step-title { font-size: 18px; }
  .step-value { order: 3; flex-basis: 100%; text-align: left; padding-left: 44px; }
}
.step-body { padding: 0 20px 22px 64px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 560px) { .step-body { padding-left: 20px; } }
.substep-title { font-size: 15px; margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); animation: rise .35s ease both; }
.step-hint { color: var(--muted); margin: -4px 0 16px; font-size: 15px; }
.step-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.step-actions-top { margin: 0 0 18px; }
.shop-results > .shop-pages:first-child { margin: 0 0 16px; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.options-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .options-two { grid-template-columns: 1fr; } }
.option {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; font: inherit; color: inherit; text-align: left; transition: border-color .15s, background .15s;
}
.option { transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.option:hover { border-color: #c9c1b3; transform: translateY(-2px); box-shadow: var(--shadow); }
.option[aria-pressed="true"], .option.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.option[aria-pressed="true"]::after, .option.is-picked::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.option > svg { width: 100%; height: 100px; margin-bottom: 8px; background: var(--bg); border-radius: 8px; padding: 6px; }
.option > .option-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 40% 50%; margin-bottom: 8px; background: var(--bg); border-radius: 8px; }
.option-icon { display: grid; place-items: center; height: 100px; margin-bottom: 8px; background: var(--bg); border-radius: 8px; color: var(--accent); }
.option-icon svg { width: 40px; height: 40px; }
.option-name { font-weight: 600; }
.option-desc { font-size: 13px; color: var(--muted); }
.option-price { font-size: 13px; color: var(--ink); font-weight: 600; }
/* A tile with Learn More (app.js tileWithMore): a see-through pick button covers the card; Learn More sits above it. */
.option.has-more { cursor: pointer; }
.option-pick { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.option-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.option-learn { position: relative; z-index: 2; align-self: flex-start; margin-top: 2px; padding: 2px 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.option-learn:hover { color: var(--ink); }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.check-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.check-row > span { display: flex; flex-direction: column; gap: 2px; }
.piping-pick-title { margin: 22px 0 12px; font-size: 16px; }

.shop-chosen { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 16px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
.shop-chosen[hidden] { display: none; }
.shop-chosen img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.shop-chosen > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-chosen-label { font-size: 12px; color: var(--muted); }
.shop-bar { display: flex; gap: 10px; }
.shop-search, .shop-sort { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 15px var(--sans); background: var(--surface); color: var(--ink); }
.shop-search { flex: 1; min-width: 0; }
.shop-search:focus, .shop-sort:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95, 127, 106, .35); }
.shop-sub { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 14px; font-size: 13px; color: var(--muted); }
.shop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.shop-filters:empty { display: none; }
.shop-facet { position: relative; }
.shop-facet summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 600; list-style: none; user-select: none; }
.shop-facet summary::-webkit-details-marker { display: none; }
.shop-facet summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); color: var(--muted); }
.shop-facet[open] summary { border-color: var(--accent); }
.shop-facet[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.shop-facet summary:hover { border-color: var(--ink); }
.shop-facet > div { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(40, 36, 30, .16); }
.shop-clear { font-size: 13px; }
.shop-n { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.shop-values { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.shop-value { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.shop-value input { accent-color: var(--accent); }
.shop-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.shop-range { display: flex; align-items: center; gap: 6px; }
.shop-range input { width: 64px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: 13px var(--sans); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(118px, calc((100% - 36px) / 4)), 1fr)); gap: 12px; }
.shop-card {
  display: flex; flex-direction: column; gap: 3px; padding: 0 0 10px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); cursor: pointer; font: inherit; color: inherit; text-align: left; position: relative; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shop-card:hover { border-color: #c9c1b3; transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.shop-card[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.shop-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); margin-bottom: 6px; }
.shop-card > span { padding: 0 10px; }
.shop-meta { font-size: 11px; color: var(--muted); }
.shop-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.shop-pages { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; scroll-margin-top: 90px; font-size: 13px; color: var(--muted); }
.shop-pages:empty { display: none; }
.shop-pages button:disabled { opacity: .35; cursor: default; }
.shop-credit { margin-top: 14px; }
@media (max-width: 700px) {
  .shop-facet { position: static; }
  .shop-filters { position: relative; }
  .shop-facet > div { left: 0; right: 0; min-width: 0; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
/* Lounge sets: the seat and the back, one group each. */
.lounge-part { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.lounge-part legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .input-wrap { position: relative; }
.field input, .field select {
  width: 100%; padding: 12px 36px 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 16px var(--sans); background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95, 127, 106, .35); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237a746a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--ink); }
.field .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.field-error { color: #b4533a; font-size: 13px; margin-top: 10px; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 36px; text-align: center; font-weight: 600; }

.summary { position: sticky; top: 84px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.preview {
  background: radial-gradient(circle at 50% 35%, #fff 0, #f4efe6 70%); border-radius: 12px;
  height: clamp(300px, 45vh, 460px); display: grid; place-items: center; margin-bottom: 8px;
}
.preview-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow);
  font: 400 28px/1 var(--sans); padding: 0 0 4px; cursor: pointer;
}
.preview-arrow[hidden] { display: none; }
.preview-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.preview-arrow:disabled { opacity: .35; cursor: default; }
.preview-prev { left: 10px; }
.preview-next { right: 10px; }
.preview svg { width: 88%; height: 88%; }
.preview model-viewer { width: 100%; height: 100%; --poster-color: transparent; cursor: grab; }
.preview-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 14px; min-height: 1em; }
/* Sits inside the bottom edge of the 3D preview box (pulled up over it), so it reads as part of the picture. */
.preview-note { position: relative; z-index: 1; height: 26px; margin: -34px 0 8px; text-align: center; font-size: 11px; font-style: italic; color: var(--muted); pointer-events: none; }
.preview-note[hidden] { display: none; }
.model-art { container-type: inline-size; }
/* Narrow cards wrap the note onto two lines, so the pills sit higher there. */
.model-art .model-hint, .model-art .model-fabric { bottom: 42px; }
@container (min-width: 330px) { .model-art .model-hint, .model-art .model-fabric { bottom: 28px; } }
.summary-list { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 500; }
.order-list { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 14px; }
.order-list[hidden] { display: none; }
.order-title { font: 600 13px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.order-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.order-item strong { display: block; font-weight: 600; }
.summary .order-item .fine { display: block; text-align: left; margin: 2px 0 0; }
.order-item .btn-text { font-size: 13px; }
.order-item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
/* Each line's picture: the cushion as it was built, or its fabric swatch for older lines. */
.order-thumb { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: var(--r-sm); background: var(--stone); padding: 4px; box-sizing: border-box; }
.order-thumb.is-swatch { object-fit: cover; padding: 0; }
.order-item-text { flex: 1; min-width: 0; }
.price-lines { margin: 0 0 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--t-sm); }
.price-lines div { display: flex; justify-content: space-between; margin: 0 0 6px; }
.price-lines dt, .price-lines dd { margin: 0; }
.price-lines dd { color: var(--ink); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px; }
.price-row strong { font-family: var(--serif); font-size: 26px; }
.summary .fine { text-align: center; margin-top: 10px; }

.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,.05);
  }
  .mobile-bar strong { display: block; font-family: var(--serif); font-size: 22px; }
  /* The cushion: a small picture with its fabric and size underneath. */
  .mobile-item { display: flex; flex-direction: column; align-items: center; width: 112px; flex: none; min-width: 0; }
  .mobile-item:has(.mobile-thumb:empty) { display: none; }
  .mobile-thumb { width: 96px; height: 56px; flex: none; }
  .mobile-thumb svg { width: 100%; height: 100%; }
  .mobile-thumb model-viewer { display: block; width: 100%; height: 100%; pointer-events: none; --poster-color: transparent; }
  .mobile-thumb:empty { display: none; }
  .mobile-detail { max-width: 100%; font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-detail:first-of-type { color: var(--ink); font-weight: 600; margin-top: 2px; }
  .mobile-detail:empty { display: none; }
  .mobile-price { flex: 1; margin-left: 12px; min-width: 0; }
  .mobile-bar .btn.is-waiting { opacity: .45; }
  body { padding-bottom: 110px; }
}

.how { padding: var(--section) 0; background: var(--stone); }
.how h2 { font-size: var(--t-2xl); margin-bottom: 40px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: how; border-top: 2px solid var(--ink); }
.how-steps li { counter-increment: how; padding: 20px 32px 0 0; }
.how-steps h3 { font-size: var(--t-lg); margin: 0 0 6px; }
.how-steps h3::before { content: counter(how) ". "; color: var(--muted); font-weight: 500; }
.how-steps p { margin: 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { padding: 16px 0; border-bottom: 1px solid var(--line); }
}

.site-footer { background: #fff; color: var(--muted); padding: 0 0 40px; font-size: var(--t-sm); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px 48px; padding-top: 48px; }
.site-footer .logo { color: var(--ink); display: inline-block; margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink); }
.footer-title { font: 700 var(--t-sm)/1.4 var(--sans); color: var(--ink); margin: 0 0 10px; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.step-body.no-anim, .step-body.no-anim .substep-title { animation: none; }

[hidden] { display: none !important; }

.type-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
/* Three cards a row; each takes two of six columns, so a short last row (the two pillows) sits centred. */
@media (min-width: 861px) {
  .type-cards > .type-card { grid-column: span 2; }
  .type-cards > .type-card:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
  .type-cards > .type-card:nth-child(3n + 1):last-child { grid-column: 3 / span 2; }
}
.type-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, background .15s;
}
.type-card:hover { transform: translateY(-3px); border-color: #c9c1b3; }
.type-card.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(95, 127, 106, .35), var(--shadow); }
.type-card.is-selected::after {
  content: "✓"; position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center;
}
.type-card-pick {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 8px; text-align: left;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.type-card > .model-art { margin: 18px 18px 0; }
.model-art { position: relative; background: var(--bg); border-radius: 12px; }
.model-art model-viewer { display: block; width: 100%; height: 340px; --poster-color: transparent; cursor: grab; }
.model-art model-viewer:active { cursor: grabbing; }
.card-arrow { width: 36px; height: 36px; font-size: 24px; }
.model-hint {
  position: absolute; left: 12px; bottom: 10px; pointer-events: none;
  font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .8);
  padding: 4px 10px; border-radius: 999px;
}
.model-fabric {
  position: absolute; right: 12px; bottom: 10px; max-width: 55%; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.85); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.model-fabric:empty { display: none; }
/* The fabric name is a button: clicking it keeps that fabric for the builder. */
button.model-fabric { border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
button.model-fabric:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
button.model-fabric.is-picked { background: var(--accent); color: #fff; box-shadow: none; }
button.model-fabric.is-picked::before { content: "✓ "; }
.type-card-more {
  align-self: flex-start; margin: 4px 18px 20px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 15px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.type-card-kicker { font-size: 13px; color: var(--muted); font-weight: 500; }
.type-card-name { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.3; }
.type-card-desc { font-size: 16px; color: var(--muted); }
@media (max-width: 860px) {
  .type-cards { grid-template-columns: 1fr; }
  .type-card .model-art model-viewer { height: 240px; }
}
/* The phone bar stays up while building, and afterwards whenever the cart has something in it (then it shows just the cart). */
body:not(.building):not(.has-cart) .mobile-bar { display: none; }
body:not(.building):not(.has-cart) { padding-bottom: 0; }
body:not(.building) .mobile-item { display: none; }
.chosen-type { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.btn-text { border: 0; background: none; padding: 0; font: 600 15px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.type-dialog {
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 32px 28px 28px;
  border: 0; border-radius: 20px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(43, 42, 39, .25);
}
.type-dialog[open] { animation: rise .25s ease both; }
.type-dialog { width: min(820px, calc(100vw - 32px)); }
.type-dialog.is-single { width: min(440px, calc(100vw - 32px)); }
.type-dialog::backdrop { background: rgba(43, 42, 39, .35); }
.compare-title { font-size: 30px; margin: 0 0 20px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.compare-col {
  display: flex; flex-direction: column; padding: 16px 16px 20px;
  border: 1.5px solid var(--line); border-radius: 16px;
}
.compare-col.is-focused { border-color: var(--accent); background: var(--accent-soft); }
.compare-art { margin-bottom: 16px; }
.compare-art model-viewer { height: 260px; }
.compare-col h3 { font-size: 24px; margin: 4px 0 10px; }
.compare-col p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.compare-col ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.compare-col li { padding-left: 22px; text-indent: -22px; }
.compare-col li::before { content: "✓"; color: var(--accent); font-weight: 700; display: inline-block; width: 22px; text-indent: 0; }
.compare-actions { margin-top: auto; }
.compare-actions .btn { width: 100%; }
.dialog-close {
  position: sticky; top: 0; z-index: 2; float: right; margin: -16px -12px 0 8px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink);
}
.dialog-close-bottom { display: none; }
@media (max-width: 760px) {
  .type-dialog, .type-dialog.is-single {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .dialog-close { margin: 0 0 0 8px; }
  .compare-title { font-size: 24px; padding-top: 6px; }
  .dialog-close-bottom { display: flex; width: 100%; margin-top: 16px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
  .compare-grid { grid-template-columns: 1fr !important; }
  .compare-art model-viewer { height: 220px; }
}

.size-notes { margin-top: 18px; font-size: 0.875rem; color: var(--muted, #5b5b5b); }
.size-notes p { margin: 0 0 6px; }
.size-notes ul { margin: 0; padding-left: 1.2em; }
.size-notes li + li { margin-top: 4px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

model-viewer::part(default-progress-bar) { display: none; }

section[id], #builder { scroll-margin-top: 64px; }
#builder { scroll-margin-top: 40px; }

.option > .option-photo.placement-photo { aspect-ratio: 16 / 9; object-position: center; }

.step { border-radius: var(--r-md); box-shadow: none; }
.step.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step.is-locked { opacity: .55; }
.step-num { border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.step-title { font-weight: 700; font-size: 20px; letter-spacing: -.015em; }
.option, .check-row, .shop-card, .compare-col { border-width: 1px; border-radius: var(--r-md); }
.option:hover, .shop-card:hover { box-shadow: none; transform: none; border-color: var(--ink); }
.option[aria-pressed="true"], .option.is-picked, .shop-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.option[aria-pressed="true"]::after, .option.is-picked::after, .shop-card[aria-pressed="true"]::after, .type-card.is-selected::after { border-radius: var(--r-sm); }
.option > svg, .option > .option-photo, .option-icon { border-radius: var(--r-sm); background: var(--stone); }
.shop-chosen { border-width: 1px; border-radius: var(--r-md); }
.shop-chosen img { border-radius: var(--r-sm); }
.shop-search, .shop-sort, .field input, .field select, .shop-range input { border-width: 1px; border-color: var(--line-strong); border-radius: var(--r-sm); }
.shop-search:focus, .shop-sort:focus, .field input:focus, .field select:focus { box-shadow: 0 0 0 3px var(--ring); }
.qty { border-width: 1px; border-color: var(--line-strong); border-radius: var(--r-md); }
.summary-card { border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.preview { background: var(--stone); border-radius: var(--r-sm); }
.price-row strong { font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.preview-arrow { border-radius: var(--r-md); box-shadow: none; border-color: var(--line-strong); }
.type-cards { gap: 24px; }
.type-card { border-width: 1px; border-radius: var(--r-md); box-shadow: none; }
.type-card:hover { transform: none; border-color: var(--ink); }
.type-card.is-selected { box-shadow: 0 0 0 1px var(--accent); }
.type-card > .model-art { margin: 12px 12px 0; }
.model-art { background: var(--stone); border-radius: var(--r-sm); }
.model-hint, .model-fabric { border-radius: var(--r-sm); background: rgba(255, 255, 255, .9); }
.type-card-name { font-weight: 700; letter-spacing: -.02em; }
.type-dialog { border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.dialog-close { border-radius: var(--r-md); }
.progress-track { height: 4px; border-radius: 0; }
.progress-fill { border-radius: 0; }
.mobile-bar { box-shadow: var(--shadow-float); }
.field-error { color: var(--error); }

.home .hero-controls { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0; margin: 0; }
.home .hero-caption, .home .hero-dots { display: none; }
.home .hero-arrow { background: transparent; border: 0; color: #fff; width: 44px; height: 32px; font-size: 26px; border-radius: 0; }
.home .hero-arrow:hover { background: transparent; opacity: .7; }
.home .hero-slides { position: absolute; inset: 0; }
.home #builder { scroll-margin-top: 0; }
.home .summary { top: 24px; }
.home {
  --bg: #efe9df; --surface: #fbf8f3; --stone: #e6dfd3; --ink: #1d1a16; --muted: #5d564c; --line: #d8cfc1; --line-strong: #b9ae9d;
  --accent: #2a241d; --accent-hover: #000; --accent-soft: #e6dfd3; --ring: rgba(42, 36, 29, .3);
  --sans: "Jost", system-ui, sans-serif; --serif: "Cormorant Garamond", Georgia, serif;
}
.home h1, .home h2, .home h3, .home .logo, .home .type-card-name, .home .step-title, .home .price-row strong { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.home .section-head h2, .home .builder-head h2, .home .how h2 { font-size: clamp(40px, 5vw, 60px); }
.home .btn { border-radius: 0; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.intro-hero { background: var(--bg); color: var(--ink); }
.intro-shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }
.intro-nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 72px; }
.intro-logo { color: var(--ink); text-decoration: none; font: 500 13px var(--sans); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.intro-nav nav { display: flex; gap: 30px; }
.intro-nav nav a { color: var(--ink); text-decoration: none; font: 400 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.intro-nav nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.intro-head { padding: 4px 0 22px; }
.home .intro-title { margin: 0; color: var(--ink); font: 400 clamp(52px, 7.4vw, 112px)/.95 var(--serif); letter-spacing: -.02em; text-shadow: none; }
.intro-title em { font-style: italic; }
.intro-sub { margin: 14px 0 0; font: 400 16px var(--sans); letter-spacing: .2em; color: var(--ink); }
.intro-frame { position: relative; height: clamp(300px, 34vw, 500px); overflow: hidden; color: #fff; }
.intro-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(20, 14, 8, .72) 0%, rgba(20, 14, 8, .35) 30%, rgba(20, 14, 8, 0) 55%); }
.intro-link, .intro-count, .home .intro-controls .hero-arrow { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 14px rgba(0, 0, 0, .35); }
.intro-link { position: absolute; z-index: 2; right: 40px; bottom: 32px; display: flex; gap: 40px; align-items: center; color: #fff; text-decoration: none; font: 500 15px var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid #fff; }
.intro-link:hover .intro-arrow { transform: translateX(4px); }
.intro-arrow { width: 40px; height: 2px; background: #fff; position: relative; transition: transform .18s ease; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.intro-arrow::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.intro-count { position: absolute; z-index: 3; left: 36px; bottom: 26px; display: flex; align-items: center; gap: 18px; font: 500 15px var(--sans); letter-spacing: .12em; color: #fff; }
.intro-line { width: 160px; height: 2px; background: rgba(255, 255, 255, .4); }
.intro-line i { display: block; height: 2px; width: 0; background: #fff; transition: width .6s ease; }
.home .intro-controls { position: static; gap: 0; margin-left: 6px; }
.home .intro-controls .hero-arrow { font-family: var(--sans); font-weight: 400; font-size: 32px; width: 52px; height: 40px; }
.home .intro-controls #hero-next { border-left: 2px solid rgba(255, 255, 255, .75); }
.intro-perks { list-style: none; display: flex; justify-content: center; align-items: center; gap: 0; margin: 0; padding: 22px 0 28px; font: 400 15px var(--sans); letter-spacing: .16em; color: var(--ink); }
.intro-perks::before, .intro-perks::after { content: ""; flex: 1; max-width: 140px; height: 1px; background: var(--line-strong); margin: 0 32px; }
.intro-perks li + li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a99a85; margin: 0 34px 2px; }
@media (max-width: 860px) {
  .intro-shell { width: calc(100% - 32px); padding-top: 40px; }
  .intro-nav { height: 56px; }
  .intro-nav nav a:not(:first-child) { display: none; }
  .intro-nav { justify-content: space-between; }
  .home .intro-title { font-size: 48px; }
  .intro-sub { font-size: 12px; letter-spacing: .14em; }
  .intro-frame { height: 380px; }
  .intro-link { left: 20px; right: 20px; bottom: 72px; justify-content: space-between; font-size: 14px; }
  .intro-count { left: 20px; bottom: 16px; font-size: 14px; }
  .intro-line { width: 100px; }
  .intro-perks { flex-direction: column; gap: 6px; font-size: 12px; }
  .intro-perks::before, .intro-perks::after, .intro-perks li + li::before { display: none; }
}



.home .wrap { max-width: 1448px; padding: 0 24px; }
@media (max-width: 860px) { .home .wrap { padding: 0 16px; } }

.nowrap { white-space: nowrap; }
.home .how { background: var(--bg); padding: 96px 0; border-top: 1px solid var(--line); }
.how-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.how-photo { width: 100%; height: 560px; object-fit: cover; object-position: center 60%; display: block; }
.home .how h2 { font-size: clamp(44px, 5vw, 72px); font-weight: 400; margin: 0 0 32px; }
.home .how-steps { list-style: none; margin: 0 0 40px; padding: 0; display: block; border: 0; }
.home .how-steps li { display: grid; grid-template-columns: 56px 160px 1fr; align-items: baseline; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.home .how-steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.how-num { font: 400 12px var(--sans); letter-spacing: .2em; color: var(--muted); }
.home .how-steps h3 { margin: 0; font: italic 400 30px/1 var(--serif); letter-spacing: 0; }
.home .how-steps h3::before { content: none; }
.home .how-steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: none; }
.home .how .btn { padding: 0 34px; }
.home .site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line-strong); padding: 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 40px 0; }
.footer-logo { color: var(--ink); text-decoration: none; font: 500 13px var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.footer-nav { display: flex; gap: 32px; }
.footer-nav a { color: var(--ink); text-decoration: none; font: 400 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-contact { margin: 0; text-align: right; line-height: 1.6; }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }
@media (max-width: 960px) {
  .how-layout { grid-template-columns: 1fr; gap: 40px; }
  .how-photo { height: 320px; }
  .home .how { padding: 64px 0; }
  .home .how-steps li { grid-template-columns: 44px 1fr; }
  .home .how-steps li p { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 12px 24px; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Faint linen weave on the cream: fine threads both ways plus a soft grain. */
body.home {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(120, 98, 70, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 98, 70, .04) 0 1px, transparent 1px 4px);
}
.home .intro-hero, .home .how, .home .site-footer, .home .builder, .home .fabrics { background: transparent; }

.how-lead { margin: 0 0 32px; font: 400 21px/1.6 var(--sans); color: var(--ink); max-width: 34em; }
.how-tip { margin: 0 0 36px; padding: 20px 24px; border-left: 2px solid var(--ink); background: rgba(255, 255, 255, .45); max-width: 34em; }
.how-tip p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.how-tip .how-tip-title { margin-bottom: 4px; color: var(--ink); font: italic 400 24px/1.2 var(--serif); }
@media (max-width: 960px) { .how-lead { font-size: 18px; } }

.home .btn-primary:disabled { background: rgba(255, 255, 255, .55); color: var(--ink); border: 1.5px solid var(--ink); opacity: .6; box-shadow: none; }
.home .btn-reason { color: var(--ink); }

.how-checklist { list-style: none; margin: 8px 0 40px; padding: 0; counter-reset: how-step; }
.how-checklist li { counter-increment: how-step; display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: start; max-width: 520px; margin-bottom: 28px; opacity: .45; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.how-checklist li:last-child { margin-bottom: 0; }
.how-checklist li.is-shown { opacity: 1; transform: none; }
.how-box { position: relative; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .5); transition: background .6s ease, border-color .6s ease, color .6s ease; }
.how-box::after { content: counter(how-step); font: 600 15px/1 var(--sans); color: var(--ink); transition: color .6s ease; }
.how-checklist li.is-done .how-box { border-color: #7f9a7f; background: rgba(127, 154, 127, .12); }
.how-checklist li.is-done .how-box::after { color: #5f7a5f; }
.how-checklist h3 { margin: 0 0 4px; font: italic 400 26px/1.15 var(--serif); letter-spacing: 0; }
.how-checklist p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 960px) {
  .how-checklist h3 { font-size: 23px; }
}


.place-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.home .place-head h2 { font-size: clamp(44px, 5vw, 72px); font-weight: 400; line-height: 1; margin: 0; }
.place-head p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 34em; }
.sunbrella-logo { display: block; width: 200px; height: auto; margin: 0 0 28px; }
@media (max-width: 860px) { .sunbrella-logo { width: 150px; margin-bottom: 18px; } }
.fabric-col h3 { font-size: 36px; font-weight: 400; margin: 0 0 6px; }
.home .fabric-col .place-for { margin: 0 0 18px; font: italic 400 21px/1.35 var(--serif); color: var(--ink); }
.place-specs { margin: 0 0 24px; border-top: 1px solid var(--line-strong); }
.place-specs div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.place-specs dt { font: 500 11px/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.place-specs dd { margin: 0; font-size: 16px; color: var(--ink); }
.place-link { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font: 500 13px var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.place-link span { transition: transform .2s ease; }
.place-link:hover span { transform: translateX(4px); }
@media (max-width: 860px) {
  .place-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .place-head p { font-size: 16px; }
  .fabric-col h3 { font-size: 30px; }
}

.place-link { gap: 16px; padding: 18px 28px; border: 0; background: var(--ink); color: #fbf8f3; font-size: 13px; box-shadow: 0 1px 2px rgba(20, 14, 8, .2), 0 8px 20px rgba(20, 14, 8, .14); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.place-link:hover { background: #000; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(20, 14, 8, .22), 0 12px 26px rgba(20, 14, 8, .18); }
@media (max-width: 860px) { .place-link { width: 100%; justify-content: space-between; } }
.home .fabrics-grid { align-items: stretch; }
.home .fabric-col { display: flex; flex-direction: column; }
.home .fabric-col .place-link { align-self: flex-start; margin-top: auto; }
.home .place-specs { margin-bottom: 28px; }
@media (max-width: 860px) { .home .fabric-col .place-link { align-self: stretch; } }
.place-specs dt { display: flex; align-items: center; gap: 10px; font: 600 12px/1.8 var(--sans); letter-spacing: .2em; color: var(--ink); }
.place-specs dt::before { content: ""; width: 7px; height: 7px; flex: none; background: #7f9a7f; transform: rotate(45deg); }
.place-specs div { grid-template-columns: 112px 1fr; }

.home { --sage: #5f7a63; --sage-hover: #4c6650; }
.home .btn-primary:not(:disabled), .place-link { background: var(--sage); color: #fff; }
.home .btn-primary:not(:disabled):hover, .place-link:hover { background: var(--sage-hover); }
.home .btn-primary:disabled { border-color: var(--sage); color: var(--sage-hover); }

.home { --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --radius: 12px; }
.home .btn, .home .place-link, .home .btn-text.btn { border-radius: 10px; }
.home .intro-link { border-radius: 0; }
.home .intro-frame, .home .how-photo, .home .fabric-col img { border-radius: 16px; }
.home .type-card, .home .step, .home .summary-card, .home .option, .home .shop-card, .home .check-row, .home .compare-col, .home .shop-chosen, .home .type-dialog { border-radius: 14px; }
.home .model-art, .home .preview, .home .option > .option-photo, .home .option > svg, .home .option-icon, .home .shop-card img, .home .shop-chosen img { border-radius: 10px; }
.home .shop-search, .home .shop-sort, .home .field input, .home .field select, .home .shop-range input, .home .qty { border-radius: 10px; }
.home .how-tip { border-radius: 0 12px 12px 0; }
.home .how-box { border-radius: 6px; }
.home .step-num, .home .preview-arrow, .home .dialog-close { border-radius: 8px; }
.home .mobile-bar .btn { border-radius: 10px; }
.intro-perks::before, .intro-perks::after { background: #7f9a7f; height: 1.5px; }
.intro-perks li + li::before { width: 8px; height: 8px; border-radius: 0; background: #7f9a7f; transform: rotate(45deg); }
/* Each phrase stays whole. On windows between the phone layout and ~1080px wide (a half-screen PC window) the row is
   tightened so all three still fit on one line instead of breaking mid-phrase. */
.intro-perks li { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1080px) {
  .intro-perks { font-size: 13.5px; letter-spacing: .12em; }
  .intro-perks::before, .intro-perks::after { max-width: 48px; margin: 0 18px; }
  .intro-perks li + li::before { margin: 0 20px 2px; }
}

.home .compare-col li::before { color: #5f7a63; }
.home h1 em, .home h2 em { color: #3a523f; }

.home { --serif: "Sorts Mill Goudy", Georgia, serif; --sans: "Gantari", system-ui, sans-serif; }
.home h1, .home h2, .home h3, .home .type-card-name, .home .step-title, .home .price-row strong, .home .compare-title { font-weight: 400; }
.home .intro-title { letter-spacing: -.025em; }

.home .intro-nav { height: 88px; gap: 40px; border-bottom: 1px solid var(--line-strong); margin-bottom: 20px; }
.home .intro-logo { font: 400 30px/1 var(--serif); letter-spacing: -.01em; text-transform: none; }
.home .intro-nav nav { margin-left: auto; gap: 34px; }
.home .intro-nav nav a { position: relative; font: 500 15px var(--sans); letter-spacing: .18em; padding: 8px 0; }
.home .intro-nav nav a:hover { text-decoration: none; }
.home .intro-nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: #5f7a63; transition: right .25s ease; }
.home .intro-nav nav a:hover::after { right: .18em; }
.intro-nav-cta { flex: none; background: #5f7a63; color: #fff; text-decoration: none; font: 500 14px var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 17px 28px; border-radius: 10px; transition: background .2s ease; }
.intro-nav-cta:hover { background: #4c6650; }
@media (max-width: 1279px) {   /* the bigger nav only fits from ~1280px: step it back down below that */
  .home .intro-nav { gap: 24px; }
  .home .intro-nav nav { gap: 22px; }
  .home .intro-nav nav a { font-size: 13px; letter-spacing: .14em; }
  .intro-nav-cta { font-size: 12px; padding: 14px 20px; }
}
@media (max-width: 1040px) { .home .intro-nav nav { display: none; } }
@media (max-width: 860px) {
  .home .intro-nav { height: 64px; gap: 12px; margin-bottom: 16px; }
  .home .intro-logo { font-size: 24px; }
  .home .intro-nav nav { display: none; }
  .intro-nav-cta { padding: 12px 18px; font-size: 12px; }
}

.home .site-footer { background: #33483a; color: rgba(239, 233, 223, .78); border-top: 0; }
.home .site-footer a, .home .footer-nav a, .home .footer-contact a { color: #efe9df; }
.home .footer-logo { color: #efe9df; font: 400 30px/1 var(--serif); letter-spacing: -.01em; text-transform: none; }
.home .footer-bottom { border-top-color: rgba(239, 233, 223, .18); color: rgba(239, 233, 223, .62); }
.home .footer-nav a { position: relative; padding: 6px 0; }
.home .footer-nav a:hover { text-decoration: none; }
.home .footer-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: #b9cdb4; transition: right .25s ease; }
.home .footer-nav a:hover::after { right: .22em; }
.home .site-footer :focus-visible { outline-color: #efe9df; }
.home .how { border-bottom: 0; }

.home .intro-nav { border-bottom-color: #7f9a7f; }

.home .builder { position: relative; }
.home .builder::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1400px, calc(100% - 48px)); height: 1px; background: #7f9a7f; }
@media (max-width: 860px) { .home .builder::before { width: calc(100% - 32px); } }
.home .how { position: relative; border-top: 0; }
.home .how::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1400px, calc(100% - 48px)); height: 1px; background: #7f9a7f; }
@media (max-width: 860px) { .home .how::before { width: calc(100% - 32px); } }
.home .builder { padding-bottom: 56px; }
.home .how { padding-top: 56px; }
.home .how-layout { align-items: start; }
.how-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 340px 260px 260px 300px; grid-template-areas: "a a" "b c" "d e" "f f"; gap: 14px; }
.hp { position: relative; overflow: hidden; min-height: 0; border-radius: 16px; background: rgba(127, 154, 127, .12); }
.hp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 2.4s ease-in-out; }
.hp-a { grid-area: a; } .hp-b { grid-area: b; } .hp-c { grid-area: c; } .hp-d { grid-area: d; } .hp-e { grid-area: e; } .hp-f { grid-area: f; }
@media (max-width: 960px) {
  .how-photos { grid-template-rows: 200px 140px 140px 170px; gap: 8px; }
  .hp { border-radius: 12px; }
}
@media (max-width: 860px) { .home .builder { padding-bottom: 40px; } .home .how { padding-top: 40px; } }

.home { --gutter: clamp(16px, 7.5vw, 176px); --content: min(1500px, calc(100% - 2 * var(--gutter))); }
.home .intro-shell { width: var(--content); }
.home .wrap { max-width: none; width: var(--content); padding-left: 0; padding-right: 0; }
.home .builder::before, .home .how::before { width: var(--content); }
@media (max-width: 860px) {
  .home { --gutter: 16px; }
  .home .intro-shell, .home .wrap, .home .builder::before, .home .how::before { width: calc(100% - 32px); }
}

.model-art model-viewer { transition: opacity .6s ease; }
.model-art model-viewer.is-dressing { opacity: 0; }
.model-art:has(model-viewer.is-dressing) { background: linear-gradient(100deg, var(--stone) 30%, #efe8dc 50%, var(--stone) 70%) 0 0 / 300% 100%; animation: card-wait 1.6s ease-in-out infinite; }
@keyframes card-wait { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .model-art:has(model-viewer.is-dressing) { animation: none; } }

.swatch-crop { display: block; background-color: var(--stone); background-position: center; background-repeat: no-repeat; }
.shop-card .swatch-crop { width: 100%; aspect-ratio: 1; margin-bottom: 6px; }
.shop-chosen .swatch-crop { width: 64px; height: 64px; flex: none; border-radius: 10px; }

.shop-item { position: relative; display: flex; }
.shop-item .shop-card { flex: 1; padding-bottom: 38px; }
.shop-more { position: absolute; left: 10px; bottom: 10px; border: 0; background: none; padding: 0; font: 600 11px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.shop-more:hover { color: var(--ink); }
.home .shop-more { color: #3a523f; }
@media (min-width: 761px) { .type-dialog.is-fabric { width: min(760px, calc(100vw - 32px)); } }
.fabric-info { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.fabric-info .swatch-crop, .fabric-info > img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.fabric-info .compare-title { margin: 4px 0 4px; }
.fabric-specs { display: grid; grid-template-columns: 130px 1fr; margin: 18px 0 22px; font-size: 14px; }
.fabric-specs dt, .fabric-specs dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fabric-specs dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 11px; }
@media (max-width: 760px) {
  .fabric-info { grid-template-columns: 1fr; gap: 16px; }
  .fabric-info .swatch-crop, .fabric-info > img { max-width: 220px; }
  .fabric-info .compare-actions .btn { width: 100%; }
  .fabric-specs { grid-template-columns: 110px 1fr; }
}
/* Logo: sage cushion (images/brand/cushion.png, built by tools/make_logo.py) + the name set in Gantari */
.intro-logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.intro-logo img, .footer-logo img { display: block; width: auto; height: 56px; margin: -4px 0; }
.logo-word { display: inline-flex; flex-direction: column; align-items: stretch; font-family: "Gantari", system-ui, sans-serif; color: #2a2d33; }
.logo-word b { font-size: 30px; font-weight: 800; line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.logo-word small { display: flex; align-items: center; gap: .7em; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--sage, #5f7a63); }
.logo-word small span { margin-right: -.32em; }
.logo-word small::before, .logo-word small::after { content: ""; flex: 1; height: 2px; background: currentColor; }
.footer-logo .logo-word { color: #efe9df; }
.footer-logo .logo-word small { color: #c5d6c8; }
@media (max-width: 860px) {
  .intro-logo { gap: 9px; }
  .intro-logo img { height: 42px; margin: -3px 0; }
  .intro-logo .logo-word b { font-size: 22px; }
  .intro-logo .logo-word small { font-size: 9px; margin-top: 3px; }
}

/* Green line between the builder and the fabrics section, like the other section breaks. */
.home .fabrics { position: relative; }
.home .fabrics::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: var(--content); height: 1px; background: #7f9a7f; }
@media (max-width: 860px) { .home .fabrics::before { width: calc(100% - 32px); } }

/* Why a finished cushion can't be priced. */
.price-reason { margin: 0 0 12px; padding: 8px 10px; font-size: var(--t-sm); color: var(--ink); background: #fff6dd; border: 1px solid #e3cf8d; border-radius: 6px; }

/* Cart and order page */
.cart-open { position: fixed; right: 16px; bottom: 16px; z-index: 40; padding: 12px 18px; border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); font: 600 var(--t-sm) var(--sans); cursor: pointer; box-shadow: var(--shadow-float); }
.cart-open:hover { background: var(--accent-hover); }
.cart-open[hidden] { display: none; }
@media (max-width: 960px) { .cart-open { top: 12px; right: 12px; bottom: auto; } }
.cart { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-float); }
.cart::backdrop { background: rgba(17, 17, 17, .45); }
.cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cart-head h2 { margin: 0; font-size: var(--t-lg); }
.cart .btn-block { margin-top: 10px; }
.cart .fine { margin-top: 12px; text-align: center; }
/* Return policy page */
.policy { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
.policy-home { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 40px; color: var(--ink); text-decoration: none; }
.policy-home img { width: 56px; height: auto; }
.policy h1 { font: 400 clamp(40px, 6vw, 60px)/1.05 var(--serif); margin: 0 0 20px; }
.policy h2 { font: italic 400 26px/1.2 var(--serif); margin: 40px 0 10px; }
.policy p, .policy li { font-size: 17px; line-height: 1.65; color: var(--ink); }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.policy-lead { font-size: 19px; }
.policy a { color: var(--ink); text-underline-offset: 3px; }
.policy-back { margin-top: 48px; }
.order-shell { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.order-home { display: inline-block; margin-bottom: 32px; color: var(--ink); font-weight: 800; text-decoration: none; }
.order-shell h1 { font-size: var(--t-xl); }
.order-shell h2 { margin-top: 28px; font-size: var(--t-md); }
.order-status { color: var(--muted); }
.order-address { white-space: pre-line; }
.order-lines .order-item .fine { display: block; }

/* Numbered shapes: picker, measuring drawing and one box per number */
.shape-picks { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 22px; }
.shape-pick-art { display: block; height: 70px; margin-bottom: 10px; }
.shape-pick-art svg { width: 100%; height: 100%; }
.measure { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .measure { grid-template-columns: 1fr; } .measure-art { max-width: 300px; margin: 0 auto; } }
.measure-art svg { width: 100%; height: auto; display: block; }
.measure-svg .ms-shape { fill: var(--surface, #f3eee6); stroke: var(--ink, #1f2a24); stroke-linejoin: round; }
.measure-svg .ms-dim { stroke: var(--accent, #5f7f6a); }
.measure-svg .ms-head { fill: var(--accent, #5f7f6a); }
.measure-svg .ms-badge { fill: var(--ink, #1f2a24); }
.measure-svg .ms-num { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; font-family: inherit; }
.measure-svg .ms-front { fill: var(--muted, #6b736e); text-anchor: middle; letter-spacing: .12em; font-family: inherit; }
.shape-pick-art .ms-shape { stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.measure-svg .ms-run { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.measure-svg .ms-corner { fill: var(--ink, #1f2a24); }
.measure-svg .ms-zip-tape { stroke: #fff; }
.measure-svg .ms-zip-teeth { stroke: #1f2a24; }
.side-legend { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 6px 22px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.side-legend li { display: flex; align-items: center; gap: 8px; }
.side-chip { flex: none; width: 18px; height: 18px; border: 1.5px solid #1f2a24; border-radius: 5px; background: var(--surface); }
.zipper-pick { position: relative; max-width: 400px; margin-bottom: 20px; }
/* The picker sits beside the drawing when there's room (its list then opens over empty space), below it when not. */
.zipper-measure { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.zipper-measure .measure-art { flex: 0 1 300px; min-width: 200px; }
.zipper-side { flex: 1 1 240px; min-width: 0; max-width: 400px; }
.zipper-side .zipper-pick { margin-bottom: 12px; }
@media (max-width: 640px) { .zipper-measure .zipper-side { order: -1; flex-basis: 100%; } .zipper-measure .measure-art { margin: 0 auto; } }
.zipper-pick .side-chip { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.zipper-pick select { padding-left: 44px; }
@media (max-width: 420px) { .zipper-pick { margin-inline: -8px; } .zipper-pick .side-chip { left: 12px; } .zipper-pick select { padding: 12px 28px 12px 38px; background-position: right 10px center; } }
.dims-numbered { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dim-num { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--ink, #1f2a24); color: #fff; font-size: 12px; line-height: 1; vertical-align: 1px; }
.preview-flat { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; }
.preview-flat svg { width: 100%; max-height: 100%; }

/* Card footer: details link, and a Get started button that pops up on the selected card. */
.type-card-foot { position: relative; display: flex; align-items: center; margin: auto 18px 20px; min-height: 48px; }
.type-card-foot .type-card-more { margin: 0; }
.type-card.is-selected .type-card-more { max-width: calc(100% - 180px); }
.type-card-go { position: absolute; right: 0; top: 50%; translate: 0 -50%; min-height: 48px; padding: 0 22px; font-size: 16px; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.96); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; }
.type-card.is-selected .type-card-go { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
@media (prefers-reduced-motion: reduce) { .type-card-go, .type-card.is-selected .type-card-go { transition: none; transform: none; } }

/* Fabric design and Sunbrella type: each a compact segmented switch, side by side with the Color dropdown,
   wrapping only between whole switches. A switch too wide for a phone scrolls sideways instead of breaking up. */
.shop-choice { display: inline-flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; padding: 3px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--surface); }
.shop-choice::-webkit-scrollbar { display: none; }
.shop-choice-btn { flex: none; min-height: 34px; padding: 6px 11px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink); font: 600 13px var(--sans); white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.shop-choice-btn:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--bg); }
.shop-filters .shop-facet summary { min-height: 42px; box-sizing: border-box; }
/* "213 fabrics" and the small page switch share one line. */
.shop-sub .shop-pages { margin: 0; gap: 12px; justify-content: flex-end; }
.step-actions-top { flex-direction: row; justify-content: flex-end; }
.shop-choice-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.shop-choice-btn:disabled { opacity: .45; cursor: default; }
.shop-choice-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-field { display: block; margin-top: 14px; font-size: var(--t-sm); }
.cart-field textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; color: var(--ink); font: inherit; resize: vertical; }
.cart-agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: var(--t-sm); line-height: 1.45; cursor: pointer; }
.cart-agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #5f7a63; }

/* Fabric samples: the card picture, the tray of picked samples (each with a small x), and the summary mosaic. */
.sample-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; width: 100%; padding: 10px; align-content: center; }
.sample-mosaic .swatch-crop { display: block; aspect-ratio: 1; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(40, 36, 30, .08); }
.sample-mosaic.is-card { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 26px; max-width: 340px; margin: 0 auto; }
.sample-card-art { display: flex; align-items: center; justify-content: center; min-height: 340px; cursor: pointer; }
@media (max-width: 860px) { .sample-card-art { min-height: 240px; } .sample-mosaic.is-card { max-width: 240px; padding: 16px; } }
.preview .sample-mosaic.is-card { max-width: 220px; }
.mobile-thumb .sample-mosaic { padding: 0; gap: 2px; }
.mobile-thumb .sample-mosaic .swatch-crop { border-radius: 2px; }
.sample-tray { margin: 0 0 18px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.sample-tray-head { margin: 0; }
.sample-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sample-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 4px 4px 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font-size: 14px; }
.sample-chip .swatch-crop { display: block; width: 26px; height: 26px; flex: none; border-radius: 50%; }
.sample-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sample-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.sample-x:hover, .sample-x:focus-visible { background: var(--line); color: var(--ink); }
.sample-note { margin: 10px 0 0; }
.preview > .sample-mosaic:not(.is-card) { grid-template-columns: repeat(5, 1fr); align-self: center; max-width: 320px; padding: 16px; }
/* The steps column may shrink to the screen: without this the fabric search bar pushed phones 24px too wide. */
.builder-grid > .steps { min-width: 0; }
/* The samples photo fills the card the way the 3D cushions do. */
.sample-card-art { overflow: hidden; }
.sample-photo { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.sample-card-art .sample-photo { position: absolute; inset: 0; }
.preview > .sample-photo { border-radius: 12px; min-height: 0; max-height: 100%; padding: 14px; box-sizing: border-box; }   /* never taller than its box */
.mobile-thumb .sample-photo { border-radius: 4px; }
.sample-card-art .sample-photo { object-position: 50% 50%; }
/* The picked samples in the summary: a scrolling list, swatch on the left and the name beside it. */
.preview > .sample-list { place-self: stretch; list-style: none; margin: 0; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sample-list li { display: flex; align-items: center; gap: 12px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sample-list .swatch-crop { width: 48px; height: 48px; flex: none; border-radius: 8px; }
.sample-list-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sample-list-text strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-list-text .fine { margin: 0; }
.sample-list-text { flex: 1; }
.sample-list .sample-x { margin-left: auto; }
.sample-list-text, .sample-list-text .fine { text-align: left; align-items: flex-start; }
/* The samples list keeps its scroll bar on screen (Safari and Chrome otherwise hide it until you scroll). */
.preview > .sample-list { scrollbar-gutter: stable; }
.preview > .sample-list::-webkit-scrollbar { width: 10px; }
.preview > .sample-list::-webkit-scrollbar-track { background: rgba(40, 36, 30, .06); border-radius: 10px; margin: 6px 0; }
.preview > .sample-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.preview > .sample-list::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
/* With no limit on samples, the tray scrolls instead of pushing the fabrics far down the page. */
.sample-chips { max-height: 156px; overflow-y: auto; padding-right: 4px; }
.sample-chips::-webkit-scrollbar { width: 10px; }
.sample-chips::-webkit-scrollbar-track { background: rgba(40, 36, 30, .06); border-radius: 10px; }
.sample-chips::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* The home page samples card: a fan of real swatches (sampleFan in app.js). It sits over the photo, which fades away
   once the swatches are in. The swatches start stacked low and fan up into an arc, one after another; on each change
   they all sink back down together (is-folding), take the next colours, and fan up again. */
.sample-fan { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 6% 0 2%; }
/* the swatches fan out inside this box, which keeps one shape whatever the card's shape, so logo and fan stay together */
.sample-fan-stage { position: relative; width: 100%; aspect-ratio: 1 / .78; flex: none; }
.sample-card-art.has-fan .sample-photo { opacity: 0; transition: opacity .6s ease; }
.sample-fan-logo { position: relative; width: 60%; flex: none; opacity: 0; transition: opacity .8s ease .2s; }
.sample-fan-floor { position: absolute; left: 20%; right: 20%; top: 74%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 34, 26, .22), transparent); opacity: 0; transition: opacity 1.2s ease .4s; }
.sample-fan-swatch { position: absolute; left: 32%; top: 20%; width: 36%; aspect-ratio: 1; transform-origin: 50% 150%;
  background-size: cover; background-position: center;
  transform: translateY(45%) rotate(0deg); opacity: 0;
  transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) var(--d), opacity .7s ease var(--d);
  box-shadow: 0 1px 2px rgba(30, 26, 20, .18), 0 8px 18px rgba(30, 26, 20, .14); border-radius: 2px; }
.sample-fan.is-open .sample-fan-swatch { transform: translateY(0) rotate(var(--a)); opacity: 1; }
/* The swatch photos are flat and evenly lit, so they read brighter than the lit 3D cushions beside them: tone them
   down a little and lay a soft light-to-shade sweep over each, as if lit from the upper left. */
.sample-fan-swatch { filter: brightness(.86) saturate(.9) contrast(1.04); }
.sample-fan-swatch::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 38%, rgba(20, 16, 10, .16)); }
.sample-fan.is-folding .sample-fan-swatch { transition: transform .6s ease-in, opacity .6s ease-in; }
.sample-fan.is-shown .sample-fan-logo, .sample-fan.is-shown .sample-fan-floor { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sample-fan-swatch, .sample-fan-logo, .sample-fan-floor, .sample-card-art.has-fan .sample-photo { transition: none; } }
