/* ==========================================================================
   Bo Cerame — site stylesheet
   Sections: tokens, base, layout helpers, buttons, header, search, navigation,
   hero, perks, collections, split, product card, price, rails, band, prose,
   FAQ, news, footer, product page, form controls, dialogs, styleguide.
   Breakpoints: 1240 (navigation becomes off-canvas), 1100, 760, 520.
   ========================================================================== */

/* ---------- Tokens ---------- */
/* Leixo: letters only. Its figures are stencil-cut with no solid alternative, so digits and € come from Jost SemiBold (same family name, split by unicode-range). */
/* Leixo-Regular-2: same font, accented letters whose glyph is empty (î, ï, ì, í, ł, ø…) point to their plain letter. */
@font-face { font-family: "Leixo"; src: url("../fonts/Leixo-Regular-2.woff2") format("woff2"); font-display: swap; unicode-range: U+0020-002F, U+003A-007E, U+00A0-017F, U+2010-205E; }
/* Both faces must declare the SAME weight (default 400). Browsers pick the face by weight before looking at unicode-range:
   a wider weight range on the digits face made every bold title lose Leixo for its letters (fallback serif). */
@font-face { font-family: "Leixo"; src: url("../fonts/Jost-600-digits.woff2") format("woff2"); font-display: swap; unicode-range: U+0030-0039, U+20AC; }
@font-face { font-family: "Rounded Elegance"; src: url("../fonts/RoundedElegance-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #2d363f;
  --ink-soft: #4a5560;
  --ink-mute: #646e77; /* 4.7:1 on cream, 5.2:1 on white (WCAG AA) */
  --yellow: #ffe258;
  --yellow-strong: #ffd92b;
  --terracotta: #a44d24;
  --sage: #b3c3b5;
  --blush: #e9d9d3;
  --cream: #f8f3ee;
  --white: #fff;
  --line: #e7ddd4;
  --line-strong: #d8cbc0;
  --deal: #a44d24;

  --font-display: "Leixo", Georgia, serif;
  --font-body: "Rounded Elegance", ui-rounded, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 80px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(45, 54, 63, .06), 0 2px 10px rgba(45, 54, 63, .05);
  --shadow: 0 2px 4px rgba(45, 54, 63, .04), 0 12px 32px rgba(45, 54, 63, .08);
  --shadow-lg: 0 24px 60px rgba(45, 54, 63, .16);

  --topbar-h: 36px;
  --bar-h: 92px;
  --nav-h: 52px;
  --top-h: calc(var(--topbar-h) + var(--bar-h) + var(--nav-h));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --social-tab-w: 56px;
}
@media (max-width: 1240px) { :root { --nav-h: 0px; } }
@media (max-width: 760px) { :root { --bar-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { overflow-x: clip; margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terracotta); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
h1, h2, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1.08; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; 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; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.deco { height: auto; max-width: 100%; }
.icon { flex: none; }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(56px, 7vw, 112px) var(--gutter); }
.section--tint { background: var(--cream); }
.section--flush-top { padding-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 44px); }
.section__title { font-size: clamp(34px, 4vw, 60px); }
.section__title--sm { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 24px; }
.section__subtitle { font-family: var(--font-body); font-size: 18px; font-weight: 400; color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }
.section__tools { display: flex; align-items: center; gap: 20px; }
.kicker { display: block; margin-bottom: 14px; }
.kicker img { display: block; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 2px; border-bottom: 2px solid var(--yellow); white-space: nowrap; }
.link-arrow--sm { font-size: 15px; }
.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 96px); align-items: start; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.1; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-strong); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 210, 40, .35); }
.btn--ink { background: #2d363f; color: #f8f3ee; }
.btn--ink:hover { background: #252d35; color: #f8f3ee; box-shadow: 0 6px 18px rgba(45, 54, 63, .25); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #1d2329; border-color: #1d2329; color: var(--yellow); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, transform .1s, color .15s; -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.icon-btn:active { transform: scale(.92); background: var(--blush); }
.icon-btn--outline { border: 1.5px solid var(--line-strong); background: #fff; }
.icon-btn--outline:hover { border-color: var(--ink); background: #fff; }
.icon-btn--outline:disabled { opacity: .35; cursor: default; }
.icon-btn--float { background: #fff; box-shadow: var(--shadow-sm); }
.icon-btn--outline-dark { border: 1px solid #5a646e; color: #fff; }
.icon-btn--outline-dark:hover { background: transparent; border-color: var(--yellow); color: var(--yellow); }
.icon--up { transform: rotate(-90deg); }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 1px 4px rgba(45, 54, 63, .08); white-space: nowrap; }
.badge--deal { background: var(--terracotta); color: #fff; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1; }

/* ---------- Site top: topbar + header (sticky) ---------- */
.site-top { position: sticky; top: 0; z-index: 50; }
.topbar { height: var(--topbar-h); background: var(--ink); color: #fff; overflow: hidden; display: flex; align-items: center; }
.marquee { overflow: hidden; width: 100%; }
.marquee__track { display: flex; width: max-content; animation: marquee 150s linear infinite; will-change: transform; }
.marquee__group { display: flex; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 8px; padding-right: 64px; flex: none; white-space: nowrap; }
.marquee__text { font-size: 13.5px; letter-spacing: .01em; line-height: 1; }
.topbar:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.site-header { background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__bar { height: var(--bar-h); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 48px); padding: 0 var(--gutter); }
.site-header__logo img { height: 60px; width: auto; }
.search-box--header { justify-self: center; width: 100%; max-width: 580px; }
.quick-links { display: flex; align-items: center; gap: 2px; }
.quick-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.quick-link:hover { background: var(--cream); color: var(--ink); }
.quick-link:active { transform: scale(.94); background: var(--blush); }
.quick-link .count-badge { position: absolute; top: 3px; right: 10px; }
@media (max-width: 1099px) {
  .quick-link--menu { position: relative; }
  .quick-link--menu .count-badge[data-selection-count-menu]:not([hidden]) {
    display: inline-grid !important;
    top: 2px;
    right: 0;
  }
}
.quick-link--search, .quick-link--menu { display: none; }
.burger { display: grid; gap: 4.5px; width: 22px; padding: 3px 0; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Main navigation (desktop bar / off-canvas below 1240px) ---------- */
.main-nav { display: flex; align-items: center; gap: 24px; height: var(--nav-h); padding: 0 var(--gutter); }
.main-nav__head, .main-nav__extra, .main-nav__toggle, .main-nav__sub, .main-nav__backdrop { display: none; }
.main-nav__list { display: flex; align-items: stretch; gap: clamp(14px, 2.1vw, 38px); list-style: none; height: 100%; }
.main-nav__item { display: flex; position: relative; }
.main-nav__link { display: flex; align-items: center; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; padding-top: 3px; }
.main-nav__link:hover, .main-nav__link[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--ink); }
.social-links { display: flex; gap: 2px; list-style: none; margin-left: auto; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); transition: color .22s ease, background .22s ease, border-color .22s ease; }
.social-links a:hover { background: var(--cream); }
.social-tab__list a { transition: color .22s ease, background .22s ease; }
.social-links a[aria-label="Facebook"]:hover,
.social-tab__list a[aria-label="Facebook"]:hover,
.main-nav .social-links a[aria-label="Facebook"]:hover { color: #1877F2; }
.social-links a[aria-label="Pinterest"]:hover,
.social-tab__list a[aria-label="Pinterest"]:hover,
.main-nav .social-links a[aria-label="Pinterest"]:hover { color: #E60023; }
.social-links a[aria-label="Instagram"]:hover svg,
.social-tab__list a[aria-label="Instagram"]:hover svg,
.main-nav .social-links a[aria-label="Instagram"]:hover svg { stroke: url(#social-instagram-gradient); }

@media (min-width: 1241px) {
  /* Desktop dropdowns for categories with sub-items */
  .main-nav__item.has-sub .main-nav__sub { display: block; position: absolute; top: 100%; left: -18px; min-width: 260px; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; }
  .main-nav__item.has-sub:hover .main-nav__sub, .main-nav__item.has-sub:focus-within .main-nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav__sub a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 15px; }
  .main-nav__sub a:hover { background: var(--cream); color: var(--ink); }
}

@media (max-width: 1240px) {
  .quick-link--menu { display: flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(420px, 100%); height: 100dvh; padding: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; overflow-y: auto; overscroll-behavior: contain; }
  .menu-open .main-nav { transform: none; visibility: visible; transition: transform .32s var(--ease); }
  .main-nav__head { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 8px 12px 8px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .main-nav__head img { height: 48px; width: auto; }
  .main-nav__list { flex-direction: column; height: auto; gap: 0; padding: 8px var(--gutter) 0; }
  .main-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .main-nav__link { flex: 1; min-height: 58px; font-size: 19px; font-weight: 700; border: 0; padding: 0; }
  .main-nav__link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .main-nav__toggle { display: grid; place-items: center; width: 48px; height: 58px; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); }
  .main-nav__toggle .icon { transition: transform .2s; }
  .main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .main-nav__sub { list-style: none; flex-basis: 100%; margin: 0 0 12px; padding: 2px 0 2px 16px; border-left: 3px solid var(--yellow); }
  .main-nav__toggle[aria-expanded="true"] + .main-nav__sub { display: block; }
  .main-nav__sub a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
  .main-nav__extra { display: grid; gap: 12px; padding: 20px var(--gutter) 8px; }
  .main-nav__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .main-nav__quick a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 14px; background: var(--cream); font-weight: 700; }
  .main-nav__quick .count-badge { margin-left: auto; }
  .main-nav .social-links { margin: 8px 0 24px; padding: 0 var(--gutter); }
  .main-nav .social-links a { border: 1px solid var(--line); border-radius: 50%; }
  .main-nav__backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(29, 35, 41, .45); }
  .menu-open .main-nav__backdrop { display: block; }
}

/* ---------- Search box + panel ---------- */
.search-box { position: relative; display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 5px 5px 5px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream); transition: border-color .15s, box-shadow .15s, background .15s; }
.search-box:focus-within { border-color: var(--ink); background: #fff; box-shadow: 0 6px 20px rgba(45, 54, 63, .08); }
.search-box__icon { color: var(--ink-mute); display: flex; }
.search-box__input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search-box__input::placeholder { color: var(--ink-mute); opacity: 1; }
.search-box__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box__btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .15s; }
.search-box__btn:hover { background: var(--cream); }
.search-box__btn--submit { background: var(--ink); color: #fff; }
.search-box__btn--submit:hover { background: #1d2329; color: var(--yellow); }
.search-panel { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px 18px 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.search-panel__block + .search-panel__block { margin-top: 10px; }
.search-panel__head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.search-panel__title { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.search-panel__clear { border: 0; background: none; color: var(--terracotta); font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.history { list-style: none; }
.history li { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.history a { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 50px; color: var(--ink); }
.history a:hover, .history a.is-active { color: var(--terracotta); }
.history a .icon { color: var(--ink-mute); }
.history__remove { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink-mute); cursor: pointer; }
.history__remove:hover { background: var(--cream); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font-size: 15px; transition: background .15s, border-color .15s; }
.chips a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.seen { display: grid; gap: 8px; }
.seen a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; }
.seen a:hover { background: var(--cream); color: var(--ink); }
.seen img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.seen span { font-size: 14px; line-height: 1.3; font-weight: 700; }

@media (max-width: 760px) {
  .site-header__bar { gap: 8px; }
  .site-header__logo img { height: 46px; }
  .search-box--header { display: none; }
  .quick-links { gap: 0; }
  .quick-link { min-width: 44px; min-height: 48px; padding: 4px; }
  .quick-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .quick-link--search { display: flex; }
  .quick-link .count-badge { top: 2px; right: 0; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, calc(100svh - var(--top-h)), 880px); background: var(--cream); }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 1.6vw, 22px); padding: clamp(32px, 4vw, 64px) var(--gutter); min-width: 0; }
.hero__title { font-size: clamp(34px, 3.6vw, 60px); }
.hero__lead { font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-soft); max-width: 46ch; }
.search-box--hero { background: #fff; min-height: 62px; max-width: 640px; box-shadow: var(--shadow); border-color: transparent; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Brand mark and stamp live inside the image column: they never overlap text or the header. */
.hero__mark { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); width: clamp(90px, 9vw, 130px); height: auto; z-index: 1; }
.hero__stamp { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); z-index: 1; display: grid; place-items: center; width: clamp(132px, 12vw, 176px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); transform: rotate(-8deg); box-shadow: 0 12px 30px rgba(45, 54, 63, .18); }
.hero__stamp-text { width: 72%; height: auto; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { position: absolute; inset: 0; z-index: 0; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 243, 238, .96) 0%, rgba(248, 243, 238, .9) 60%, rgba(248, 243, 238, .65) 100%); }
  .hero__mark, .hero__stamp { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - var(--top-h)); }
  .hero__media::after { background: linear-gradient(180deg, rgba(248, 243, 238, .95), rgba(248, 243, 238, .88)); }
  .hero__content { justify-content: center; padding-block: 28px; }
  .hero__title { font-size: clamp(28px, 8.2vw, 34px); }
  .hero__lead { font-size: 16px; }
  .search-box--hero { min-height: 56px; padding-left: 14px; }
}
@media (max-width: 520px) {
  .hero__actions, .band__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .band__actions .btn { width: 100%; }
}

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 24px clamp(12px, 2vw, 32px) 8px var(--gutter); }
.perks + .section, .perks + * { padding-top: clamp(32px, 4vw, 56px); }
.perk__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blush); color: var(--terracotta); flex: none; }
.perk__title { font-family: var(--font-body); font-weight: 700; letter-spacing: normal; line-height: 1.2; font-size: 18px; } /* h2 for heading order, styled as before */
.perk__text { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 1100px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .perks { grid-template-columns: 1fr; }
}

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.collection { position: relative; display: flex; align-items: flex-end; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; }
.collection:hover { color: #fff; }
.collection--wide { grid-column: span 2; }
.collection--full { grid-column: 1 / -1; min-height: 300px; }
.collection__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); z-index: -2; }
.collection:hover .collection__img { transform: scale(1.04); }
.collection::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 35, 41, 0) 35%, rgba(29, 35, 41, .55) 65%, rgba(29, 35, 41, .9) 100%); }
.collection__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; width: 100%; padding: 24px; }
.collection__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.collection--wide .collection__title { font-size: clamp(30px, 2.8vw, 42px); }
.collection__count { display: block; margin-top: 6px; font-size: 14px; opacity: .92; }
.collection__go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--ink); flex: none; transition: transform .2s; }
.collection:hover .collection__go { transform: translateX(3px); }
@media (max-width: 1100px) { .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } .collection { min-height: 340px; } }
@media (max-width: 760px) { .collections { grid-template-columns: 1fr; } .collection--wide { grid-column: auto; } .collection { min-height: 260px; } }

/* ---------- Split (image + prose) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.split__media { position: relative; min-height: 520px; }
.split__img { position: absolute; border-radius: var(--radius-lg); object-fit: cover; }
.split__img--main { left: 0; top: 0; width: 80%; height: 80%; }
.split__img--inset { right: 0; bottom: 0; width: 48%; height: 50%; border: 10px solid #fff; }
.split__ring { position: absolute; left: 0; bottom: 0; width: 120px; transform: translate(-18%, 18%); }
.split--top { align-items: start; }
.split--top .split__media { position: sticky; top: calc(var(--top-h) + 24px); }
@media (max-width: 1100px) { .split--top .split__media { position: relative; top: auto; } .split { grid-template-columns: 1fr; } .split__media { min-height: 440px; } }
@media (max-width: 760px) { .split__media { min-height: 320px; } .split__ring { display: none; } }

/* ---------- Prose and read more ---------- */
.prose { display: grid; gap: 16px; align-content: start; color: var(--ink-soft); }
.prose a { color: var(--ink); border-bottom: 1.5px solid var(--yellow); }
.prose strong { color: var(--ink); }
.prose .section__title, .prose__h2 { color: var(--ink); }
.prose__h2 { font-size: clamp(26px, 2.4vw, 38px); margin-top: 6px; }
.prose__h3 { font-family: var(--font-body); font-size: 19px; color: var(--ink); }
.prose h4 { font-size: 17px; color: var(--ink); margin-top: 6px; }
.prose__list { padding-left: 20px; display: grid; gap: 8px; }
.read-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.read-more__details[open] { flex-basis: 100%; order: 2; }
.read-more__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.read-more__toggle::-webkit-details-marker { display: none; }
.read-more__toggle .icon { transition: transform .2s; }
.read-more__details[open] .read-more__toggle .icon { transform: rotate(180deg); }
.read-more__close, .read-more__details[open] .read-more__open { display: none; }
.read-more__details[open] .read-more__close { display: inline; }
.read-more__content { margin-top: 8px; }
@media (max-width: 1100px) { .columns-2 { grid-template-columns: 1fr; } }

