/* China Furniture, direction B: the developer’s floor plan */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/b/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/b/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sheet: #ffffff;
  --ink: #2b2b2b;
  --ink-2: #575c60;
  --line: #bfc3c7;
  --line-soft: #e3e5e7;
  --oak: #e6d9c3;
  --oak-soft: #f5efe5;
  --oak-line: #d4c19f;
  --tile: #eef0f1;
  --green: #2f6f5e;
  --green-ink: #24574a;
  --green-tint: #e3eee9;
  --red: #b3261e;
  --red-tint: #fbeae8;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: 16px;
  --pt: 22px; /* plan label size, in drawing units (cm) */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line) var(--sheet);
  scrollbar-width: thin;
  scroll-padding-top: 12px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sheet); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--sheet); }

body {
  margin: 0;
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.5;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--sheet);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--oak); color: var(--ink); }
input, textarea { caret-color: var(--green); }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }

img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.num,
.price,
input[type="number"] { font-variant-numeric: tabular-nums lining-nums; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(100% - 2 * var(--pad), 1200px);
  margin-inline: auto;
}

.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-sm { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--sheet);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms linear, border-color 120ms linear, color 120ms linear;
}
.btn:hover { background: var(--oak-soft); }
.btn-go {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-go:hover { background: var(--green-ink); border-color: var(--green-ink); }
.btn[disabled] {
  background: var(--line-soft);
  border-color: var(--line-soft);
  color: var(--ink-2);
  cursor: not-allowed;
}

.ib {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
}
.ib:hover { background: var(--oak-soft); }
.ib[aria-expanded="true"] { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */

.hdr { border-bottom: 1.5px solid var(--ink); background: var(--sheet); position: relative; z-index: 20; }
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: grid;
  gap: 1px;
  text-decoration: none;
  padding-block: 8px;
}
.brand-name {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--ink-2);
}
.hdr-act { display: flex; gap: 2px; margin-right: -6px; }

.badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.ib[aria-expanded="true"] .badge { background: #fff; color: var(--ink); }

.panel {
  border-top: 1px solid var(--line);
  background: var(--sheet);
  padding-block: 16px 20px;
}
.panel[hidden] { display: none; }

.search { display: flex; gap: 8px; }
.search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--sheet);
  font-size: 1rem;
}
.search input::placeholder { color: var(--ink-2); }

.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.menu h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.menu a:hover { text-decoration: underline; }
.menu-wide { grid-column: 1 / -1; }
.menu-wide ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }

