/* =========================================
   RENAISSANCE — the family's material board
   Real samples pinned to a deep forest board; the room wears what you pick.
   Forest owns the fields, sage-stone is the reading ground, one amber light
   marks the active choice and the single forward action.
   ========================================= */

/* ===== Fonts: Kinamon (display) + Kinamon Text (body), self-hosted ===== */
@font-face { font-family: 'Kinamon'; src: url('../fonts/Kinamon/Kinamon-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Kinamon'; src: url('../fonts/Kinamon/Kinamon-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kinamon'; src: url('../fonts/Kinamon/Kinamon-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kinamon Text'; src: url('../fonts/KinamonText/KinamonText-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kinamon Text'; src: url('../fonts/KinamonText/KinamonText-Medium.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Kinamon Text'; src: url('../fonts/KinamonText/KinamonText-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --forest: #1E2B22;
  --forest-2: #273A2D;
  --forest-3: #142019;
  --moss: #3D4B3A;
  --ground: #E5E7DF;
  --ground-2: #D9DCD1;
  --paper: #F7F7F3;
  --line: #C9CDC1;
  --line-2: #B4BAAD;
  --ink: #17201A;
  --ink-2: #3A453C;
  --ink-3: #556055;
  --on-forest: #EEF0E8;
  --on-forest-2: #AEB9A9;
  --forest-line: rgba(238, 240, 232, 0.16);
  --amber: #E8A14A;
  --amber-deep: #D68A2C;
  --travertine: #C9B89A;
  --error: #A3412A;

  --display: 'Kinamon', 'Kinamon Text', system-ui, sans-serif;
  --body: 'Kinamon Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 6px;                 /* the sample chip: every surface */
  --pill: 999px;            /* every control */
  --shadow-chip: 0 1px 0 rgba(23, 32, 26, 0.05), 0 18px 32px -20px rgba(23, 32, 26, 0.45);
  --shadow-lift: 0 2px 0 rgba(23, 32, 26, 0.04), 0 28px 48px -26px rgba(23, 32, 26, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --mid: 320ms;

  --container: 1280px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --section: clamp(84px, 10vw, 152px);
  --header-h: 76px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules never resurrect hidden elements */
html { font-size: calc(100% * var(--a11y-text, 1)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 300; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-forest :focus-visible, .site-footer :focus-visible, .mobile-drawer :focus-visible { outline-color: var(--amber); }
.num, .tabular { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--line-2) var(--ground); }
input, select, textarea { caret-color: var(--amber-deep); accent-color: var(--forest); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: 12px; transform: translateY(calc(-100% - 40px)); z-index: 200; background: var(--amber); color: #17201A; padding: 10px 18px; border-radius: var(--pill); font-weight: 600; transition: transform var(--fast) var(--ease); }
.skip-link:focus { transform: none; }

/* Icons (Phosphor light) */
.ph-light { font-size: 1.15em; line-height: 1; vertical-align: -0.16em; }

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--pill);
  font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ph-light { font-size: 1.25rem; }
.btn-amber { background: var(--amber); color: #17201A; } /* fixed ink: amber stays dark-on-light in every contrast mode */
.btn-amber:hover { background: var(--amber-deep); }
.btn-forest { background: var(--forest); color: var(--on-forest); }
.btn-forest:hover { background: var(--moss); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--forest); color: var(--on-forest); }
.on-forest .btn-line, .btn-line.light { box-shadow: inset 0 0 0 1.5px rgba(238, 240, 232, 0.55); color: var(--on-forest); }
.on-forest .btn-line:hover, .btn-line.light:hover { background: var(--on-forest); color: var(--forest); }
.btn-ghost { min-height: 44px; padding: 0 4px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--line-2); font-weight: 500; }
.btn-ghost:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-underline-offset var(--fast) var(--ease), gap var(--fast) var(--ease);
}
.text-link:hover { text-underline-offset: 10px; gap: 12px; text-decoration-color: currentColor; }
.on-forest .text-link { color: var(--on-forest); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand-mark { display: flex; align-items: baseline; gap: 14px; flex-shrink: 0; }
.brand-mark .heb { font-family: var(--display); font-size: 1.875rem; font-weight: 400; line-height: 1; letter-spacing: 0.01em; }
.brand-mark .where { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-3); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: var(--pill);
  font-size: 0.9688rem; font-weight: 500; color: var(--ink-2);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav a:hover { background: var(--ground-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--ground-2); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); direction: ltr; }
.header-phone:hover { color: var(--ink); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 14px; border-radius: var(--pill);
  background: var(--forest); color: var(--on-forest);
  font-size: 0.9375rem; font-weight: 600;
  transition: background-color var(--fast) var(--ease);
}
.cart-btn:hover { background: var(--moss); }
.cart-btn .ph-light { font-size: 1.25rem; }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill);
  background: var(--on-forest); color: var(--forest);
  display: inline-grid; place-items: center;
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-count.pulse { animation: pulse 520ms var(--ease); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: var(--pill); place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.menu-toggle .ph-light { font-size: 1.375rem; }

@media (max-width: 1100px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .cart-btn { margin-inline-start: auto; }
  .brand-mark .heb { font-size: 1.625rem; }
}
@media (max-width: 540px) {
  .brand-mark .where { display: none; }
  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 0 12px; }
  .site-header-inner { gap: 10px; }
}

/* ===== Mobile drawer ===== */
.mobile-drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(20, 32, 25, 0.5); opacity: 0; pointer-events: none; transition: opacity var(--mid) var(--ease); }
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 100;
  width: min(380px, 88vw);
  background: var(--forest); color: var(--on-forest);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 420ms var(--ease), visibility 0s linear 420ms;
}
.mobile-drawer.open { transform: none; visibility: visible; transition: transform 420ms var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--forest-line); }
.drawer-head .heb { font-family: var(--display); font-size: 1.75rem; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--forest-line); }
.drawer-close .ph-light { font-size: 1.375rem; }
.mobile-drawer nav { display: flex; flex-direction: column; padding: 10px 10px; overflow-y: auto; }
.mobile-drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; border-radius: var(--r); font-family: var(--display); font-size: 1.3125rem; font-weight: 300; }
.mobile-drawer nav a:hover { background: var(--forest-2); }
.mobile-drawer nav a[aria-current="page"] { color: var(--on-forest); background: var(--forest-2); }
.mobile-drawer nav a .ph-light { color: var(--on-forest-2); }
.drawer-foot { margin-top: auto; padding: 20px 24px 28px; border-top: 1px solid var(--forest-line); display: grid; gap: 12px; font-size: 0.9375rem; color: var(--on-forest-2); }
.drawer-foot a, .drawer-foot span { display: flex; align-items: center; gap: 10px; }
.drawer-foot a:hover { color: var(--on-forest); }

/* ===== Section scaffolding ===== */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, calc(4.2vw * var(--a11y-text, 1)), 3.625rem); }
.section-head p { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.section-head .text-link { justify-self: start; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ===== HOME · the room ===== */
.room-hero {
  background: var(--forest); color: var(--on-forest);
  display: grid;
  grid-template-columns: minmax(440px, 37%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "copy room" "board room";
  min-height: clamp(640px, calc(100svh - var(--header-h)), 920px);
}
.hero-copy { grid-area: copy; padding: clamp(32px, 3.6vw, 52px) clamp(28px, 3.2vw, 52px) 0; }
.hero-copy h1 { font-size: clamp(2.25rem, calc(3.25vw * var(--a11y-text, 1)), 3.25rem); line-height: 1.08; }
.hero-copy p { margin-top: 18px; font-size: 1.0938rem; line-height: 1.6; color: var(--on-forest-2); max-width: 40ch; }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.board { grid-area: board; padding: 24px clamp(28px, 3.2vw, 52px) clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--forest-line); }
.board-top h2 { font-family: var(--body); font-size: 0.9375rem; font-weight: 500; color: var(--on-forest-2); line-height: 1.3; }
.surface-toggle { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--forest-3); }
.surface-toggle button { height: 36px; padding: 0 16px; border-radius: var(--pill); font-size: 0.9062rem; font-weight: 600; color: var(--on-forest-2); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.surface-toggle button[aria-pressed="true"] { background: var(--on-forest); color: var(--forest); }
.surface-toggle button:not([aria-pressed="true"]):hover { color: var(--on-forest); }

.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-bottom: 20px; }
.chip {
  position: relative; aspect-ratio: 1; border-radius: var(--r);
  background-size: 320%; background-position: center;
  box-shadow: 0 4px 0 #101a13, 0 14px 22px -12px rgba(0, 0, 0, 0.7);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease), opacity var(--fast);
}
.chip::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); pointer-events: none; }
.chip:hover { transform: translateY(-3px); }
.chip[aria-pressed="true"] { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--forest), 0 0 0 4px var(--amber), 0 4px 0 #101a13, 0 20px 26px -12px rgba(0, 0, 0, 0.8); }
.chip[disabled] { cursor: not-allowed; transform: none; box-shadow: 0 0 0 1px var(--forest-line); }
.chip[disabled]::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(20, 32, 25, 0.62); }
.chip.wall-only .chip-name { font-size: 0; }
.chip.wall-only .chip-name::before { content: 'קיר בלבד'; font-size: 0.75rem; color: var(--on-forest-2); }
.chip .chip-name { position: absolute; inset-inline: 0; bottom: -22px; font-size: 0.75rem; line-height: 1.2; color: var(--on-forest-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.chip[aria-pressed="true"] .chip-name { color: var(--on-forest); }

.spec-strip { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; border-block: 1px solid var(--forest-line); }
.spec-strip .name { grid-column: 1 / -1; padding: 12px 0 10px; font-family: var(--display); font-size: 1.125rem; font-weight: 400; direction: ltr; text-align: right; border-bottom: 1px solid var(--forest-line); }
.spec-strip div { padding: 10px 0; }
.spec-strip div + div { padding-inline-start: 14px; border-inline-start: 1px solid var(--forest-line); }
.spec-strip dt { font-size: 0.7812rem; color: var(--on-forest-2); }
.spec-strip dd { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-strip .flip { display: inline-block; animation: flipIn 520ms var(--ease); }
@keyframes flipIn { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.board-actions .btn { min-height: 46px; padding: 0 20px; font-size: 0.9375rem; }

.room-stage { grid-area: room; position: relative; overflow: hidden; background: #2b2a24; min-height: 420px; }
.room-stage img.poster, .room-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-stage img.poster { object-fit: cover; object-position: 50% 66%; transform: scaleX(-1); } /* the room is shown mirrored: window on the open side */
@media (min-width: 1081px) { .room-stage img.poster { object-position: 70% 70%; } }
.room-stage canvas { opacity: 0; transition: opacity 900ms var(--ease); }
.room-stage.live canvas { opacity: 1; }
.room-tag {
  position: absolute; inset-inline-end: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: var(--pill);
  background: rgba(20, 32, 25, 0.78); color: var(--on-forest);
  font-size: 0.8125rem; line-height: 1.3;
}
.room-tag strong { color: var(--on-forest); font-weight: 600; padding-inline-end: 10px; border-inline-end: 1px solid var(--forest-line); }


/* Desktop: the room owns the width; the copy is a card pinned on the start side,
   the samples are laid along the room's foot. */
@media (min-width: 1081px) {
  .room-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "room" "board"; min-height: 0; }
  .room-stage { grid-area: room; height: clamp(520px, calc(100svh - var(--header-h) - 148px), 780px); min-height: 0; }
  .hero-copy {
    grid-area: room; z-index: 3; align-self: start; justify-self: start;
    width: min(470px, 38vw); margin: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
    padding: 34px 36px 32px; border-radius: var(--r);
    background: var(--forest); box-shadow: var(--shadow-lift);
  }
  .room-tag { top: 20px; bottom: auto; }
  .board {
    flex-direction: row; align-items: flex-start; justify-content: flex-start;
    gap: clamp(20px, 2.6vw, 40px);
    padding: 0 clamp(24px, 3vw, 40px) 26px;
  }
  .board-top { flex-direction: column; align-items: flex-start; gap: 10px; border-top: 0; padding-top: 18px; flex-shrink: 0; }
  .chips { width: min(520px, 38vw); margin-top: -34px; position: relative; z-index: 2; padding-bottom: 22px; flex-shrink: 0; }
  .spec-strip { flex: 1; min-width: 0; margin-top: 14px; border-top: 0; }
  .spec-strip .name { padding-top: 0; }
  .board-actions { flex-direction: column; align-items: stretch; margin-top: 14px; flex-shrink: 0; }
  .board-actions .text-link { justify-content: center; }
}

@media (max-width: 1080px) {
  .room-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "room" "board"; grid-template-rows: auto auto auto; min-height: 0; }
  .hero-copy { padding: 36px var(--gutter) 30px; }
  .hero-copy p { max-width: 52ch; }
  .room-stage { aspect-ratio: 16 / 10; min-height: 0; }
  .board { padding: 24px var(--gutter) 40px; }
  .board-top { border-top: 0; padding-top: 0; }
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 640px) {
  .hero-copy h1 { font-size: 2.25rem; }
  .hero-copy p { font-size: 1.0625rem; margin-top: 14px; }
  .room-stage { aspect-ratio: 5 / 4; }
  .chips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 6px 2px 28px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 31%; scroll-snap-align: start; }
  .room-tag { inset-inline-end: 12px; bottom: 12px; top: auto; font-size: 0.75rem; }
}

/* ===== Suppliers line ===== */
.suppliers { border-bottom: 1px solid var(--line); }
.suppliers .container { display: flex; align-items: center; gap: 24px 48px; padding-block: 30px; flex-wrap: wrap; }
.suppliers h2 { font-family: var(--body); font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); }
.supplier-list { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: baseline; }
.supplier-list li { display: flex; align-items: baseline; gap: 8px; }
.supplier-list strong { font-family: var(--display); font-size: 1.1875rem; font-weight: 400; letter-spacing: 0.02em; }
.supplier-list span { font-size: 0.8438rem; color: var(--ink-3); }

/* ===== Categories: list with a held image ===== */
.cats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cat-list { border-top: 1px solid var(--line-2); counter-reset: cat; }
.cat-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
  transition: background-color var(--mid) var(--ease);
}
.cat-row .n, .cat-row .m { transition: transform var(--mid) var(--ease); }
.cat-row .n { font-family: var(--display); font-size: clamp(1.625rem, calc(2.6vw * var(--a11y-text, 1)), 2.375rem); font-weight: 300; line-height: 1.1; }
.cat-row .m { grid-column: 1; font-size: 0.9375rem; color: var(--ink-3); }
.cat-row .go { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 14px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-row .go .ph-light { font-size: 1.375rem; color: var(--ink); transition: transform var(--mid) var(--ease); }
.cat-row .thumb { display: none; }
.cat-row:hover, .cat-row.is-active { background: var(--ground-2); }
.cat-row:hover .n, .cat-row.is-active .n, .cat-row:hover .m, .cat-row.is-active .m { transform: translateX(-12px); }
.cat-row:hover .go .ph-light, .cat-row.is-active .go .ph-light { transform: translateX(-6px); }
.cat-view { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--ground-2); box-shadow: var(--shadow-lift); }
.cat-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 600ms var(--ease), transform 1200ms var(--ease); }
.cat-view img.on { opacity: 1; transform: none; }
.cat-view figcaption { position: absolute; inset-inline: 16px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: rgba(247, 247, 243, 0.92); font-size: 0.875rem; }
.cat-view figcaption strong { font-weight: 600; }
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr; }
  .cat-view { display: none; }
  .cat-row { grid-template-columns: 72px 1fr auto; gap: 2px 16px; padding: 14px 4px; }
  .cat-row .thumb { display: block; grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; }
  .cat-row .m { grid-column: 2; }
  .cat-row .go { grid-column: 3; }
  .cat-row .go .count { display: none; }
  .cat-row:hover, .cat-row.is-active { background: none; }
  .cat-row:hover .n, .cat-row.is-active .n, .cat-row:hover .m, .cat-row.is-active .m { transform: none; }
}

