/* Bond's shop prototype. Brand evidence: _intake/brand/BRAND.md (not committed). */

:root {
  --white: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #4b4a45;
  --ink-3: #6b6a63;
  --stone: #ece7df;
  --stone-2: #e0d9cd;
  --stone-3: #f6f3ee;
  --dark: #272725;
  --teal: #6cc1c0;
  --teal-soft: #d8efee;
  --teal-logo: #008375;
  --teal-ink: #00756a;
  --warn: #8a4b00;
  --warn-bg: #fbf1e3;
  --err: #a3271b;

  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;

  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r-card: 14px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(39, 39, 37, .06), 0 12px 28px -12px rgba(39, 39, 37, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--teal); color: #000; }
:focus-visible { outline: 3px solid var(--teal-logo); outline-offset: 3px; border-radius: 6px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Shared atoms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .62rem 1.25rem;
  border-radius: var(--r-pill); border: 1px solid var(--dark);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn--teal { background: var(--teal); color: #000; }
.btn--teal:hover { background: #5bb6b5; box-shadow: 0 6px 16px -6px rgba(29, 29, 27, .35); }
.btn--teal:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--stone-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 36px; padding: .35rem .9rem; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--stone); border-color: var(--stone-2); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }

.price { font-family: var(--serif); font-weight: 500; color: var(--teal-ink); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.price--big { font-size: 2rem; line-height: 1; }
.price s { color: var(--ink-3); font-size: .78em; margin-right: .35em; text-decoration-thickness: 1px; }
.sample-tag {
  display: inline-block; vertical-align: .08em;
  font: 600 .72rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-bg); border: 1px solid #ecd3ad;
  padding: .28em .5em; border-radius: 4px; margin-right: .3em; white-space: nowrap;
}
.sample-word { color: #ffd9a3; font-weight: 600; }

/* Prototype banner */
.proto { background: var(--dark); color: #f1efe9; font-size: .82rem; line-height: 1.45; }
.proto__in { max-width: var(--max); margin: 0 auto; padding: .55rem var(--gut); display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.proto strong { color: #fff; }
.proto__short { display: none; }
.proto__lens {
  display: inline-flex; align-items: center; gap: .45em; flex: none;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill);
  padding: .32rem .8rem; font-size: .8rem; font-weight: 600;
}
.proto__lens:hover, .proto__lens[aria-pressed="true"] { background: var(--teal); color: #000; border-color: var(--teal); }

/* Utility strip */
.util { background: var(--stone-3); border-bottom: 1px solid var(--stone); font-size: .84rem; }
.util__in { max-width: var(--max); margin: 0 auto; padding: .45rem var(--gut); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.util__back { display: inline-flex; align-items: center; gap: .3em; color: var(--ink); text-decoration: none; font-weight: 500; }
.util__back:hover { color: var(--teal-ink); text-decoration: underline; }
.util__back svg { width: 1em; height: 1em; }
.util__open { color: var(--ink-2); }
.util__open b { color: var(--teal-ink); font-weight: 600; }

/* Header */
.head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--stone); }
.head__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: var(--head-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
.head__logo img { width: auto; height: 50px; }
.aisles-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: .35rem; }
.aisles-nav a {
  display: block; padding: .5rem .95rem; border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.aisles-nav a:hover { background: var(--stone); }
.aisles-nav a[aria-current="true"] { background: var(--teal); color: #000; }
.head__tools { display: flex; align-items: center; gap: .75rem; }

.search { position: relative; }
.search input {
  width: 15.5rem; height: 44px; padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--stone-2); border-radius: var(--r-pill); background: var(--white);
  transition: border-color .2s, width .3s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--teal-logo); box-shadow: 0 0 0 3px var(--teal-soft); width: 19rem; }
.search__icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search__results {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(26rem, 92vw);
  background: var(--white); border: 1px solid var(--stone-2); border-radius: 12px; box-shadow: var(--shadow-card);
  padding: .4rem; max-height: 70vh; overflow: auto; z-index: 40;
}
.search__results p { padding: .8rem; color: var(--ink-2); font-size: .9rem; }
.hit { display: grid; grid-template-columns: 52px 1fr auto; gap: .75rem; align-items: center; width: 100%; padding: .45rem; border: 0; background: none; text-align: left; border-radius: 8px; }
.hit:hover, .hit:focus-visible { background: var(--stone-3); }
.hit img { width: 52px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--stone); }
.hit__name { font-weight: 600; font-size: .92rem; display: block; }
.hit__meta { font-size: .78rem; color: var(--ink-2); }
.hit .price { font-size: 1.05rem; }
.hit mark { background: var(--teal-soft); color: inherit; border-radius: 2px; }

.cart-btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .55rem 0 1rem;
  border-radius: var(--r-pill); border: 1px solid var(--dark); background: var(--white); font-weight: 600;
}
.cart-btn:hover { background: var(--stone-3); }
.cart-btn__count {
  min-width: 30px; height: 30px; padding: 0 .4rem; border-radius: var(--r-pill);
  display: inline-grid; place-items: center; background: var(--dark); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.cart-btn__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28); background: var(--teal); color: #000; } 100% { transform: scale(1); } }

/* Aisles: the page is a walk down the showroom aisles */
.aisle {
  --drop: 3.4rem;
  position: relative; background: var(--stone);
  padding: var(--drop) 0 0;
  border-top: 1px solid var(--stone-2);
}
.aisle + .aisle { margin-top: 0; }
.aisle--compact { background: var(--stone-3); }
.aisle--paint { background: var(--stone-3); }


.aisle__head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.aisle__h {
  /* The aisle's name is the sign hanging from the showroom ceiling: black on Bond's teal, on two strings. */
  position: relative; display: inline-block; justify-self: start;
  font: 500 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1 var(--serif); letter-spacing: -.005em;
  background: var(--teal); color: #000; border: 1px solid var(--dark); border-radius: 4px;
  padding: .26em .6em .34em; white-space: nowrap;
  transform-origin: 50% calc(-1 * var(--drop));
}
.aisle__h::before {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 100%; height: var(--drop);
  border-left: 1px solid var(--dark); border-right: 1px solid var(--dark); pointer-events: none;
}
.aisle.is-in .aisle__h { animation: sway 1.4s var(--ease) both; }
@keyframes sway { 0% { transform: rotate(1.6deg); } 35% { transform: rotate(-1deg); } 65% { transform: rotate(.4deg); } 100% { transform: rotate(0); } }
.aisle__sub strong { color: var(--ink); font-weight: 600; }
.aisle__sub { margin-top: .9rem; max-width: 62ch; color: var(--ink-2); font-size: 1rem; }
.aisle__sub .sample-tag { margin-left: .15em; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.chip {
  min-height: 40px; padding: .42rem .85rem; border-radius: var(--r-pill);
  border: 1px solid var(--stone-2); background: var(--white); font-weight: 500; font-size: .9rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--dark); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--dark); color: #000; }
.filters__count { margin-left: .4rem; font-size: .88rem; color: var(--ink-2); }

/* The rail: products stand on the aisle floor (the teal rule from the logo) */
.rail-wrap { position: relative; margin-top: 1.75rem; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 290px); gap: 1.1rem;
  align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: .5rem var(--gut) 3.25rem;
  scroll-padding-inline: var(--gut);
  scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
  background-image: linear-gradient(var(--teal-logo), var(--teal-logo));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 calc(100% - 2.25rem);
  background-attachment: local;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 8px; border: 2px solid var(--stone); }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail:focus-visible { outline-offset: -3px; }
.rail > * { scroll-snap-align: start; }
.rail--photo { grid-auto-columns: minmax(300px, 360px); }
.rail--paint { grid-auto-columns: minmax(280px, 310px); }
.rail__spacer { width: 1px; }
.rail-ctrl { position: absolute; right: var(--gut); top: -3.6rem; display: flex; gap: .5rem; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--dark); color: #fff;
  display: grid; place-items: center; transition: opacity .2s, transform .2s var(--ease);
}
.rail-btn:hover { transform: scale(1.06); }
.rail-btn[disabled] { opacity: .28; cursor: default; transform: none; }

/* Product plinth */
.plinth {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
}
.plinth:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(39, 39, 37, .06), 0 20px 36px -14px rgba(39, 39, 37, .26); }
.plinth.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--teal), var(--shadow-card); } 100% { box-shadow: var(--shadow-card); } }
.plinth__img { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1rem 1.1rem .2rem; background: var(--white); overflow: hidden; min-height: 0; }
.plinth__img img { max-height: 100%; width: 100%; object-fit: contain; }
.plinth--photo .plinth__img { padding: 0; aspect-ratio: 16 / 10; display: block; position: relative; }
.plinth--photo .plinth__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.plinth__body { padding: .8rem 1.1rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.plinth__name { font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.plinth__facts { font-size: .82rem; color: var(--ink-2); }
.plinth__blurb { font-size: .86rem; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plinth__blurb:hover { -webkit-line-clamp: unset; }
.plinth__opt { display: grid; gap: .3rem; }
.plinth__opt label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.select {
  width: 100%; height: 42px; padding: 0 2.2rem 0 .8rem; border-radius: 10px; border: 1px solid var(--stone-2); background: var(--white);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.1rem;
}
.select:focus { outline: none; border-color: var(--teal-logo); box-shadow: 0 0 0 3px var(--teal-soft); }
.plinth__buy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .4rem; }
.plinth__price { display: grid; line-height: 1.05; }
.plinth__price .price { font-size: 1.6rem; }
.plinth__price small { font-size: .72rem; color: var(--ink-2); margin-top: .2rem; }
.plinth__badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 4px; background: var(--dark); color: #fff;
}
.plinth__badge--sale { background: var(--teal); color: #000; border: 1px solid var(--dark); }
.plinth__stock { font-size: .78rem; font-weight: 600; color: var(--teal-ink); }
.plinth__stock--order { color: var(--warn); }
.plinth__stock--out { color: var(--err); }
.add {
  display: inline-flex; align-items: center; gap: .4em; height: 42px; padding: 0 1.05rem;
  border-radius: var(--r-pill); border: 1px solid var(--dark); background: var(--teal); color: #000; font-weight: 600; font-size: .92rem;
  transition: background-color .2s var(--ease), transform .15s;
}
.add:hover { background: #5bb6b5; }
.add:active { transform: translateY(1px); }
.add.is-added { background: var(--dark); color: #fff; }
.add[disabled] { background: var(--stone); border-color: var(--stone-2); color: var(--ink-3); cursor: not-allowed; }
.add svg { width: 1.05em; height: 1.05em; }
.plinth.is-hidden { display: none; }

/* End-cap: the first shelf of the first aisle carries the shop's own sign */
.endcap { padding: 0 var(--gut); max-width: var(--max); margin: 0 auto 2.75rem; }
.endcap__h { font: 700 clamp(2.35rem, 1.5rem + 2.3vw, 3.3rem)/1.03 var(--sans); letter-spacing: -.026em; max-width: 14ch; text-wrap: balance; }
.endcap__p { margin-top: 1.1rem; max-width: 46ch; font-size: 1.08rem; color: var(--ink-2); }
.endcap__aside { margin-top: 1.1rem; padding-top: 1rem; border-top: 2px solid var(--teal-logo); max-width: 46ch; font-size: .92rem; color: var(--ink-2); }
.endcap__aside a { font-weight: 600; white-space: nowrap; }

@media (min-width: 1000px) {
  .aisle--first { --endcap-w: clamp(370px, 31vw, 460px); }
  .aisle--first .aisle__head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 2rem; }
  .aisle--first .aisle__h { grid-row: 1; }
  .aisle--first .filters { grid-row: 1; grid-column: 2; margin: 0 0 .25rem; }
  .aisle--first .aisle__sub { grid-column: 1 / -1; margin-top: .45rem; }
  .aisle--first .aisle__head { padding-left: calc(var(--gut) + var(--endcap-w) + 1.5rem); }
  .endcap {
    position: absolute; z-index: 2; left: 0; top: calc(var(--drop) + .25rem); width: calc(var(--endcap-w) + var(--gut)); margin: 0;
    padding: 0 0 0 var(--gut); will-change: transform, opacity;
  }
  .aisle--first .rail-wrap { margin-top: 1.5rem; }
  .aisle--first .rail { grid-template-columns: calc(var(--endcap-w) + .4rem); }
  .aisle--first .rail::before { content: ""; scroll-snap-align: start; }
}

/* Dining set builder */
.aisle--set { background: var(--white); padding-bottom: 4.5rem; }
.set {
  max-width: var(--max); margin: 2.25rem auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start;
}
.set__stage { --pad: clamp(1.25rem, 3vw, 2.5rem); position: sticky; top: calc(var(--head-h) + 1.25rem); background: var(--stone); border-radius: var(--r-card); padding: var(--pad); overflow: hidden; }
.set__table { margin: 0; aspect-ratio: 16 / 10; display: grid; place-items: end center; }
.set__table img { max-height: 100%; width: auto; max-width: 92%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.set__table img.is-swapping { opacity: 0; transform: translateY(8px) scale(.98); }
.set__floor { height: 2px; background: var(--teal-logo); margin: .4rem calc(-1 * var(--pad)) 0; }
.set__spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
.set__spec div { min-width: 0; }
.set__spec dt { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.set__spec dd { margin: .2rem 0 0; font-weight: 600; font-size: .95rem; }

.set__steps { display: grid; gap: 2rem; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step__h { font: 500 1.6rem/1.1 var(--serif); margin-bottom: .9rem; padding: 0; }
.tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.pick {
  position: relative; display: grid; grid-template-columns: 74px 1fr; gap: .75rem; align-items: center; text-align: left;
  padding: .6rem .8rem .6rem .6rem; border: 1px solid var(--stone-2); border-radius: 12px; background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pick:hover { border-color: var(--ink-3); }
.pick[aria-checked="true"] { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); background: var(--stone-3); }
.pick[aria-checked="true"]::after {
  content: ""; position: absolute; top: .55rem; right: .55rem; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--dark);
}
.pick img { width: 74px; height: 52px; object-fit: contain; }
.pick--photo img { object-fit: cover; border-radius: 6px; }
.pick__name { display: block; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.pick__price { display: block; font-family: var(--serif); color: var(--teal-ink); font-size: 1.12rem; font-weight: 500; }
.pick__price small { font-family: var(--sans); color: var(--ink-2); font-size: .74rem; font-weight: 500; }
.pick--none img { visibility: hidden; }
.chairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }

.finish { margin-top: 1rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.finish__label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.finish__opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .35rem; min-height: 40px;
  border-radius: var(--r-pill); border: 1px solid var(--stone-2); background: var(--white); font-size: .88rem; font-weight: 500;
}
.swatch i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.swatch[aria-checked="true"] { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); }

.qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.qty__label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-right: .4rem; }
.qty__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dark); background: var(--white); display: grid; place-items: center; }
.qty__btn:hover { background: var(--stone-3); }
.qty__btn[disabled] { opacity: .35; cursor: default; }
.qty__val { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.set__total { border-top: 2px solid var(--teal-logo); padding-top: 1.1rem; display: grid; gap: .9rem; }
.set__lines { margin: 0; display: grid; gap: .35rem; font-size: .92rem; }
.set__lines div { display: flex; justify-content: space-between; gap: 1rem; }
.set__lines dt { color: var(--ink-2); }
.set__lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.set__sum { display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; }
.set__note { font-size: .84rem; color: var(--ink-2); }

/* Paint */
.tin {
  --c: #e9e4da;
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden;
}
.tin__wall { height: 150px; background: var(--c); transition: background-color .5s var(--ease); position: relative; }
.tin__wall::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, .06)); }
.tin__code { position: absolute; left: .9rem; bottom: .7rem; z-index: 1; font-size: .72rem; font-weight: 600; padding: .25rem .5rem; border-radius: 4px; background: rgba(255, 255, 255, .88); color: var(--ink); }
.tin__body { padding: .95rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.colours { display: flex; flex-wrap: wrap; gap: .4rem; }
.colours button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .22); padding: 0; position: relative; }
.colours button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--dark); }
.tin__row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tin__codeinput { height: 40px; border-radius: 10px; border: 1px solid var(--stone-2); padding: 0 .7rem; width: 100%; }
.tin__codeinput:focus { outline: none; border-color: var(--teal-logo); box-shadow: 0 0 0 3px var(--teal-soft); }
.paint-photo { border-radius: var(--r-card); overflow: hidden; align-self: stretch; position: relative; box-shadow: var(--shadow-card); }
.paint-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.paint-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(29, 29, 27, 0), rgba(29, 29, 27, .78)); }
.paint-photo p { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; color: #fff; font-weight: 600; font-size: 1.1rem; line-height: 1.3; }

/* Back office */
.office { background: var(--dark); color: #f1efe9; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.office__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.office__h { font: 500 clamp(2rem, 1.35rem + 1.9vw, 3rem)/1.05 var(--serif); color: #fff; text-wrap: balance; }
.office__intro p { margin-top: 1rem; max-width: 46ch; color: #d9d6cf; font-size: 1.05rem; }
.office__intro .office__fine { font-size: .86rem; color: #b9b6ae; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 1rem; margin-top: 1.5rem; }
.editor { background: #f6f7f7; color: #1d2327; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); font-size: .92rem; }
.editor__bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: #1d2327; color: #f0f0f1; }
.editor__bar label { font-weight: 600; font-size: .85rem; }
.editor__bar select { flex: 1; height: 38px; border-radius: 4px; border: 1px solid #8c8f94; padding: 0 .6rem; background-color: #fff; color: #1d2327; }
.editor select {
  appearance: none; -webkit-appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2327' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .5rem center; background-size: 1rem;
}
.editor__body { padding: 1.1rem 1.1rem .4rem; display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label, .field .field__label { font-weight: 600; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #8c8f94; border-radius: 4px; padding: .5rem .65rem; background: #fff; min-height: 40px;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-logo); box-shadow: 0 0 0 2px var(--teal-soft); }
.field--row { grid-template-columns: 1fr 1fr; gap: .9rem; }
.field--row > div { display: grid; gap: .3rem; }
.prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.prices-grid label { font-weight: 500; font-size: .78rem; color: #50575e; }
.prices-grid .euro { position: relative; }
.prices-grid .euro::before { content: "€"; position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: #50575e; }
.prices-grid input { padding-left: 1.4rem; font-variant-numeric: tabular-nums; }
.field__err { color: var(--err); font-size: .82rem; min-height: 0; }
.field__err:empty { display: none; }
.editor__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: .9rem 1.1rem 1.1rem; border-top: 1px solid #dcdcde; background: #fff; }
.editor__see { font-weight: 600; color: var(--teal-ink); }
.editor__done { font-size: .85rem; color: var(--teal-ink); font-weight: 600; }
.editor .btn { border-radius: 4px; min-height: 40px; }

/* Rooms on the main site */
.rooms { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--white); }
.rooms__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.rooms__h { font: 500 clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem)/1.06 var(--serif); text-wrap: balance; }
.rooms__intro p { margin: 1rem 0 1.5rem; color: var(--ink-2); max-width: 40ch; }
.rooms__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; }
.rooms__list a { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; }
.rooms__list li:first-child a { aspect-ratio: auto; height: 100%; }
.rooms__list img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rooms__list a:hover img { transform: scale(1.04); }
.rooms__list span {
  position: absolute; left: .8rem; bottom: .8rem; padding: .45rem .85rem; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35em;
}
.rooms__list span::after { content: ""; width: .5em; height: .5em; border-top: 1.75px solid currentColor; border-right: 1.75px solid currentColor; transform: rotate(45deg); margin-left: .15em; }

/* Visit */
.visit { background: var(--stone); border-top: 2px solid var(--teal-logo); padding: clamp(3rem, 6vw, 5rem) 0; }
.visit__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); }
.visit__h { font: 500 clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem)/1.06 var(--serif); }
.visit__in > div > p { margin-top: .9rem; color: var(--ink-2); max-width: 36ch; }
.visit__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.visit__facts dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.visit__facts dd { margin: .3rem 0 0; font-size: 1rem; }

/* Footer */
.foot { background: var(--dark); color: #d9d6cf; padding: 3rem 0 2.5rem; font-size: .9rem; }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; gap: .6rem; }
.foot__logo { width: 150px; height: auto; filter: invert(1) hue-rotate(180deg); margin-bottom: .6rem; }
.foot a { color: #fff; }
.foot__proto { margin-top: .8rem; color: #b9b6ae; font-size: .82rem; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(29, 29, 27, .45); opacity: 0; transition: opacity .3s var(--ease); }
.scrim.is-open { opacity: 1; }
.cart {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: var(--white); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35);
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--stone); }
.cart__h { font: 500 1.6rem/1.1 var(--serif); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stone-2); background: var(--white); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--dark); }
.cart__steps { list-style: none; margin: 0; padding: .75rem 1.25rem; display: flex; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--stone); counter-reset: s; }
.cart__steps li { counter-increment: s; display: inline-flex; align-items: center; gap: .35rem; }
.cart__steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid currentColor; font-size: .7rem; }
.cart__steps li + li::after { content: none; }
.cart__steps li:not(:last-child) { padding-right: .4rem; margin-right: .2rem; border-right: 1px solid var(--stone-2); }
.cart__steps [aria-current="step"] { color: var(--ink); }
.cart__steps [aria-current="step"]::before { background: var(--teal); border-color: var(--dark); color: #000; }
.cart__steps .is-done { color: var(--teal-ink); }
.cart__panel { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: grid; align-content: start; gap: 1rem; }
.cart__panel:focus { outline: none; }
.cart__empty { color: var(--ink-2); padding: 1.5rem 0; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--stone); align-items: start; }
.line img { width: 64px; height: 52px; object-fit: contain; background: var(--stone-3); border-radius: 8px; }
.line__name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.line__var { font-size: .8rem; color: var(--ink-2); }
.line__flag { font-size: .76rem; color: var(--warn); font-weight: 600; margin-top: .2rem; }
.line__ctrl { display: flex; align-items: center; gap: .35rem; margin-top: .45rem; }
.line__ctrl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--stone-2); background: var(--white); display: grid; place-items: center; }
.line__ctrl button:hover { border-color: var(--dark); }
.line__ctrl svg { width: 1rem; height: 1rem; }
.line__ctrl output { min-width: 1.6ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.line__rm { margin-left: .4rem; border: 0 !important; width: auto !important; padding: 0 .2rem; color: var(--ink-2); font-size: .8rem; text-decoration: underline; border-radius: 4px !important; }
.line__price { font-family: var(--serif); color: var(--teal-ink); font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rule { background: var(--warn-bg); border: 1px solid #ecd3ad; color: #5c3600; border-radius: 10px; padding: .75rem .9rem; font-size: .86rem; }
.rule button { border: 0; background: none; padding: 0; color: var(--teal-ink); font-weight: 600; text-decoration: underline; }
.how { border: 1px solid var(--stone-2); border-radius: 12px; padding: .6rem .9rem .8rem; margin: 0; }
.how legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.how__opt { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; padding: .5rem 0; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.how__opt strong { display: block; color: var(--ink); font-size: .95rem; }
.how__opt input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal-logo); }
.cart__foot { border-top: 1px solid var(--stone); padding: 1rem 1.25rem 1.25rem; background: var(--stone-3); display: grid; gap: .8rem; }
.totals { margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.totals .totals__sum { font-size: 1.05rem; padding-top: .4rem; border-top: 1px solid var(--stone-2); margin-top: .2rem; }
.totals .totals__sum dt { color: var(--ink); font-weight: 600; }
.totals .totals__sum dd { font-family: var(--serif); color: var(--teal-ink); font-size: 1.45rem; font-weight: 500; }
.cart__actions { display: flex; gap: .6rem; }
.cart .field input, .cart .field textarea { border-color: var(--stone-2); border-radius: 10px; min-height: 44px; }
.cart .field input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 2px #f6d8d4; }
.opt { font-weight: 400; color: var(--ink-3); }
.paybox { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; border: 1px dashed var(--ink-3); border-radius: 12px; padding: 1rem; font-size: .9rem; color: var(--ink-2); }
.paybox strong { display: block; color: var(--ink); }
.paybox svg { width: 1.8rem; height: 1.8rem; color: var(--teal-ink); }
.review { margin: 0; display: grid; gap: .35rem; font-size: .88rem; background: var(--stone-3); border-radius: 10px; padding: .8rem .9rem; }
.review div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .6rem; }
.review dt { color: var(--ink-2); }
.review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.done__h { font: 500 1.7rem/1.1 var(--serif); color: var(--teal-ink); }
.done__sub { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: .4rem 0 0; }
.done__list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .92rem; }

/* What powers this? */
.lens-key {
  position: fixed; z-index: 45; left: var(--gut); bottom: 1rem; width: min(340px, calc(100vw - 2 * var(--gut)));
  background: var(--white); border: 1px solid var(--dark); border-radius: 12px; box-shadow: var(--shadow-card); padding: 1rem;
  font-size: .85rem;
}
.lens-key__h { font-weight: 700; margin-bottom: .5rem; }
.lens-key ul { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .35rem; }
.lens-key li { display: flex; align-items: center; gap: .55rem; }
.lens-key__fine { color: var(--ink-2); font-size: .8rem; margin-bottom: .7rem; }
.k { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.k--store { background: var(--teal); border: 1px solid var(--dark); }
.k--team { background: #f0c869; border: 1px solid var(--dark); }
.k--main { background: #ffffff; border: 2px dashed var(--dark); }
.k--payment { background: #c9b8f0; border: 1px solid var(--dark); }
.k--next { background: repeating-linear-gradient(45deg, #fff 0 3px, var(--ink-3) 3px 4px); border: 1px solid var(--dark); }

body.lens [data-power] { position: relative; }
body.lens [data-power]::after {
  content: attr(data-power-note); position: absolute; z-index: 25; top: .5rem; right: .5rem; max-width: min(320px, 80%);
  font: 600 .74rem/1.3 var(--sans); padding: .35rem .55rem; border-radius: 6px; border: 1px solid var(--dark); color: #000; pointer-events: none;
}
body.lens [data-power="store"] { outline: 3px solid var(--teal); outline-offset: -3px; }
body.lens [data-power="store"]::after { background: var(--teal); }
body.lens [data-power="team"] { outline: 3px solid #f0c869; outline-offset: -3px; }
body.lens [data-power="team"]::after { background: #f0c869; }
body.lens [data-power="main"] { outline: 3px dashed var(--dark); outline-offset: -3px; }
body.lens [data-power="main"]::after { background: #fff; }
body.lens [data-power="payment"] { outline: 3px solid #c9b8f0; outline-offset: -3px; }
body.lens [data-power="payment"]::after { background: #c9b8f0; }
body.lens .util[data-power]::after { top: 50%; transform: translateY(-50%); right: var(--gut); }
body.lens .cart-btn[data-power]::after { top: calc(100% + 6px); right: 0; width: 220px; max-width: none; }
body.lens .rail[data-power]::after { top: .2rem; right: var(--gut); }

/* Toast */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 1.25rem; transform: translate(-50%, 140%);
  background: var(--dark); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-pill); font-size: .9rem; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: transform .45s var(--ease); max-width: calc(100vw - 2rem); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* Tablet */
@media (max-width: 1180px) {
  .search input { width: 12.5rem; }
  .search input:focus { width: 15rem; }
  .aisles-nav a { padding: .45rem .7rem; font-size: .92rem; }
}
@media (max-width: 999px) {
  :root { --head-h: 64px; }
  .head__in { grid-template-columns: auto 1fr auto; gap: .75rem; }
  .head__logo img { height: 40px; }
  .aisles-nav { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(-1 * var(--gut)); overflow-x: auto; scrollbar-width: none; }
  .aisles-nav::-webkit-scrollbar { display: none; }
  .aisles-nav ul { justify-content: flex-start; padding: 0 var(--gut) .6rem; }
  .head__in { height: auto; padding-top: .5rem; row-gap: .4rem; }
  .head__tools { grid-column: 3; }
  html { scroll-padding-top: 130px; }
  .set { grid-template-columns: 1fr; }
  .set__stage { position: relative; top: 0; }
  .set__table { aspect-ratio: 2 / 1; }
  .rail-ctrl { display: none; }
  .aisle--first .aisle__h::before { display: none; }
  .endcap { margin-bottom: 1.5rem; }
  .endcap__h { max-width: 20ch; }
  .endcap__p, .endcap__aside { display: none; }
  .office__in, .rooms__in, .visit__in { grid-template-columns: 1fr; }
  .rooms__list li:first-child a { aspect-ratio: 4 / 5; height: auto; }
  .util__open { display: none; }
}

/* Phone */
@media (max-width: 640px) {
  .proto__in { gap: .6rem; padding-top: .45rem; padding-bottom: .45rem; }
  .proto__long { display: none; }
  .proto__short { display: inline; }
  .proto__lens span { display: none; }
  .proto__lens { padding: .4rem; }
  .proto__lens svg { width: 1.2rem; height: 1.2rem; }
  .search input { width: 44px; padding: 0; color: transparent; cursor: pointer; }
  .search input::placeholder { color: transparent; }
  .search input:focus { width: calc(100vw - 2 * var(--gut) - 120px); padding: 0 1rem 0 2.5rem; color: var(--ink); cursor: text; }
  .search__icon { left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
  .search input:focus + .search__results, .search:focus-within .search__icon { left: .9rem; transform: translateY(-50%); }
  .search__results { position: fixed; left: var(--gut); right: var(--gut); top: auto; width: auto; margin-top: 8px; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 .45rem 0 .7rem; }
  .head__logo img { height: 36px; }
  .aisle { --drop: 2.6rem; }
  .rail { grid-auto-columns: 80vw; gap: .8rem; }
  .rail--photo, .rail--paint { grid-auto-columns: 84vw; }
  .rail-ctrl { display: none; }
  .pick { grid-template-columns: 1fr; gap: .4rem; padding: .55rem; }
  .pick img { width: 100%; height: 64px; }
  .pick--none img { display: none; }
  .aisle--first { padding-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); }
  .aisle--first .aisle__head { display: contents; }
  .aisle--first .aisle__h { margin: 0 var(--gut); }
  .aisle--first .aisle__sub { margin: .6rem var(--gut) 0; }
  .aisle--first .rail-wrap { margin-top: .9rem; }
  .aisle--first .filters { order: 2; margin: -1.4rem 0 1.5rem; }
  .endcap { margin-bottom: 1.1rem; }
  .endcap__h { font-size: 2.05rem; max-width: none; }
  .endcap__p, .endcap__aside { display: none; }
  .rail[data-rail="mattresses"] .plinth__img { aspect-ratio: 5 / 2; padding: .6rem .8rem 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 1rem calc(-1 * var(--gut)) 0; padding: 0 var(--gut) .25rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .filters__count { flex: none; }
  .paint-photo { display: none; }
  .util__in { padding-top: .35rem; padding-bottom: .35rem; }
  .util__long, .hide-phone { display: none; }
  .set__spec { grid-template-columns: 1fr 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .rooms__list { grid-template-columns: 1fr 1fr; }
  .rooms__list li:first-child { grid-column: 1 / -1; }
  .rooms__list li:first-child a { aspect-ratio: 16 / 10; }
  .visit__facts { grid-template-columns: 1fr; }
  .review div { grid-template-columns: 1fr; gap: 0; }
  .lens-key { bottom: .75rem; }
  body.lens [data-power]::after { max-width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
