/* EasyHome prototype: design tokens and storefront styles.

   Direction: a showroom after dark. Deep navy stages, products shown in lit white panels,
   and every piece drawn with its real measurements, the way an architect would hand it over.
   Navy is the catalogue's panel colour, teal is the logo ring, and brass is taken from the
   handles on the metal cabinets. Mono type is reserved for measurements and model codes. */

:root {
  --ink: #0a1c30;
  --navy: #14365c;
  --navy-600: #1b4a80;
  --teal: #2f6d7e;
  --teal-light: #8cc6d3;
  --porcelain: #f3f5f6;
  --white: #fff;
  --mist: #e3e8eb;
  --mist-strong: #cbd4da;
  --steel: #5b6976;
  --brass: #b08a4a;
  --brass-deep: #7a5c22;
  --brass-bright: #dcbb7a;
  --wa: #128747;
  --danger: #b3261e;
  --ok: #1a7446;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --font-logo: 'Fira Sans Condensed', 'Arial Narrow', sans-serif;

  --radius: 2px;
  --gutter: 20px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
s { color: var(--steel); text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--brass-bright); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.display {
  font-stretch: 118%;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h1 { font-size: clamp(2.5rem, 8.4vw, 5.25rem); }
.h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.h3 { font-stretch: 110%; font-weight: 500; font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.005em; }

.label {
  font-stretch: 112%; font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
}
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0; }
.muted { color: var(--steel); }
.lede { font-size: 1.0625rem; color: var(--steel); max-width: 44ch; }

.price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.off { color: var(--brass-deep); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Buttons and form controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-stretch: 108%; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.01em;
  text-decoration: none; line-height: 1.1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--navy-600); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--brass-bright); color: var(--ink); }
.btn--line { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn--wa { background: transparent; border-color: var(--wa); color: var(--wa); }
.btn--wa:hover { background: var(--wa); color: var(--white); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled] { background: var(--mist); border-color: var(--mist); color: var(--steel); cursor: not-allowed; }

.link-btn { background: none; border: 0; padding: 0; color: var(--navy-600); text-decoration: underline; text-underline-offset: 4px; }
.more { font-weight: 500; white-space: nowrap; }
.more::after { content: '\2192'; display: inline-block; margin-left: 8px; transition: transform 0.2s var(--ease); }
.more:hover::after { transform: translateX(4px); }
.back { font-weight: 500; white-space: nowrap; }
.back::before { content: '\2190'; display: inline-block; margin-right: 8px; }

.field { display: grid; gap: 7px; }
.field label, .field .label-text { font-weight: 500; font-size: 0.9375rem; }
.field .hint { font-size: 0.875rem; color: var(--steel); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--mist-strong); border-radius: var(--radius);
  transition: border-color 0.15s;
}
.textarea { min-height: 104px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 0.875rem; font-weight: 500; }

/* ---------- Prototype bar (not part of the real site) ---------- */

.proto-bar { background: #1d1f23; color: #c9ced6; font-family: var(--font-mono); font-size: 0.6875rem; }
.proto-bar .wrap { display: flex; gap: 2px 16px; align-items: center; justify-content: space-between; padding-block: 6px; }
.proto-bar a { color: #fff; }
.proto-bar nav { display: flex; gap: 14px; }
.proto-bar [aria-current='page'] { text-decoration: none; color: var(--brass-bright); }

/* ---------- Header ---------- */

.site-header { background: var(--white); border-bottom: 1px solid var(--mist); }
.site-header__row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px 8px; align-items: center;
  padding-block: 12px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.logo svg { width: 36px; height: 33px; color: var(--navy-600); flex: none; }
.logo__name { font-family: var(--font-logo); font-weight: 600; font-size: 1.625rem; line-height: 1; letter-spacing: -0.01em; }
.logo__tag { display: block; font-family: var(--font-logo); font-weight: 500; font-size: 0.6875rem; color: var(--navy); letter-spacing: 0.02em; margin-top: 2px; }

.search { grid-column: 1 / -1; grid-row: 2; position: relative; display: none; }
.site-header.is-searching .search { display: block; }
.search-toggle { grid-row: 1; grid-column: 2; width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); }
.search-toggle svg { width: 21px; height: 21px; }
.search .input { min-height: 46px; padding-right: 50px; background: var(--porcelain); border-color: transparent; }
.search .input:hover, .search .input:focus { border-color: var(--mist-strong); background: var(--white); }
.search button {
  position: absolute; right: 0; top: 0; width: 48px; height: 100%; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink);
}
.search button svg { width: 19px; height: 19px; }

