/* Jahazshop homepage — "Folded Colour" (رنگِ تاشده).
   Persian-first, RTL, mobile-first. Large surfaces take real fabric colours from the catalogue (verified hex values),
   one graphic device repeats — the folded stack and the turn-down — and type is one family, Estedad, set with
   weight contrast (300 / 800) at measured sizes. Jahaz Red is the thread: selection, focus, small marks. */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-nl-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cotton: #FAF7F2;
  --linen: #F2ECE3;
  --oat: #E3DACD;
  --ink: #262220;
  --graphite: #5E5853;
  --muted: #736B64;
  --red: #DF0000;
  --red-deep: #B30000;
  --aubergine: #2B2027;
  --aubergine-2: #3A2D35;
  --night: #221A1F;
  --forest: #1E4632;      /* «سبز درباری» from the catalogue */
  --blush: #F6E7E3;       /* «صورتی» family, washed into cotton */
  --on-dark: #F4EEE6;
  --on-dark-muted: #C9BDB3;
  --line: rgba(38, 34, 32, .12);
  --line-dark: rgba(244, 238, 230, .18);
  --stitch: rgba(38, 34, 32, .42);

  /* fabric colours, set by JS from the chosen colourway */
  --face: #A3A78C;
  --face-ink: #262220;
  --face-soft: #3B3A30;
  --back: #E4D6BC;
  --back-ink: #262220;
  --fam-tint: #ECEDE5;

  --ui: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --display: "Estedad", "Vazirmatn", Tahoma, sans-serif;

  --r-card: 14px;
  --r-ctrl: 8px;
  --r-pill: 999px;
  --gutter: 16px;
  --section: 64px;
  --header-h: 60px;
  --bottombar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 200ms;
  --shadow: 0 1px 2px rgba(38, 34, 32, .06), 0 8px 24px rgba(38, 34, 32, .08);
  --shadow-lg: 0 24px 64px rgba(38, 34, 32, .22);
  --texture: url("../img/texture-weave.webp");
}
@media (min-width: 600px) { :root { --gutter: 24px; --section: 80px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --section: 104px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
@media (min-width: 1024px) { html { scroll-padding-top: calc(var(--header-h) + 16px); } }
body {
  margin: 0; background: var(--cotton); color: var(--ink);
  font: 400 15px/1.85 var(--ui);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
@media (min-width: 600px) { body { font-size: 16px; } }
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.num { unicode-bidi: isolate; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 30px; height: 30px; stroke-width: 1.4; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cotton); padding: 8px 16px; border-radius: var(--r-ctrl); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type: one family, two weights doing the talking ---------- */
.display { font: 800 30px/1.4 var(--display); }
.display .w-light { font-weight: 300; }
.display--light { color: var(--on-dark); }
@media (min-width: 600px) { .display { font-size: 38px; } }
@media (min-width: 1200px) { .display { font-size: 48px; line-height: 1.35; } }
.section { padding-block: var(--section) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.section__title { font: 800 22px/1.5 var(--display); }
.section__sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .section__title { font-size: 30px; } .section__head { margin-bottom: 26px; } }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1.6 var(--ui); color: var(--graphite); }
.kicker__mark { width: 18px; height: 10px; flex: none; background: var(--red); clip-path: polygon(0 100%, 50% 0, 100% 100%, 84% 100%, 50% 32%, 16% 100%); }
.kicker--light { color: var(--on-dark-muted); }

/* ---------- Primitives ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font: 700 15px/1.2 var(--ui); white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: var(--cotton); }
.btn--ink:hover { background: #000; }
.btn--ghost { border: 1.5px solid var(--stitch); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cotton); }
.btn--light { background: var(--cotton); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); transition: background var(--t) var(--ease); }
.icon-btn:hover { background: var(--linen); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--graphite); border-bottom: 1.5px dashed var(--stitch); padding-bottom: 2px; }
.link-btn:hover { color: var(--red-deep); border-color: var(--red); }
.link-btn--light { color: var(--on-dark); border-color: var(--line-dark); }
.link-btn--light:hover { color: #fff; border-color: var(--on-dark); }

.price { display: flex; align-items: baseline; gap: 5px; font-size: 13px; color: var(--graphite); flex-wrap: wrap; }
.price b { font: 800 16px/1.4 var(--display); color: var(--ink); }
.price__unit { font-size: 12px; }
@media (min-width: 900px) { .price b { font-size: 17px; } }
.price--lg b { font-size: 22px; }
.instal { font-size: 12px; line-height: 1.6; color: var(--muted); }
.instal b { color: var(--graphite); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--cotton); font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }

.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  min-width: 52px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--cotton); font-weight: 700; font-size: 14px;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.size-chip:hover { border-color: var(--ink); }
.size-chip[aria-checked="true"], .size-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cotton); }

/* round two-tone swatch: quick view, mega menu */
.sw { --a: #ccc; --b: var(--a); --acc: transparent; position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; }
.sw::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background-image: var(--texture), linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  background-size: 80px, cover; background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px rgba(38, 34, 32, .16), 0 0 0 2px var(--acc);
}
.sw[data-acc]::before { box-shadow: inset 0 0 0 1px rgba(38, 34, 32, .16), inset 0 0 0 3px var(--acc); }
.sw::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color var(--t) var(--ease); }
.sw:hover::after { border-color: var(--line); }
.sw[aria-checked="true"]::after { border-color: var(--ink); }

/* ---------- The fold: one device, used for the stack, the turn-down and the instalments ---------- */
.folds { display: flex; flex-direction: column; }
.fold {
  --c: #ccc; --tc: var(--ink);
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background-color: var(--c); background-image: var(--texture); background-size: 120px; background-blend-mode: soft-light;
  color: var(--tc); border-radius: 999px 18px 18px 999px;
  box-shadow: inset 0 -6px 10px -6px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .12);
}
/* the piping line along each folded edge */
.fold::after { content: ""; position: absolute; inset-inline: 18px 10px; bottom: 6px; border-bottom: 1.5px solid rgba(250, 247, 242, .55); border-radius: 2px; pointer-events: none; }