/* ===== Homes: material in rooms (הדמיה) ===== */
.homes { background: var(--paper); }
.homes-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.home-shot { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ground-2); }
.home-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.home-shot:hover img { transform: scale(1.025); }
.home-shot.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.home-shot.tall { grid-column: span 5; grid-row: span 2; aspect-ratio: auto; }
.home-shot.mid { grid-column: span 7; aspect-ratio: 16 / 9; }
.home-shot figcaption {
  position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 28px);
  padding: 10px 16px 10px 12px; border-radius: var(--pill);
  background: rgba(247, 247, 243, 0.94); color: var(--ink);
  font-size: 0.875rem; line-height: 1.3;
  transition: background-color var(--fast) var(--ease);
}
.home-shot figcaption .swatch { width: 26px; height: 26px; border-radius: 50%; background-size: 300%; background-position: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.home-shot figcaption b { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.home-shot figcaption .tag { color: var(--ink-3); }
.home-shot a { position: absolute; inset: 0; z-index: 3; }
.home-shot a:focus-visible { outline-offset: -4px; }
.home-shot:hover figcaption { background: var(--paper); }
.homes-note { margin-top: 22px; font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .home-shot.wide { aspect-ratio: 4 / 3; }
  .home-shot.tall, .home-shot.mid { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.steps li { padding: 28px 28px 8px 0; position: relative; }
.steps li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.steps .step-n { display: block; font-family: var(--display); font-size: 0.9375rem; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: 30px; }
.steps h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 1rem; max-width: 28ch; }
.steps li:last-child .step-n { color: var(--ink); }
.steps li:last-child .step-n::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-start: 10px; border-radius: 50%; background: var(--ink); vertical-align: 2px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 18px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .steps .step-n { margin-bottom: 10px; }
}

/* Mixed Latin/Hebrew model names read in their own direction, aligned to the page */
.product-card .name, .product-page .info h1, .cart-item .name, .mini-item .name { unicode-bidi: plaintext; text-align: right; }
.cart-item .name .tone, .mini-item .name .tone { display: block; font-family: var(--body); font-size: 0.82em; color: var(--ink-2); }
.mini-item .name .tone { color: var(--on-forest-2); }
.cart-item .name .series, .mini-item .name .series { display: block; }

/* ===== Product grid & card ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--r);
  box-shadow: var(--shadow-chip);
  transition: box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.product-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--ground-2); }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .body { padding: 20px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .name { font-family: var(--display); font-size: 1.1875rem; font-weight: 400; line-height: 1.25; }
.name .series, h1 .series { display: block; }
.name .tone, h1 .tone { display: block; font-family: var(--body); font-size: 0.78em; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.product-page .info h1 .tone { font-size: 0.6em; margin-top: 8px; }
.product-card .kind { margin-top: 4px; font-size: 0.875rem; color: var(--ink-3); }
.plate-specs { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.plate-specs div { padding: 10px 0 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.plate-specs div:nth-child(even) { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.plate-specs div.wide { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; }
.plate-specs dt { font-size: 0.7812rem; color: var(--ink-3); }
.plate-specs dd { font-size: 0.9062rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-card .actions { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; }
.add-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: var(--pill);
  box-shadow: inset 0 0 0 1.5px var(--forest); color: var(--forest);
  font-size: 0.9375rem; font-weight: 600;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.add-btn:hover { background: var(--forest); color: var(--on-forest); }
.add-btn.added { background: var(--forest); color: var(--on-forest); }
.add-btn.added .ph-light { color: var(--on-forest-2); }
.view-btn { width: 46px; height: 46px; border-radius: var(--pill); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.view-btn .ph-light { font-size: 1.25rem; }

/* ===== Family & visit ===== */
.family { background: var(--forest); color: var(--on-forest); }
.family-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.family h2 { font-size: clamp(2.25rem, calc(4.6vw * var(--a11y-text, 1)), 4.125rem); }
.family .lead { margin-top: 28px; font-size: 1.1875rem; line-height: 1.7; color: var(--on-forest-2); max-width: 44ch; }
.family .lead strong { color: var(--on-forest); font-weight: 500; }
.family-facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; }
.family-facts dt { font-size: 0.8438rem; color: var(--on-forest-2); }
.family-facts dd { font-family: var(--display); font-size: 1.875rem; font-weight: 300; line-height: 1.2; font-variant-numeric: tabular-nums; }
.visit-card { background: var(--forest-2); border-radius: var(--r); padding: clamp(26px, 3vw, 40px); }
.visit-card h3 { font-size: 1.875rem; line-height: 1.15; }
.visit-card h3 span { display: block; color: var(--on-forest-2); }
.hours { margin-top: 26px; border-top: 1px solid var(--forest-line); }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--forest-line); font-size: 1rem; }
.hours dt { color: var(--on-forest-2); }
.hours dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.hours .closed dd { color: var(--on-forest-2); font-weight: 400; }
.hours .today dt::after { content: 'היום'; margin-inline-start: 10px; padding: 1px 8px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--on-forest-2); color: var(--on-forest); font-size: 0.75rem; font-weight: 600; }
.visit-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.visit-actions .btn { flex: 1 1 auto; min-height: 48px; }
.visit-contact { margin-top: 22px; display: grid; gap: 10px; font-size: 1rem; }
.visit-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-forest); }
.visit-contact a:hover { color: var(--on-forest-2); }
@media (max-width: 900px) {
  .family-grid { grid-template-columns: 1fr; }
  .family-facts { grid-template-columns: repeat(3, auto); gap: 8px 28px; }
  .family-facts dd { font-size: 1.5rem; }
}