.cart-link {
  grid-row: 1; grid-column: 3;
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 4px;
  color: var(--ink); font-weight: 500; font-size: 0.9375rem; text-decoration: none;
}
.cart-link svg { width: 21px; height: 21px; }
.cart-link__count {
  min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--white); border-radius: 12px;
  font-family: var(--font-mono); font-size: 0.75rem;
}
.cart-link__count.is-bumped { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); background: var(--brass); } }

.site-nav { border-top: 1px solid var(--mist); }
.site-nav ul {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; padding: 14px 0 12px; white-space: nowrap; border-bottom: 2px solid transparent;
  color: var(--steel); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav .is-offers { color: var(--brass-deep); }

/* ---------- Lit panel and dimension drawing (the signature element) ---------- */

.panel-lit { background: var(--white); border-radius: var(--radius); }

.drawing { position: relative; }
.drawing__sheet {
  position: relative; display: grid; place-items: center;
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px 64px 68px;
}
.drawing__img { position: relative; width: auto; height: auto; max-width: 100%; max-height: var(--drawing-max, 440px); }
.is-photo .drawing__img, .is-photo.card__media img, .is-photo .cat__img img { box-shadow: 0 0 0 1px var(--mist); }
/* Soft contact shadow so cut-out products stand on something. */
.is-cutout .drawing__sheet::before, .is-cutout.card__media::before {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 13%; height: 7%;
  background: radial-gradient(closest-side, rgba(10, 28, 48, 0.16), transparent);
}
.is-cutout .drawing__sheet::before { bottom: auto; right: auto; top: var(--shadow-top, 78%); left: var(--shadow-left, 22%); width: var(--shadow-width, 60%); height: 20px; }
.drawing__note {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--steel);
}

.dim { position: absolute; color: var(--teal); pointer-events: none; }
.dim b {
  position: absolute; top: 50%; left: 50%;
  padding: 2px 8px; background: var(--white);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; white-space: nowrap; color: var(--teal);
}
.dim::before, .dim::after {
  content: ''; position: absolute; width: 13px; height: 1px; background: currentColor;
  transform: rotate(-45deg);
}
/* Defaults span the sheet until the script has measured the product in the photo. */
.dim--v { left: 34px; top: 36px; bottom: 64px; width: 0; border-left: 1px solid currentColor; }
.dim--v b { transform: translate(-50%, -50%) rotate(-90deg); }
.dim--v::before { top: 0; left: -7px; }
.dim--v::after { bottom: 0; left: -7px; }
.dim--h { left: 68px; right: 32px; bottom: 34px; height: 0; border-top: 1px solid currentColor; }
.dim--h b { transform: translate(-50%, -50%); }
.dim--h::before { left: -7px; top: -1px; }
.dim--h::after { right: -7px; top: -1px; }

.drawing.is-drawn .dim--v { animation: draw-v 1.1s var(--ease) both; }
.drawing.is-drawn .dim--h { animation: draw-h 1.1s 0.25s var(--ease) both; }
.drawing.is-drawn .drawing__img { animation: settle 0.9s var(--ease) both; }
@keyframes draw-v { from { clip-path: inset(0 -30px 100% -30px); } to { clip-path: inset(-12px -60px -12px -60px); } }
@keyframes draw-h { from { clip-path: inset(-30px 100% -30px 0); } to { clip-path: inset(-30px -12px -30px -12px); } }
@keyframes settle { from { transform: translateY(10px); } }

/* ---------- Home ---------- */