/* ---------- Product card ---------- */
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .35s; }
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__img--alt { opacity: 0; }
.product-card--swap:hover .product-card__img--alt { opacity: 1; }
.product-card__badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 14px 14px; }
.product-card__piece { margin: 0 0 4px; font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--ink-muted, #5c5348); }
.product-card__title { font-family: var(--font-body); font-size: 14.5px; font-weight: 400; line-height: 1.3; }
.product-card__title a { display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable, single link */
.pt-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-room { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.pt-line .pt-sep { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.pt-line { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }
.pt-model { font-weight: 700; font-size: 15px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; }
.product-card__specs li { font-size: 12.5px; color: var(--ink-soft); padding: 2px 8px; border-radius: 6px; background: var(--cream); }
.product-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.add-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; flex: none; transition: background .15s, transform .1s, box-shadow .15s; }
.add-btn:hover { background: var(--yellow-strong); box-shadow: 0 4px 14px rgba(255, 210, 40, .4); }
.add-btn:active { transform: scale(.95); }
.add-btn.is-added { background: var(--ink); color: #fff; }

/* ---------- Price ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; line-height: 1.15; }
.price__row { flex-basis: 100%; }
.price__from { font-size: 12px; color: var(--ink-mute); }
.price__regular { font-size: 13px; color: var(--ink-mute); text-decoration-thickness: 1.5px; text-decoration-color: var(--terracotta); }
.price__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.price__sale { font-size: 21px; font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 2px; margin-left: -2px; }
.price__unit { font-size: 12px; color: var(--ink-mute); }
.price--lg .price__from { font-size: 14px; }
.price--lg .price__regular { font-size: 18px; margin-top: 2px; }
.price--lg .price__sale { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 3.6vw, 54px); line-height: 1.05; padding: 0 4px; }
.price--lg .price__unit { font-size: 15px; }

/* ---------- Rails (horizontal product lists) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 17vw, 270px); gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 18px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; margin: 0; padding: 0; }
.rail-nav { display: flex; gap: 8px; }
@media (max-width: 760px) { .rail { grid-auto-columns: 46%; } .rail-nav { display: none; } }
@media (max-width: 420px) { .rail { grid-auto-columns: 62%; } }

/* ---------- Band (call to action) ---------- */
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(40px, 5vw, 72px) var(--gutter); background: var(--yellow); }
.band__title { font-size: clamp(30px, 3.2vw, 50px); max-width: 22ch; }
.band__text p { margin-top: 12px; max-width: 62ch; }
.band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.band__ring { position: absolute; right: 30%; top: -60px; width: 200px; opacity: .5; pointer-events: none; }
.band__deco-title { height: auto; width: min(563px, 100%); }
@media (max-width: 1100px) { .band { grid-template-columns: 1fr; } .band__ring { right: -40px; } }
@media (max-width: 760px) { .band__ring { display: none; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 16px; justify-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question h3 { font-size: 18px; }
.faq__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; transition: transform .2s, background .2s, border-color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--yellow); border-color: var(--yellow); }
.faq__answer { display: grid; gap: 12px; padding-bottom: 22px; color: var(--ink-soft); max-width: 72ch; }
@media (max-width: 1100px) { .faq__grid { grid-template-columns: 1fr; } .faq__intro { position: static; } }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-card__media { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__title { font-size: 20px; line-height: 1.3; margin-top: 4px; }
.post-card .link-arrow { justify-self: start; }
@media (max-width: 1100px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card:nth-child(3) { display: none; } }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } .post-card:nth-child(3) { display: grid; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 88px) var(--gutter) 28px; background: var(--ink); color: #e8e2dc; }
.site-footer a { color: #e8e2dc; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__ring { position: absolute; right: -60px; bottom: -60px; width: 320px; opacity: .12; pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__mark { width: 112px; height: auto; }
.site-footer__tagline { margin-top: 18px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer__contact { display: grid; gap: 10px; margin-top: 20px; font-size: 15px; font-style: normal; }
.site-footer__contact span { display: flex; align-items: center; gap: 10px; }
.site-footer .social-links--dark { display: flex; margin: 22px 0 0; gap: 10px; }
.site-footer__brand { display: flex; flex-direction: column; height: 100%; }
.social-links--dark a { border: 1px solid #5a646e; border-radius: 50%; color: #e8e2dc; transition: color .22s ease, background .22s ease, border-color .22s ease; }
.social-links--dark a:hover { background: transparent; border-color: #5a646e; }
.social-links--dark a[aria-label="Facebook"]:hover { color: #1877F2; }
.social-links--dark a[aria-label="Pinterest"]:hover { color: #E60023; }
.social-links--dark a[aria-label="Instagram"]:hover svg { stroke: url(#social-instagram-gradient); }
.site-footer__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid #47515b; font-size: 14px; color: #b8b2ac; }
.site-footer__bottom a,
.site-footer__bottom .link-btn { text-decoration: none; color: #e8e2dc; cursor: pointer; }
.site-footer__bottom a:hover,
.site-footer__bottom .link-btn:hover { color: var(--yellow); }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */
.breadcrumb { padding: 18px var(--gutter) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 14px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b9aea5; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb [aria-current] { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); gap: clamp(28px, 4vw, 80px); align-items: start; padding: 18px var(--gutter) clamp(48px, 6vw, 96px); }
.gallery { display: grid; gap: 12px; position: sticky; top: calc(var(--top-h) + 16px); }
.gallery__stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); }
.gallery__slide { position: absolute; inset: 0; margin: 0; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__chips { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; }
.gallery__zoom { position: absolute; right: 16px; bottom: 16px; }
.gallery__counter { position: absolute; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(29, 35, 41, .7); color: #fff; font-size: 13px; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--cream); cursor: pointer; transition: border-color .15s, opacity .15s; opacity: .75; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-selected="true"] { border-color: var(--ink); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }

.buy-panel { display: grid; gap: 18px; padding-top: 8px; }
.buy-panel__eyebrow { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.buy-panel__eyebrow a { color: var(--terracotta); }
.buy-panel__eyebrow a:hover { color: var(--ink); }
.buy-panel__title { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-body); font-weight: 400; }
.buy-panel__title .pt-room { font-size: 13px; }
.buy-panel__title .pt-line { display: none; } /* brand and series are already in the eyebrow links */
.buy-panel__title .pt-model { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3vw, 48px); line-height: 1.05; -webkit-line-clamp: 3; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: #fff; }
.facts .icon { color: var(--terracotta); }
.product-pieces { margin: 12px 0 4px; }
.description .product-pieces { margin: 20px 0 12px; }
.product-pieces__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #64748b); }
.product-pieces__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.product-pieces__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.product-pieces__chip:hover { border-color: var(--terracotta); box-shadow: 0 2px 8px rgba(15, 23, 42, .06); color: var(--ink); }
.product-pieces__img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.product-pieces__ico { display: inline-flex; color: var(--terracotta); }
.buy-box { display: grid; gap: 20px; padding: clamp(18px, 2vw, 28px); border-radius: var(--radius-lg); background: var(--cream); }
.buy-box__label { font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.buy-box__saving { margin-top: 8px; font-size: 14px; color: var(--terracotta); font-weight: 700; }
.estimator { display: grid; gap: 16px; padding: 18px; border-radius: var(--radius); background: #fff; }
.estimator__head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.estimator__head .icon { color: var(--terracotta); }
.estimator__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.estimator__result { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.estimator__result > div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream); }
.estimator__k { display: block; font-size: 12.5px; color: var(--ink-mute); }
.estimator__v { font-size: 19px; }
.buy-box__actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.buy-box__actions .btn { padding-inline: 18px; }
.perks-inline { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; }
.perks-inline li { display: flex; align-items: center; gap: 10px; }
.perks-inline__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--terracotta); flex: none; }

.product-details { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); gap: clamp(28px, 4vw, 80px); padding: 0 var(--gutter) clamp(48px, 6vw, 96px); }
.specs__table { width: 100%; border-collapse: collapse; }
.specs__table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.specs__table tr { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); }
.specs__table th { font-weight: 400; font-size: 13px; color: var(--ink-mute); text-align: left; }
.specs__table td { font-weight: 700; }
.specs__table td a { border-bottom: 2px solid var(--yellow); }
.description__cats { font-size: 15px; }
.band--compact .band__text p { margin-top: 14px; }

.sticky-buy { display: none; }
@media (max-width: 1100px) {
  .product, .product-details { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .gallery__stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-bottom: 4px; }
  .product { padding-top: 12px; }
  .gallery { margin: 0 calc(-1 * var(--gutter)); }
  .gallery__stage { border-radius: 0; aspect-ratio: 1 / 1; }
  .gallery__thumbs { padding: 0 var(--gutter); }
  .gallery__thumb { width: 64px; height: 64px; }
  .buy-box__actions { grid-template-columns: 1fr; }
  .specs__table tbody { grid-template-columns: 1fr 1fr; }
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(45, 54, 63, .08); transform: translateY(110%); transition: transform .3s var(--ease); }
  .sticky-buy.is-visible { transform: none; }
}

/* ---------- Form controls (designed components) ---------- */
.ui-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ui-check__input, .ui-switch__input, .ui-segmented__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ui-check__box { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--line-strong); border-radius: 7px; background: #fff; color: transparent; transition: background .15s, border-color .15s, color .15s, transform .1s; flex: none; }
.ui-check:hover .ui-check__box { border-color: var(--ink); }
.ui-check__input:checked + .ui-check__box { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.ui-check:active .ui-check__box { transform: scale(.9); }
.ui-check__input:focus-visible + .ui-check__box, .ui-switch__input:focus-visible + .ui-switch__track { outline: 3px solid var(--terracotta); outline-offset: 2px; }

.ui-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ui-switch__track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); transition: background .2s; flex: none; }
.ui-switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s var(--ease), width .15s; }
.ui-switch:active .ui-switch__thumb { width: 26px; }
.ui-switch__input:checked + .ui-switch__track { background: var(--ink); }
.ui-switch__input:checked + .ui-switch__track .ui-switch__thumb { transform: translateX(20px); background: var(--yellow); }
.ui-switch:active .ui-switch__input:checked + .ui-switch__track .ui-switch__thumb { transform: translateX(16px); }
.ui-switch__label { font-size: 15px; }

.ui-segmented { border: 0; margin: 0; padding: 0; min-width: 0; }
.ui-segmented__legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.ui-segmented__options { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.ui-segmented__option { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.ui-segmented__option:hover { background: rgba(255, 255, 255, .7); }
.ui-segmented__input:checked + .ui-segmented__option { background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; }
.ui-segmented__input:focus-visible + .ui-segmented__option { outline: 3px solid var(--terracotta); outline-offset: 1px; }

.ui-select { position: relative; display: grid; gap: 8px; min-width: 220px; }
.ui-select__label, .ui-stepper__label, .ui-field__label { font-size: 14px; font-weight: 700; }
.ui-select__button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s; }
.ui-select__button:hover, .ui-select__button[aria-expanded="true"] { border-color: var(--ink); }
.ui-select__button .icon { transition: transform .2s; }
.ui-select__button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ui-select__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); outline: none; }
.ui-select__list li { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; }
.ui-select__list li .icon { opacity: 0; }
.ui-select__list li[aria-selected="true"] { font-weight: 700; }
.ui-select__list li[aria-selected="true"] .icon { opacity: 1; }
.ui-select__list li.is-active, .ui-select__list li:hover { background: var(--cream); }

.ui-stepper { display: grid; gap: 8px; }
.ui-stepper__field { display: inline-flex; align-items: center; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .15s; }
.ui-stepper__field:focus-within { border-color: var(--ink); }
.ui-stepper__btn { display: grid; place-items: center; width: 48px; height: 100%; border: 0; background: transparent; cursor: pointer; transition: background .15s; }
.ui-stepper__btn:hover { background: var(--cream); }
.ui-stepper__btn:active { background: var(--blush); }
.ui-stepper__input { width: 64px; border: 0; outline: none; background: transparent; font: inherit; font-size: 18px; font-weight: 700; text-align: right; color: var(--ink); }
.ui-stepper__suffix { padding: 0 6px 0 4px; color: var(--ink-soft); }
.ui-field { display: grid; gap: 8px; }
.ui-field__input { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.ui-field__input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 226, 88, .5); }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
.search-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; background: #fff; }
.search-dialog[open] { animation: dialog-down .28s var(--ease); }
.search-dialog::backdrop { background: rgba(29, 35, 41, .4); }
/* Full-screen dialogs: the page behind must not scroll (a second scrollbar shows on Windows, where scrollbars are always visible). */
html:has(dialog.search-dialog[open]), html:has(dialog.lightbox[open]) { overflow: hidden; }
.search-dialog { overflow: hidden; }
.search-dialog__head { display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 6px; }
.search-dialog .search-box { flex: 1; min-width: 0; background: #fff; border-color: var(--ink); padding-left: 16px; }
.search-dialog .search-panel { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; max-height: none; border-radius: 0; box-shadow: none; padding: 4px var(--gutter) 24px; }
@keyframes dialog-down { from { transform: translateY(-16px); opacity: 0; } }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(20, 24, 28, .96); }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 16px; background: #fff; }

/* ---------- Styleguide (design review page) ---------- */
.styleguide { padding: 32px var(--gutter) 80px; display: grid; gap: 48px; }
.styleguide__intro p { margin-top: 12px; color: var(--ink-soft); max-width: 70ch; }
.styleguide__block h2 { font-size: 30px; margin-bottom: 20px; }
.styleguide__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.styleguide__row--top { align-items: flex-start; }
.styleguide__cell { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); min-width: 220px; }
.styleguide__caption { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Listing pages (catalogue, categories, series, brands, search) ---------- */
.listing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding: 18px var(--gutter) 24px; }
.listing-head__title { font-size: clamp(32px, 3.6vw, 54px); }
.listing-head__title--search { font-size: clamp(26px, 2.8vw, 40px); }
.listing-head__intro { margin-top: 10px; max-width: 70ch; color: var(--ink-soft); }
.search-box--page { flex: 1 1 360px; max-width: 560px; background: #fff; }

.subcats { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gutter) 24px; scrollbar-width: none; }
.subcats__item { display: flex; align-items: center; gap: 12px; flex: none; min-height: 45px; padding: 5px 14px 5px 5px; font-size: .85em; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.subcats__item:not(:has(img)) { padding-left: 14px; }
.subcats__item:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.subcats__item img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.subcats__name { font-weight: 700; white-space: nowrap; }
.subcats__count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--cream); font-size: 11px; color: var(--ink-soft); }

.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding: 0 var(--gutter) clamp(48px, 6vw, 96px); }
.listing__filters { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.listing__filters-head, .listing__filters-foot, .listing__filters-backdrop, .toolbar__filter-btn { display: none; }
.filters { display: grid; gap: 4px; }
.filters__group { border: 0; margin: 0; padding: 16px 0; min-width: 0; border-bottom: 1px solid var(--line); }
.filters__group--switch { padding: 8px 0; }
.filters__legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.filters__options { display: grid; }
.filters__option { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filters__option .ui-check { flex: 1; min-height: 40px; }
.filters__option .ui-check__box { width: 22px; height: 22px; border-radius: 6px; }
.filters__option .ui-check__label { font-size: 15.5px; }
.filters__count { font-size: 13px; color: var(--ink-mute); }
.filters__group--long:not(.is-open) .filters__option.is-extra { display: none; }
.filters__more { margin-top: 6px; padding: 0; min-height: 40px; border: 0; background: none; color: var(--terracotta); font-weight: 700; cursor: pointer; }
.filters__more-close, .filters__group--long.is-open .filters__more-open { display: none; }
.filters__group--long.is-open .filters__more-close { display: inline; }

.listing__main { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__count { margin-right: auto; color: var(--ink-soft); }
.toolbar__count strong { color: var(--ink); }
.toolbar__sort .ui-select { min-width: 250px; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.toolbar__sort .ui-select__list { left: auto; min-width: 100%; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 18px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; }
.active-filters a:hover { background: #1d2329; color: var(--yellow); }
.active-filters .active-filters__clear { background: none; color: var(--terracotta); font-weight: 700; padding: 0 6px; }
.active-filters .active-filters__clear:hover { background: none; color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
/* AJAX listing fragments are wrapped in .listing-fragment (carries data-listing-total): the wrapper must not become the only grid item. */
.listing-fragment { display: contents; }
.listing--search-compact { grid-template-columns: minmax(0, 1fr); }
.product-grid--search-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.product-grid--search-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
@media (max-width: 1180px) {
  .product-grid--search-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .product-grid--search-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .product-grid--search-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.price-notice { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.price-notice .icon { color: var(--terracotta); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination__pages { display: flex; align-items: center; gap: 6px; list-style: none; }
.pagination__page, .pagination__step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; transition: border-color .15s, background .15s; }
.pagination__page:hover, .pagination__step:hover { border-color: var(--ink); color: var(--ink); }
.pagination__page.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination__gap { padding: 0 4px; color: var(--ink-mute); }

.editorial__inner { max-width: 900px; }
.empty-state { display: grid; justify-items: center; gap: 16px; text-align: center; padding: clamp(40px, 6vw, 96px) var(--gutter); color: var(--ink-soft); }
.empty-state p { max-width: 60ch; }
.empty-state__icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--cream); color: var(--terracotta); }
.empty-state__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); color: var(--ink); max-width: 24ch; }
.empty-state .chips { justify-content: center; }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

@media (max-width: 1100px) {
  .listing { grid-template-columns: 1fr; }
  .toolbar__filter-btn { display: inline-flex; min-height: 44px; padding: 8px 18px; }
  .listing__filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 95; max-height: 88dvh; padding: 0; background: #fff; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; display: flex; flex-direction: column; }
  .filters-open .listing__filters { transform: none; visibility: visible; transition: transform .32s var(--ease); }
  .listing__filters-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 8px var(--gutter); border-bottom: 1px solid var(--line); }
  .listing__filters-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
  /* Only the filter list scrolls: head and foot stay put (min-height: 0 lets the flex child shrink, overflow hidden stops the whole sheet scrolling). */
  .listing__filters { overflow: hidden; }
  .listing__filters .filters { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter); }
  .listing__filters-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters-open .listing__filters-backdrop { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(29, 35, 41, .45); }
}
@media (max-width: 760px) {
  .listing-head { padding-bottom: 16px; }
  .toolbar { gap: 10px; }
  .toolbar__count { flex-basis: 100%; }
  .toolbar__filter-btn { flex: 1; }
  .toolbar__sort { flex: 1.3; }
  .toolbar__sort .ui-select { min-width: 0; grid-template-columns: 1fr; }
  .toolbar__sort .ui-select__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .product-grid,
  .product-grid--search-5,
  .product-grid--search-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pagination__step span { display: none; }
}
@media (max-width: 520px) {
  .product-grid .add-btn { width: 40px; padding: 0; justify-content: center; }
  .product-grid .add-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.ui-select__button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__title { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .product-card__body { padding: 10px 10px 12px; gap: 8px; }
  .pt-line { font-size: 11.5px; letter-spacing: .03em; }
  .pt-room { font-size: 10.5px; letter-spacing: .06em; }
  .pt-model { font-size: 14px; }
  .product-card__specs li { font-size: 11.5px; padding: 2px 6px; }
}

/* ---------- Quote journey (selection, contact details, confirmation) ---------- */
.quote-page { padding: 24px var(--gutter) clamp(56px, 7vw, 112px); }
.quote-page__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(20px, 3vw, 36px); }
.quote-page__title { font-size: clamp(32px, 3.6vw, 54px); }
.quote-steps { display: flex; align-items: center; gap: 8px; list-style: none; }
.quote-steps__item { display: flex; align-items: center; gap: 8px; color: var(--ink-mute); font-size: 15px; }
.quote-steps__item a { display: flex; align-items: center; gap: 8px; }
.quote-steps__item + .quote-steps__item::before { content: ""; width: clamp(16px, 3vw, 48px); height: 2px; border-radius: 2px; background: var(--line-strong); margin-right: 4px; }
.quote-steps__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 700; font-size: 14px; background: #fff; flex: none; }
.quote-steps__item.is-current { color: var(--ink); font-weight: 700; }
.quote-steps__item.is-current .quote-steps__dot { background: var(--yellow); border-color: var(--yellow); }
.quote-steps__item.is-done { color: var(--ink); }
.quote-steps__item.is-done .quote-steps__dot { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.quote-steps__item.is-done + .quote-steps__item::before { background: var(--ink); }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(24px, 3vw, 56px); align-items: start; }
.selection__list { list-style: none; display: grid; gap: 12px; }
.selection-item { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1.4fr) minmax(200px, auto) minmax(130px, auto); gap: 16px 24px; align-items: center; padding: 14px 56px 14px 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: opacity .25s, transform .25s; }
.selection-item.is-removing { opacity: 0; transform: translateX(16px); }
.selection-item__media { display: block; width: 120px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.selection-item__media img { width: 100%; height: 100%; object-fit: cover; }
.selection-item__info { display: grid; gap: 8px; min-width: 0; }
.selection-item__title { font-family: var(--font-body); font-weight: 400; font-size: 15px; }
.selection-item__title a { display: flex; flex-direction: column; gap: 3px; }
.selection-item__qty { display: grid; gap: 6px; }
.selection-item__qty .ui-stepper__label { font-size: 13px; }
.selection-item__qty .ui-stepper__field { height: 46px; }
.selection-item__qty .ui-switch { min-height: 36px; }
.selection-item__qty .ui-switch__label { font-size: 14px; }
.selection-item__total { display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: baseline; justify-content: end; text-align: right; }
.selection-item__k { font-size: 12.5px; color: var(--ink-mute); }
.selection-item__amount { font-size: 19px; }
.selection-item__remove { position: absolute; top: 10px; right: 10px; color: var(--ink-mute); }
.selection-item__remove:hover { color: var(--terracotta); }
.selection__back { margin-top: 20px; }
.selection__back .icon { order: -1; }

.quote-summary { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 18px; padding: clamp(20px, 2vw, 28px); border-radius: var(--radius-lg); background: var(--cream); }
.quote-summary__title { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.quote-summary__rows { display: grid; gap: 10px; margin: 0; }
.quote-summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.quote-summary__rows dt { color: var(--ink-soft); }
.quote-summary__rows dd { margin: 0; font-weight: 700; }
.quote-summary__total { padding-top: 12px; border-top: 1px solid var(--line-strong); align-items: baseline; }
.quote-summary__total dd { font-size: 24px; background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 3px; }
.quote-summary__total small { font-size: 13px; color: var(--ink-mute); font-weight: 400; }
.quote-summary__notice { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.quote-summary__notice .icon { color: var(--terracotta); margin-top: 3px; }
.perks-inline--stack { flex-direction: column; gap: 10px; }

.quote-form { display: grid; gap: 24px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.quote-form__login { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--cream); font-size: 15px; }
.quote-form__login a { font-weight: 700; border-bottom: 2px solid var(--yellow); }
.quote-form__consent { display: grid; gap: 8px; }
.quote-form__legal { font-size: 13.5px; color: var(--ink-soft); padding-left: 36px; }
.quote-form__legal a, .auth__legal a { border-bottom: 1.5px solid var(--yellow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.form-grid__full { grid-column: 1 / -1; }
.ui-field__req { color: var(--terracotta); }
.ui-field__opt { font-weight: 400; color: var(--ink-mute); font-size: 13px; }
.ui-field__hint { font-size: 13px; color: var(--ink-mute); }
.ui-field__error { font-size: 13.5px; color: #b42318; font-weight: 700; }
.ui-field.is-invalid .ui-field__input { border-color: #b42318; box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.ui-field__textarea { min-height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.ui-field__group { position: relative; display: flex; }
.ui-field__group .ui-field__input { flex: 1; padding-right: 52px; }
.ui-field__reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.ui-field__reveal[aria-pressed="true"] { color: var(--terracotta); }
.ui-check.is-invalid .ui-check__box { border-color: #b42318; }

.quote-recap { list-style: none; display: grid; gap: 10px; }
.quote-recap li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.quote-recap img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #fff; }
.quote-recap__text { display: grid; line-height: 1.25; min-width: 0; }
.quote-recap__text strong { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--terracotta); }
.quote-recap__text span { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-recap__qty { font-weight: 700; font-size: 14.5px; white-space: nowrap; }

.quote-page--done .quote-page__head { justify-content: center; }
.confirmation { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto; text-align: center; }
.confirmation__badge { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: var(--ink); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.confirmation__title { font-size: clamp(30px, 3.4vw, 50px); }
.confirmation__ref { font-size: 18px; }
.confirmation__ref strong { background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 4px; }
.confirmation__text { color: var(--ink-soft); max-width: 56ch; }
.confirmation__next { list-style: none; display: grid; gap: 12px; width: 100%; text-align: left; margin-top: 8px; }
.confirmation__next li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--cream); }
.confirmation__next strong { display: block; }
.confirmation__next span:not(.confirmation__num) { color: var(--ink-soft); font-size: 15px; }
.confirmation__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 700; flex: none; }
.quote-recap--wide { width: 100%; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.confirmation__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Account ---------- */
.account-page { padding: 24px var(--gutter) clamp(56px, 7vw, 112px); }
.account-page__head { margin-bottom: clamp(20px, 3vw, 36px); }
.account-page__head--dash { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.account-page__hello { font-size: 18px; color: var(--ink-soft); margin-bottom: 6px; }
.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.auth__card { display: grid; gap: 18px; padding: clamp(22px, 3vw, 44px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.auth__card--alt { background: var(--cream); box-shadow: none; }
.auth__title { font-size: clamp(28px, 2.6vw, 38px); }
.auth__intro, .auth__note, .auth__legal { color: var(--ink-soft); font-size: 15px; }
.auth__legal { font-size: 13.5px; }
.auth__form { display: grid; gap: 16px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth__row a { font-weight: 700; color: var(--terracotta); }
.dashboard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.dashboard__nav { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 4px; }
.dashboard__nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; font-weight: 700; color: var(--ink-soft); }
.dashboard__nav a:hover { background: var(--cream); color: var(--ink); }
.dashboard__nav a[aria-current="true"] { background: var(--ink); color: #fff; }
.dashboard__nav a[aria-current="true"] .icon { color: var(--yellow); }
.dashboard__main { display: grid; gap: 20px; }
.dash-card { padding: clamp(18px, 2vw, 28px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.dash-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-card__head h2 { font-size: clamp(24px, 2vw, 30px); }
.dash-card__empty { color: var(--ink-soft); }
.dash-list { list-style: none; }
.dash-list li + li { border-top: 1px solid var(--line); }
.dash-list a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px 20px; align-items: center; min-height: 60px; padding: 8px 4px; }
.dash-list a:hover { color: var(--ink); background: var(--cream); border-radius: 10px; }
.dash-list__ref { font-weight: 700; }
.dash-list__meta { color: var(--ink-soft); font-size: 15px; }
.status { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--cream); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.status--received { color: #4a5560; }
.status--in_progress { color: #9a6b00; background: #fff6d6; }
.status--quoted { color: var(--terracotta); background: #f7e4da; }
.status--ordered, .status--delivered { color: #2f6b43; background: #e3f1e7; }
.status--cancelled { color: #8a8f94; }
.dash-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.dash-details div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream); }
.dash-details dt { font-size: 13px; color: var(--ink-mute); }
.dash-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .selection-item { grid-template-columns: 96px minmax(0, 1fr); padding-right: 52px; }
  .selection-item__media { width: 96px; }
  .selection-item__qty { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: end; gap: 12px; }
  .selection-item__total { grid-column: 1 / -1; justify-content: space-between; grid-template-columns: auto auto auto auto; text-align: left; padding-top: 10px; border-top: 1px solid var(--line); }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .dashboard__nav a { flex: none; }
}
@media (max-width: 760px) {
  .quote-page__head { flex-direction: column; align-items: flex-start; }
  .quote-steps__label { display: none; }
  .quote-steps__item.is-current .quote-steps__label { display: inline; }
  .form-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .selection-item__qty { grid-template-columns: 1fr; }
  .selection-item__total { grid-template-columns: auto auto; row-gap: 4px; }
  .dash-list a { grid-template-columns: 1fr auto; }
  .dash-list__meta { grid-column: 1; grid-row: 2; }
  .dash-list .status { grid-column: 2; grid-row: 1 / 3; }
  .dash-list .icon { display: none; }
}

/* ---------- Blog ---------- */
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-mute); }
.post-meta .icon { color: var(--terracotta); }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; margin: 0 var(--gutter) clamp(40px, 5vw, 72px); padding: clamp(12px, 1.2vw, 18px); border-radius: var(--radius-lg); background: var(--cream); }
.post-feature__media { display: block; border-radius: 18px; overflow: hidden; }
.post-feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.post-feature:hover .post-feature__media img { transform: scale(1.03); }
.post-feature__body { display: grid; gap: 16px; justify-items: start; padding: 12px clamp(8px, 2vw, 32px) 12px 0; }
.post-feature__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.08; }
.post-feature__excerpt { color: var(--ink-soft); font-size: 17px; max-width: 56ch; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.post-card--boxed { gap: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); position: relative; }
.post-card--boxed:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card--boxed .post-card__media { border-radius: 0; }
.post-card__body { display: grid; gap: 8px; padding: 16px 18px 20px; }
.post-card--boxed .post-card__title { font-size: 18px; margin: 0; }
.post-card--boxed .post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { font-size: 15px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.article__head { padding: 18px var(--gutter) 24px; display: grid; gap: 16px; }
.article__title { font-size: clamp(32px, 4vw, 62px); max-width: 22ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 15px; }
.article__meta span { display: inline-flex; align-items: center; gap: 8px; }
.article__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-right: 14px; }
.article__meta .icon { color: var(--terracotta); }
.article__cover { margin: 0 var(--gutter); border-radius: var(--radius-lg); overflow: hidden; }
.article__cover img { width: 100%; max-height: 70vh; aspect-ratio: 21 / 9; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 280px minmax(0, 760px) minmax(260px, 1fr); gap: clamp(24px, 4vw, 80px); align-items: start; padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(48px, 6vw, 96px); }
.article__layout:not(:has(.article__aside)) { grid-template-columns: minmax(0, 760px) minmax(260px, 1fr); }
.article__side { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 20px; align-content: start; justify-self: end; width: min(100%, 380px); }
.toc-cta p { font-size: 15px; }
.article__aside { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 20px; }
.toc { padding: 20px; border-radius: var(--radius); background: var(--cream); }
.toc__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.toc__list { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc__list a { display: block; padding: 8px 10px 8px 12px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); }
.toc__list a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.toc__list a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--yellow); background: #fff; }
.toc-cta { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--yellow); }
.toc-cta__title { width: 100%; height: auto; }
.prose--article { max-width: 760px; font-size: 18px; line-height: 1.75; color: var(--ink); gap: 0; }
.prose--article > * + * { margin-top: 1.1em; }
.prose--article h2, .prose--article h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.12; margin-top: 2em; scroll-margin-top: calc(var(--top-h) + 20px); }
.prose--article h2 { font-size: clamp(28px, 2.6vw, 40px); }
.prose--article h3 { font-size: clamp(24px, 2.2vw, 34px); }
.prose--article h4 { font-family: var(--font-body); font-size: 20px; margin-top: 1.6em; }
.prose--article > :first-child { margin-top: 0; }
.prose--article > p:first-child { font-size: 20px; color: var(--ink-soft); }
.prose--article ul, .prose--article ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose--article ul li { position: relative; padding-left: 26px; }
.prose--article ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 226, 88, .35); }
.prose--article ol { counter-reset: ol; }
.prose--article ol li { position: relative; padding-left: 36px; counter-increment: ol; }
.prose--article ol li::before { content: counter(ol); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 13px; font-weight: 700; }
.prose--article a { border-bottom: 2px solid var(--yellow); color: var(--ink); }
.prose--article a:hover { background: rgba(255, 226, 88, .35); }
.prose--article img { border-radius: var(--radius); margin: 1.6em 0; }
.prose--article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose--article th, .prose--article td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose--article th { background: var(--cream); }
@media (max-width: 1240px) {
  .article__layout { grid-template-columns: 240px minmax(0, 1fr); }
  .article__side { grid-column: 2; position: static; justify-self: stretch; width: auto; }
}
@media (max-width: 1100px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__body { padding: 4px 8px 12px; }
  .article__layout, .article__layout:not(:has(.article__aside)) { grid-template-columns: 1fr; }
  .article__aside, .article__side { position: static; }
  .article__side { grid-column: auto; justify-self: stretch; width: auto; }
}
@media (max-width: 760px) {
  .article__cover { margin: 0; border-radius: 0; }
  .article__cover img { aspect-ratio: 4 / 3; }
  .prose--article { font-size: 17px; }
  .prose--article > p:first-child { font-size: 18px; }
}
@media (max-width: 760px) {
  .article__meta { gap: 4px 14px; font-size: 14px; }
  .article__meta span + span::before { display: none; }
}

/* ---------- Page intro (all non-home pages) ---------- */
.page-intro { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px var(--gutter) clamp(24px, 3vw, 40px); }
.page-intro__text { display: grid; gap: 14px; justify-items: start; max-width: 1100px; position: relative; z-index: 1; }
.page-intro__title { font-size: clamp(32px, 4vw, 62px); }
.page-intro__subtitle { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: var(--terracotta); letter-spacing: .06em; text-transform: uppercase; }
.page-intro__lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-soft); max-width: 70ch; }
.page-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.page-intro--landing { margin: 0 var(--gutter) clamp(8px, 2vw, 24px); padding: clamp(28px, 4vw, 64px); border-radius: var(--radius-lg); background: var(--cream); }
.page-intro--landing .page-intro__lead { color: var(--ink); font-size: clamp(18px, 1.5vw, 22px); }
.page-intro__ring { position: absolute; right: -40px; bottom: -70px; width: clamp(160px, 18vw, 260px); opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .page-intro__ring { display: none; } .page-intro--landing { margin: 0; border-radius: 0; } }

/* ---------- Key points ---------- */
.key-points__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 20px; }
.key-points__item { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border-top: 4px solid var(--yellow); }
.key-points__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 700; }

/* ---------- Rich text (H2 left, text right) ---------- */
.rich-text__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.rich-text__title { position: sticky; top: calc(var(--top-h) + 24px); font-size: clamp(28px, 2.8vw, 44px); }
.rich-text__body { font-size: 17.5px; line-height: 1.7; color: var(--ink); gap: 16px; }
.rich-text__body strong { color: var(--ink); }
.prose__lead-in { font-weight: 700; color: var(--ink); margin-top: 8px; }
.section__intro { display: block; columns: 2 420px; column-gap: clamp(32px, 4vw, 72px); margin: -12px 0 28px; color: var(--ink); }
.section__intro > * { break-inside: avoid; margin-bottom: 14px; }
.section__intro strong { color: var(--ink); }
.faq__q { font-weight: 700; font-size: 18px; line-height: 1.3; }
.band__long { margin-top: 12px; color: var(--ink); max-width: 80ch; gap: 10px; }
.band__long strong { color: var(--ink); }
@media (max-width: 1100px) { .rich-text__grid { grid-template-columns: 1fr; } .rich-text__title { position: static; } }

/* ---------- Tile calculator ---------- */
.tile-calc { display: grid; gap: 18px; margin: 12px 0; padding: clamp(18px, 2vw, 28px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tile-calc__head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.tile-calc__head .icon { color: var(--terracotta); }
.tile-calc__inputs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.tile-calc__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile-calc__results > div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); }
.tile-calc__k { display: block; font-size: 13px; color: var(--ink-mute); }
.tile-calc__v { font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.tile-calc__note { font-size: 13.5px; color: var(--ink-soft); }
.tile-calc .btn { justify-self: start; }
@media (max-width: 520px) { .tile-calc__results { grid-template-columns: 1fr 1fr; } .tile-calc .btn { white-space: normal; text-align: center; justify-self: stretch; } }

/* ---------- Legal / long editorial pages ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); padding: 0 var(--gutter) clamp(56px, 7vw, 112px); }
.legal--toc { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.legal__aside { position: sticky; top: calc(var(--top-h) + 20px); }
.legal__body { max-width: 1000px; }
.legal__body h2 { font-size: clamp(24px, 2.2vw, 32px); }
.legal-original__banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; max-width: 100%; margin: 0 0 clamp(20px, 2.5vw, 32px); padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #f8f3ee; }
.legal-original__icon { color: var(--terracotta); flex: none; margin-top: 2px; }
.legal-original__banner-body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.legal-original__notice { margin: 0; font-size: 15px; color: var(--ink); max-width: 62ch; }
.legal-original__toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.legal-original__toggle:hover { border-color: var(--ink); color: var(--ink); }
.legal-original__toggle--global { font-size: 14px; }
.legal-original__section { margin-bottom: 16px; }
.legal-original__section:last-child { margin-bottom: 0; }
.legal-original__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; margin: 0 0 8px; padding-left: 4px; }
.legal__body .prose__h2 { margin-top: 1.15em; }
.legal__body .prose__h2:first-child { margin-top: 0; }
.legal__body .prose__lead-in + * { margin-top: 0.65em; }
.legal__body .prose p + .prose__h2, .legal__body .prose p + .prose__lead-in { margin-top: 1.15em; }
.legal-original__head--untitled { justify-content: flex-end; margin-bottom: 4px; }
.legal-original__title { margin: 0; flex: 1 1 auto; min-width: 0; }
.legal-original__pane--original { margin-top: 0; }
@media (max-width: 700px) {
  .legal-original__head:not(.legal-original__head--untitled) { flex-direction: column; align-items: flex-start; }
  .legal-original__head--untitled { justify-content: flex-start; }
}
@media (max-width: 1100px) { .legal--toc { grid-template-columns: 1fr; } .legal__aside { position: static; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.contact__info { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 22px; }
.contact__intro { font-size: 18px; color: var(--ink); }
.contact__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; font-style: normal; }
.contact__card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--cream); transition: background .15s, transform .15s; }
a.contact__card:hover { background: var(--blush); color: var(--ink); transform: translateY(-2px); }
.contact__card > div { display: grid; gap: 2px; min-width: 0; }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--terracotta); flex: none; }
.contact__k { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.contact__v { font-weight: 700; overflow-wrap: anywhere; color: var(--ink); }
.contact__plain { color: inherit; border-bottom: 0; font-weight: inherit; }
.contact__plain:hover { color: var(--ink); }
.contact__form .btn { justify-self: start; }
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choice-chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice-chips .ui-check { min-height: 44px; padding: 0 16px 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .15s, background .15s; }
.choice-chips .ui-check:has(:checked) { border-color: var(--ink); background: var(--cream); }
.choice-chips .ui-check__box { width: 22px; height: 22px; border-radius: 50%; }
@media (max-width: 1100px) { .contact__grid { grid-template-columns: 1fr; } .contact__info { position: static; } }
@media (max-width: 520px) { .contact__form .btn { justify-self: stretch; } }

/* ---------- Brand index ---------- */
.brand-index__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.brand-index__filter { flex: 1 1 320px; max-width: 520px; }
.brand-index__count { color: var(--ink-soft); }
.brand-index__count strong { color: var(--ink); }
.brand-index__letters { position: sticky; top: var(--top-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; margin-bottom: 18px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand-index__letters a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; font-weight: 700; }
.brand-index__letters a:hover { background: var(--yellow); color: var(--ink); }
.brand-index__groups { display: grid; gap: 28px; }
.brand-index__group { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 72px); }
.brand-index__groups > .brand-index__group:first-child { border-top: none; padding-top: 0; }
.brand-index__letter { font-size: 44px; line-height: 1; color: var(--terracotta); }
.brand-index__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.brand-index__list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--cream); font-weight: 700; font-size: 14.5px; transition: background .15s; }
.brand-index__list a:hover { background: var(--yellow); color: var(--ink); }
.brand-index__list .icon { color: var(--ink-mute); flex: none; }
.brand-index__empty { padding: 24px; border-radius: var(--radius); background: var(--cream); }
.brand-index__empty a { font-weight: 700; border-bottom: 2px solid var(--yellow); }
@media (max-width: 760px) { .brand-index__group { grid-template-columns: 1fr; gap: 8px; } .brand-index__letter { font-size: 34px; } .brand-index__list { grid-template-columns: 1fr 1fr; } }

/* ---------- 404 ---------- */
.not-found { display: grid; place-items: center; min-height: calc(100svh - var(--top-h)); padding: 48px var(--gutter); background: var(--cream); text-align: center; position: relative; overflow: hidden; }
.not-found__inner { display: grid; justify-items: center; gap: 18px; max-width: 720px; position: relative; }
.not-found__mark { width: 120px; height: auto; }
.not-found__code { font-family: var(--font-display); font-size: clamp(90px, 14vw, 180px); line-height: .9; color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 12px; }
.not-found__title { font-size: clamp(28px, 3.4vw, 46px); }
.not-found__text { color: var(--ink-soft); max-width: 56ch; }
.not-found .search-box { width: 100%; max-width: 560px; background: #fff; }
.not-found__chips { justify-content: center; }
.account-page--narrow { max-width: 560px; }
.confirmation__badge--sm { width: 64px; height: 64px; }

/* ---------- Header v2 (compact desktop ≥1100px, flyout selection, social tab) ---------- */
@property --hero-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --top-h: var(--bar-h);
}
.site-header-sticky { position: sticky; top: 0; z-index: 50; }
.site-header-sticky.is-shrunk .site-header__bar { --bar-h-local: 60px; }
.site-header__bar { --bar-h-local: 72px; height: var(--bar-h-local, var(--bar-h)); }
@media (min-width: 1100px) {
  :root { --bar-h: 72px; --nav-h: 0px; --top-h: var(--bar-h); }
  .main-nav--drawer,
  .main-nav__backdrop { display: none !important; visibility: hidden !important; }
  .site-header__bar {
    --logo-h: 52px;
    --edge: calc((var(--bar-h-local) - var(--logo-h)) / 2);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 var(--edge);
  }
  .site-header-sticky.is-shrunk .site-header__bar { --logo-h: 44px; }
  .site-header__logo { flex: none; }
  .main-nav--inline { flex: 1; min-width: 0; align-self: stretch; justify-content: center; height: auto; padding: 0; }
  .main-nav--inline .main-nav__list { height: 100%; justify-content: center; align-items: stretch; gap: clamp(10px, 1.5vw, 28px); }
  .main-nav--inline .main-nav__link { height: 100%; font-size: 14.5px; padding-top: 2px; border-bottom-width: 2px; margin-bottom: -1px; }
  .site-header__bar > .quick-links { flex: none; margin-right: -8px; }
  .site-header__search-mobile { display: none; }
  .quick-link--search { display: flex; }
  .quick-link--menu { display: none; }
  .main-nav--drawer { display: none; }
  .site-header__logo img { height: var(--logo-h); display: block; }
}
@media (max-width: 1099px) {
  .main-nav--inline { display: none; }
  .quick-link--search { display: none; }
  .quick-link--selection { display: none; }
  .quick-link--menu { display: flex; }
  .site-header__bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 var(--gutter);
    --bar-h-local: 64px;
  }
  .site-header__search-mobile { min-width: 0; }
  .search-box--header { max-width: none; }
}
.quick-link--selection .count-badge.is-pulse { animation: badge-pulse .45s var(--ease); }
@keyframes badge-pulse { 50% { transform: scale(1.25); } }
.count-badge[data-selection-count-menu] { position: absolute; top: 3px; right: 6px; }

/* Flyout selection */
.selection-flyout { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.selection-flyout:not([hidden]) { pointer-events: auto; }
.selection-flyout__panel {
  position: absolute;
  top: calc(var(--bar-h) + 8px);
  right: max(var(--gutter), calc(50vw - 720px));
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 640px);
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.selection-flyout:not([hidden]) .selection-flyout__panel { opacity: 1; transform: none; }
.selection-flyout__panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(45, 54, 63, .06);
}
.selection-flyout__close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.selection-flyout__body { overflow-y: auto; overscroll-behavior: contain; max-height: min(58vh, 520px); padding-top: 8px; }
.selection-flyout__title { font-size: 20px; margin-bottom: 12px; font-family: var(--font-display); }
.selection-flyout__actions { display: grid; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.selection-flyout__account { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.selection-flyout__empty { color: var(--ink-soft); margin-bottom: 12px; }

.selection-lines { list-style: none; display: grid; gap: 12px; }
.selection-lines__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.selection-lines__thumb img, .selection-lines__thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--cream);
}
.selection-lines__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}
.selection-lines__meta { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.selection-lines__qty { margin-top: 6px; }
.selection-lines__price { margin-top: 6px; }
.selection-lines__price .price { font-size: 14px; }

.main-nav__selection { padding: 12px var(--gutter) 0; border-bottom: 1px solid var(--line); }
.main-nav__selection-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 0;
  background: var(--cream);
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.main-nav__selection-toggle .icon:last-child { margin-left: auto; transition: transform .2s; }
.main-nav__selection-toggle[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.main-nav__selection-panel { padding: 12px 0 16px; }
.main-nav__selection-actions { margin-top: 12px; }
.main-nav__account { display: grid; gap: 8px; padding: 16px var(--gutter); font-weight: 700; }

/* Social tab (desktop) */
.social-tab { display: none; }
@media (min-width: 1100px) {
  .social-tab {
    --tab-bg: #fff;
    --tab-r: 14px;
    display: block;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    padding: 10px 8px;
    background: var(--tab-bg);
    border-radius: var(--tab-r) 0 0 var(--tab-r);
    filter: drop-shadow(0 4px 14px rgba(45, 54, 63, .14));
  }
  /* Inverse radius where the tab meets the viewport edge */
  .social-tab::before,
  .social-tab::after {
    content: "";
    position: absolute;
    right: 0;
    width: var(--tab-r);
    height: var(--tab-r);
    pointer-events: none;
  }
  .social-tab::before {
    bottom: 100%;
    background: radial-gradient(circle at 0 0, transparent calc(var(--tab-r) - .5px), var(--tab-bg) var(--tab-r));
  }
  .social-tab::after {
    top: 100%;
    background: radial-gradient(circle at 0 100%, transparent calc(var(--tab-r) - .5px), var(--tab-bg) var(--tab-r));
  }
  .social-tab__list { list-style: none; display: grid; gap: 4px; }
  .social-tab__list a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); border-radius: 10px; transition: color .22s ease, background .22s ease; }
  .social-tab__list a:hover { background: var(--cream); }
}
.site-header-sticky.is-shrunk .site-header__logo img {
  height: 44px;
  transition: height .15s var(--ease);
}
.site-header__logo img { transition: height .15s var(--ease); }
.search-box--trigger {
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink-mute);
}
.search-box--trigger .search-box__placeholder {
  flex: 1;
  font-size: 16px;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-nav__account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.selection-lines__thumb img,
.selection-lines__thumb-placeholder {
  border-radius: 8px;
}

/* Home: fold + hero search glow */
.page-home .hero {
  min-height: calc(100svh - var(--topbar-h) - var(--bar-h));
}
.search-box--hero {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.search-box--hero::before,
.search-box--hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from calc(var(--hero-angle) - 50deg), transparent 0deg, var(--yellow) 50deg, transparent 100deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: hero-search-glow 5.5s linear infinite;
}
/* Soft halo behind the light (one notch stronger than the bare line; dial back by lowering opacity). */
.search-box--hero::after { filter: blur(6px); opacity: .6; padding: 3px; }
.search-box--hero:hover::before, .search-box--hero:hover::after,
.search-box--hero:focus-within::before, .search-box--hero:focus-within::after { animation-play-state: paused; }
/* Keyframes map time to the pill's perimeter, so the light travels at a constant speed (no slowdown mid-edge). */
@keyframes hero-search-glow { 0.0% { --hero-angle: 0.0deg; } 2.5% { --hero-angle: 45.7deg; } 5.0% { --hero-angle: 64.0deg; } 7.5% { --hero-angle: 72.0deg; } 10.0% { --hero-angle: 76.3deg; } 12.5% { --hero-angle: 79.0deg; } 15.0% { --hero-angle: 80.8deg; } 17.5% { --hero-angle: 82.1deg; } 20.0% { --hero-angle: 83.0deg; } 22.5% { --hero-angle: 84.7deg; } 25.0% { --hero-angle: 90.0deg; } 27.5% { --hero-angle: 95.3deg; } 30.0% { --hero-angle: 97.0deg; } 32.5% { --hero-angle: 97.9deg; } 35.0% { --hero-angle: 99.2deg; } 37.5% { --hero-angle: 101.0deg; } 40.0% { --hero-angle: 103.7deg; } 42.5% { --hero-angle: 108.0deg; } 45.0% { --hero-angle: 116.0deg; } 47.5% { --hero-angle: 134.3deg; } 50.0% { --hero-angle: 180.0deg; } 52.5% { --hero-angle: 225.7deg; } 55.0% { --hero-angle: 244.0deg; } 57.5% { --hero-angle: 252.0deg; } 60.0% { --hero-angle: 256.3deg; } 62.5% { --hero-angle: 259.0deg; } 65.0% { --hero-angle: 260.8deg; } 67.5% { --hero-angle: 262.1deg; } 70.0% { --hero-angle: 263.0deg; } 72.5% { --hero-angle: 264.7deg; } 75.0% { --hero-angle: 270.0deg; } 77.5% { --hero-angle: 275.3deg; } 80.0% { --hero-angle: 277.0deg; } 82.5% { --hero-angle: 277.9deg; } 85.0% { --hero-angle: 279.2deg; } 87.5% { --hero-angle: 281.0deg; } 90.0% { --hero-angle: 283.7deg; } 92.5% { --hero-angle: 288.0deg; } 95.0% { --hero-angle: 296.0deg; } 97.5% { --hero-angle: 314.3deg; } 100.0% { --hero-angle: 360.0deg; } }
@media (prefers-reduced-motion: reduce) {
  .search-box--hero::before, .search-box--hero::after { animation: none; opacity: 0; }
}

/* Drawer nav breakpoint 1100 */
@media (max-width: 1099px) {
  .main-nav--drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 90;
    width: min(420px, 100%);
    height: 100dvh;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility 0s .32s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-open .main-nav--drawer { transform: none; visibility: visible; transition: transform .32s var(--ease); display: flex; }
  .main-nav--drawer .main-nav__head { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 8px 12px 8px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .main-nav--drawer .main-nav__list { flex-direction: column; height: auto; gap: 0; padding: 8px var(--gutter) 0; }
  .main-nav--drawer .main-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); display: flex; width: 100%; }
  .main-nav--drawer .main-nav__link { flex: 1; min-height: 58px; font-size: 19px; font-weight: 700; border: 0; padding: 0; display: flex; align-items: center; }
  .main-nav--drawer .main-nav__toggle { display: grid; place-items: center; width: 48px; height: 58px; border: 0; background: none; cursor: pointer; }
  .main-nav--drawer .main-nav__sub { list-style: none; flex-basis: 100%; margin: 0 0 12px; padding: 2px 0 2px 16px; border-left: 3px solid var(--yellow); display: none; }
  .main-nav--drawer .main-nav__toggle[aria-expanded="true"] + .main-nav__sub { display: block; }
  .main-nav--drawer .social-links { display: flex; gap: 8px; list-style: none; margin: 8px var(--gutter) 24px; padding: 0; }
}
@media (min-width: 1100px) {
  .main-nav--inline .main-nav__item.has-sub .main-nav__sub {
    display: block;
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 260px;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  .main-nav--inline .main-nav__item.has-sub:hover .main-nav__sub,
  .main-nav--inline .main-nav__item.has-sub:focus-within .main-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .main-nav--inline .main-nav__toggle { display: none; }
}
@media (max-width: 760px) {
  .search-box--header { display: flex !important; }
  .quick-link--search { display: none !important; }
  /* Search bar as tall as the logo (46px, 44px once the header shrinks), with a bit more air on its left. */
  .site-header__search-mobile { margin-left: 6px; }
  .site-header__search-mobile .search-box--header { min-height: 46px; padding-top: 0; padding-bottom: 0; }
  .site-header-sticky.is-shrunk .site-header__search-mobile .search-box--header { min-height: 44px; }
}

/* ---------- Sort select: options already say "Tri…", label kept for screen readers only ---------- */
.toolbar__sort .ui-select__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Perks: animated icons (loop with pauses) + hover highlight ---------- */
.perk__icon { transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.perk:hover .perk__icon { background: var(--yellow); color: var(--ink); transform: scale(1.08); }
.anim-icon { overflow: visible; }
.anim-icon * { transform-box: view-box; }
.ai-hand { transform-origin: 12px 12px; }
.ai-hand--min { animation: ai-min 3s var(--ease) infinite; }
.ai-hand--hour { animation: ai-hour 3s var(--ease) infinite; }
/* Both hands end on a full turn: the loop restarts exactly where it began. */
@keyframes ai-min { 0%, 8% { transform: rotate(0); } 50%, 100% { transform: rotate(720deg); } }
@keyframes ai-hour { 0%, 8% { transform: rotate(0); } 50%, 100% { transform: rotate(360deg); } }
.ai-truck { animation: ai-truck 3s var(--ease) infinite; }
.ai-speed { opacity: 0; animation: ai-speed 3s ease infinite; }
@keyframes ai-truck { 0%, 6% { transform: translateX(0); } 26% { transform: translateX(3px); } 44% { transform: translateX(-2px); } 56%, 100% { transform: translateX(0); } }
@keyframes ai-speed { 0%, 6% { opacity: 0; transform: translateX(1px); } 16%, 26% { opacity: 1; transform: translateX(0); } 38%, 100% { opacity: 0; transform: translateX(-1px); } }
.ai-stub { transform-origin: 7px 16px; animation: ai-stub 3s var(--ease) infinite; }
.ai-cut-line { animation: ai-cut 3s ease infinite; }
@keyframes ai-stub { 0%, 10% { transform: none; opacity: 1; } 32% { transform: translate(-1px, 6px) rotate(-24deg); opacity: 0; } 62% { transform: translate(-1px, 6px) rotate(-24deg); opacity: 0; } 63% { transform: translateX(-3px); opacity: 0; } 80%, 100% { transform: none; opacity: 1; } }
@keyframes ai-cut { 0%, 4% { opacity: .35; } 10% { opacity: 1; } 32%, 100% { opacity: .35; } }
/* Stars twinkle continuously, staggered, no pause. */
.ai-star { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: ai-star 1.5s ease-in-out infinite; }
.ai-star--2 { animation-delay: .5s; }
.ai-star--3 { animation-delay: 1s; }
@keyframes ai-star { 0%, 100% { transform: scale(0); } 50% { transform: scale(1.15); } }
.perk:nth-child(2) .anim-icon * { animation-delay: .75s; }
.perk:nth-child(3) .anim-icon * { animation-delay: 1.5s; }
@media (max-width: 1100px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk { padding-left: var(--gutter); }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; }
  .perk { padding: 16px var(--gutter) 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-icon * { animation: none !important; }
  .ai-star { transform: scale(0); }
}

/* ---------- Mobile menu v3: fills the viewport under the header, burger turns into a cross ---------- */
@media (max-width: 1099px) {
  .main-nav--drawer {
    position: fixed; top: var(--menu-top, 100px); left: 0; right: 0; bottom: 0; z-index: 45;
    width: auto; height: auto; max-height: none; display: flex; flex-direction: column; gap: 0;
    padding: 2px 0 calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: none;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .menu-open .main-nav--drawer { opacity: 1; transform: none; visibility: visible; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .main-nav--drawer .main-nav__head, .main-nav__backdrop { display: none !important; }
  .menu-open .site-header { border-bottom-color: transparent; background: #fff; backdrop-filter: none; }
  .menu-open .quick-link--menu { background: none; }

  .main-nav__selection { padding: 10px var(--gutter) 6px; border: 0; }
  .main-nav__selection-toggle { min-height: 50px; padding: 0 16px; font-size: 16px; line-height: 1.15; }
  .main-nav__selection-panel { padding: 14px 4px 6px; }
  /* Only the lines scroll; « Demander mon devis » and « Voir ma sélection » stay visible, and the first menu link stays on screen. */
  .main-nav__selection-panel .selection-lines { max-height: clamp(130px, 26vh, 240px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; min-width: 0; padding-right: 4px; scrollbar-width: thin; }
  .main-nav__selection-panel .main-nav__selection-actions { margin-top: 14px; gap: 6px; }

  .main-nav--drawer .main-nav__list { padding: 14px var(--gutter) 0 calc(var(--gutter) + 10px); gap: 2px; }
  .main-nav--drawer .main-nav__item { border: 0; display: block; }
  .main-nav--drawer .main-nav__link {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    min-height: 48px; padding: 0; border: 0; box-shadow: none; background: none;
    font: 600 17px/1.2 var(--font-body); color: var(--ink); text-align: left; cursor: pointer;
  }
  /* Active page: the word takes the accent colour, with a small yellow marker in the left margin. */
  .main-nav--drawer .main-nav__link[aria-current="page"], .main-nav--drawer .main-nav__link[data-current] { color: var(--terracotta); position: relative; padding-left: 0; box-shadow: none; }
  .main-nav--drawer .main-nav__link[aria-current="page"]::before, .main-nav--drawer .main-nav__link[data-current]::before {
    content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--yellow);
  }
  .main-nav--drawer .main-nav__link--parent .icon { transition: transform .2s var(--ease); color: var(--ink-mute); }
  .main-nav--drawer .main-nav__link--parent[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .main-nav--drawer .main-nav__toggle { display: none; }
  .main-nav--drawer .main-nav__sub { display: block; list-style: none; margin: 0; padding: 0 0 8px 14px; border: 0; }
  .main-nav--drawer .main-nav__sub[hidden] { display: none; }
  .main-nav--drawer .main-nav__sub a { display: flex; align-items: center; min-height: 42px; font-size: 15.5px; color: var(--ink-soft); }


  .main-nav__footer { margin-top: auto; display: grid; gap: 16px; justify-items: center; padding: 24px var(--gutter) 12px; width: 100%; box-sizing: border-box; }
  .main-nav__footer .btn--ink { min-height: 44px; max-width: 100%; padding-block: 10px; }
  .main-nav__footer .main-nav__account { display: grid; gap: 0; justify-items: center; width: 100%; padding: 0; font-weight: 400; }
  .main-nav__footer .btn { gap: 10px; }
  .main-nav__account-btn { min-height: 44px; padding: 6px 16px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.15; }
  .main-nav__account-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 14px 18px; width: 100%; }
  .main-nav__account-row .main-nav__account-btn { flex: 0 1 auto; width: auto; padding-inline: 16px; white-space: nowrap; }
  .main-nav__secondary-link { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
  .main-nav--drawer .social-links { display: flex; justify-content: center; gap: 18px; margin: 0; padding: 0; }
  .main-nav--drawer .social-links a { border: 1px solid var(--line); border-radius: 50%; min-height: 44px; min-width: 44px; }

  /* Last row: social links on the left, language pill on the right; the list opens upwards over the drawer width. */
  .main-nav__footer-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
  .main-nav__footer-row .social-links { justify-content: flex-start; }
  .main-nav__footer-row .lang-pick--menu { position: static; }
  .lang-pick--menu .lang-list--up { left: 0; right: 0; bottom: calc(100% + 10px); width: auto; }
}

/* Product without photo: material illustration (templates/helpers.php product_placeholder). */
.gallery__slide--placeholder, .product-card__img--placeholder { background: #ebe1d3; }
.gallery__slide--placeholder img { object-fit: contain; }

/* ==========================================================================
   Selection v2: flyout anchored to its button (no overlay), editable lines with
   the same estimator as the product page, add sheet (mobile), card flip (desktop).
   ========================================================================== */
.selection-flyout, .selection-flyout:not([hidden]) { pointer-events: none; }
.selection-flyout__panel { position: fixed; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 110px); padding: 18px 20px 20px; }
.selection-flyout__panel::before { right: var(--arrow-right, 28px); transform: translateX(50%) rotate(45deg); }
.selection-flyout__close { top: 14px; right: 12px; }
.selection-flyout__body { max-height: calc(100vh - 150px); padding-top: 0; }
.selection-flyout__head { display: flex; align-items: center; min-height: 44px; padding-right: 52px; margin-bottom: 18px; }
.selection-flyout__title { margin: 0; font-size: 20px; line-height: 1.15; }
.selection-flyout__actions { display: grid; justify-items: center; gap: 14px; margin-top: 20px; padding-top: 0; border-top: 0; }
.selection-flyout__actions .btn { width: 100%; }
.selection-flyout__link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.selection-flyout__account { display: grid; justify-items: center; text-align: center; margin-top: 12px; padding-top: 0; border-top: 0; font-size: 15px; font-weight: 400; }
.selection-flyout__account a { text-decoration: underline; text-underline-offset: 3px; }
.selection-flyout__empty { text-align: center; }

.selection-lines { gap: 20px; }
.selection-lines__item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 12px; border-radius: 12px; transition: opacity .2s, background .4s; }
.selection-lines__remove { width: 36px; height: 36px; color: var(--ink-mute); margin: -6px -6px 0 0; }
.selection-lines__remove:hover { color: var(--terracotta); }
/* Mobile drawer: fixed remove column and no negative margin (scrollWidth must equal clientWidth). */
.main-nav__selection-panel .selection-lines__item { grid-template-columns: 56px minmax(0, 1fr) 36px; gap: 8px 8px; }
.main-nav__selection-panel .selection-lines__remove { margin: 0; justify-self: end; }
.selection-lines__qty { grid-column: 1 / -1; margin-top: 0; }
.selection-lines__price { margin-top: 4px; }
.selection-lines__item.is-removing { opacity: .35; pointer-events: none; }
.selection-lines__item.is-new { animation: selection-line-new 1.8s var(--ease); }
@keyframes selection-line-new { 0%, 45% { background: rgba(255, 226, 88, .35); box-shadow: 0 0 0 6px rgba(255, 226, 88, .35); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.main-nav__selection-actions { display: grid; justify-items: center; gap: 14px; margin-top: 20px; }
.main-nav__selection-actions .btn { width: 100%; }

/* Compact estimator (flyout, menu, card back) */
.estimator--compact { gap: 10px; padding: 12px; background: var(--cream); }
.estimator--compact .estimator__row { gap: 8px 14px; align-items: center; }
.estimator--compact .ui-stepper { grid-template-columns: auto auto; align-items: center; gap: 10px; }
.estimator--compact .ui-stepper__label { font-size: 13px; }
.estimator--compact .ui-stepper__field { height: 42px; border-radius: 12px; }
.estimator--compact .ui-stepper__btn { width: 38px; }
.estimator--compact .ui-stepper__input { width: 52px; font-size: 16px; }
.estimator--compact .ui-switch { min-height: 34px; gap: 10px; }
.estimator--compact .ui-switch__label { font-size: 13.5px; }
.estimator--compact .estimator__result { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.estimator--compact .estimator__result > div { padding: 7px 10px; background: #fff; }
.estimator--compact .estimator__k { font-size: 11.5px; }
.estimator--compact .estimator__v { font-size: 14.5px; }

/* Product page: already selected */
.buy-box__form { display: grid; gap: 16px; }
.buy-box__in-selection { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.buy-box__in-selection .icon { color: var(--terracotta); flex: none; }
.qty-choice { display: grid; gap: 10px; }
.qty-choice__note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* Add sheet (mobile): same block as the product page buy box */
.qty-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: calc(100dvh - 24px); margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.qty-sheet::backdrop { background: rgba(45, 54, 63, .45); }
.qty-sheet[open] { animation: qty-sheet-in .28s var(--ease); }
@keyframes qty-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.qty-sheet__panel { gap: 16px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.qty-sheet__head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.qty-sheet__thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #ebe1d3; }
.qty-sheet__title p { margin: 0; font-weight: 700; line-height: 1.25; }
.qty-sheet__title span { font-size: 13px; color: var(--ink-mute); }
.qty-sheet__close { margin: -6px -8px 0 0; align-self: start; }
.qty-sheet .buy-box__price .price { margin: 0; }
.qty-sheet__detail { justify-self: center; }
body.sheet-open { overflow: hidden; }

/* Toast (mobile confirmation) */
.add-toast { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 130; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .3s var(--ease); }
.add-toast.is-visible { transform: none; }
.add-toast__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.add-toast__text { display: grid; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.add-toast__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.add-toast__link { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Card flip (desktop) */
.product-card__back { display: none; }
.product-card.is-flipped > :not(.product-card__back) { visibility: hidden; }
.product-card.is-flipped .product-card__back { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; background: #fff; }
.product-card__back-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.product-card__back-title { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__back-head .icon-btn { width: 34px; height: 34px; margin: -6px -6px 0 0; }
.product-card__back .estimator--compact .estimator__row { flex-direction: column; align-items: stretch; }
.product-card__back .estimator--compact .ui-stepper { grid-template-columns: 1fr; gap: 6px; }
.product-card__back .estimator--compact .ui-stepper__field { width: 100%; justify-content: space-between; }
.product-card__back .estimator--compact .estimator__result { grid-template-columns: 1fr; }
.product-card__back .estimator--compact .estimator__result > div { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 10px; }
.product-card__back .qty-choice .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
.product-card__back-detail { align-self: center; margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* /mes-produits/: estimator column like the product page */
.selection-item { grid-template-columns: 120px minmax(0, 1fr) minmax(360px, 1.25fr); align-items: start; }
.selection-item__qty .estimator { padding: 14px; background: var(--cream); }
.selection-item__title { font-size: 14px; }
@media (max-width: 1099px) {
  .selection-item { grid-template-columns: 96px minmax(0, 1fr); }
  .selection-item__qty { grid-column: 1 / -1; display: block; }
}

/* Mobile rails: wider cards, icon-only add button (as on listings) */
@media (max-width: 760px) {
  .rail { grid-auto-columns: 72%; }
  .rail .add-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .rail .add-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 420px) { .rail { grid-auto-columns: 80%; } }

.quote-summary__on-quote { font-size: 18px; }
.quote-summary__from { display: block; font-size: 13px; font-weight: 400; color: var(--ink-mute); }

/* ---------- Listing toolbar: search between count and sort; sort pill aligned on the right gutter ---------- */
.crumb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-right: var(--gutter); }
.crumb-row .breadcrumb { flex: 1 1 auto; }
.ref-pill { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.ref-pill .icon { flex: none; }
.toolbar__count { margin-right: 0; flex: none; }
.toolbar__search { flex: 1 1 340px; display: flex; justify-content: center; min-width: 0; }
.search-box--listing { width: 100%; max-width: 640px; background: #fff; border-color: var(--line); }
.toolbar__sort { margin-left: auto; }
.toolbar__sort .ui-select { display: flex; align-items: center; gap: 0; }
.toolbar__sort .ui-select__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toolbar__sort .ui-select__button { min-height: 52px; padding: 0 18px 0 22px; border-radius: 999px; }
@media (max-width: 1099px) {
  .toolbar__search { order: 3; flex-basis: 100%; }
  .search-box--listing { max-width: none; }
  .ref-pill { margin-top: 10px; font-size: 12.5px; }
  .crumb-row { padding-left: var(--gutter); }
  .crumb-row .breadcrumb { padding-left: 0; }
}

/* ---------- Product page (desktop): image sized on the screen height, thumbnails in a column on its left,
   so the photo and its thumbnails are visible on arrival without scrolling. ---------- */
@media (min-width: 1100px) {
  .product { grid-template-columns: auto minmax(420px, 1fr); }
  .gallery { grid-template-columns: 84px auto; grid-template-areas: "thumbs stage"; align-items: start; gap: 14px; }
  .gallery:not(:has(.gallery__thumbs)) { grid-template-columns: auto; grid-template-areas: "stage"; }
  .gallery__stage { grid-area: stage; width: min(calc(100svh - var(--top-h) - 150px), 48vw); }
  .gallery__thumbs { grid-area: thumbs; flex-direction: column; max-height: min(calc(100svh - var(--top-h) - 150px), 48vw); overflow-x: hidden; overflow-y: auto; }
}

/* ---------- Reference count (CRM) in the collections section, the CTA band, the footer ---------- */
.ref-pill--link { margin-top: 14px; text-decoration: none; transition: background .15s; }
.ref-pill--link:hover { background: var(--yellow-strong); color: var(--ink); }
.band__side { display: grid; gap: 18px; justify-items: start; }
.band__stat { display: grid; margin: 0; line-height: 1.1; }
.band__stat strong { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); letter-spacing: .02em; }
.band__stat span { font-size: 15px; max-width: 30ch; line-height: 1.35; }
.site-footer__refs { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.site-footer__refs strong { color: var(--yellow); }
.site-footer__refs .icon { color: var(--yellow); flex: none; }
.band__side { position: relative; z-index: 1; }
@media (max-width: 760px) { .band__side { justify-items: stretch; } }

/* ---------- Cookie consent (own system) ---------- */
.consent { position: fixed; z-index: 200; left: max(16px, var(--gutter)); bottom: 16px; width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; animation: consent-in .35s var(--ease); }
.consent[hidden], .consent [hidden] { display: none !important; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.consent__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 10px; }
.consent__text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.consent__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.consent__actions .btn { flex: 1 1 auto; min-height: 46px; padding: 10px 18px; font-size: 15px; }
.consent__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: default; }
label.consent__row { cursor: pointer; }
.consent__row strong { display: block; font-size: 15.5px; }
.consent__row p { margin: 2px 0 0; font-size: 14px; color: var(--ink-mute); line-height: 1.45; }
.consent__always { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.consent__switch { position: relative; flex: none; width: 50px; height: 30px; }
.consent__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.consent__switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.consent__switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(45,54,63,.25); transition: transform .2s var(--ease); }
.consent__switch input:checked + span { background: var(--ink); }
.consent__switch input:checked + span::after { transform: translateX(20px); }
.consent__switch input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.link-btn:hover { color: var(--yellow); }
@media (max-width: 640px) {
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 20px 18px; border-radius: 20px; }
  .consent__title { font-size: 22px; }
  .consent__actions .btn { flex: 1 1 100%; }
  .consent__actions .btn--primary { order: -1; }
}

/* ---------- Hero: reference count under the search (validated 23/11) ---------- */
.hero__refs { display: block; margin: 2px 0 0; font-size: clamp(15px, 1.1vw, 17px); color: var(--ink-soft); line-height: 1.35; }
.hero__refs svg { display: inline-block; vertical-align: -.2em; margin-right: 8px; color: var(--terracotta); }
.hero__refs strong { font-family: var(--font-display); font-weight: 400; font-size: 1.45em; color: var(--ink); letter-spacing: .02em; background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 3px; }
/* ---------- Yellow band: number + text side by side, larger text ---------- */
.band__stat { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.band__stat span { font-size: clamp(17px, 1.3vw, 20px); max-width: 24ch; line-height: 1.3; font-weight: 700; }

/* ---------- Listing filters, visual version (validated 23/11, maquette proposition 2) ---------- */
.ff { gap: 0; }
.ff-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ff-sec { border-bottom: 1px solid var(--line); }
.ff-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ff-sec__head::-webkit-details-marker { display: none; }
.ff-sec__head svg { transition: transform .2s var(--ease); flex: none; }
.ff-sec[open] > .ff-sec__head svg { transform: rotate(180deg); }
.ff-sec__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; letter-spacing: 0; vertical-align: 1px; }
.ff-sec__body { border: 0; margin: 0; padding: 0 0 16px; min-width: 0; }
.ff-sec:not([open]) > .ff-sec__body { display: none; }
.ff-sec--switch { padding: 12px 0; }
.ff-scroll-pane {
  max-height: var(--ff-scroll-max, 280px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -2px;
  padding-right: 4px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.ff-scroll-pane--aspects { --ff-scroll-max: 272px; }
.ff-scroll-pane--marque { --ff-scroll-max: 318px; }
.ff-scroll-pane:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
/* aspects */
.ff-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.ff-thumb { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 6px; justify-items: center; text-align: center; font-size: 12.5px; line-height: 1.2; cursor: pointer; }
.ff-thumb__label { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.ff-thumb__img { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--cream); display: grid; place-items: center; transition: border-color .15s; }
.ff-thumb__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-thumb__img span { font-family: var(--font-display); font-size: 22px; color: var(--ink-mute); }
.ff-thumb:hover .ff-thumb__img { border-color: var(--line-strong); }
.ff-thumb .ff-input:checked ~ .ff-thumb__img { border-color: var(--ink); }
.ff-thumb .ff-input:checked ~ .ff-thumb__label { font-weight: 700; }
.ff-thumb .ff-input:focus-visible ~ .ff-thumb__img { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ff-sec__body:not(.is-open) .is-extra { display: none; }
.ff-more { margin-top: 10px; padding: 0; min-height: 36px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ff-more__close, .is-open > .ff-more .ff-more__open { display: none; }
.is-open > .ff-more .ff-more__close { display: inline; }
/* colours */
.ff-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; }
.ff-color { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 5px; justify-items: center; text-align: center; font-size: 12.5px; cursor: pointer; }
.ff-color__label { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.ff-color__dot { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .15s; }
.ff-color:hover .ff-color__dot { box-shadow: 0 0 0 1px var(--ink-mute); }
.ff-color .ff-input:checked ~ .ff-color__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.ff-color .ff-input:checked ~ .ff-color__label { font-weight: 700; }
.ff-color .ff-input:focus-visible ~ .ff-color__dot { outline: 3px solid var(--yellow); outline-offset: 4px; }
/* format groups */
.ff-groups { display: grid; gap: 8px; }
.ff-group { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s; }
.ff-group.is-on { border-color: var(--ink); }
.ff-group__head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; }
.ff-group__main { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; min-width: 0; }
.ff-group__shape { width: 46px; height: 38px; display: grid; place-items: center; flex: none; }
.ff-group__shape i { display: block; background: var(--blush); border: 1.5px solid var(--ink); border-radius: 2px; }
.ff-group__text strong { display: block; font-size: 15px; }
.ff-group__text small { display: block; font-size: 12.5px; color: var(--ink-mute); }
.ff-group__main .ff-input:focus-visible ~ .ff-group__shape { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.ff-group__toggle { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ff-group__toggle svg { transition: transform .2s var(--ease); }
.ff-group__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ff-group__icon { width: 46px; height: 38px; display: grid; place-items: center; flex: none; }
.ff-group__icon img { width: 28px; height: 28px; display: block; color: var(--ink); }
.ff-search-wrap { display: block; margin: 0 0 10px; }
.ff-search { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.ff-search:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.filters__option.is-filtered-out { display: none; }
.ff-thumbs--type .ff-thumb__img img,
.ff-group--thickness .ff-group__icon img { object-fit: cover; width: 100%; height: 100%; }
.ff-group--thickness .ff-group__icon { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--cream); }
.ff-group.is-on .ff-group__icon { border-color: var(--ink); }
.ff-sizes { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px 12px 68px; }
.ff-sizes.ff-sizes--detail { padding: 2px 10px 12px; width: 100%; box-sizing: border-box; }
.ff-group--thickness .ff-sizes { padding-left: 10px; padding-right: 10px; width: 100%; box-sizing: border-box; }
.ff-size { cursor: pointer; }
.ff-size span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; transition: background .15s, border-color .15s; }
.ff-size:hover span { border-color: var(--line-strong); }
.ff-size .ff-input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ff-size .ff-input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* toolbar: search and sort at the same height */
.toolbar .search-box--listing { min-height: 48px; padding-top: 3px; padding-bottom: 3px; }
.toolbar .search-box--listing button { width: 40px; height: 40px; }
.toolbar__sort .ui-select__button { min-height: 48px; }
/* panel top (mobile / tablet only): search, then sort full width */
.ff-top { display: none; }
@media (max-width: 1100px) {
  .ff-top { display: grid; gap: 10px; padding: 14px var(--gutter) 4px; }
  .ff-top .search-box--panel { min-height: 48px; background: #fff; border-color: var(--line); padding-top: 3px; padding-bottom: 3px; }
  .ff-top .ui-select, .ff-top .ui-select__button { width: 100%; }
  .ff-top .ui-select__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ff-top .ui-select__button { min-height: 48px; border-radius: 999px; justify-content: space-between; }
  .ff-top .ui-select__list { left: 0; right: 0; }
  .listing__filters { max-height: 92dvh; }
  .toolbar { flex-wrap: nowrap; }
  .toolbar__search, .toolbar__sort { display: none; }
  .toolbar__count { flex: 1 1 auto; margin-right: auto; }
  .toolbar__filter-btn { flex: 0 0 auto; width: auto; }
}
@media (max-width: 760px) {
  .toolbar__count { flex-basis: auto; }
  .toolbar__filter-btn { flex: 0 0 auto; }
}
.filters-empty { display: grid; gap: 12px; justify-items: start; padding: clamp(24px, 4vw, 48px); margin-bottom: 24px; border-radius: var(--radius-lg); background: var(--cream); }
.filters-empty__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.filters-empty p { max-width: 60ch; color: var(--ink-soft); }
.filters-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
/* rooms */
.ff-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ff-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-room { cursor: pointer; }
.ff-room__box { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 12.5px; line-height: 1.2; transition: border-color .15s; }
.ff-room__img { display: block; width: 22px; height: 22px; object-fit: contain; }
.ff-room:hover .ff-room__box { border-color: var(--line-strong); }
.ff-room .ff-input:checked + .ff-room__box { border-color: var(--ink); font-weight: 700; }
.ff-room.is-implied .ff-room__box { border-color: var(--ink); font-weight: 700; }
.ff-room .ff-input:focus-visible + .ff-room__box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ff-size.is-implied span { background: var(--ink); border-color: var(--ink); color: #fff; opacity: .55; }
/* filters: no inline styles (CSP style-src 'self') */
.ff-color__dot { background-color: var(--line); }
.ff-c-beige { background: #d8c3a5; } .ff-c-blanc { background: #f7f5f0; } .ff-c-bleu { background: #5b7fa6; }
.ff-c-gris { background: #9aa0a6; } .ff-c-jaune { background: #e8c95a; } .ff-c-marron { background: #7b5a43; }
.ff-c-noir { background: #2b2b2b; } .ff-c-orange { background: #d9813f; } .ff-c-rose { background: #e3a5b1; }
.ff-c-rouge { background: #b8463c; } .ff-c-vert { background: #7f9a7a; } .ff-c-violet { background: #7d6a9e; }
.ff-c-mix { background: conic-gradient(#d8c3a5 0 25%, #5b7fa6 0 50%, #9aa0a6 0 75%, #7f9a7a 0); }
.ff-shape--petits i { width: 8px; height: 8px; } .ff-shape--classiques i { width: 18px; height: 18px; }
.ff-shape--grands i { width: 36px; height: 18px; } .ff-shape--tres-grands i { width: 34px; height: 34px; }
.ff-shape--lames i { width: 8px; height: 34px; } .ff-shape--autres i { width: 14px; height: 14px; }
/* rooms: equal heights on a row; group chips 50/50, stacked only when too narrow */
.ff-room { display: flex; min-width: 0; }
.ff-room__box { flex: 1; align-content: center; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.ff-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.ff-chips .ff-size { display: flex; }
.ff-chips .ff-size span { flex: 1; justify-content: center; text-align: center; }
/* Sol / mur — segmented one-line (aligned with CRM article editor) */
.ff-segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 4px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  box-sizing: border-box;
}
.ff-segmented__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 8px;
  background: var(--ink);
  border: 0;
  box-shadow: none;
  pointer-events: none;
  transition: transform .18s var(--ease), width .18s var(--ease);
  z-index: 0;
  box-sizing: border-box;
}
.ff-segmented__option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
}
.ff-segmented__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  box-sizing: border-box;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  border-radius: 8px;
  transition: color .15s var(--ease);
}
.ff-segmented__input:checked + .ff-segmented__text {
  color: #fff;
}
.ff-segmented:not([data-segmented-ready="1"]) .ff-segmented__input:checked + .ff-segmented__text {
  background: var(--ink);
  border: 0;
  box-shadow: none;
}
.ff-segmented[data-segmented-ready="1"] .ff-segmented__input:checked + .ff-segmented__text {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ff-segmented__input:focus-visible + .ff-segmented__text {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

/* ---------- Guided journey « Trouver mon carrelage » (maquette 24/11) ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100svh - var(--top-h)); background: #fff; }
.guide[data-step="6"] { grid-template-columns: minmax(0, 1fr); }
.guide[data-step="6"] .guide__visual { display: none; }
.guide__visual { position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h)); overflow: hidden; background: var(--ink); }
.guide__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45, 54, 63, .05), rgba(45, 54, 63, .7)); }
.guide__caption { position: absolute; z-index: 1; left: clamp(24px, 3vw, 48px); right: clamp(24px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); display: grid; gap: 14px; color: #fff; }
.guide__caption-title { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.guide__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide__tags li { background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; }
.guide__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 24px; padding: clamp(24px, 3vw, 40px) var(--gutter); min-width: 0; }
.guide__top { display: flex; align-items: center; gap: 20px; }
.guide__top[hidden], .guide__nav[hidden] { display: none; }
.guide__progress { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; gap: 6px; }
.guide__progress li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.guide__progress li.is-done { background: var(--ink); }
.guide__count { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.guide__step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; align-content: start; animation: guide-in .35s var(--ease); }
.guide__step[hidden] { display: none; }
.guide__step[data-guide-panel="0"] { align-content: center; gap: 22px; }
@keyframes guide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .guide__step { animation: none; } }
.guide__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); }
.guide__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 58px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; outline: none; }
.guide__title--intro { font-size: clamp(40px, 4.6vw, 72px); }
.guide__title--results { font-size: clamp(26px, 2.4vw, 36px); }
.guide__lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); max-width: 56ch; }
.guide__hint { color: var(--ink-soft); max-width: 70ch; }
.guide__grid { display: grid; gap: 14px; }
.guide__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-opt { display: flex; min-width: 0; cursor: pointer; }
.g-opt__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-opt__box { flex: 1; min-width: 0; width: 100%; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; align-content: center; text-align: center; padding: 22px 10px; border: 2px solid var(--line); border-radius: 20px; background: #fff; font-weight: 700; font-size: 15px; transition: border-color .15s, transform .12s; }
.g-opt__box > span { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.g-opt:hover .g-opt__box { border-color: var(--line-strong); transform: translateY(-2px); }
.g-opt__input:checked + .g-opt__box { border-color: var(--ink); }
.g-opt__input:checked + .g-opt__box::after { content: ''; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.g-opt__input:focus-visible + .g-opt__box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.g-opt--img .g-opt__box { padding: 8px 8px 12px; }
.g-opt--img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.g-opt--color .ff-color__dot { width: 56px; height: 56px; }
.g-opt--format .ff-group__shape { width: 90px; height: 70px; }
.g-opt--format .ff-group__shape i { transform: scale(1.8); }
.g-opt small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-mute); }
.guide__sizes { display: grid; gap: 8px; }
.guide__size-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; }
.guide__size-row[hidden] { display: none; }
.guide__size-row strong { font-size: 14px; margin-right: 6px; }
.guide__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.guide__back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.guide__nav .btn:disabled { opacity: .35; pointer-events: none; }
.guide__summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide__summary button { border: 0; background: var(--cream); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.guide__summary button:hover { background: var(--blush); }
.guide__results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.guide__results-head .guide__title--results { flex: 1 1 auto; margin: 0; }
.guide__results-head .btn { flex-shrink: 0; min-height: 44px; }
.guide__total { font-weight: 700; }
.guide__results .product-grid[aria-busy="true"] { min-height: 320px; background: linear-gradient(90deg, var(--cream), #fff, var(--cream)) 0 0/200% 100%; border-radius: var(--radius); animation: guide-load 1.2s linear infinite; }
@keyframes guide-load { to { background-position: -200% 0; } }
.guide__empty { grid-column: 1 / -1; padding: 24px; border-radius: var(--radius); background: var(--cream); }
.guide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1100px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__visual { position: relative; top: 0; height: 180px; }
  .guide:not([data-step="0"]):not([data-step="6"]) .guide__visual { display: none; }
  .guide__grid--4, .guide__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide__nav { position: sticky; bottom: 0; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .guide__grid--3, .guide__grid--4, .guide__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide__grid--5.guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-opt__box { padding: 16px 8px; font-size: 14px; }
}

/* ---------- Full-screen search: home (empty field) — maquette révisée 24/11 ---------- */
.sd-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); grid-template-areas: "main seen"; gap: 24px 48px; padding-top: 16px; }
.sd-home--single { grid-template-columns: minmax(0, 560px); grid-template-areas: "main"; }
.sd-home__main { grid-area: main; display: grid; gap: 20px; align-content: start; }
.sd-home__seen { grid-area: seen; min-width: 0; }
.guide-card { position: relative; overflow: hidden; display: grid; gap: 12px; justify-items: start; padding: 26px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.guide-card:hover { color: #fff; }
.guide-card::after { content: ''; position: absolute; right: -70px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--yellow); opacity: .9; pointer-events: none; }
.guide-card__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 700; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; }
.guide-card__title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; max-width: 18ch; position: relative; z-index: 1; }
.guide-card__text { color: #d9dee2; max-width: 40ch; position: relative; z-index: 1; }
.guide-card .btn { position: relative; z-index: 1; color: var(--ink); }
.sd-seen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sd-seen:not(.product-grid) > a { display: grid; gap: 8px; align-content: start; padding: 0 0 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.sd-seen:not(.product-grid) > a:hover { box-shadow: var(--shadow); color: var(--ink); }
.sd-seen:not(.product-grid) > a > img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--cream); }
.sd-seen:not(.product-grid) > a > span { padding: 0 12px; font-size: 14px; line-height: 1.3; font-weight: 700; }
@media (max-width: 1100px) {
  .sd-home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "seen" "main"; }
  .sd-seen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .guide__grid--colors.guide__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .guide__grid--colors .ff-color__dot { width: 44px; height: 44px; } }
.guide { scroll-margin-top: var(--top-h); }
@media (hover: none) { .ff-size:hover span { border-color: var(--line); } .g-opt:hover .g-opt__box { transform: none; } }
@media (max-width: 1100px) { .sd-seen:not(.product-grid) > a:nth-child(n+5) { display: none; } }

/* guide card variants */
.guide-card--compact { padding: 22px; margin-top: 28px; }
.guide-card--compact .guide-card__title { font-size: clamp(22px, 1.8vw, 28px); }
.guide-card--compact::after { width: 140px; height: 140px; border-width: 18px; right: -60px; bottom: -70px; }
.faq__guide { max-width: 440px; }
/* home: guided journey band */
.guide-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(32px, 5vw, 96px); padding: clamp(48px, 6vw, 96px) var(--gutter); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.guide-band::after { content: ''; position: absolute; left: -140px; bottom: -190px; width: 360px; height: 360px; border-radius: 50%; border: 40px solid var(--yellow); opacity: .9; pointer-events: none; }
.guide-band__text { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 1; }
.guide-band__kicker { color: var(--yellow); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.guide-band__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 60px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.guide-band__lead { color: #d9dee2; max-width: 52ch; font-size: clamp(16px, 1.2vw, 19px); }
.guide-band__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.guide-band__steps li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 18px; font-weight: 700; }
.guide-band__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 16px; flex: none; }
@media (max-width: 900px) { .guide-band { grid-template-columns: minmax(0, 1fr); } .guide-band::after { width: 220px; height: 220px; border-width: 26px; right: -90px; top: -100px; } .guide-band__steps li { font-size: 16px; padding: 10px 14px; } }
/* desktop filters: no inner scroll, the column grows with the page */
@media (min-width: 1101px) { .listing__filters { position: static; max-height: none; overflow: visible; padding-right: 0; } }
/* chips: background, border and text change together (no white-on-white while the page updates) */
.ff-size span, .ff-room__box, .ff-thumb__img, .ff-color__dot { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
/* listing while loading in place */
.listing.is-loading .listing__main, .empty-state.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }

.sd-seen.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sd-seen.product-grid .price__row { flex-wrap: nowrap; }
.sd-seen.product-grid .price__sale, .sd-seen.product-grid .price__unit { white-space: nowrap; }
@media (max-width: 1100px) { .sd-seen.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sd-seen.product-grid > :nth-child(n+5) { display: none; } }

/* ---------- « Nos carreleurs » (maquette 23/11) ---------- */
.quick-link--installers.is-current { color: var(--terracotta); }
@media (max-width: 1100px) { .quick-link--installers { display: none; } }
.main-nav__item--installers .main-nav__link { display: flex; align-items: center; gap: 10px; }
.i-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; padding: 18px var(--gutter) 32px; }
.i-hero > div { display: grid; gap: 14px; max-width: 820px; }
.i-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.8vw, 58px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.i-hero__lead { color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 19px); max-width: 62ch; }
.i-hero__count { font-size: 15px; color: var(--ink-soft); text-align: right; }
.i-hero__count strong { display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 4.4vw, 68px); line-height: 1; color: var(--ink); background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.i-dir { display: grid; grid-template-columns: minmax(300px, min(42vw, 520px)) minmax(0, 1fr); gap: 28px clamp(24px, 3vw, 48px); align-items: start; padding: 18px var(--gutter) clamp(48px, 6vw, 88px); background: var(--cream); }
.i-dir__main { display: grid; gap: 16px; min-width: 0; }
.i-dir__crumb { padding-right: 0; margin: 0; }
.i-dir__crumb .breadcrumb { padding-left: 0; }
/* The directory already has the gutter: the crumb row must not add a second one (mobile .crumb-row rule). */
.i-dir__crumb.crumb-row, .i-profile__crumb.crumb-row { padding-left: 0; }
.i-dir__head { display: grid; gap: 14px; }
.i-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.i-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: #fff; border: 2px solid transparent; box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.i-card:hover, .i-card.is-on { border-color: var(--ink); box-shadow: var(--shadow); }
.i-card__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--terracotta); }
.i-card__body { display: grid; gap: 4px; min-width: 0; }
.i-card__name { font-size: 18px; font-weight: 700; margin: 0; }
.i-card__name a { color: var(--ink); }
.i-card__place { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); margin: 0; }
.i-card__place svg { color: var(--terracotta); flex: none; }
.i-card__text { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.i-card__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }
.i-map-shell { padding: 0; border: 2px solid #d6c7ba; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: none; line-height: 0; }
.i-map-shell .i-map { position: relative; width: 100%; height: 100%; min-height: 100%; overflow: hidden; }
.i-map-shell .i-map__img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: center center; transform: scale(1.07); transform-origin: center center; }
.i-map-shell--fill { height: calc(100dvh - var(--top-h) - var(--top-h) - 20px); align-self: start; }
.i-dir__map { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 12px; align-content: start; padding: 0; background: transparent; box-shadow: none; }
.i-dir__map-frame { height: calc(100dvh - var(--top-h) - var(--top-h) - 76px); }
.i-dir__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--ink-soft); margin: 0; }
.i-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-right: -8px; }
.i-dot--on { background: var(--terracotta); }
.i-map { position: relative; }
.i-map__img { display: block; width: 100%; height: auto; }
.i-pin { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 226, 88, .45); display: grid; place-items: center; cursor: pointer; transition: transform .15s; color: inherit; text-decoration: none; }
.i-pin span { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(45, 54, 63, .35); }
.i-pin:hover { transform: scale(1.15); }
.i-pin.is-on { background: rgba(255, 226, 88, .75); transform: scale(1.25); z-index: 1; }
.i-pin.is-on span { background: var(--terracotta); }
.i-pin:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.i-map:not(.is-ready) .i-pin { visibility: hidden; }
.i-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: clamp(48px, 6vw, 88px) var(--gutter); }
.i-why > div { display: grid; gap: 10px; align-content: start; }
.i-why h2 { font-size: 19px; font-weight: 700; margin: 0; }
.i-why p { color: var(--ink-soft); margin: 0; }
.i-why__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--terracotta); }
.i-sheet { width: 100%; max-width: none; height: 92dvh; max-height: none; margin: auto 0 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: #fff; }
.i-sheet::backdrop { background: rgba(29, 35, 41, .5); }
.i-sheet[open] { animation: sheet-up .28s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.i-sheet__inner { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.i-sheet__close { position: absolute; top: 14px; right: 14px; }
.i-sheet__title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; margin: 0; padding-right: 48px; }
.i-profile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: 48px; align-items: start; padding: 18px var(--gutter) clamp(48px, 6vw, 88px); }
.i-profile__main { display: grid; gap: 16px; }
.i-profile__crumb { padding-right: 0; margin: 0; }
.i-profile__crumb .breadcrumb { padding-left: 0; }
.i-profile__identity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: center; }
.i-profile__thumb { width: clamp(112px, 11vw, 160px); height: clamp(112px, 11vw, 160px); margin: 0; padding: 10px; border-radius: 18px; background: var(--cream); display: grid; place-items: center; overflow: hidden; flex: none; }
.i-profile__thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; }
.i-profile__thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--terracotta); }
.i-profile__id-text { display: grid; gap: 8px; align-content: center; min-width: 0; }
.i-profile__id-text .i-hero__title { margin: 0; }
.i-profile__id-text .i-card__place { margin: 0; }
.i-profile__text { font-size: clamp(17px, 1.25vw, 19px); color: var(--ink-soft); max-width: 62ch; margin: 0; }
.i-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.i-facts li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--cream); }
.i-facts small { display: block; font-size: 13px; color: var(--ink-mute); }
.i-facts strong { display: block; font-size: 15px; }
.i-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.i-profile__side { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.i-profile__side--map { position: sticky; top: calc(var(--top-h) + 16px); padding: 0; background: transparent; box-shadow: none; align-self: start; }
.i-profile__side h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; text-transform: uppercase; margin: 0; }
.i-profile__side p { color: var(--ink-soft); margin: 0; }
.installer-cta { display: grid; width: 100%; max-width: none; }
.installer-cta .guide-card__title { max-width: none; }
.installer-cta .guide-card__text { max-width: none; }
.installer-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; z-index: 1; }
.guide-card.installer-cta .installer-cta__actions .btn--primary { color: var(--ink); }
.guide-card.installer-cta .installer-cta__actions .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.guide-card.installer-cta .installer-cta__actions .btn--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.i-profile__main .i-facts { margin-top: 4px; }
.i-facts .i-why__icon { flex: none; width: 48px; height: 48px; min-width: 48px; min-height: 48px; aspect-ratio: 1; }
.i-facts li { align-items: flex-start; }
.i-map--single .i-pin:not(.is-on) { display: none; }
.buy-box__installers { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--cream); color: var(--ink); }
.buy-box__installers:hover { background: var(--blush); color: var(--ink); }
.buy-box__installers-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--terracotta); }
.buy-box__installers strong { display: block; font-size: 15px; }
.buy-box__installers small { display: block; font-size: 13.5px; color: var(--ink-soft); }
.quote-form__installer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border-radius: 16px; background: var(--cream); }
.quote-form__installer-link { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  /* Mobile order: breadcrumb, title, map, lead, list. */
  .i-dir { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .i-dir__main, .i-dir__head { display: contents; }
  .i-dir__crumb { order: 1; }
  .i-dir .i-hero__title { order: 2; }
  .i-dir__map { position: relative; top: 0; order: 3; }
  .i-dir .i-hero__lead { order: 4; }
  .i-dir .i-list { order: 5; }
  .i-map-shell--fill { height: min(52vh, 420px); }
  .i-dir__map-frame { height: min(52vh, 420px); }
  .i-why, .i-facts { grid-template-columns: minmax(0, 1fr); }
  .i-profile { grid-template-columns: minmax(0, 1fr); }
  .i-profile__side { position: relative; top: 0; }
  .i-profile__identity { grid-template-columns: auto minmax(0, 1fr); }
  .i-hero__count { text-align: left; }
  .i-card { grid-template-columns: 48px minmax(0, 1fr); }
  .i-card__go { display: none; }
  .i-card__icon { width: 48px; height: 48px; }
}

/* Select: the button keeps the width of its longest option (invisible copies share the value's cell). */
.ui-select__button > .ui-select__value { display: grid; overflow: hidden; }
.ui-select__value > * { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select__sizer { visibility: hidden; height: 0; }
@media (min-width: 1100px) { .toolbar__sort .ui-select { min-width: 0; } }

/* Home: spacing after the guide band (« Votre courtier en carrelage »). */
.guide-band + .section--flush-top { padding-top: clamp(32px, 4vw, 56px); }
.guide-band + .section--flush-top .split__ring { top: 28px; bottom: auto; transform: translate(0, 0); }
@media (max-width: 900px) { .guide-band + .section--flush-top { padding-top: clamp(40px, 10vw, 64px); } }

/* Home: « Nos carreleurs recommandés » (between the FAQ and the news). */
.home-installers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 96px); align-items: center; }
.home-installers__intro { display: grid; gap: 20px; justify-items: start; }
.home-installers__intro .section__title { margin: 0; }
.home-installers__lead { margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 60ch; }
.home-installers__list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.home-installers__card { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid transparent; box-shadow: var(--shadow-sm); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.home-installers__card:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--ink); }
.home-installers__card .i-card__icon { grid-row: 1 / 3; width: 44px; height: 44px; }
.home-installers__name { font-weight: 700; font-size: 15.5px; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-installers__card .i-card__place { font-size: 13px; }
.home-installers__map { display: block; }
.home-installers__map .i-map { max-width: 620px; margin-inline: auto; }
@media (max-width: 900px) {
  /* Mobile order: title, map, lead, list, button. */
  .home-installers { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .home-installers__intro { display: contents; }
  .home-installers__intro .section__title { order: 1; }
  .home-installers__map { order: 2; }
  .home-installers__lead { order: 3; }
  .home-installers__list { order: 4; margin: 0; }
  .home-installers__intro > .btn { order: 5; justify-self: start; }
  .home-installers__map .i-map { max-width: 380px; }
}
@media (max-width: 520px) { .home-installers__list { grid-template-columns: minmax(0, 1fr); } .home-installers .btn { width: 100%; justify-content: center; } }

/* ---------- Article, enriched layout (plan 19) ---------- */
.read-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 4px; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .1s linear; }
.art-hero { background: var(--cream); padding-bottom: clamp(32px, 4vw, 64px); }
.art-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(20px, 2.6vw, 44px) var(--gutter) 0; }
.art-hero__grid--text { grid-template-columns: minmax(0, 1fr); }
.art-hero__text { display: grid; gap: 20px; justify-items: start; }
.art-hero__title { font-size: clamp(34px, 3.9vw, 68px); max-width: 20ch; }
.art-hero__grid--text .art-hero__title { max-width: 28ch; }
.art-hero__lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-soft); max-width: 56ch; }
.art-hero .article__meta { font-size: 14px; }
.art-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.art-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.art-pill { background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--ink-soft); }
.art-pill--yellow { background: var(--yellow); color: var(--ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.art-mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, clamp(150px, 15vw, 270px)); gap: 14px; }
.art-mosaic--single { grid-template-columns: 1fr; grid-template-rows: clamp(300px, 30vw, 540px); }
.art-mosaic__main { grid-row: 1 / -1; margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.art-mosaic__main img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
.art-mosaic__tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.art-mosaic__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.art-mosaic__tile:hover img { transform: scale(1.04); }
.art-mosaic__tag { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-chips { display: none; }
.art-layout { display: grid; grid-template-columns: 260px minmax(0, 800px) minmax(280px, 1fr); gap: clamp(28px, 3.6vw, 72px); align-items: start; padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(40px, 5vw, 80px); }
.art-layout--no-toc { grid-template-columns: 260px minmax(0, 800px) minmax(280px, 1fr); }
.art-aside { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 20px; align-content: start; }
/* The rail spans the whole article row, so its last block (products cited) can stay pinned until the end of the article. */
.art-rail { display: grid; gap: 20px; align-content: start; align-self: stretch; }
.art-rail__catalog { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; }
.art-aside .art-toc + .share { padding-top: 20px; border-top: 1px solid var(--line); }
.art-toc { padding: 0; background: transparent; border-radius: 0; }
.art-toc .toc__title, .art-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.art-toc .toc__list { max-height: 46vh; overflow-y: auto; scrollbar-width: thin; }
.art-toc .toc__list a { border-left: 3px solid var(--line); border-radius: 0; padding: 7px 0 7px 14px; font-size: 15px; }
.art-toc .toc__list a:hover { background: transparent; border-left-color: var(--line-strong); }
.art-toc .toc__list a.is-active { background: transparent; border-left-color: var(--yellow); }
.art-box { display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: var(--cream); }
.art-box__title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.art-box p:not(.art-box__title) { font-size: 15px; color: var(--ink-soft); }
.art-main { min-width: 0; display: grid; gap: clamp(32px, 3vw, 48px); }
.art-body { max-width: none; }
.art-body > * + * { margin-top: clamp(32px, 3vw, 48px); }
.art-chunk > * + * { margin-top: 1.1em; }
.art-chunk > :first-child { margin-top: 0; }
.art-body > .art-chunk:first-child > p:first-child { font-size: 20px; color: var(--ink-soft); }
.art-chunk h2, .art-chunk h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin-top: 1.6em; scroll-margin-top: calc(var(--top-h) + 20px); }
.art-chunk h2 { font-size: clamp(28px, 2.6vw, 42px); }
.art-chunk h3 { font-size: clamp(23px, 2vw, 32px); }
.art-chunk h4 { font-family: var(--font-body); font-size: 20px; margin-top: 1.6em; }
/* Links in the text: no underline, terracotta and bold so they are not told apart by colour alone. */
.art-body .art-chunk a { border-bottom: 0; color: var(--terracotta); font-weight: 700; border-radius: 4px; }
.art-body .art-chunk a:hover, .art-body .art-chunk a:focus-visible { background: rgba(255, 226, 88, .45); color: var(--ink); }
.art-chunk blockquote { margin: 1.4em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--yellow); font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.25; }
.art-chunk figure { margin: 1.6em 0; }
.art-chunk figcaption { font-size: 14px; color: var(--ink-mute); margin-top: 8px; }
.art-guide { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: clamp(26px, 3vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; font-size: 17px; line-height: 1.5; }
.art-guide:hover { color: #fff; }
.art-guide__ring { position: absolute; right: -60px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid var(--yellow); opacity: .9; }
.art-guide__text { position: relative; display: grid; gap: 12px; flex: 1 1 300px; }
.art-guide__kicker { color: var(--yellow); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.art-guide__title { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; text-transform: uppercase; letter-spacing: .02em; max-width: 18ch; }
.art-guide__lead { color: #d9dee2; max-width: 46ch; }
.art-guide__steps { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.art-guide__steps span { border: 1px solid var(--ink-soft); border-radius: 999px; padding: 4px 12px; }
.art-guide .btn { position: relative; white-space: nowrap; }
.art-search { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 40px); border-radius: var(--radius-lg); background: var(--cream); font-size: 17px; }
.art-search__title { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; }
.art-search .search-box--hero { max-width: none; box-shadow: none; border: 2px solid var(--line-strong); }
.art-rail__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.art-mini { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.art-mini:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.art-mini img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.art-mini__text { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; min-width: 0; }
.art-mini__spec { color: var(--ink-mute); }
.art-callback { display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--ink); color: #fff; }
.art-callback__title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.art-callback p:not(.art-callback__title) { color: #d9dee2; font-size: 15px; }
.art-installers { display: grid; gap: 10px; justify-items: start; padding: 24px; border-radius: 20px; background: var(--blush); }
.art-installers:hover { color: var(--ink); }
/* Plan 20, lot 4 — encarts placed in the body of an article from the CMS editor. */
.art-insert { margin: 32px 0; }
.art-insert--products .art-kicker { margin: 0 0 12px; }
.art-installers__title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.art-installers__text { font-size: 15px; color: var(--ink-soft); }
.art-share-end { padding-top: 24px; border-top: 1px solid var(--line); }
.share { display: grid; gap: 10px; }
.share--row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.share__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s, background .22s ease; }
.share__btn:hover, .share__btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45, 54, 63, .18); filter: brightness(1.06); }
.share__btn--pinterest { background: #bd081c; }
.share__btn--facebook { background: #1877f2; }
.share__btn--copy { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); }
.share__btn--copy:hover, .share__btn--copy:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.share__btn--copy.is-copied { background: var(--sage); box-shadow: none; }
.art-more { display: grid; gap: 28px; padding: clamp(40px, 5vw, 80px) var(--gutter); background: var(--cream); }
.art-next { position: relative; display: block; min-height: clamp(280px, 26vw, 420px); border-radius: 28px; overflow: hidden; color: #fff; background: var(--ink); }
.art-next:hover { color: #fff; }
.art-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art-next:hover img { transform: scale(1.03); }
.art-next__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 35, 41, .88), rgba(29, 35, 41, .2)); }
.art-next__text { position: relative; display: grid; gap: 14px; justify-items: start; padding: clamp(26px, 4vw, 56px); max-width: 720px; }
.art-next__kicker { color: var(--yellow); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.art-next__title { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 52px); line-height: 1.06; }
.art-more__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.art-more__title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.art-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art-card { display: grid; gap: 10px; align-content: start; padding-bottom: 18px; border-radius: 18px; overflow: hidden; background: #fff; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.art-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.art-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.art-card__cat { padding: 0 18px; font-size: 13px; font-weight: 700; color: var(--terracotta); }
.art-card__title { padding: 0 18px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.art-prevnext { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 15px; }
.art-prevnext a { display: inline-flex; align-items: center; gap: 12px; max-width: 46%; font-weight: 700; }
.art-prevnext__next { text-align: right; margin-left: auto; }
.art-prevnext__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
@media (max-width: 1360px) {
  .art-layout, .art-layout--no-toc { grid-template-columns: 240px minmax(0, 1fr); }
  .art-rail { position: static; align-self: start; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-rail__catalog { position: static; }
  .art-rail > .art-kicker, .art-rail__grid { grid-column: 1 / -1; }
  .art-rail__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 1000px) {
  .art-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .art-layout, .art-layout--no-toc { grid-template-columns: minmax(0, 1fr); }
  .art-aside { position: static; }
  .art-aside .art-toc, .art-aside .share { display: none; }
  /* Mobile table of contents: a sticky « Sommaire » bar glued to the header, opening the full list. */
  .art-chips { position: sticky; top: var(--site-top-h, var(--top-h)); z-index: 20; display: block; background: #fff; border-bottom: 1px solid var(--line); }
  .art-chips__toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 var(--gutter); cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
  .art-chips__toggle::-webkit-details-marker { display: none; }
  .art-chips__toggle svg { flex: none; color: var(--ink); transition: transform .2s var(--ease); }
  .art-chips details[open] .art-chips__toggle svg { transform: rotate(180deg); }
  .art-chips__list { list-style: none; margin: 0; padding: 0 var(--gutter) 14px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 2px; }
  .art-chips__list a { display: block; padding: 9px 0 9px 14px; border-left: 3px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
  .art-chips__list a.is-active { border-left-color: var(--yellow); color: var(--ink); font-weight: 700; }
  .art-layout { order: 0; }
  .art-main { order: -1; }
  .art-related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .art-mosaic { grid-template-rows: repeat(2, 130px); gap: 10px; }
  .art-mosaic--single { grid-template-rows: 240px; }
  .art-hero__cta .btn { flex: 1 1 100%; }
  .art-rail { grid-template-columns: minmax(0, 1fr); }
  .art-prevnext { flex-direction: column; }
  .art-prevnext a { max-width: none; }
  .art-prevnext__next { margin-left: 0; text-align: left; }
  .share--row .share__btn { flex: 1 1 auto; }
}
.prose--article a.art-guide, .prose--article a.art-guide:hover { color: #fff; background: var(--ink); border-bottom: 0; font-weight: 400; }
.prose--article a.art-guide:hover .btn { background: var(--yellow-strong); }

/* ---------- Lookbook (plan 19) ---------- */
.lb-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 44vw, 720px); color: #fff; overflow: hidden; background: var(--ink); }
.lb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 35, 41, .86) 0%, rgba(29, 35, 41, .3) 55%, rgba(29, 35, 41, .25) 100%); }
.lb-hero__text { position: relative; display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 64px) var(--gutter); max-width: 1100px; }
.lb-hero .breadcrumb { padding: 0; color: #f1ece6; }
.lb-hero .breadcrumb a { color: #fff; }
.lb-hero .breadcrumb li[aria-current] { color: #f1ece6; }
.lb-pill { background: rgba(255, 255, 255, .18); color: #fff; }
.lb-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5.4vw, 92px); line-height: 1.02; max-width: 18ch; }
.lb-hero__lead { font-size: clamp(17px, 1.4vw, 21px); max-width: 54ch; color: #f1ece6; }
.lb-chapters { padding: clamp(28px, 3.4vw, 56px) 0 clamp(20px, 2vw, 32px); scroll-margin-top: var(--top-h); }
.lb-nav { display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter) clamp(18px, 2vw, 28px); }
.lb-nav__strip { flex: 1 1 auto; min-width: 0; max-width: min(920px, 100%); }
.lb-nav__list { list-style: none; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0; padding: 2px 0; max-width: 100%; }
.lb-nav__list::-webkit-scrollbar { display: none; }
.lb-nav__btn { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.lb-nav__btn span { font-size: 12px; color: var(--terracotta); }
.lb-nav__btn:hover { background: var(--blush); }
.lb-nav__btn.is-active { background: var(--ink); color: #fff; }
.lb-nav__btn.is-active span { color: var(--yellow); }
@media (max-width: 760px) { .lb-nav { display: none; } }
.lb-chapters { overscroll-behavior: contain; }
.lb-track { display: flex; gap: clamp(14px, 1.6vw, 28px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px var(--gutter) 18px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.lb-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.lb-panel { flex: 0 0 calc(100% - clamp(40px, 9vw, 190px)); scroll-snap-align: start; min-height: clamp(380px, 54vh, 600px); display: grid; gap: clamp(20px, 2.6vw, 48px); padding: clamp(22px, 3vw, 52px); border-radius: 28px; background: var(--cream); align-content: center; }
.lb-panel--mood, .lb-panel--palette { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.lb-panel--palette { background: #eef2ee; }
.lb-panel--rooms { background: var(--blush); }
.lb-panel--products { background: #fff; box-shadow: inset 0 0 0 1px var(--line); align-content: start; }
.lb-panel--project { background: var(--ink); color: #fff; padding: 0; overflow: hidden; }
.lb-panel__text { display: grid; gap: 18px; align-content: center; }
.lb-num { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 60px); line-height: 1; color: var(--terracotta); display: flex; align-items: baseline; gap: 14px; }
.lb-num span { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.lb-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 48px); line-height: 1.08; max-width: 22ch; }
.lb-text { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-soft); max-width: 52ch; }
.lb-note { padding: 14px 18px; border-left: 4px solid var(--yellow-strong); background: rgba(255, 255, 255, .7); border-radius: 0 12px 12px 0; font-size: 16px; max-width: 52ch; }
.lb-swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.lb-swatches li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
.lb-swatch { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(45, 54, 63, .12); }
.lb-panel__media { position: relative; display: block; align-self: stretch; min-height: 300px; border-radius: 22px; overflow: hidden; }
.lb-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lb-panel__media:hover img { transform: scale(1.03); }
.lb-panel__head { display: grid; gap: 12px; }
.lb-panel__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.lb-tile { position: relative; display: block; min-height: clamp(260px, 36vh, 440px); border-radius: 22px; overflow: hidden; color: #fff; background: var(--ink); }
.lb-tile:hover { color: #fff; }
.lb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lb-tile:hover img { transform: scale(1.04); }
.lb-tile__text { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(29, 35, 41, .88)); }
.lb-tile__name { font-family: var(--font-display); font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.lb-tile__caption { font-size: 15px; color: #f1ece6; }
.lb-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.lb-project { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: center; justify-items: start; min-height: 100%; padding: clamp(28px, 4vw, 72px); }
.lb-project .lb-num { color: var(--yellow); }
.lb-project .lb-num span { color: #d9dee2; }
.lb-project .lb-text { color: #d9dee2; }
.lb-project__cta { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.lb-share { padding: 8px var(--gutter) clamp(32px, 4vw, 56px); }
.lb-others { display: grid; gap: 24px; padding: clamp(40px, 5vw, 72px) var(--gutter); background: var(--cream); }
.lb-cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.lb-cards--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; }
.lb-card { position: relative; flex: 0 0 auto; width: clamp(230px, 20vw, 340px); aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: 22px; overflow: hidden; color: #fff; background: var(--ink); }
.lb-cards--grid .lb-card { width: auto; }
.lb-card:hover { color: #fff; }
.lb-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lb-card:hover img { transform: scale(1.04); }
.lb-card__text { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 56px 18px 18px; background: linear-gradient(transparent, rgba(29, 35, 41, .9)); }
.lb-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.lb-card__title { font-family: var(--font-display); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.12; }
.lb-nextwrap { padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(40px, 5vw, 72px); }
.lb-next { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--blush); }
.lb-next:hover { color: var(--ink); }
.lb-next img { width: 100%; height: 100%; min-height: 300px; max-height: 460px; object-fit: cover; }
.lb-next__text { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 56px); }
.lb-next__title { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 52px); line-height: 1.06; }
.lb-next__lead { color: var(--ink-soft); max-width: 46ch; }
.lb-index { display: grid; gap: clamp(24px, 3vw, 44px); padding: clamp(20px, 3vw, 44px) var(--gutter) clamp(48px, 6vw, 96px); }
.lb-index__head { display: grid; gap: 14px; }
.art-more .lb-cards { margin-bottom: 4px; }
.post-feature + .section--tint { padding-top: clamp(48px, 5vw, 80px); margin-top: clamp(28px, 3.5vw, 48px); }
#blog-inspirations + .section { padding-top: clamp(48px, 5vw, 80px); }

/* Home: Inspirations + Nos actualités (BC-18, BC-21) */
#home-inspirations { padding-top: clamp(39px, 4.9vw, 78px); padding-bottom: clamp(39px, 4.9vw, 78px); }
#home-inspirations + .section,
#home-news { padding-top: clamp(39px, 4.9vw, 78px); padding-bottom: clamp(39px, 4.9vw, 78px); }
@media (max-width: 1000px) {
  .lb-panel { flex-basis: calc(100% - 28px); min-height: 0; align-content: start; }
  .lb-panel--mood, .lb-panel--palette { grid-template-columns: minmax(0, 1fr); }
  .lb-panel__media { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .lb-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lb-tiles { grid-template-columns: minmax(0, 1fr); }
  .lb-tile { min-height: 190px; }
  .lb-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* « À vous de jouer » card: everything stays inside the card. The long yellow CTA becomes a card-style
     button (text left, may wrap on two lines, arrow in a dark round on the right) instead of a broken pill. */
  .lb-project { padding: 28px 22px; }
  .lb-project__cta { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 10px; }
  .lb-project__cta .btn { width: 100%; min-width: 0; white-space: normal; text-align: center; }
  .lb-project__cta .btn--primary { justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px 10px 10px 22px; border-radius: 22px; text-align: left; line-height: 1.25; }
  .lb-project__cta .btn--primary svg { flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 12px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
}
@media (prefers-reduced-motion: reduce) { .lb-track { scroll-behavior: auto; } }
.lb-products { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.lb-products > * { flex: 0 0 clamp(200px, 17vw, 260px); scroll-snap-align: start; }
@media (max-width: 640px) { .lb-products { display: flex; } .lb-products > * { flex-basis: 62vw; } }
.lb-hero__text { width: 100%; min-width: 0; }
.lb-hero__text > * { min-width: 0; max-width: 100%; }
.lb-hero__title { overflow-wrap: break-word; }
.lb-hero .breadcrumb ol { flex-wrap: wrap; }
@media (max-width: 640px) {
  .lb-hero { min-height: 460px; }
  .lb-hero__title { font-size: clamp(28px, 8.4vw, 38px); }
  .lb-hero .breadcrumb li[aria-current] { display: none; }
  .art-hero__title { font-size: clamp(28px, 8vw, 36px); }
}
.art-main > *, .art-body > *, .art-chunk > * { min-width: 0; max-width: 100%; }
.art-chunk { overflow-wrap: break-word; }
.art-chunk table { display: block; overflow-x: auto; }

/* Landing built from a WordPress body: table of contents in the sticky column, text on the full remaining width. */
.rich-text--plain .rich-text__toc { position: sticky; top: calc(var(--top-h) + 24px); }
.rich-text--plain .rich-text__body.prose--article { max-width: none; font-size: 17.5px; line-height: 1.7; }
.rich-text__grid--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .rich-text--plain .rich-text__toc { position: static; } }

/* ---------- Language switcher (plan 17): side tab, footer, first-visit banner, mobile menu ---------- */
.flag { flex: none; display: block; width: 20px; height: 15px; object-fit: cover; object-position: center; border-radius: 3px; outline: 1px solid rgba(45, 54, 63, .14); outline-offset: -1px; }
.u-sr-graphics { position: absolute; width: 0; height: 0; overflow: hidden; }
.lang-list { list-style: none; margin: 0; padding: 0; }
.lang-list__item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; line-height: 1.2; text-decoration: none; }
.lang-list__item:hover { background: var(--cream); color: var(--ink); }
.lang-list__item span { flex: 1; }
.lang-list__check { flex: none; visibility: hidden; }
.lang-list__item[aria-current="true"] { background: var(--cream); }
.lang-list__item[aria-current="true"] .lang-list__check { visibility: visible; }
/* Floating list (side tab, footer) */
.lang-list--pop { position: absolute; z-index: 60; width: 232px; display: grid; gap: 2px; padding: 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lang-list--pop[hidden] { display: none; }
/* Chips (banner, mobile menu) */
.lang-list--chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lang-list--chips .lang-list__item { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }
.lang-list--chips .lang-list__item:hover { border-color: var(--ink); background: var(--white); }
.lang-list--chips .lang-list__item[aria-current="true"] { border: 2px solid var(--ink); padding: 0 11px; background: var(--cream); }
.lang-list--chips .lang-list__check { display: none; }
.lang-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lang-list--two[hidden] { display: none; }
/* Pill toggle (footer, mobile banner) */
.lang-pick { position: relative; }
.lang-pick__toggle { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 14.5px; cursor: pointer; }
.lang-pick__chevron { flex: none; transition: transform .2s; }
[aria-expanded="true"] > .lang-pick__chevron { transform: rotate(180deg); }

/* Side tab: tucked under the social tab like a paper divider (its top corner hidden underneath) */
.lang-tab { display: none; }
@media (min-width: 1100px) {
  .lang-tab {
    --tab-bg: #fff;
    --tab-r: 14px;
    --tuck: 16px;
    --social-tab-h: 130px; /* 3 links × 34px + 2 gaps × 4px + 20px padding */
    --lang-tab-w: 50px; /* same width as the social tab (34px link + 16px padding) */
    display: block;
    position: fixed;
    z-index: 39; /* social tab: 40 */
    right: 0;
    top: calc(50% + var(--social-tab-h) / 2 - var(--tuck));
  }
  .lang-tab__toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--lang-tab-w);
    height: calc(var(--lang-tab-w) + var(--tuck));
    padding: var(--tuck) 0 0;
    border: 0;
    background: var(--tab-bg);
    border-radius: var(--tab-r) 0 0 var(--tab-r);
    filter: drop-shadow(0 4px 14px rgba(45, 54, 63, .14));
    cursor: pointer;
  }
  .lang-tab__toggle::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    width: var(--tab-r);
    height: var(--tab-r);
    pointer-events: none;
    background: radial-gradient(circle at 0 100%, transparent calc(var(--tab-r) - .5px), var(--tab-bg) var(--tab-r));
  }
  .lang-tab__toggle:hover .flag, .lang-tab__toggle[aria-expanded="true"] .flag { transform: none; }
  .lang-tab__toggle .flag { width: 18px; height: 13.5px; object-fit: cover; object-position: center; transition: transform .15s; }
  .lang-tab .lang-list--pop { right: calc(100% + 10px); bottom: 0; }
}

/* Footer: select left of the back-to-top button, list opening upwards */
.site-footer__tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-pick--footer .lang-pick__toggle { border-color: #5a646e; background: transparent; color: #fff; }
.lang-pick--footer .lang-pick__toggle:hover { border-color: var(--yellow); color: var(--yellow); }
.lang-pick--footer .lang-list--up { right: 0; bottom: calc(100% + 10px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lang-pick--footer .lang-list--up .lang-list__item { color: var(--ink); }
.lang-pick--footer .lang-list--up .lang-list__item:hover { color: var(--ink); }

/* First-visit banner: cookies + language side by side (desktop), language on top (mobile) */
.consent--with-lang:not(.consent--cookies-only) { width: min(1180px, calc(100vw - 2 * var(--gutter))); }
.consent--cookies-only .consent__lang { display: none; }
.consent__lang-toggle { width: 100%; height: 48px; padding: 0 16px 0 14px; text-align: left; }
.consent__lang-toggle span { flex: 1; }
.consent__lang .lang-list--chips { display: none; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }
.consent__lang.is-open .lang-list--chips { display: grid; }
.consent--with-lang:not(.consent--cookies-only) { display: flex; flex-direction: column; }
.consent--with-lang:not(.consent--cookies-only) .consent__lang { order: -1; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) {
  .consent--with-lang:not(.consent--cookies-only) { width: min(1180px, calc(100vw - 2 * var(--gutter) - var(--social-tab-w))); display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 34vw, 480px); column-gap: 28px; }
  .consent--with-lang:not(.consent--cookies-only) > [data-consent-view] { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
  .consent--with-lang:not(.consent--cookies-only) .consent__actions { margin-top: auto; padding-top: 18px; }
  .consent--with-lang:not(.consent--cookies-only) .consent__lang { order: 0; grid-column: 2; grid-row: 1; margin: 0; padding: 0 0 0 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .consent__lang-toggle { display: none; }
  .consent__lang .lang-list--chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
}

/* ---------- Titles without stencil cuts (30/11) ----------
   In Leixo the UPPERCASE glyphs are the stencil-cut letters and the lowercase glyphs are the same capitals, solid.
   Every element set in the display font is therefore rendered from lowercase. Ligatures are switched off: in lowercase,
   Leixo replaces « in », « of », « and », « the » with symbols, which would break French words (intérieur, bain…).
   Keep this list in sync with the rules that use var(--font-display). */
h1,
h2,
.display,
.collection__title,
.price--lg .price__sale,
.buy-panel__title .pt-model,
.empty-state__title,
.listing__filters-title,
.quote-summary__title,
.post-feature__title,
.prose--article h2,
.prose--article h3,
.not-found__code,
.selection-flyout__title,
.band__stat strong,
.consent__title,
.hero__refs strong,
.ff-thumb__img span,
.filters-empty__title,
.guide__caption-title,
.guide__title,
.guide-card__title,
.guide-band__title,
.i-hero__title,
.i-hero__count strong,
.i-sheet__title,
.i-profile__side h2,
.art-box__title,
.art-chunk h2,
.art-chunk h3,
.art-chunk blockquote,
.art-guide__title,
.art-search__title,
.art-callback__title,
.art-installers__title,
.art-next__title,
.art-more__title,
.lb-hero__title,
.lb-num,
.lb-title,
.lb-tile__name,
.lb-card__title,
.lb-next__title { text-transform: lowercase; font-variant-ligatures: none; }
/* Headings that switch back to the body font keep their own case. */
.section__subtitle,
.perk__title,
.prose__h3,
.product-card__title,
.buy-panel__title,
.selection-item__title,
.prose--article h4,
.legal-original__toggle,
.art-chunk h4 { text-transform: none; font-variant-ligatures: normal; }

/* ==========================================================================
   « Ma sélection » compacte (maquette v4 validée le 30/11 ; v1 archivée dans
   design/archives/ma-selection-v1). Volet desktop, menu mobile, colonne des étapes de demande.
   ========================================================================== */
.sel-lines { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.sel-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; column-gap: 12px; row-gap: 3px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: opacity .2s, background .4s; }
.sel-line:first-child { padding-top: 0; }
.sel-line__thumb { grid-row: 1 / span 3; align-self: start; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.sel-line__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sel-line__title { min-width: 0; font-weight: 700; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.sel-line__title:not(:has(+ .sel-line__remove)) { grid-column: 2 / 4; }
.sel-line__remove { width: 32px; height: 32px; justify-self: end; color: var(--ink-soft); }
.sel-line__remove:hover { color: var(--terracotta); }
.sel-line__meta { grid-column: 2 / 4; margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.sel-line__sum { grid-column: 2 / 4; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; white-space: nowrap; color: var(--ink); }
.sel-line__qty { font-weight: 700; font-size: 14.5px; }
.sel-line__qty span { font-weight: 400; font-size: 13px; }
.sel-line__total { font-weight: 700; font-size: 15px; }
.sel-line__total[hidden] { display: none; }
.sel-line__edit { grid-column: 2 / 4; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 30px; padding: 4px 13px 4px 10px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.sel-line__edit:hover { background: var(--yellow-strong); }
.sel-line__edit[hidden] { display: none; }
.sel-line__editor { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--cream); }
.sel-line__editor[hidden] { display: none; }
/* Editor: « Ma surface » above the field, « +10 % de chute » above the switch, labels on one line and aligned. */
.sel-line .estimator--compact { padding: 0; gap: 0; background: transparent; }
.sel-line .estimator__result { display: none; }
.sel-line .estimator__row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 16px; }
.sel-line .ui-stepper { display: grid; grid-template-columns: auto; gap: 6px; }
.sel-line .ui-stepper__label, .sel-line .ui-switch__label { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.sel-line .ui-stepper__field { height: 38px; border-radius: 10px; }
.sel-line .ui-stepper__btn { width: 30px; }
.sel-line .ui-stepper__input { width: 5.5ch; min-width: 5.5ch; field-sizing: content; font-size: 15px; }
.sel-line .ui-stepper__suffix { padding: 0 2px 0 3px; font-size: 13px; }
.sel-line .ui-switch { display: grid; grid-template-columns: auto; justify-items: start; gap: 6px; min-height: 0; }
.sel-line .ui-switch__label { order: -1; }
.sel-line .ui-switch__track { margin-top: 5px; }
.sel-line__ok { align-self: end; height: 36px; margin-bottom: 1px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.sel-line__ok:hover { background: #1d2329; }
.sel-line.is-removing { opacity: .35; pointer-events: none; }
.sel-line.is-new { animation: selection-line-new 1.8s var(--ease); }
.sel-grand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 0; font-size: 14.5px; color: var(--ink); }
.sel-grand strong { font-size: 18px; font-weight: 700; }
.sel-grand[hidden] { display: none; }
.quote-summary .sel-grand { padding-top: 12px; border-top: 1px solid var(--line-strong); margin-top: 0; }
.quote-summary .sel-line:last-child { border-bottom: 0; }

/* Flyout opened by an addition: a thin yellow bar empties, then the flyout closes (site.js). */
.selection-flyout__timer { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 4px; background: var(--line); }
.selection-flyout__timer span { display: block; height: 100%; background: var(--yellow); transform-origin: left center; }
.selection-flyout__timer[hidden] { display: none; }

/* Quote request: « Modifier ma sélection » on the left, « Envoyer ma demande » on the right, same row; underline only under the link text. */
.quote-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quote-form__actions .selection__back { margin-top: 0; }
@media (max-width: 640px) {
  .quote-form__actions { flex-direction: column-reverse; align-items: stretch; }
  .quote-form__actions .btn { width: 100%; }
  .quote-form__actions .selection__back { align-self: flex-start; }
}

/* Footer credit (Devlooper), under the three link columns: discreet, three links (logo, name, appointment). */
.site-footer__company { display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.site-footer__credit { --credit-fg: rgba(255, 255, 255, .58); --credit-fg-strong: rgba(255, 255, 255, .88); display: grid; justify-items: start; gap: 4px; width: calc(300% + 80px); margin-top: auto; padding: 0; font-size: 13.5px; line-height: 1.4; color: var(--credit-fg); }
@media (min-width: 1101px) { .site-footer .social-links--dark { margin-top: auto; padding-top: 22px; } }
@media (max-width: 1100px) { .site-footer__credit { width: 100%; margin-top: 26px; } }
@media (max-width: 760px) {
  .site-footer__grid { display: flex; flex-direction: column; gap: 40px; }
  .site-footer__company { display: contents; height: auto; }
  .site-footer__credit { order: 10; width: 100%; margin-top: 26px; }
  #footer-company { order: 2; }
  #footer-company + ul { order: 3; }
  .site-footer__grid > nav[aria-labelledby="footer-tiles"] { order: 5; }
  .site-footer__grid > nav[aria-labelledby="footer-support"] { order: 6; }
}
.site-footer__credit p { margin: 0; }
.site-footer__credit-ask { text-wrap: pretty; }
.site-footer__credit-logo { display: block; width: 117px; height: 25px; margin-bottom: 2px; background: var(--credit-fg); -webkit-mask: url("../img/brand/devlooper.svg") no-repeat left center / contain; mask: url("../img/brand/devlooper.svg") no-repeat left center / contain; transition: background .2s, opacity .2s; }
.site-footer__credit-logo:hover, .site-footer__credit-logo:focus-visible { background: var(--yellow); opacity: 1; }
.site-footer__credit p a { color: var(--credit-fg-strong); text-decoration: none; border-bottom: 1px solid var(--yellow); padding-bottom: 1px; transition: color .2s; }
.site-footer__credit p a:hover { color: var(--yellow); }