/* ===== Footer ===== */
.site-footer { background: var(--forest-3); color: var(--on-forest-2); font-size: 0.9375rem; }
.footer-edge { height: 10px; background: url('../assets/textures/travertine.jpg') center / 480px; opacity: 0.9; }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .heb { font-family: var(--display); font-size: 2.5rem; color: var(--on-forest); line-height: 1; }
.footer-brand p { margin-top: 16px; max-width: 32ch; line-height: 1.6; }
.footer-col h2 { font-family: var(--body); font-size: 0.875rem; font-weight: 600; color: var(--on-forest); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a:hover { color: var(--on-forest); }
.footer-bottom { max-width: var(--container); margin-inline: auto; padding: 20px var(--gutter) 28px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--forest-line); font-size: 0.8438rem; }
.footer-bottom .credit:hover { color: var(--on-forest); text-decoration: underline; }
@media (max-width: 1100px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* ===== Inner pages: head ===== */
.page-edge { height: 12px; background: url('../assets/textures/stone-ivory.jpg') center / 420px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08); }
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.25rem, calc(4.6vw * var(--a11y-text, 1)), 4rem); }
.page-head p { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); max-width: 54ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9062rem; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.breadcrumb a:hover { color: var(--ink); }

.quote-path { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: qp; }
.quote-path li {
  counter-increment: qp;
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 16px 0 12px; border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.9062rem; color: var(--ink-3);
}
.quote-path li::before { content: counter(qp); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; background: var(--ground-2); font-variant-numeric: tabular-nums; }
.quote-path li.done { color: var(--ink-2); }
.quote-path li.done::before { content: '✓'; background: var(--forest); color: var(--on-forest); }
.quote-path li.now { background: var(--forest); color: var(--on-forest); box-shadow: none; font-weight: 600; }
.quote-path li.now::before { background: var(--on-forest); color: var(--forest); }