.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(70% 90% at 78% 46%, rgba(140, 198, 211, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--ink);
}
.hero .wrap { display: grid; gap: 36px; padding-block: 44px 0; }
.hero__copy { display: grid; gap: 20px; align-content: center; }
.hero__copy .label { color: var(--teal-light); }
.hero__copy h1 { max-width: 11ch; }
.hero__copy .lede { color: #b9c7d6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.showcase { display: grid; gap: 14px; }
.showcase__panel {
  display: block; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 90px rgba(140, 198, 211, 0.28), 0 40px 80px rgba(0, 0, 0, 0.35);
}
.showcase .drawing__sheet { --drawing-max: 330px; min-height: 380px; background: none; }
.plate {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: end;
  padding: 16px 20px 18px; border-top: 1px solid var(--mist);
}
.plate__name { font-stretch: 110%; font-weight: 500; font-size: 1.0625rem; line-height: 1.25; }
.plate .mono { color: var(--steel); font-size: 0.75rem; }
.plate .price { font-size: 1.5rem; grid-row: span 2; align-self: center; }
.showcase__panel:hover .plate__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.showcase__pick { display: flex; gap: 8px; }
.showcase__pick button {
  flex: 1; min-height: 44px; padding: 10px 0 0; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #9fb0c2; text-align: left; font-size: 0.8125rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.showcase__pick button:hover { color: var(--white); }
.showcase__pick button[aria-pressed='true'] { color: var(--white); border-top-color: var(--brass-bright); }

.facts { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.facts ul { display: grid; }
.facts li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 2px; }
.facts li:last-child { border-bottom: 0; }
.facts strong { font-stretch: 110%; font-weight: 500; }
.facts span { color: #9fb0c2; font-size: 0.875rem; }

.section { padding-block: 56px; }
.section--tight { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section__head > div { display: grid; gap: 10px; }
.section__head p { color: var(--steel); max-width: 56ch; }

.offers { display: grid; border-top: 1px solid var(--ink); }
.offer {
  display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--mist-strong);
  text-decoration: none; color: inherit;
}
.offer__name { font-stretch: 118%; font-weight: 300; font-size: clamp(1.5rem, 4.6vw, 2.25rem); line-height: 1.08; letter-spacing: -0.02em; transition: color 0.2s; }
.offer:hover .offer__name { color: var(--brass-deep); }
.offer__what { color: var(--steel); }
.offer__until { font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
.cat { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
.cat__img {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 16%;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
}
.cat__img img { width: auto; height: auto; max-width: 100%; max-height: 100%; transition: transform 0.6s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__name, .cat__meta { display: block; }
.cat__name { font-stretch: 110%; font-weight: 500; font-size: 1.0625rem; line-height: 1.25; }
.cat__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel); margin-top: 4px; }

.band { background: var(--ink); color: var(--white); }
.band .label { color: var(--teal-light); }
.band .section__head p { color: #b9c7d6; }
.steps { display: grid; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.step { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.step::before {
  content: counter(step); grid-row: span 2;
  font-stretch: 122%; font-weight: 200; font-size: 3rem; line-height: 0.9; color: var(--brass-bright);
}
.step p { color: #b9c7d6; font-size: 0.9375rem; max-width: 36ch; }

/* ---------- Product cards ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }

.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__media {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 14%;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.card__media img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%; transition: transform 0.6s var(--ease); }
.card:hover .card__media { box-shadow: 0 18px 40px rgba(10, 28, 48, 0.1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card__name { font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
.card__name a { color: inherit; text-decoration: none; }
.card__name a::after { content: ''; position: absolute; inset: 0; }
.card__dims { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--steel); }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-size: 0.9375rem; }
.card__price small { font-size: 0.8125rem; color: var(--steel); }
.card__price s { font-size: 0.8125rem; }
.card__deal { font-size: 0.8125rem; color: var(--teal); }
.card.is-out .card__media img { opacity: 0.4; }
.card__flag {
  position: absolute; left: 10px; top: 10px; z-index: 1; padding: 3px 8px; background: var(--ink); color: var(--white);
  font-stretch: 112%; font-weight: 500; font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Shop listing ---------- */

.page-head { padding-block: 40px 28px; display: grid; gap: 14px; }
.page-head p { color: var(--steel); max-width: 56ch; }
.crumbs { font-size: 0.8125rem; color: var(--steel); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-block: 12px; border-block: 1px solid var(--mist-strong); }
.toolbar .select { width: auto; min-height: 40px; padding-block: 6px; border-color: transparent; background: transparent; font-weight: 500; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; }
.toolbar .mono { color: var(--steel); }
.check { width: 20px; height: 20px; accent-color: var(--ink); }

.empty { padding: 56px 20px; text-align: center; background: var(--white); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--steel); max-width: 44ch; }

/* ---------- Product page ---------- */

.product { display: grid; gap: 28px; padding-block: 16px 56px; }
.product__gallery { display: grid; gap: 10px; align-content: start; }
.thumbs { display: flex; gap: 8px; }
.thumbs button { width: 72px; height: 72px; padding: 6px; background: var(--white); border: 1px solid transparent; border-radius: var(--radius); }
.thumbs button[aria-pressed='true'] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product__info { display: grid; gap: 22px; align-content: start; }
.product__info h1 { font-size: clamp(2rem, 6.4vw, 3.25rem); }
.product__title { display: grid; gap: 12px; }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.buy-price .price { font-stretch: 112%; font-weight: 400; font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.buy-price s { font-size: 1.0625rem; }
.buy-price__note { flex-basis: 100%; font-size: 0.9375rem; color: var(--steel); margin-top: 6px; }

.options { display: grid; gap: 20px; padding-block: 22px; border-block: 1px solid var(--mist-strong); }
.options:empty { display: none; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: grid; gap: 1px; min-height: 52px; min-width: 84px; padding: 8px 18px; place-content: center; text-align: center;
  background: var(--white); border: 1px solid var(--mist-strong); border-radius: var(--radius);
  font-weight: 500; cursor: pointer; transition: border-color 0.15s;
}
.choice span small { font-family: var(--font-mono); font-weight: 400; font-size: 0.6875rem; color: var(--steel); }
.choice span:hover { border-color: var(--steel); }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--navy-600); outline-offset: 3px; }
.addon { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 14px; background: var(--white); border: 1px solid var(--mist-strong); border-radius: var(--radius); cursor: pointer; }
.addon b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; }

.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--mist-strong); border-radius: var(--radius); background: var(--white); }
.qty button { width: 46px; min-height: 50px; background: none; border: 0; font-size: 1.125rem; line-height: 1; }
.qty button:hover { background: var(--porcelain); }
.qty output { min-width: 32px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.9375rem; }

.callout { display: grid; gap: 2px; padding: 14px 16px; border-left: 2px solid var(--brass); background: var(--white); font-size: 0.9375rem; }
.callout span { color: var(--steel); }

/* Spec block: the catalogue's SIZE / MODEL / COLOUR panel, set like a drawing's title block. */
.spec { border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mist-strong); }
.spec dt { padding-top: 3px; }
.spec dd { font-size: 0.9375rem; }
.spec dd.mono { font-size: 0.875rem; }
.spec li + li { margin-top: 2px; }

.fit { display: grid; gap: 12px; padding: 18px; background: var(--white); border-radius: var(--radius); }
.fit__row { display: flex; gap: 10px; align-items: center; }
.fit__row .input { max-width: 132px; font-family: var(--font-mono); }
.fit__bar { position: relative; height: 34px; border: 1px dashed var(--mist-strong); border-radius: var(--radius); overflow: hidden; }
.fit__bar i { position: absolute; inset: 0 auto 0 0; background: var(--teal); opacity: 0.18; transition: width 0.5s var(--ease); }
.fit__bar b { position: absolute; inset: 0 auto 0 0; border-right: 2px solid var(--teal); transition: width 0.5s var(--ease); }
.fit.is-tight .fit__bar i { background: var(--danger); }
.fit.is-tight .fit__bar b { border-color: var(--danger); }
.fit__result { font-weight: 500; }
.fit.is-ok .fit__result { color: var(--ok); }
.fit.is-tight .fit__result { color: var(--danger); }

.assure { display: grid; gap: 10px; font-size: 0.9375rem; color: var(--steel); }
.assure li { display: flex; gap: 12px; align-items: flex-start; }
.assure svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; }

/* ---------- Cart and checkout ---------- */

.split { display: grid; gap: 20px; padding-bottom: 64px; }
.split > * { min-width: 0; }
.panel { background: var(--white); border-radius: var(--radius); padding: 20px; }
.panel > h2 { font-stretch: 110%; font-weight: 500; font-size: 1.125rem; margin-bottom: 16px; }

.line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--mist); }
.line:first-child { padding-top: 0; }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line__img { width: 84px; height: 84px; display: grid; place-items: center; padding: 8px; background: var(--porcelain); border-radius: var(--radius); }
.line__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.line__name { font-weight: 500; line-height: 1.3; color: inherit; text-decoration: none; }
.line__name:hover { text-decoration: underline; }
.line__opts { font-size: 0.875rem; color: var(--steel); margin-top: 2px; }
.line__labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.line__labels span { font-size: 0.8125rem; font-weight: 500; color: var(--brass-deep); }
.line__labels span + span::before { content: '\00b7'; margin-right: 6px; }
.line > div { min-width: 0; }
.line__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.line__price { text-align: right; margin-left: auto; }
.line__price .price { font-size: 1.0625rem; display: block; }
.line__price s { font-size: 0.8125rem; }
.qty--small button { width: 38px; min-height: 38px; }