/* ---------- Product cards: photo, tappable swatches, honest colour state ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--linen); overflow: hidden; }
.card__img { display: block; height: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: 50% 58%; transition: transform 500ms var(--ease), opacity 160ms var(--ease); }
@media (hover: hover) { .card:hover .card__img img { transform: scale(1.14); } }
.card__img img.is-swapping { opacity: .4; }
.card__quick {
  position: absolute; z-index: 2; inset-inline-end: 8px; bottom: 8px; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-pill); background: rgba(250, 247, 242, .94); box-shadow: var(--shadow);
  transition: background var(--t), transform var(--t) var(--ease), opacity var(--t);
}
.card__quick .ico { width: 19px; height: 19px; }
.card__quick:hover { background: #fff; }
@media (min-width: 900px) and (hover: hover) {
  .card__quick { opacity: 0; transform: translateY(6px); }
  .card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
}
/* when the chosen colour has no photo, show the fabric itself on the photo */
.card__sample {
  position: absolute; z-index: 2; inset-inline-start: 8px; bottom: 8px; max-width: calc(100% - 64px);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill); background: rgba(250, 247, 242, .95); box-shadow: var(--shadow);
  font-size: 11px; font-weight: 700; line-height: 1.4; color: var(--graphite);
}
.card__sample i { --a: #ccc; --b: var(--a); width: 26px; height: 26px; flex: none; border-radius: 50%; background-image: var(--texture), linear-gradient(135deg, var(--a) 0 50%, var(--b) 50%); background-size: 70px, cover; background-blend-mode: soft-light, normal; box-shadow: inset 0 0 0 1px rgba(38, 34, 32, .16); }
.card__sample span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__swatches { display: flex; align-items: center; gap: 0; margin-top: 8px; margin-inline-start: -5px; }
.card__swatches .sw { width: 36px; height: 36px; }
.card__more { min-width: 36px; height: 30px; margin-inline-start: 2px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--graphite); }
.card__more:hover { border-color: var(--ink); color: var(--ink); }
.card__body { display: flex; flex-direction: column; padding-top: 4px; }
.card__type { font-size: 12px; color: var(--muted); line-height: 1.6; }
.card__name { font: 800 15px/1.55 var(--display); }
.card__name a::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 5; }
.card__name a:hover { color: var(--red-deep); }
.card__colour { font-size: 12px; color: var(--graphite); line-height: 1.6; min-height: 1.6em; }
.card__colour b { font-weight: 700; color: var(--ink); }
.card .price { margin-top: 4px; }
.card__pieces { display: flex; gap: 4px; margin-top: 6px; color: var(--graphite); }
.card__pieces svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
@media (min-width: 900px) { .card__name { font-size: 17px; } }
.card--more .card__media { display: grid; place-items: center; text-align: center; padding: 20px; background: var(--oat); }
.card--more b { display: block; font: 800 18px/1.6 var(--display); }
.card--more .card__media span span { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--red-deep); }

.cards--grid, .cards--compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 600px) { .cards--grid, .cards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; } }
@media (min-width: 1100px) { .cards--grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 20px; } }
.more-row { display: flex; justify-content: center; margin-top: 28px; }

/* tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--graphite); transition: color var(--t), background var(--t), border-color var(--t); }
.tabs [role="tab"]:hover { border-color: var(--ink); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cotton); }
@media (min-width: 900px) { .tabs { margin-bottom: 32px; } }

/* rails */
.rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > ul { display: flex; gap: 14px; width: max-content; min-width: 100%; }
.rail > ul > li { scroll-snap-align: start; }
.rail .card { flex: none; width: min(46vw, 250px); }
.rail-nav { display: none; }
@media (min-width: 900px) {
  .rail-nav { display: flex; gap: 8px; }
  .rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color var(--t), opacity var(--t); }
  .rail-nav button:hover { border-color: var(--ink); }
  .rail-nav button[disabled] { opacity: .3; cursor: default; }
  .rail-nav .ico--next { transform: scaleX(-1); }
}