/* ===== Catalog ===== */
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: var(--section); }
.filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.filters h2 { font-family: var(--body); font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group .lbl { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 10px; }
.filter-group label { display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; font-size: 0.9688rem; }
.filter-group label .count { margin-inline-start: auto; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-group input[type=checkbox] {
  appearance: none; width: 20px; height: 20px; margin: 0; flex-shrink: 0;
  border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.filter-group input[type=checkbox]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); transform: scale(0); transition: transform var(--fast) var(--ease); }
.filter-group input[type=checkbox]:checked { background: var(--forest); box-shadow: none; }
.filter-group input[type=checkbox]:checked::after { transform: scale(1); }
.filters .btn-ghost { margin-top: 12px; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.products-count { font-size: 0.9375rem; color: var(--ink-3); }
.products-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.filters-toggle { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--pill); box-shadow: inset 0 0 0 1.5px var(--forest); font-weight: 600; font-size: 0.9375rem; }
.select {
  appearance: none; height: 44px; padding: 0 18px 0 40px; border-radius: var(--pill);
  border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317201A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 16px center;
  font: inherit; font-size: 0.9375rem; color: var(--ink); cursor: pointer;
}
.empty-state { padding: 64px 24px; text-align: center; border-radius: var(--r); background: var(--paper); }
.empty-state h2 { font-size: 1.75rem; margin-bottom: 10px; }
.empty-state p { color: var(--ink-2); margin-bottom: 22px; }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; background: var(--paper); border-radius: var(--r); padding: 6px 20px 20px; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ===== Product page ===== */
.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 96px); align-items: start; }
.product-page .main-img { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-chip); position: sticky; top: calc(var(--header-h) + 24px); }
.product-page .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-page .info h1 { font-size: clamp(1.875rem, calc(3.4vw * var(--a11y-text, 1)), 3rem); line-height: 1.12; }
.product-page .kind { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-3); }
.product-page .desc { margin-top: 22px; font-size: 1.125rem; color: var(--ink-2); max-width: 50ch; }
.specs { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.specs .spec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs .spec:nth-child(even) { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.specs .lbl { font-size: 0.8125rem; color: var(--ink-3); }
.specs .val { font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.qty-row { margin-top: 30px; display: flex; align-items: center; gap: 18px; }
.qty-row .lbl { font-size: 0.9375rem; color: var(--ink-2); }
.stepper { display: inline-flex; align-items: center; height: 50px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); }
.stepper button { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--pill); }
.stepper button:hover { background: var(--ground-2); }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.product-page .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.product-page .actions .btn-amber.added { background: var(--forest); color: var(--on-forest); }
.note-box { margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: var(--paper); font-size: 0.9688rem; color: var(--ink-2); line-height: 1.6; }
.note-box strong { display: block; color: var(--ink); margin-bottom: 4px; }
.in-room { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; }
.related-section { padding-bottom: var(--section); }
.related-section h2 { font-size: clamp(1.75rem, calc(3vw * var(--a11y-text, 1)), 2.5rem); margin-bottom: 30px; }
.not-found { padding: 80px 0 var(--section); }
.not-found h1 { font-size: 2.75rem; margin-bottom: 24px; }
@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; }
  .product-page .main-img { position: static; aspect-ratio: 4 / 3; }
}

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); padding-bottom: var(--section); align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 14px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-chip);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.cart-item.removing { opacity: 0; transform: translateX(-16px); }
.cart-item .img-wrap { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--ground-2); }
.cart-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .name { font-family: var(--display); font-size: 1.125rem; line-height: 1.25; }
.cart-item .meta { margin-top: 4px; font-size: 0.875rem; color: var(--ink-3); }
.cart-item .qty { margin-top: 12px; display: inline-flex; align-items: center; height: 40px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.cart-item .qty button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--pill); }
.cart-item .qty button:hover { background: var(--ground-2); }
.cart-item .qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item .remove { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); color: var(--ink-3); }
.cart-item .remove:hover { background: var(--ground-2); color: var(--error); }
.cart-item .remove .ph-light { font-size: 1.25rem; }
.cart-summary, .quote-summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--forest); color: var(--on-forest); border-radius: var(--r); padding: 30px; }
.cart-summary h3, .quote-summary h3 { font-size: 1.625rem; }
.cart-summary .sub { margin-top: 6px; color: var(--on-forest-2); font-size: 0.9375rem; }
.board-mini { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.board-mini li { width: 46px; height: 46px; border-radius: var(--r); overflow: hidden; box-shadow: 0 3px 0 var(--forest-3), 0 10px 16px -10px rgba(0, 0, 0, 0.7); }
.board-mini img { width: 100%; height: 100%; object-fit: cover; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--forest-line); font-size: 1rem; }
.cart-summary .row:first-of-type { margin-top: 18px; border-top: 1px solid var(--forest-line); }
.cart-summary .row strong { font-variant-numeric: tabular-nums; }
.cart-summary .btn { width: 100%; margin-top: 12px; }
.cart-summary .btn:first-of-type { margin-top: 24px; }
.cart-summary .note, .quote-summary .note { margin-top: 22px; font-size: 0.9062rem; line-height: 1.6; color: var(--on-forest-2); }
.cart-summary .note strong { color: var(--on-forest); }
.cart-empty { padding: 72px 24px; text-align: center; background: var(--paper); border-radius: var(--r); margin-bottom: var(--section); }
.cart-empty h3 { font-size: 2rem; margin-bottom: 12px; }
.cart-empty p { color: var(--ink-2); margin-bottom: 26px; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary, .quote-summary { position: static; }
}
@media (max-width: 540px) {
  .cart-item { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 12px; }
}