.hint-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; padding: 14px 16px; margin-top: 16px; border-left: 2px solid var(--teal); background: var(--porcelain); font-size: 0.9375rem; }
.hint-row a { font-weight: 500; white-space: nowrap; }

.coupon { display: flex; gap: 8px; }
.coupon .input { text-transform: uppercase; font-family: var(--font-mono); min-width: 0; }
.coupon-msg { margin-top: 10px; font-size: 0.875rem; }
.coupon-msg.is-ok { color: var(--ok); font-weight: 500; }
.coupon-msg.is-error { color: var(--danger); font-weight: 500; }
.coupon-try { margin-top: 12px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--steel); }

.totals { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--mist); }
.totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.totals dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .is-saving dd, .totals .is-saving dt { color: var(--brass-deep); }
.totals .is-total { align-items: baseline; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--ink); }
.totals .is-total dt { font-weight: 500; }
.totals .is-total dd { font-stretch: 112%; font-weight: 400; font-size: 1.875rem; line-height: 1; letter-spacing: -0.02em; }
.saved { margin-top: 12px; font-size: 0.9375rem; color: var(--brass-deep); font-weight: 500; }
.pay-note { margin-top: 16px; font-size: 0.875rem; color: var(--steel); }

.form { display: grid; gap: 18px; }
.form__two { display: grid; gap: 18px; }
.mini-line { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--mist); font-size: 0.9375rem; }
.mini-line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-line small { display: block; color: var(--steel); }