/* ---------- Announcement ---------- */
.announce { background: var(--aubergine); color: var(--on-dark); font-size: 12px; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 1440px; margin-inline: auto; padding: 6px 12px; min-height: 40px; }
.announce__inner > .ico { width: 18px; height: 18px; color: var(--on-dark-muted); }
.announce p { line-height: 1.6; }
.announce a { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; white-space: nowrap; }
.announce__close { display: grid; place-items: center; width: 32px; height: 32px; margin-inline-start: auto; border-radius: 50%; color: var(--on-dark-muted); }
.announce__close .ico { width: 16px; height: 16px; }
.announce__close:hover { color: #fff; }
.announce__inner::before { content: ""; width: 32px; flex: none; margin-inline-end: auto; }
@media (max-width: 599px) { .announce__inner > .ico, .announce__inner::before, .announce__more { display: none; } .announce p { flex: 1; } }
@media (min-width: 900px) { .announce { font-size: 13px; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 242, .95); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.header.is-stuck { border-bottom-color: var(--line); }
.header__bar { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; column-gap: 8px; }
.header__menu { grid-area: menu; margin-inline-start: -10px; }
.logo { grid-area: logo; justify-self: center; display: block; padding-block: 8px; }
.logo img { width: 128px; height: auto; }
.header__actions { grid-area: actions; display: flex; margin-inline-end: -10px; }
.header__account { display: none; }
.nav { display: none; }
.header__search { grid-area: search; padding-bottom: 10px; max-height: 70px; transition: max-height 240ms var(--ease), padding 240ms var(--ease), opacity 200ms; }
.header.is-compact .header__search { max-height: 0; padding-bottom: 0; opacity: 0; overflow: hidden; }
.header.is-compact .header__search:focus-within { max-height: 70px; padding-bottom: 10px; opacity: 1; overflow: visible; }
@media (min-width: 600px) { .header__account { display: inline-grid; } .logo img { width: 140px; } }
.search { position: relative; }
.search__input { width: 100%; height: 44px; padding: 0 44px 0 40px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--linen); font-size: 14px; outline: none; transition: border-color var(--t), background var(--t); }
.search__input::placeholder { color: var(--muted); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:focus { border-color: var(--ink); background: #fff; }
.search__ico { position: absolute; inset-inline-start: 14px; top: 11px; color: var(--graphite); pointer-events: none; }
.search__clear { position: absolute; inset-inline-end: 4px; top: 2px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--graphite); }
.search__clear .ico { width: 18px; height: 18px; }
.search-panel { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 50; max-height: min(70vh, 560px); overflow: auto; padding: 16px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-lg); }
.search-panel__label { margin: 4px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.search-panel__label + .chips { margin-bottom: 16px; }
.search-panel__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.search-panel__cats a { padding: 10px 12px; border-radius: var(--r-ctrl); background: var(--linen); font-size: 13px; font-weight: 600; }
.search-panel__cats a:hover { background: var(--oat); }
.sr-list { display: grid; gap: 2px; margin-bottom: 12px; }
.sr-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: var(--r-ctrl); }
.sr-item:hover, .sr-item:focus-visible { background: var(--linen); }
.sr-item img { width: 52px; height: 52px; border-radius: 8px; background: var(--linen); object-fit: cover; }
.sr-item b { display: block; font-size: 14px; line-height: 1.5; }
.sr-item span { font-size: 12px; color: var(--muted); }
.sr-all { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px; border-radius: var(--r-ctrl); background: var(--linen); font-weight: 600; font-size: 14px; }
.sr-empty { padding: 4px 0 12px; font-size: 14px; color: var(--graphite); }
@media (min-width: 1024px) {
  .header__bar { grid-template-columns: auto 1fr minmax(240px, 340px) auto; grid-template-areas: "logo nav search actions"; column-gap: 28px; min-height: var(--header-h); }
  .header__menu { display: none; }
  .logo { justify-self: start; }
  .logo img { width: 150px; max-width: none; }
  .header__search, .header.is-compact .header__search { padding: 0; max-height: none; opacity: 1; overflow: visible; }
  .nav { display: block; grid-area: nav; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .header__bar { column-gap: 16px; grid-template-columns: auto 1fr minmax(200px, 260px) auto; }
  .logo img { width: 128px; }
}
.nav__list { display: flex; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 10px; font-weight: 600; font-size: 14px; position: relative; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; inset-inline: 10px; bottom: 18px; border-bottom: 1.5px dashed transparent; transition: border-color var(--t); }
.nav__link:hover::after, .nav__link[aria-expanded="true"]::after { border-color: var(--red); }
.nav__link .ico { transition: transform var(--t) var(--ease); }
.nav__link[aria-expanded="true"] .ico { transform: rotate(180deg); }
@media (min-width: 1024px) and (max-width: 1199px) { .nav__link { padding: 0 7px; font-size: 13px; } }
@media (min-width: 1200px) { .nav__link { font-size: 15px; padding: 0 12px; } }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--cotton); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(38, 34, 32, .25); }
.mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 300px; gap: 32px; padding-block: 32px 36px; }
.mega__title { margin-bottom: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mega__col ul { display: grid; gap: 2px; }
.mega__col a { display: inline-block; padding: 5px 0; font-size: 14px; }
.mega__col li a:hover { color: var(--red-deep); }
.mega__swatches { display: grid; grid-template-columns: repeat(5, 34px); gap: 6px; margin-bottom: 14px; }
.mega__col .mega__swatches a { display: inline-grid; padding: 0; }
.mega__more { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600; font-size: 13px !important; border-bottom: 1.5px dashed var(--stitch); }
.mega__hint { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.mega__feature { position: relative; border-radius: var(--r-card); overflow: hidden; align-self: start; }
.mega__feature img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 25% 50%; width: 100%; }
.mega__feature span { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(38, 34, 32, .72)); }
.mega__feature small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }

/* ---------- 1 · Hero: the panel is the duvet ---------- */
.hero__media { display: block; background: var(--linen); }
.hero__media img { width: 100%; aspect-ratio: 1; max-height: 40svh; object-fit: cover; object-position: 50% 58%; transition: opacity 260ms var(--ease); }
.hero__media img.is-swapping { opacity: .55; }
.hero__panel {
  position: relative; color: var(--face-ink);
  background-color: var(--face); background-image: var(--texture); background-size: 180px; background-blend-mode: soft-light;
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
/* the turn-down: the reverse colour folded over the top edge */
.hero__turn {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px;
  padding: 7px var(--gutter) 9px; font-size: 12px; line-height: 1.6; color: var(--back-ink);
  background-color: var(--back); background-image: var(--texture); background-size: 180px; background-blend-mode: soft-light;
  border-radius: 0 0 50% 50% / 0 0 10px 10px;
  box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .35);
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
.hero__turn b { font-weight: 700; }
.hero__copy { padding: 14px var(--gutter) 20px; }
.hero__eyebrow { display: none; font-size: 13px; font-weight: 700; color: var(--face-soft); }
.hero__title { font: 800 30px/1.35 var(--display); }
.hero__l1 { font-weight: 300; }
.hero__lead { display: none; color: var(--face-soft); }
.hero__lead b { font-weight: 800; color: var(--face-ink); }
.hero__picker { margin-top: 10px; }
.hero__colour { font-size: 13px; color: var(--face-soft); }
.hero__colour b { color: var(--face-ink); font-weight: 700; }
.fchips { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.fchip { --a: #ccc; --b: var(--a); position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; text-align: center; }
.fchip__cloth {
  position: relative; display: block; width: 48px; height: 48px; border-radius: 10px;
  background-image: var(--texture), linear-gradient(135deg, var(--b) 0 22%, rgba(38, 34, 32, .22) 22% 24%, var(--a) 24%);
  background-size: 90px, cover; background-blend-mode: soft-light, normal;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: transform 260ms var(--ease);
}
.fchip::after { content: ""; position: absolute; top: -4px; inset-inline: -4px; height: 56px; border: 2px solid transparent; border-radius: 13px; transition: border-color var(--t); pointer-events: none; }
@media (hover: hover) { .fchip:hover .fchip__cloth { transform: translateY(-2px); } }
.fchip[aria-checked="true"]::after { border-color: var(--face-ink); }
.fchip__name { display: none; font-size: 12px; line-height: 1.45; color: var(--face-soft); }
.fchip--more .fchip__cloth { display: grid; place-items: center; background: none; box-shadow: none; border: 1.5px dashed currentColor; font: 700 13px/1 var(--ui); color: var(--face-ink); opacity: .85; }
.hero__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed currentColor; border-color: color-mix(in srgb, var(--face-ink) 30%, transparent); }
.hero__price { font-size: 13px; color: var(--face-soft); }
.hero__price b { font: 800 21px/1.3 var(--display); color: var(--face-ink); }
.hero__instal { font-size: 12px; color: var(--face-soft); }
.hero__instal b { color: var(--face-ink); }
.hero .btn--ink { background: var(--face-ink); color: var(--face); }
.hero .btn--ink:hover { opacity: .9; }
@media (min-width: 768px) {
  .hero__media img { aspect-ratio: 16 / 9; max-height: none; object-position: 50% 50%; }
  .hero__turn { padding-block: 10px 12px; font-size: 13px; border-radius: 0 0 50% 50% / 0 0 14px 14px; }
  .hero__copy { padding-block: 24px 32px; }
  .hero__eyebrow { display: block; }
  .hero__title { font-size: 44px; }
  .hero__lead { display: block; margin-top: 8px; max-width: 34em; }
  .fchip { width: 64px; }
  .fchip__cloth { width: 56px; height: 56px; }
  .fchip::after { height: 64px; inset-inline: 0; }
  .fchip__name { display: block; }
}
@media (min-width: 1024px) {
  .hero__grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: clamp(560px, calc(100svh - var(--header-h) - 48px), 780px); }
  .hero__panel { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
  .hero__media { grid-column: 2; grid-row: 1; position: relative; }
  .hero__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 22% 50%; }
  .hero__turn { padding: 16px clamp(32px, 3.6vw, 64px) 20px; border-radius: 0 0 50% 50% / 0 0 22px 22px; }
  .hero__copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(32px, 3.6vw, 64px) 48px; }
  .hero__title { margin-top: 10px; font-size: clamp(44px, 3.9vw, 62px); line-height: 1.28; }
  .hero__l1, .hero__l2 { display: block; }
  .hero__lead { font-size: 16px; margin-top: 16px; }
  .hero__picker { margin-top: 28px; }
  .hero__buy { justify-content: flex-start; gap: 32px; margin-top: 28px; padding-top: 22px; }
  .hero__price b { font-size: 26px; }
}

/* ---------- 2 · Shelf ---------- */
.shelf { padding-top: 40px; }
.shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shelf__rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.shelf__rail::-webkit-scrollbar { display: none; }
.shelf__list { display: flex; width: max-content; }
.shelf__list li { scroll-snap-align: start; }
.tile { position: relative; display: block; width: 40vw; max-width: 190px; padding-bottom: 46px; }
.tile__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) { .tile:hover .tile__img img { transform: scale(1.05); } }
.tile__tag {
  position: absolute; inset-inline: 12px; top: calc(100% - 64px);
  display: block; padding: 12px 10px 8px; background: var(--cotton); border-radius: 4px;
  box-shadow: 0 6px 14px rgba(38, 34, 32, .1); text-align: center; transition: transform 300ms var(--ease);
}
.tile__tag::before { content: ""; position: absolute; top: 5px; inset-inline-start: 50%; width: 6px; height: 6px; margin-inline-start: -3px; border-radius: 50%; background: var(--oat); }
@media (hover: hover) { .tile:hover .tile__tag { transform: translateY(-4px) rotate(-1.5deg); } }
.tile__tag b { display: block; font: 800 14px/1.5 var(--display); }
.tile__tag small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (min-width: 600px) { .tile { width: 200px; max-width: none; } }
@media (min-width: 1100px) {
  .shelf__rail { overflow: visible; }
  .shelf__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); width: 100%; }
  .tile { width: auto; }
  .tile__tag b { font-size: 15px; }
}
@media (max-width: 599px) { .shelf .link-btn { display: none; } }