/* ===== Quote form ===== */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); padding-bottom: var(--section); align-items: start; }
.quote-form { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow-chip); }
.quote-form h2 { font-size: 1.875rem; }
.quote-form .sub { margin-top: 8px; color: var(--ink-2); margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-group label { font-size: 0.9375rem; font-weight: 600; }
.field-group .req { color: var(--error); }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 0; border-radius: var(--r);
  background: var(--ground); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  transition: box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.field-group select { appearance: none; background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317201A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 16px center; padding-inline-end: 44px; }
.field-group textarea { min-height: 120px; resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: var(--ink-3); }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 2px var(--forest); }
.field-group input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.field-error { font-size: 0.875rem; color: var(--error); }
.form-note { margin-top: 14px; font-size: 0.875rem; color: var(--ink-3); text-align: center; }
.mini-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--forest-line); }
.mini-item .img-wrap { aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.mini-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .name { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.mini-item .meta { font-size: 0.8438rem; color: var(--on-forest-2); font-variant-numeric: tabular-nums; }
#mini-items { margin-top: 16px; border-top: 1px solid var(--forest-line); }
.total-row { display: flex; justify-content: space-between; padding-top: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-summary p { margin-top: 10px; color: var(--on-forest-2); margin-bottom: 20px; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .quote-summary { order: -1; } }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

/* ===== Thank you ===== */
.thanks-card { max-width: 720px; margin: 0 auto var(--section); background: var(--paper); border-radius: var(--r); padding: clamp(32px, 5vw, 64px); box-shadow: var(--shadow-chip); }
.thanks-card .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--on-forest); font-size: 1.875rem; margin-bottom: 26px; }
.thanks-card h2 { font-size: clamp(2rem, calc(4vw * var(--a11y-text, 1)), 3rem); }
.thanks-card > p { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); }
.thanks-card .signature { font-family: var(--display); font-size: 1.1875rem; color: var(--ink); }
.thanks-card .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa { background: var(--forest); color: var(--on-forest); }
.btn-wa:hover { background: var(--moss); }
.btn-wa .ph-light { font-size: 1.375rem; }
.thanks-card .small { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-3); }
.thanks-card .small strong { color: var(--ink); }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; z-index: 120;
  transform: translate(50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--pill);
  background: var(--forest); color: var(--on-forest);
  font-size: 0.9375rem; font-weight: 500; box-shadow: var(--shadow-lift);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.toast .ph-light { color: var(--on-forest-2); font-size: 1.25rem; }