/* ---------- Order confirmation, email and PDF ---------- */

.order-head { padding-block: 44px 28px; display: grid; gap: 14px; }
.order-no { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--steel); }
.order-no b { color: var(--ink); font-weight: 500; }

.track li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 24px; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ''; width: 13px; height: 13px; margin: 5px; border-radius: 50%; background: var(--white); border: 1px solid var(--mist-strong); }
.track li::after { content: ''; position: absolute; left: 11px; top: 24px; bottom: -2px; width: 1px; background: var(--mist-strong); }
.track li:last-child::after { display: none; }
.track li.is-done::before { background: var(--teal); border-color: var(--teal); }
.track li.is-done::after { background: var(--teal); }
.track li.is-current::before { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(47, 109, 126, 0.18); }
.track strong { display: block; font-weight: 500; }
.track span { font-size: 0.875rem; color: var(--steel); }
.track li.is-todo strong { color: var(--steel); font-weight: 400; }

.next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.mail { max-width: 680px; margin-inline: auto; background: var(--white); border: 1px solid var(--mist-strong); border-radius: 10px; overflow: hidden; }
.mail__meta { padding: 16px 20px; border-bottom: 1px solid var(--mist); font-size: 0.875rem; display: grid; gap: 3px; background: var(--porcelain); color: var(--steel); }
.mail__meta h1 { font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.mail__body { padding: 26px 20px; display: grid; gap: 18px; }
.mail__body h3 { font-weight: 500; font-size: 1rem; }
.mail__attach { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--mist-strong); border-radius: 6px; font-size: 0.875rem; text-decoration: none; color: inherit; justify-self: start; }
.mail__attach svg { width: 22px; height: 22px; color: var(--danger); }
.mail__attach:hover { border-color: var(--ink); }