.cart-list { display: grid; gap: 0; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto 44px;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-row b { font-weight: 600; }
.cart-row span { display: block; font-size: 0.875rem; color: var(--ink-2); }
.cart-sum {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
  font-weight: 700;
}
.cart-foot { display: grid; gap: 8px; }
.cart-foot p { font-size: 0.875rem; color: var(--ink-2); }
.cart-empty { color: var(--ink-2); }
.cart-empty a { color: var(--green); font-weight: 600; }

/* ---------- Section typography ---------- */

h1, h2, h3 { text-wrap: balance; }

.h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h2 {
  font-stretch: 115%;
  font-weight: 750;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h1 span { display: block; }
.lede {
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.intro {
  max-width: 62ch;
  color: var(--ink-2);
  text-wrap: pretty;
}

.sheet-sec {
  border-top: 1.5px solid var(--ink);
  padding-block: 48px 56px;
}
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; }

/* ---------- Home page: floor plan ---------- */

.hero { padding-block: 20px 36px; }
.hero-text { display: grid; gap: 12px; margin-bottom: 18px; }

.plan-cap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.plan-cap .i { width: 20px; height: 20px; color: var(--green); margin-top: 0; }

.plan {
  position: relative;
  aspect-ratio: 705 / 695;
  margin-inline: -4px;
  user-select: none;
  -webkit-user-select: none;
}
.plan-svg,
.leader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.plan-svg { overflow: hidden; }
.leader { pointer-events: none; }
.leader line { stroke: var(--ink); stroke-width: 1; }
.leader circle { fill: var(--ink); }

.plan-svg text,
.mini text,
.fp-panel text {
  font-family: var(--f);
  font-stretch: 87.5%;
  fill: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.plan-svg text { font-size: var(--pt); }
.pl-poche { fill: var(--ink); }
.pl-l {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.pl-l.hair { stroke-width: 0.6; }
.pl-l.fill { fill: var(--sheet); }
.pl-l.grey { stroke: #8b9196; }
.pl-dim line,
.pl-dim path {
  stroke: var(--ink);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}
.pl-dim .tk { stroke-width: 1.5; }
.pl-dim.is-red line,
.pl-dim.is-red path { stroke: var(--red); }
.pl-dim.is-red text { fill: var(--red); }
.pl-wall {
  stroke: var(--green);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: butt;
}
.is-short .pl-wall { stroke: var(--red); }
.pl-room { font-weight: 500; }
.pl-area { font-weight: 700; font-size: calc(var(--pt) * 1.18) !important; }
.pl-quiet { fill: var(--ink-2) !important; font-weight: 500; }
.pl-sbar { fill: var(--ink); }
.pl-sbar.w { fill: var(--sheet); stroke: var(--ink); stroke-width: 0.75; vector-effect: non-scaling-stroke; }

/* Furniture outlines (symbols in cm) */
.fp-o {
  fill: var(--fp-fill, var(--sheet));
  stroke: currentColor;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.fp-d {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.fp-h {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.fp {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;
}
.fp::before {
  content: "";
  position: absolute;
  inset: -6px;
}
.fp-sm::before { inset: -14px; border-radius: 50%; }
.fp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fp:hover { --fp-fill: var(--green-tint); }
.fp[aria-expanded="true"] { --fp-fill: var(--green-tint); color: var(--green-ink); }
.fp[aria-expanded="true"] .fp-o { stroke-width: 2.4; }
.fp:focus-visible { outline-offset: 4px; }
.fp-round:focus-visible { border-radius: 50%; }
.is-short .fp[data-id="sofa-koniak"] { color: var(--red); --fp-fill: var(--red-tint); }

/* Callout shown when a piece is tapped */
.callout {
  position: absolute;
  z-index: 5;
  left: 6px;
  right: 6px;
  padding: 6px 6px 4px 14px;
  background: var(--sheet);
  border: 1.5px solid var(--ink);
}
.callout[hidden] { display: none; }
.co-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.co-head h2 {
  font-stretch: 112%;
  font-weight: 750;
  font-size: 1.0625rem;
  line-height: 1.2;
}
.co-head h2 b { font-weight: inherit; }
.co-head h2 span { font-stretch: 100%; font-weight: 400; font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
.co-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: -4px 8px 8px 0;
  font-size: 0.9375rem;
}
.co-line .price { font-size: 1.1875rem; }
.co-ship {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 8px 0 -6px;
  padding: 7px 8px 7px 6px;
  background: var(--oak-soft);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
}
.co-ship .i { margin-top: -1px; }
.co-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.co-foot p { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.co-foot b { font-weight: 650; white-space: nowrap; }
.co-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--green);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.co-link:hover { text-decoration: underline; }

/* Shared fact rows: dimensions, shipping, delivery */
.facts { display: grid; gap: 0; }
.facts > div {
  position: relative;
  padding: 7px 8px 7px 42px;
  border-top: 1px solid var(--line-soft);
}
.facts dt { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.3; }
.facts dd { font-size: 0.9375rem; line-height: 1.35; }
.facts dt .i { position: absolute; left: 8px; top: 9px; color: var(--ink); }
.facts .ship {
  background: var(--oak-soft);
  border-top-color: var(--oak);
}
.facts .ship dd { font-weight: 600; }

/* Wall control */
.wall-ctl {
  margin-top: 10px;
  border: 1.5px solid var(--ink);
}
.wall-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
}
.wall-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-stretch: 108%;
}
.wall-key {
  display: inline-block;
  width: 22px;
  height: 4px;
  background: var(--green);
  flex: none;
}
.is-short-ctl .wall-key { background: var(--red); }
.stepper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: var(--sheet);
}
.stepper button:hover { background: var(--oak-soft); }
.stepper button:active { background: var(--oak); }
.stepper .unit {
  display: flex;
  align-items: center;
  border-inline: 1px solid var(--line);
}
.stepper input {
  width: 4.2ch;
  border: 0;
  padding: 0 0 0 8px;
  background: transparent;
  font-size: 1.375rem;
  font-weight: 650;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .unit span { padding: 0 10px 0 4px; color: var(--ink-2); }
.stepper .unit:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.stepper input:focus-visible { outline: none; }
.stepper.is-invalid { border-color: var(--red); }

.fit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--green);
}
.fit .i { margin-top: -1px; }
.fit.is-bad { color: var(--red); background: var(--red-tint); }
.fit.is-err { color: var(--red); }
.fit small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.875rem; margin-top: 2px; }
.fit.is-bad small { color: var(--red); }

/* ---------- Room schedule ---------- */

.rooms { width: 100%; border-collapse: collapse; }
.rooms caption { text-align: left; }
.rooms th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 0 8px;
  border-bottom: 1.5px solid var(--ink);
}
.rooms th:last-child,
.rooms td:last-child { text-align: right; }
.rooms tbody tr { position: relative; border-bottom: 1px solid var(--line); }
.rooms tbody tr:hover { background: var(--oak-soft); }
.rooms td { padding: 12px 0; vertical-align: middle; }
.rooms .r-thumb { width: 72px; padding-right: 12px; }
.rooms .r-thumb svg { display: block; width: 60px; height: 50px; }
.rooms a {
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.rooms a::after { content: ""; position: absolute; inset: 0; }
.rooms a:focus-visible { outline: none; }
.rooms tr:has(a:focus-visible) { outline: 2px solid var(--green); outline-offset: -2px; }
.rooms .r-what { display: block; font-size: 0.875rem; color: var(--ink-2); font-weight: 400; }
.rooms .r-area { font-weight: 650; font-size: 1.0625rem; white-space: nowrap; }
.rooms tfoot td {
  padding-top: 12px;
  border-top: 1.5px solid var(--ink);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.rooms tfoot td:last-child { color: var(--ink); font-weight: 650; font-size: 1rem; }
.room-thumb-wall { fill: none; stroke: var(--ink); stroke-width: 3; }
.room-thumb-floor { fill: var(--oak); }

.cats { margin-top: 28px; display: grid; gap: 10px; }
.cats h3 { font-size: 1rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
}
.chips a:hover { background: var(--oak-soft); }
.chips a[aria-current="true"] { background: var(--ink); color: #fff; }

/* ---------- Product cards ---------- */

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--ink);
}
.filterbar[hidden] { display: none; }
.filterbar p { font-weight: 600; }
.empty {
  padding: 20px;
  border: 1px dashed var(--ink-2);
  color: var(--ink-2);
  max-width: 62ch;
}
.empty[hidden] { display: none; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 28px;
}
.card {
  display: grid;
  align-content: start;
  gap: 12px;
  border-top: 1.5px solid var(--ink);
  padding-top: 14px;
  scroll-margin-top: 16px;
}
.card[hidden] { display: none; }
.views {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border: 1px solid var(--line);
}
.views-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line-soft);
}
.views-photo img { width: 100%; height: 100%; object-fit: cover; }
.fp-panel {
  position: relative;
  border-left: 1px solid var(--line);
  color: var(--ink);
}
.fp-panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-panel figcaption {
  position: absolute;
  left: 8px; top: 6px;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.fp-panel text { font-size: 20px; }
.fp-panel .pl-dim line { stroke-width: 0.6; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.card h3 {
  font-stretch: 112%;
  font-weight: 750;
  font-size: 1.25rem;
  line-height: 1.15;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .model { font-size: 0.8125rem; color: var(--ink-2); }
.price { font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.card-act { display: flex; flex-wrap: wrap; gap: 8px; }
.card-act .btn { flex: 1 1 auto; }

/* ---------- Notes and key ---------- */

.notes {
  display: grid;
  border: 1.5px solid var(--ink);
}
.notes > div { padding: 18px 16px 20px; }
.notes > div + div { border-top: 1px solid var(--ink); }
.notes h2 {
  font-stretch: 115%;
  font-weight: 750;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.notes-list { display: grid; gap: 14px; max-width: 64ch; }
.notes-list li {
  position: relative;
  padding-left: 22px;
  text-wrap: pretty;
}
.notes-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--ink);
}
.notes-list strong { font-weight: 650; }
.legend { display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; font-size: 0.9375rem; }
.legend svg { width: 48px; height: 26px; display: block; }

/* ---------- Footer: drawing title block ---------- */

.title-strip {
  margin-top: 8px;
  padding-block: 24px 32px;
}
.ts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  border: 1.5px solid var(--ink);
}
.ts > * { padding: 10px 12px 12px; background: var(--sheet); }
.ts-brand,
.ts-full { grid-column: 1 / -1; }
.ts dt { font-size: 0.75rem; color: var(--ink-2); }
.ts dd { font-weight: 600; font-size: 0.9375rem; }
.ts .brand-name { display: block; margin-top: 2px; }
.ts-nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ts-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.ts-note { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- Product page ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  padding-block: 4px 12px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
.crumbs ol { display: flex; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.crumbs ol li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs ol a { color: var(--ink-2); }

.pp { display: grid; gap: 28px; padding-bottom: 40px; }

.gallery { display: grid; gap: 0; }
.photo {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #fff;
}
.photo img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(var(--z, 1));
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  display: grid;
  gap: 4px;
  padding: 0 0 4px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.thumb span:first-child {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.thumb[aria-pressed="true"] span:first-child { border: 2px solid var(--ink); }

.proj { position: relative; margin-top: 0; }
.proj svg { display: block; width: 100%; height: auto; }
.proj .pj { stroke: #8b9196; stroke-width: 0.75; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.proj[data-detail="true"] .pj { display: none; }
.proj figcaption { font-size: 0.875rem; color: var(--ink-2); margin-top: 6px; }
.proj text { font-size: 7.5px; }

.buy { display: grid; gap: 18px; align-content: start; }
@media (max-width: 1023.98px) {
  .buy { display: contents; }
  .buy-title { order: -2; }
  .buy-price { order: -1; margin-top: -20px; }
}
.buy-title { display: grid; gap: 4px; }
.buy-title h1 {
  font-stretch: 120%;
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.buy-title .model { color: var(--ink-2); }
.buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy-price .price { font-size: 1.75rem; }
.buy-price small { color: var(--ink-2); font-size: 0.875rem; }

.origin {
  border: 1.5px solid var(--ink);
  display: grid;
}
.origin > div {
  position: relative;
  padding: 12px 14px 12px 50px;
}
.origin > div + div { border-top: 1px solid var(--line); }
.origin > div:first-child { background: var(--oak-soft); }
.origin dt .i { position: absolute; left: 14px; top: 14px; color: var(--ink); }
.origin dt { font-size: 0.8125rem; color: var(--ink-2); }
.origin dd { font-weight: 650; line-height: 1.3; }

.swatches { border: 0; padding: 0; margin: 0; min-width: 0; }
.swatches legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.swatches legend span { font-weight: 400; color: var(--ink-2); }
.sw-list { display: flex; gap: 12px; }
.sw { position: relative; display: grid; gap: 4px; justify-items: center; font-size: 0.8125rem; }
.sw input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.sw i {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.sw input:checked + i { outline: 2px solid var(--ink); outline-offset: 3px; }
.sw input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 3px; }
.sw-note { font-size: 0.875rem; color: var(--ink-2); margin-top: 8px; }

.buybar {
  position: fixed;
  z-index: 30;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 6px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--sheet);
  border-top: 1.5px solid var(--ink);
}
.buybar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar-sum { display: grid; line-height: 1.2; }
.buybar-sum .price { font-size: 1.25rem; }
.buybar-sum span { font-size: 0.8125rem; color: var(--ink-2); }
.buybar .btn { min-width: 0; flex: 0 1 auto; padding-inline: 18px; }
.buybar .btn.is-done { background: var(--ink); border-color: var(--ink); }
.added {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}
.added[hidden] { display: none; }
.added button {
  min-height: 44px;
  margin: -12px 0 -12px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  font-weight: 600;
  white-space: nowrap;
}
.has-buybar { padding-bottom: 92px; }

.spec { display: grid; border-top: 1.5px solid var(--ink); }
.spec > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--ink-2); font-size: 0.875rem; padding-top: 1px; }
.spec dd { font-size: 0.9375rem; }
.spec dd small { display: block; color: var(--ink-2); font-size: 0.8125rem; margin-top: 2px; }

.check { display: grid; gap: 14px; border-top: 1.5px solid var(--ink); padding-top: 28px; }
.check h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.check-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 440px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .stepper { width: 100%; }
.field .stepper .unit { flex: 1; min-width: 0; justify-content: center; }
.field .stepper input { width: 4ch; padding-left: 0; font-size: 1.1875rem; }
.field .stepper .unit span { padding-right: 0; }
.mini-wrap { border: 1px solid var(--line); }
.mini { display: block; width: 100%; height: auto; }
.mini .pl-l { stroke-width: 1; }
.check .fit { border-top: 1px solid var(--line); }

/* ---------- Wide screens ---------- */

@media (min-width: 720px) {
  :root { --pad: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 3fr 2fr; }
  .notes > div + div { border-top: 0; border-left: 1px solid var(--ink); }
  .ts { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .ts-brand { grid-column: auto; }
  .ts-nav { grid-column: span 3; }
  .callout { left: auto; right: auto; width: 320px; }
}

@media (min-width: 1024px) {
  :root { --pt: 16px; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 540px;
    gap: 56px;
    align-items: start;
    padding-block: 40px 56px;
  }
  .hero-text { position: sticky; top: 32px; margin-bottom: 0; gap: 20px; padding-top: 24px; }
  .hero-plan { width: 100%; }
  .lede { font-size: 1.1875rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .rooms-grid .cats { margin-top: 0; }

  .pp {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 56px;
    row-gap: 40px;
    padding-top: 8px;
  }
  .gallery { grid-column: 1; grid-row: 1; }
  .buy { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
  .check { grid-column: 1; grid-row: 2; }
  .pp-notes { grid-column: 1 / -1; }
  .proj text { font-size: 4.4px; }
  .mini-wrap { max-width: 520px; }
  .buybar {
    position: static;
    padding: 0;
    border-top: 0;
  }
  .buybar .btn { flex: 1; }
  .has-buybar { padding-bottom: 0; }
}

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