.toast { max-width: calc(100vw - 32px); }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(50%, 0); }

/* ===== Reveal (content visible by default; JS opts in) ===== */
.js .reveal:not(.in-view) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal-img:not(.in-view) { clip-path: inset(0 0 14% 0 round var(--r)); opacity: 0.4; }
.reveal-img { transition: clip-path 1300ms var(--ease), opacity 1300ms var(--ease); clip-path: inset(0 0 0 0 round var(--r)); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.in-view), .js .reveal-img:not(.in-view) { opacity: 1; transform: none; clip-path: none; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* =========================================
   PHONE & TABLET ADAPTATION
   Thumb-first: the next step lives in a bottom bar, the samples sit on the room's foot,
   lists get denser, filters arrive as a sheet. Every target is at least 44px.
   ========================================= */

/* Filters chrome only exists on the phone sheet */
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-close, .filters-apply, .filters-overlay { display: none; }
.filters-foot { display: flex; align-items: center; gap: 12px; }

/* Phone action bar */
.m-bar { display: none; }

@media (max-width: 1080px) {
  /* the samples are laid on the room's foot, so the room stays in view while choosing */
  .board { padding-top: 0; }
  .chips { order: -1; margin-top: -42px; position: relative; z-index: 2; }
  .room-tag { top: 12px; bottom: auto; }
}

@media (max-width: 960px) {
  .m-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
    display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--forest);
    box-shadow: 0 -12px 28px -18px rgba(20, 32, 25, 0.7);
  }
  .m-act {
    flex: 1; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgba(238, 240, 232, 0.32);
    color: var(--on-forest); font-size: 0.9375rem; font-weight: 600;
  }
  .m-act .ph-light { font-size: 1.25rem; }
  .m-act:active { background: var(--forest-2); }
  .m-main { flex: 2; min-height: 50px; padding: 0 18px; }
  body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-mbar .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* touch targets */
  .brand-mark { padding-block: 9px; }
  .text-link { min-height: 44px; }
  .surface-toggle button { height: 44px; padding: 0 18px; }
  .stepper { height: 52px; }
  .stepper button { width: 52px; height: 52px; }
  .cart-item .qty { height: 44px; }
  .cart-item .qty button { width: 44px; height: 44px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .footer-col ul { gap: 0; }
  .footer-col li { min-height: 44px; display: flex; align-items: center; }
  .footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .visit-contact { gap: 0; }
  .visit-contact a { min-height: 48px; }
  .drawer-foot a, .drawer-foot span { min-height: 44px; }
  .filter-group label { min-height: 44px; }
}

@media (max-width: 900px) {
  /* catalog: sticky tools, filters as a bottom sheet */
  .products-toolbar {
    position: sticky; top: var(--header-h); z-index: 20;
    margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: var(--ground); margin-bottom: 18px;
  }
  .filters-toggle { min-height: 44px; }
  .select { height: 44px; }
  .filters {
    position: fixed; inset-inline: 0; bottom: 0; top: auto; z-index: 110;
    display: block; max-height: 86svh; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 20px; border-radius: var(--r) var(--r) 0 0;
    background: var(--paper); box-shadow: 0 -20px 50px -20px rgba(20, 32, 25, 0.6);
    transform: translateY(100%); visibility: hidden;
    transition: transform 420ms var(--ease), visibility 0s linear 420ms;
  }
  .filters.open { transform: none; visibility: visible; transition: transform 420ms var(--ease); }
  .filters-head { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
  .filters-head h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 300; margin: 0; }
  .filters-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); }
  .filters-close .ph-light { font-size: 1.25rem; }
  .filters-foot { position: sticky; bottom: 0; z-index: 2; background: var(--paper); justify-content: space-between; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters .btn-ghost { margin-top: 0; }
  .filters-apply { display: inline-flex; flex: 1; }
  .filters-overlay:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 105; background: rgba(20, 32, 25, 0.5); }
  body.sheet-open { overflow: hidden; }
}