/* ---------- 3 · Shop by colour: tap the stack ---------- */
.colour { margin-top: var(--section); padding-block: 48px 56px; background: var(--fam-tint); transition: background 500ms var(--ease); }
.colour__head { display: grid; gap: 8px; margin-bottom: 24px; }
.colour__lead { color: var(--graphite); max-width: 34em; }
.stackpic { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--oat); }
.stackpic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spot {
  --c: #ccc; position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 11px 4px 5px;
  border-radius: var(--r-pill); background: rgba(250, 247, 242, .93); box-shadow: 0 4px 14px rgba(38, 34, 32, .22);
  font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  transition: background var(--t), color var(--t), transform var(--t) var(--ease);
}
.spot i { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
@media (hover: hover) { .spot:hover { transform: scale(1.06); } }
.spot[aria-checked="true"] { background: var(--ink); color: var(--cotton); }
.spot--d { display: none; }
.colour__fams { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
.colour__fams::-webkit-scrollbar { display: none; }
.fam { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: var(--r-pill); background: rgba(250, 247, 242, .7); border: 1.5px solid transparent; font-size: 13px; font-weight: 700; transition: border-color var(--t), background var(--t); }
.fam i { --c: #ccc; width: 26px; height: 26px; border-radius: 50%; background-image: var(--texture), linear-gradient(var(--c), var(--c)); background-size: 70px, cover; background-blend-mode: soft-light, normal; box-shadow: inset 0 0 0 1px rgba(38, 34, 32, .14); }
.fam small { font-size: 12px; font-weight: 500; color: var(--muted); }
.fam:hover { border-color: var(--stitch); }
.fam[aria-checked="true"] { background: var(--cotton); border-color: var(--ink); }
.colour__result { margin-top: 24px; }
.colour__count { margin-bottom: 18px; font-size: 14px; color: var(--graphite); }
.colour__count b { font: 800 18px/1 var(--display); color: var(--ink); }
.colour .card__media { background: rgba(255, 255, 255, .45); }
.colour .more-row { margin-top: 28px; }
.colour__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 32px; font-size: 13px; color: var(--graphite); line-height: 1.8; }
.colour__note .ico { margin-top: 4px; }
.colour__note a { font-weight: 700; color: var(--ink); border-bottom: 1.5px dashed var(--stitch); }
@media (min-width: 768px) {
  .stackpic img { aspect-ratio: 3 / 1; }
  .spot--d { display: inline-flex; }
  .spot--m { display: none; }
  .spot { font-size: 13px; min-height: 36px; padding-inline-end: 14px; }
  .colour__fams { flex-wrap: wrap; justify-content: center; max-width: 1440px; margin-inline: auto; padding-top: 20px; overflow: visible; }
}
@media (min-width: 1100px) {
  .colour { padding-block: 80px 88px; }
  .colour__head { grid-template-columns: auto 1fr; align-items: end; gap: 8px 56px; margin-bottom: 32px; }
  .colour__head .kicker { grid-column: 1 / -1; }
  .colour__lead { padding-bottom: 8px; }
}

/* ---------- 4 · Popular ---------- */
.popular { padding-top: var(--section); }

/* ---------- 5 · Easy buying (forest green) ---------- */
.perks {
  margin-top: var(--section); padding-block: 56px; color: var(--on-dark);
  background-color: var(--forest); background-image: var(--texture); background-size: 220px; background-blend-mode: soft-light;
}
.perks__head { display: grid; gap: 8px; margin-bottom: 28px; }
.perks__grid { display: grid; gap: 16px; }
.perk { padding: 22px 18px; border-radius: 20px; background: rgba(250, 247, 242, .07); border: 1px solid var(--line-dark); }
.perk__title { font: 800 19px/1.5 var(--display); }
.perk__text { margin-top: 4px; font-size: 14px; color: var(--on-dark-muted); line-height: 1.85; }
.perk__note { margin-top: 14px; font-size: 13px; color: var(--on-dark); }
.perk__note b { font-weight: 800; }
.perk .link-btn { margin-top: 12px; }
.beds { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: 20px; }
.bed { --w: 160; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 6px; border-radius: 12px; min-width: 52px; transition: background var(--t); }
.bed__frame { position: relative; display: flex; flex-direction: column; width: calc(var(--w) * .34px); height: 84px; padding: 5px 4px 0; border-radius: 6px 6px 3px 3px; border: 1.5px solid rgba(244, 238, 230, .5); transition: border-color var(--t); }
.bed__pillows { display: flex; gap: 3px; height: 13px; }
.bed__pillows i { flex: 1; border-radius: 4px; background: rgba(244, 238, 230, .35); transition: background var(--t); }
.bed__quilt { flex: 1; margin: 6px -4px 0; border-radius: 4px 4px 2px 2px; background: rgba(244, 238, 230, .16); border-top: 5px solid rgba(244, 238, 230, .3); transition: background var(--t), border-color var(--t); }
.bed b { font: 800 15px/1 var(--display); }
.bed small { font-size: 11px; color: var(--on-dark-muted); white-space: nowrap; }
.bed:hover .bed__frame { border-color: var(--on-dark); }
.bed[aria-pressed="true"] { background: rgba(250, 247, 242, .1); }
.bed[aria-pressed="true"] .bed__frame { border-color: var(--cotton); }
.bed[aria-pressed="true"] .bed__pillows i { background: var(--cotton); }
.bed[aria-pressed="true"] .bed__quilt { background: #A3A78C; border-top-color: #E4D6BC; }
/* Instalments as one quilted panel: four padded squares joined by stitched seams; the square paid at purchase is filled */
.quilt {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border-radius: 22px; overflow: hidden;
  background: rgba(250, 247, 242, .07);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.quilt li {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 16px 18px;
  /* the padding puffs up between the seams */
  background-image: radial-gradient(ellipse 75% 70% at 50% 42%, rgba(250, 247, 242, .09), rgba(250, 247, 242, 0) 72%);
  box-shadow: inset 0 -10px 18px -12px rgba(0, 0, 0, .35);
}
.quilt li:nth-child(odd) { border-inline-end: 1.5px dashed rgba(250, 247, 242, .3); }
.quilt li:nth-child(-n+2) { border-bottom: 1.5px dashed rgba(250, 247, 242, .3); }
.quilt__when { font-size: 12px; color: var(--on-dark-muted); }
.quilt__sum { font-size: 12px; color: var(--on-dark-muted); }
.quilt__sum b { font: 800 18px/1.3 var(--display); color: var(--on-dark); }
.quilt li:first-child { background-color: #E4D6BC; background-image: var(--texture), radial-gradient(ellipse 75% 70% at 50% 42%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 72%); background-size: 120px, auto; background-blend-mode: soft-light, normal; }
.quilt li:first-child .quilt__when, .quilt li:first-child .quilt__sum { color: #4A3F37; }
.quilt li:first-child .quilt__sum b { color: var(--ink); }
.quilt li:first-child .quilt__when::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--forest); vertical-align: 1px; }
@media (min-width: 900px) { .quilt li { min-height: 108px; padding: 18px 22px; } .quilt__sum b { font-size: 20px; } }
@media (min-width: 600px) { .bed__frame { width: calc(var(--w) * .42px); height: 100px; } .bed { min-width: 64px; padding-inline: 8px; } }
@media (min-width: 900px) {
  .perks { padding-block: 88px; }
  .perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .perk { padding: 32px; }
  .perk__title { font-size: 22px; }
  .perks__head { margin-bottom: 40px; }
}

/* ---------- 6 · Stitch details ---------- */
.craft { margin-top: var(--section); padding-block: 56px 64px; background: var(--linen); }
.craft__head { display: grid; gap: 8px; margin-bottom: 28px; }
.craft__lead { color: var(--graphite); max-width: 34em; }
.craft__strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.craft__strip::-webkit-scrollbar { display: none; }
.part { flex: none; width: 78vw; max-width: 380px; scroll-snap-align: start; }
.part__fig { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); background: var(--oat); }
.part__fig img { width: 100%; height: 100%; object-fit: cover; }
.part__pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; z-index: 1; }
.part__pin::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 200vh; border-left: 1.5px dashed rgba(250, 247, 242, .85); }
.part__dot { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cotton); color: var(--ink); font: 800 14px/1 var(--display); box-shadow: 0 0 0 6px rgba(250, 247, 242, .35); }
.part__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(250, 247, 242, .7); animation: pin 2.4s var(--ease) infinite; }
@keyframes pin { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.part__cap { padding-top: 14px; }
.part__name { font: 800 19px/1.5 var(--display); }
.part__name small { margin-inline-start: 8px; font: 500 12px var(--ui); color: var(--muted); }
.part__text { margin-top: 4px; font-size: 14px; line-height: 1.9; color: var(--graphite); }
.part__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.part__links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--stitch); font-size: 12px; font-weight: 700; }
.part__links a:hover { background: var(--ink); color: var(--cotton); border-color: var(--ink); }
@media (min-width: 1100px) {
  .craft { padding-block: 88px 96px; }
  .craft__head { grid-template-columns: auto 1fr; align-items: end; gap: 8px 56px; margin-bottom: 40px; }
  .craft__head .kicker { grid-column: 1 / -1; }
  .craft__lead { padding-bottom: 8px; }
  .craft__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
  .part { width: auto; max-width: none; }
}