.sheet-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; max-width: 794px; margin: 24px auto 14px; }
.sheet {
  max-width: 794px; margin: 0 auto 64px; padding: 30px 22px; background: var(--white);
  box-shadow: 0 20px 60px rgba(10, 28, 48, 0.1);
  display: grid; gap: 26px; font-size: 0.9375rem;
}
.sheet__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.sheet__top img { width: 92px; }
.sheet__title { text-align: right; display: grid; gap: 6px; }
.sheet__title h1 { font-stretch: 118%; font-weight: 300; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.sheet__cols { display: grid; gap: 18px; }
.sheet h2 { margin-bottom: 8px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--ink); }
.sheet td { padding: 12px 6px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet td small { display: block; color: var(--steel); }
.sheet .totals { margin-left: auto; width: min(100%, 320px); border-top: 0; margin-top: 0; padding-top: 0; }
.sheet__pay { padding: 16px; background: var(--porcelain); border-radius: var(--radius); white-space: pre-line; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b9c7d6; font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 32px; padding-block: 48px; }
.site-footer h2 { color: #8fa3b8; margin-bottom: 14px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer li + li { margin-top: 8px; }
.site-footer__badge { width: 124px; padding: 10px; background: var(--white); border-radius: 50%; }
.site-footer__wa { font-stretch: 118%; font-weight: 300; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; display: inline-block; margin-bottom: 10px; }
.band + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 20; transform: translate(-50%, 16px);
  display: flex; gap: 18px; align-items: center; max-width: calc(100vw - 24px);
  padding: 14px 18px; background: var(--ink); color: var(--white); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(10, 28, 48, 0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a, .toast span { white-space: nowrap; }
.toast a { color: var(--brass-bright); font-weight: 500; }

/* Page-to-page cross-fade, with the product photo carried across. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
::view-transition-group(product-photo) { animation-duration: 0.45s; animation-timing-function: var(--ease); }

/* ---------- Wider screens ---------- */

@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .form__two { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 52px 56px; }
  .sheet__cols { grid-template-columns: 1fr 1fr; }
  .facts ul { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .facts li { border-bottom: 0; padding-block: 22px; }
  .offer { grid-template-columns: 1.1fr 1fr auto; align-items: baseline; }
  .card__name { font-size: 1rem; }
  .card__dims { font-size: 0.75rem; }
  .mail__body { padding: 30px 28px; }
}

@media (min-width: 940px) {
  :root { --gutter: 36px; }
  .site-header { position: sticky; top: 0; z-index: 10; }
  .site-header__row { grid-template-columns: auto minmax(0, 380px) auto; justify-content: space-between; padding-block: 16px; }
  .search { grid-column: auto; grid-row: auto; display: block; }
  .search-toggle { display: none; }
  .cart-link { grid-row: auto; grid-column: auto; }
  .site-nav ul { gap: 34px; }
  .hero .wrap { grid-template-columns: 1fr minmax(0, 480px); gap: 32px 72px; padding-top: 72px; align-items: center; }
  .facts { grid-column: 1 / -1; margin-top: 44px; }
  .showcase .drawing__sheet { --drawing-max: 400px; min-height: 460px; }
  .section { padding-block: 88px; }
  .section--tight { padding-top: 0; }
  .section__head { margin-bottom: 40px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 52px 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
  .step { border-bottom: 0; grid-template-columns: 1fr; gap: 14px; padding: 28px 0 0; }
  .step::before { grid-row: auto; font-size: 4rem; }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; padding-block: 24px 96px; align-items: start; }
  .product__gallery { position: sticky; top: 148px; }
  .product .drawing__sheet { min-height: 560px; --drawing-max: 460px; }
  .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .split > aside { position: sticky; top: 148px; }
  .site-footer .wrap { grid-template-columns: auto 1fr 1fr 1.3fr; gap: 64px; padding-block: 72px; }
  .panel { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  body { background: #fff; }
  .proto-bar, .site-header, .site-footer, .sheet-tools, .toast { display: none !important; }
  .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; }
}

/* Product description, written by the shop in the admin */
.product__desc { display: grid; gap: 12px; font-size: 1rem; line-height: 1.6; max-width: 62ch; }