@media (max-width: 760px) {
  /* home recommendations: a swipe row instead of a long column */
  .feat-scroll {
    display: flex; grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 24px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .feat-scroll::-webkit-scrollbar { display: none; }
  .feat-scroll > * { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .room-stage { aspect-ratio: auto; height: min(100vw, 64svh); min-width: 0; }
  .hero-copy { padding-bottom: 26px; }
  .chips {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 26px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px);
            mask-image: linear-gradient(to left, transparent 0, #000 28px);
  }
  .chip { flex: 0 0 76px; scroll-snap-align: start; }
  .board-top { padding-top: 2px; }
  .spec-strip div + div { padding-inline-start: 10px; }
  .spec-strip dd { font-size: 0.875rem; }
  .board-actions { justify-content: space-between; }
  .home-shot figcaption { inset-inline-start: 10px; bottom: 10px; padding: 8px 12px 8px 10px; font-size: 0.8125rem; }
}

@media (max-width: 560px) {
  /* catalog and related: two dense columns of sample cards */
  .catalog-main .product-grid, .related-section .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .catalog-main .product-card .body, .related-section .product-card .body { padding: 12px 12px 14px; }
  .catalog-main .product-card .name, .related-section .product-card .name { font-size: 0.9375rem; line-height: 1.25; }
  .catalog-main .product-card .kind, .related-section .product-card .kind { display: none; }
  .catalog-main .plate-specs, .related-section .plate-specs { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 8px; border-top: 0; }
  .catalog-main .plate-specs div, .related-section .plate-specs div { padding: 0; border: 0 !important; }
  .catalog-main .plate-specs div:nth-child(n+3), .related-section .plate-specs div:nth-child(n+3) { display: none; }
  .catalog-main .plate-specs div:nth-child(2)::before, .related-section .plate-specs div:nth-child(2)::before { content: '·'; margin-inline-end: 6px; color: var(--ink-3); }
  .catalog-main .plate-specs div:nth-child(2), .related-section .plate-specs div:nth-child(2) { display: flex; }
  .catalog-main .plate-specs dt, .related-section .plate-specs dt { display: none; }
  .catalog-main .plate-specs dd, .related-section .plate-specs dd { font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); white-space: normal; }
  .catalog-main .product-card .actions, .related-section .product-card .actions { padding-top: 12px; }
  .catalog-main .add-btn, .related-section .add-btn { min-height: 44px; padding: 0 8px; font-size: 0.875rem; gap: 6px; }
  .catalog-main .view-btn { display: none; }
  .product-card:hover { transform: none; }
  .quote-form { padding: 22px 18px; }
}

/* phones held sideways: keep the room inside the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .room-stage { aspect-ratio: auto; height: 78svh; min-width: 0; }
  .hero-copy { padding-top: 22px; padding-bottom: 20px; }
  .hero-copy h1 { font-size: 1.875rem; }
  .hero-copy p { font-size: 0.9688rem; margin-top: 10px; }
  .hero-actions { margin-top: 14px; }
  .m-bar { padding-block: 6px calc(6px + env(safe-area-inset-bottom)); }
  .m-act, .m-main { min-height: 44px; }
  body.has-mbar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* LTR fields (phone, email) still align to the form's edge */
.field-group input[dir="ltr"] { text-align: right; }
.field-group input[dir="ltr"]::placeholder { text-align: right; }

/* =========================================
   ACCESSIBILITY ADJUSTMENTS (js/a11y.js)
   Each option is a class on <html> that re-points design tokens or adds a rule.
   No page-wide filters: fixed elements, the room canvas and images keep working.
   ========================================= */

/* the trigger and the panel */
.a11y-btn {
  position: fixed; inset-inline-end: 16px; bottom: 20px; z-index: 95;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: var(--on-forest);
  box-shadow: 0 0 0 2px var(--ground), var(--shadow-lift);
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.a11y-btn .ph-light { font-size: 28px; }
.a11y-btn:hover { background: var(--moss); transform: translateY(-1px); }
.a11y-btn.is-active::after { content: ''; position: absolute; top: 2px; inset-inline-end: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--forest); }
.a11y-panel {
  position: fixed; inset-inline-end: 16px; bottom: 80px; z-index: 96;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100svh - 120px); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 18px 14px; border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(20, 32, 25, 0.55);
  font-family: var(--body);
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.a11y-head h2 { font-family: var(--display); font-size: 1.375rem; font-weight: 400; }
.a11y-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.a11y-close .ph-light { font-size: 1.25rem; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.a11y-stepper { display: inline-flex; align-items: center; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.a11y-stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); }
.a11y-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.a11y-stepper output { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0; }
.a11y-opt {
  min-height: 64px; padding: 10px 8px; border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2); background: var(--ground);
  font-size: 0.875rem; font-weight: 500; line-height: 1.25; text-align: center;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.a11y-opt .ph-light { font-size: 1.5rem; }
.a11y-opt:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }
.a11y-opt[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); box-shadow: none; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.a11y-reset { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.a11y-foot a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; font-size: 0.9375rem; }
@media (max-width: 960px) {
  body.has-mbar .a11y-btn { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.has-mbar .a11y-panel { bottom: calc(140px + env(safe-area-inset-bottom)); max-height: calc(100svh - 210px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.has-mbar .a11y-btn { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-mbar .a11y-panel { bottom: 12px; max-height: calc(100svh - 24px); inset-inline-end: 76px; }
}
@media print { .a11y, .m-bar { display: none !important; } }

/* high contrast, light: black on white, black fields */
html.a11y-contrast {
  --ground: #FFFFFF; --ground-2: #F0F0F0; --paper: #FFFFFF;
  --ink: #000000; --ink-2: #000000; --ink-3: #1A1A1A;
  --line: #000000; --line-2: #000000;
  --forest: #000000; --forest-2: #1A1A1A; --forest-3: #000000; --moss: #2A2A2A;
  --on-forest: #FFFFFF; --on-forest-2: #FFFFFF; --forest-line: rgba(255, 255, 255, 0.6);
}
/* high contrast, dark: white on black */
html.a11y-dark {
  --ground: #000000; --ground-2: #1A1A1A; --paper: #0D0D0D;
  --ink: #FFFFFF; --ink-2: #FFFFFF; --ink-3: #E6E6E6;
  --line: #FFFFFF; --line-2: #FFFFFF;
  --forest: #000000; --forest-2: #1A1A1A; --forest-3: #000000; --moss: #2A2A2A;
  --on-forest: #FFFFFF; --on-forest-2: #FFFFFF; --forest-line: rgba(255, 255, 255, 0.6);
}
html.a11y-dark .select, html.a11y-dark .field-group select { color: #FFF; background-color: #0D0D0D; }
/* forest-coloured controls would vanish on black: they turn white-on-black with a visible ring */
html.a11y-dark :is(.add-btn, .btn-line, .filters-toggle, .view-btn) { color: #FFF; box-shadow: inset 0 0 0 2px #FFF; }
html.a11y-dark :is(.add-btn, .btn-line):hover, html.a11y-dark .add-btn.added { background: #FFF; color: #000; }
html.a11y-dark .add-btn.added .ph-light { color: #000; }
html.a11y-dark :is(.btn-forest, .cart-btn, .btn-wa, .quote-path li.now) { box-shadow: inset 0 0 0 2px #FFF; }
html.a11y-dark .filter-group input[type=checkbox]:checked { background: #FFF; }
html.a11y-dark .filter-group input[type=checkbox]:checked::after { background: #000; }
html.a11y-contrast .room-tag, html.a11y-dark .room-tag, html.a11y-contrast .cat-view figcaption, html.a11y-dark .cat-view figcaption,
html.a11y-contrast .home-shot figcaption, html.a11y-dark .home-shot figcaption { background: #000; color: #FFF; }
html.a11y-contrast .home-shot figcaption .tag, html.a11y-dark .home-shot figcaption .tag { color: #FFF; }
html.a11y-contrast .btn-amber, html.a11y-dark .btn-amber { box-shadow: inset 0 0 0 2px #000; }
html.a11y-contrast a:not(.btn):not(.cart-btn):not(.chip), html.a11y-dark a:not(.btn):not(.cart-btn):not(.chip) { text-decoration: underline; text-underline-offset: 4px; }
html.a11y-contrast .field-group input::placeholder, html.a11y-dark .field-group input::placeholder,
html.a11y-contrast .field-group textarea::placeholder, html.a11y-dark .field-group textarea::placeholder { color: var(--ink-3); }

/* links stand out */
html.a11y-links a:not(.chip) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important;
  text-decoration-color: currentColor !important;
  outline: 2px dashed currentColor; outline-offset: 2px;
}

/* a plain readable face for everything */
html.a11y-font { --display: Arial, 'Noto Sans Hebrew', 'Segoe UI', system-ui, sans-serif; --body: Arial, 'Noto Sans Hebrew', 'Segoe UI', system-ui, sans-serif; }

/* WCAG 1.4.12 text spacing */
html.a11y-spacing body :is(p, li, dd, dt, label, a, span, h1, h2, h3, h4, button, td, th) {
  line-height: 1.5 !important; letter-spacing: 0.12em !important; word-spacing: 0.16em !important;
}
html.a11y-spacing body p { margin-bottom: 1em; }

/* stop motion: transitions, entrances, the room's slow breath */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal, html.a11y-still .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* a large pointer */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M6 3 L6 37 L15 28 L21 41 L27 38 L21 26 L34 26 Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* strong focus ring on everything focusable */
html.a11y-focus :focus, html.a11y-focus :focus-visible {
  outline: 3px solid var(--amber) !important; outline-offset: 3px !important;
  box-shadow: 0 0 0 7px #000 !important;
}


/* =========================================
   LEGAL PAGES (Read mode): a calm column, a table of contents beside it
   ========================================= */
.legal-date { margin-top: 10px !important; font-size: 0.875rem !important; color: var(--ink-3) !important; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: var(--section); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc summary { list-style: none; font-weight: 600; font-size: 0.9375rem; margin-bottom: 10px; color: var(--ink-3); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { border-top: 1px solid var(--line-2); counter-reset: toc; }
.legal-toc ol li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-toc ol a { display: flex; gap: 10px; min-height: 44px; align-items: center; font-size: 0.9375rem; color: var(--ink-2); }
.legal-toc ol a::before { content: counter(toc); min-width: 18px; font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal-toc ol a:hover { color: var(--ink); }
.legal-others-title { margin-top: 28px; font-family: var(--body); font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.legal-others { margin-top: 6px; }
.legal-others a { display: flex; align-items: center; min-height: 40px; font-size: 0.9375rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.legal-others a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal-body { max-width: 72ch; background: var(--paper); border-radius: var(--r); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow-chip); }
.legal-body section + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-body section { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h2 { font-size: clamp(1.5rem, calc(2.2vw * var(--a11y-text, 1)), 1.875rem); font-weight: 400; margin-bottom: 14px; }
.legal-body h3 { font-family: var(--body); font-size: 1.0625rem; font-weight: 600; margin: 22px 0 8px; }
.legal-body p { color: var(--ink-2); line-height: 1.75; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin-top: 10px; display: grid; gap: 10px; }
.legal-body ul li { position: relative; padding-inline-start: 22px; color: var(--ink-2); line-height: 1.7; }
.legal-body ul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.legal-body ul li strong { color: var(--ink); }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.legal-body a:hover { text-decoration-color: currentColor; }
.legal-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 18px; }
  .legal-toc { position: static; background: var(--paper); border-radius: var(--r); padding: 0 18px; box-shadow: var(--shadow-chip); }
  .legal-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; color: var(--ink); cursor: pointer; }
  .legal-toc summary::after { content: '+'; font-size: 1.375rem; font-weight: 300; }
  .legal-toc[open] summary::after { content: '−'; }
  .legal-toc[open] { padding-bottom: 14px; }
  .legal-body { padding: 22px 18px; }
}

/* large text: tools wrap instead of pushing the grid sideways */
.catalog-main { min-width: 0; }
.products-toolbar { flex-wrap: wrap; }
.select { max-width: 100%; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; } }

/* large text (125%+): the header folds into the menu so nothing wraps */
html.a11y-big .nav, html.a11y-big .header-phone, html.a11y-big .brand-mark .where, html.a11y-big .cart-btn .cart-label { display: none; }
html.a11y-big .menu-toggle { display: inline-grid; }
html.a11y-big .cart-btn { margin-inline-start: auto; height: auto; min-height: 46px; }
html.a11y-big .site-header-inner { height: auto; min-height: var(--header-h); padding-block: 8px; }
.cart-count { height: auto; min-height: 24px; padding-block: 1px; }

.quote-layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