/* ---------- 7 · Complete the bed ---------- */
.complete__panel { display: grid; gap: 20px; }
.note-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--linen); overflow: hidden; transition: background var(--t); }
.note-card:hover { background: var(--oat); }
.note-card__eyebrow { font-size: 13px; font-weight: 700; color: var(--graphite); }
.note-card__title { font: 800 20px/1.55 var(--display); }
.note-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; color: var(--red-deep); }
@media (min-width: 900px) {
  .complete__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: stretch; gap: 24px; }
  .note-card { padding: 28px; }
  .note-card__title { font-size: 24px; }
}
@media (min-width: 1100px) { .cards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }

/* ---------- 8 · Bridal sleep checklist (blush) ---------- */
.jahaz { margin-top: var(--section); padding-block: 56px 64px; background: var(--blush); }
.jahaz__head { display: grid; gap: 8px; margin-bottom: 28px; }
.jahaz__lead { color: var(--graphite); max-width: 38em; }
.jahaz__board { display: grid; gap: 16px; }
.jahaz__summary { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "stack count" "stack sum" "actions actions"; column-gap: 16px; align-items: center; padding: 18px; border-radius: 20px; background: var(--cotton); box-shadow: var(--shadow); }
.folds--jahaz { grid-area: stack; flex-direction: column-reverse; gap: 3px; }
.folds--jahaz .fold { height: 15px; border-radius: 999px 6px 6px 999px; transition: background-color 400ms var(--ease), transform 400ms var(--ease); }
.folds--jahaz .fold::after { bottom: 3px; inset-inline: 10px 6px; }
.folds--jahaz .fold.is-empty { background: transparent; box-shadow: none; border: 1.5px dashed rgba(38, 34, 32, .28); }
.folds--jahaz .fold.is-empty::after { display: none; }
.folds--jahaz .fold:nth-child(even) { margin-inline-start: 6px; }
.jahaz__count { grid-area: count; font: 800 22px/1.4 var(--display); }
.jahaz__count small { font: 500 13px var(--ui); color: var(--muted); }
.jahaz__sum { grid-area: sum; font-size: 13px; color: var(--graphite); line-height: 1.7; }
.jahaz__sum b { color: var(--ink); }
.jahaz__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.jahaz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--cotton); overflow: hidden; transition: box-shadow var(--t); }
.jcard__img { position: relative; display: block; aspect-ratio: 1; background: var(--linen); overflow: hidden; }
.jcard__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: filter 300ms, opacity 300ms; }
.jcard__num { position: absolute; z-index: 1; inset-inline-start: 8px; top: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cotton); font: 800 13px/1 var(--display); box-shadow: var(--shadow); transition: background var(--t), color var(--t); }
.jcard__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.jcard__need { font: 800 15px/1.5 var(--display); }
.jcard__name { font-size: 12px; color: var(--graphite); line-height: 1.6; }
.jcard__name:hover { color: var(--red-deep); }
.jcard__price { margin-top: 4px; font-size: 12px; color: var(--graphite); }
.jcard__price b { font: 800 14px var(--display); color: var(--ink); }
.jcard__toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; min-height: 40px; border-radius: var(--r-pill); border: 1.5px dashed var(--stitch); font-size: 13px; font-weight: 700; transition: background var(--t), color var(--t), border-color var(--t); }
.jcard__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jcard__toggle:hover { border-color: var(--ink); }
.jcard__toggle svg circle { stroke-width: 2; }
.jcard__body > :last-child { margin-top: 10px; }
.jcard.is-done .jcard__img img { filter: grayscale(.7); opacity: .55; }
.jcard.is-done .jcard__num { background: var(--red); color: #fff; }
.jcard.is-done .jcard__need { color: var(--muted); }
.jcard.is-done .jcard__toggle { background: var(--ink); color: var(--cotton); border: 1.5px solid var(--ink); }
.jcard__undo { margin-inline-start: auto; padding-inline-start: 8px; font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; opacity: .75; }
.jcard.is-done .jcard__toggle { justify-content: flex-start; padding-inline: 14px; }
@media (min-width: 600px) { .jahaz__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) {
  .jahaz { padding-block: 88px 96px; }
  .jahaz__head { grid-template-columns: auto 1fr; align-items: end; gap: 8px 56px; margin-bottom: 40px; }
  .jahaz__head .kicker { grid-column: 1 / -1; }
  .jahaz__lead { padding-bottom: 8px; }
  .jahaz__board { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
  .jahaz__summary { position: sticky; top: calc(var(--header-h) + 24px); grid-template-columns: 1fr; grid-template-areas: "stack" "count" "sum" "actions"; padding: 28px; row-gap: 8px; }
  .folds--jahaz { width: 200px; margin-bottom: 12px; }
  .folds--jahaz .fold { height: 22px; }
  .jahaz__actions { flex-direction: column; align-items: stretch; }
  .jahaz__actions .link-btn { align-self: flex-start; }
}

/* ---------- 9 · Dusk: guest chapter ---------- */
.guest { padding-bottom: 48px; background: var(--aubergine); color: var(--on-dark); }
.guest__scene { display: flex; flex-direction: column-reverse; }
.guest__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.guest__copy { padding-block: 40px 28px; }
.guest__copy .display { margin-top: 6px; }
.guest__lead { margin-top: 12px; color: var(--on-dark-muted); max-width: 28em; }
.guest__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 22px; padding-block: 14px; border-block: 1.5px dashed var(--line-dark); font-size: 13px; color: var(--on-dark-muted); }
.guest__facts b { font: 800 18px/1 var(--display); color: var(--on-dark); }
@media (min-width: 768px) { .guest__media img { aspect-ratio: 16 / 10; } }
@media (min-width: 900px) {
  .guest__scene { position: relative; display: block; }
  .guest__media img { aspect-ratio: auto; height: clamp(520px, 50vw, 820px); object-position: 30% 50%; }
  .guest__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(43, 32, 39, .92) 0%, rgba(43, 32, 39, .7) 32%, rgba(43, 32, 39, 0) 58%), linear-gradient(to top, var(--aubergine), rgba(43, 32, 39, 0) 22%); pointer-events: none; }
  .guest__copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .guest__copy > * { max-width: 520px; }
}
.guest__railhead { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.guest__railhead h3 { font: 800 18px/1.5 var(--display); }
.guest__railhead + .rail { margin-top: 16px; }
.guest .rail-nav button { border-color: var(--line-dark); color: var(--on-dark); }
.guest .rail-nav button:hover { border-color: var(--on-dark); }
.rail--dark .card__media { background: var(--aubergine-2); }
.rail--dark .card__type, .rail--dark .instal, .rail--dark .price, .rail--dark .card__pieces, .rail--dark .card__colour { color: var(--on-dark-muted); }
.rail--dark .price b, .rail--dark .card__name a:hover, .rail--dark .instal b, .rail--dark .card__colour b { color: var(--on-dark); }
.rail--dark .card__more { border-color: var(--line-dark); color: var(--on-dark-muted); }
.rail--dark .sw[aria-checked="true"]::after { border-color: var(--on-dark); }
/* Guest cards: name first, then contents, price, and a single colour entry point */
.gcard .card__body { padding-top: 10px; }
.gcard .card__name { order: 0; }
.gcard .card__type { margin-top: 1px; min-height: 3.2em; }
.gcard .card__price { margin-top: 8px; }
.gcard__meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line-dark); }
.gcard__pcs { white-space: nowrap; }
.gcard__colours { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; white-space: nowrap; padding: 0 12px 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); font-size: 12px; font-weight: 700; color: var(--on-dark-muted); transition: border-color var(--t), color var(--t); }
.gcard__colours:hover { border-color: var(--on-dark); color: var(--on-dark); }
.gcard__dots { display: inline-flex; }
.gcard__dots i { width: 16px; height: 16px; border-radius: 50%; margin-inline-start: -5px; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50%); box-shadow: 0 0 0 2px var(--aubergine); }
.gcard__dots i:first-child { margin-inline-start: 0; }

/* ---------- 10 · Night ---------- */
.night { padding-block: 24px 56px; background: var(--aubergine); color: var(--on-dark); }
.service__list { display: grid; gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
.service__item { padding: 20px 4px; background: var(--aubergine); }
.service__item .ico--lg { color: var(--on-dark-muted); }
.service__item h3 { margin-top: 8px; font: 800 16px/1.6 var(--display); }
.service__item p { margin-top: 4px; font-size: 14px; color: var(--on-dark-muted); line-height: 1.85; }
.service__item a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; border-bottom: 1.5px dashed var(--line-dark); }
.service__item a:hover { border-color: var(--red); }
@media (min-width: 600px) { .service__list { grid-template-columns: 1fr 1fr; } .service__item { padding: 28px 24px; } }
@media (min-width: 1100px) { .service__list { grid-template-columns: repeat(4, 1fr); } }
.guides { margin-top: var(--section); }
.guides__list { display: grid; gap: 18px; }
.guide { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr; gap: 2px 14px; }
.guide__img { grid-row: span 2; aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: var(--aubergine-2); }
.guide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
@media (hover: hover) { .guide:hover .guide__img img { transform: scale(1.04); } }
.guide__tag { font-size: 12px; font-weight: 700; color: var(--on-dark-muted); align-self: end; }
.guide__title { font: 700 15px/1.75 var(--ui); }
.guide:hover .guide__title { text-decoration: underline dashed; text-underline-offset: 6px; }
@media (min-width: 768px) {
  .guides__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .guide { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; }
  .guide__img { grid-row: auto; aspect-ratio: 3 / 2; margin-bottom: 14px; }
  .guide__title { font-size: 16px; }
}
.insta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin-top: var(--section); padding-block: 28px; border-block: 1.5px dashed var(--line-dark); }
.insta__copy { display: flex; gap: 14px; align-items: flex-start; }
.insta__copy .ico { color: var(--on-dark-muted); margin-top: 4px; }
.insta__title { font: 800 18px/1.5 var(--display); }
.insta__copy p { font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 599px) { .insta .btn { width: 100%; } }

/* ---------- Footer: the linen-cupboard stack ---------- */
.footer { position: relative; padding-block: 28px 24px; background: var(--night); color: var(--on-dark-muted); font-size: 14px; }
/* the hem: a turned band with two rows of stitching where the night section ends */
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: rgba(250, 247, 242, .045); border-bottom: 1.5px dashed rgba(250, 247, 242, .26); box-shadow: 0 7px 0 -5.5px rgba(250, 247, 242, .1); }
.footer__grid { position: relative; display: grid; gap: 32px; padding-top: 40px; }
.footer__logo { width: 150px; }
.footer__brand p { margin-top: 14px; max-width: 26em; line-height: 1.9; }
.footer__seal { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: var(--r-ctrl); color: var(--on-dark); font-size: 13px; }
.footer__seal:hover { border-color: var(--on-dark); }
.footer__col h2 { margin-bottom: 10px; font: 800 15px/1.5 var(--display); color: var(--on-dark); }
.footer__col ul { display: grid; gap: 2px; }
.footer__col a { display: inline-block; padding: 4px 0; }
.footer__col a:hover { color: var(--on-dark); }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 1.5px dashed var(--line-dark); font-size: 12px; }
@media (min-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-top: 56px; }
  .footer__brand { grid-column: auto; }
}

/* ---------- Mobile bottom bar ---------- */
.bottombar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bottombar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(250, 247, 242, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bottombar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--graphite); }
.bottombar__item.is-active { color: var(--ink); font-weight: 700; }
.bottombar__item.is-active .ico { color: var(--red); }
@media (min-width: 1024px) { .bottombar { display: none; } }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(38, 34, 32, .45); backdrop-filter: blur(2px); }
dialog[open] { animation: fade 200ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px); } }
html.has-dialog { overflow: hidden; }
.drawer { margin: 0; inset-inline-start: 0; inset-inline-end: auto; height: 100%; max-height: 100dvh; width: min(88vw, 380px); background: var(--cotton); }
.drawer[open] { display: flex; flex-direction: column; animation: slide-in 240ms var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; padding-inline: 20px 8px; border-bottom: 1px solid var(--line); }
.drawer__head img { width: 120px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 32px; }
.drawer__label { margin: 20px 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.drawer__cats a { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-weight: 600; font-size: 15px; }
.drawer__cats img { width: 40px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--linen); }
.drawer__links a { display: block; padding: 8px 0; font-size: 14px; color: var(--graphite); }
.drawer__phone { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-card); background: var(--linen); font-size: 14px; }
.drawer__phone b { margin-inline-start: auto; }

.qv { margin: auto auto 0; width: 100%; max-height: 92dvh; }
.qv[open] { animation: slide-up 260ms var(--ease); }
.qv__sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--cotton); border-radius: 20px 20px 0 0; }
.qv__close { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 2; background: rgba(250, 247, 242, .9); }
.qv__gallery { background: var(--linen); }
.qv__main { display: grid; place-items: center; height: min(100vw, 46dvh); }
.qv__main img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; transition: opacity 160ms; }
.qv__main img.is-swapping { opacity: .35; }
.qv__thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px 12px; }
.qv__thumbs::-webkit-scrollbar { display: none; }
.qv__thumbs button { flex: none; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--cotton); outline: 1.5px dashed transparent; outline-offset: 2px; }
.qv__thumbs button[aria-current="true"] { outline-color: var(--ink); }
.qv__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv__info { padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.qv__type { font-size: 13px; color: var(--muted); }
.qv__title { font: 800 24px/1.5 var(--display); }
.qv__fullname { font-size: 12px; color: var(--muted); line-height: 1.7; }
.qv__block { margin-top: 18px; }
.qv__label { margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.qv__label b { color: var(--ink); font-weight: 700; }
.qv__count { font-size: 12px; }
.qv__swatches { display: flex; flex-wrap: wrap; margin-inline-start: -5px; max-height: 148px; overflow-y: auto; }
.qv__swatches .sw { width: 40px; height: 40px; }
.qv__swatches .sw::before { width: 28px; height: 28px; }
.qv__hint { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.qv__hint:empty { display: none; }
.qv__variant { display: flex; gap: 6px; margin-top: 10px; }
.qv__variant .size-chip { min-width: 0; }
.qv__price { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.pieces { display: flex; flex-wrap: wrap; gap: 8px; }
.pieces li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; border-radius: var(--r-pill); background: var(--linen); font-size: 12px; line-height: 1.6; color: var(--graphite); }
.pieces svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.qv__material { margin-top: 12px; font-size: 13px; color: var(--graphite); }
.qv__material:empty { display: none; }
.qv .btn--primary { margin-top: 20px; }
.qv__note { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }
@media (min-width: 900px) {
  .qv { margin: auto; width: min(1040px, calc(100vw - 48px)); }
  .qv[open] { animation: fade 200ms var(--ease); }
  .qv__sheet { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: 20px; max-height: min(88dvh, 760px); overflow: hidden; }
  .qv__gallery { display: flex; flex-direction: column; overflow: hidden; }
  .qv__main { flex: 1; width: 100%; height: auto; min-height: 0; }
  .qv__info { overflow-y: auto; padding: 32px; }
}

.explainer { margin: auto auto 0; width: 100%; }
.explainer__sheet { position: relative; max-height: 90dvh; overflow-y: auto; padding: 28px var(--gutter) 32px; background: var(--cotton); border-radius: 20px 20px 0 0; }
.explainer[open] { animation: slide-up 260ms var(--ease); }
.explainer h2 { font: 800 21px/1.5 var(--display); padding-inline-end: 44px; }
.explainer__grid { display: grid; gap: 14px; margin-top: 18px; }
.explainer article { padding: 18px; border-radius: var(--r-card); background: var(--linen); }
.explainer h3 { font: 800 16px/1.5 var(--display); }
.explainer article p { margin-top: 6px; font-size: 14px; color: var(--graphite); }
.explainer article .pieces { margin-top: 12px; }
.explainer article .pieces li { background: var(--cotton); }
.explainer article a { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; border-bottom: 1.5px dashed var(--stitch); }
.explainer__note { margin-top: 14px; font-size: 12px; color: var(--muted); }
@media (min-width: 900px) {
  .explainer { margin: auto; width: min(980px, calc(100vw - 48px)); }
  .explainer__sheet { border-radius: 20px; padding: 36px; }
  .explainer__grid { grid-template-columns: repeat(3, 1fr); }
}

.toast { position: fixed; inset-inline: 0; bottom: calc(var(--bottombar-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; width: max-content; max-width: calc(100vw - 32px); margin-inline: auto; padding: 10px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--cotton); font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.toast.is-on { opacity: 1; transform: none; }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

/* ---------- Mobile pacing ---------- */
@media (max-width: 599px) {
  /* one rail per screen-length: complete-the-bed scrolls, the grids above stay grids */
  .cards--compact { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .cards--compact::-webkit-scrollbar { display: none; }
  .cards--compact > .card { flex: none; width: 44vw; scroll-snap-align: start; }
}

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