/* ==========================================================================
   Librairie AS — Afrique Souveraine
   Design system: magazine editorial, black frame, paper canvas, copper accent
   ========================================================================== */

:root {
  --site-bg: #f7f4ef;
  --site-fg: #14110e;
  --site-accent: #c8551b;
  --site-on-accent: #fff9f3;
  --site-surface: #ffffff;
  --site-muted: #6f6a63;
  --site-border: #e3dcd2;
  --site-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --site-radius: 2px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ink: #0b0a09;
  --ink-soft: #171412;
  --paper: var(--site-bg);
  --accent: var(--site-accent);
  --accent-deep: #a8441a;
  --line: var(--site-border);
  --container: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: calc(260ms * var(--site-motion, 1));
  --pad: calc(clamp(20px, 4vw, 52px) * var(--site-space, 1));
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--site-on-accent); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Frame & sheet ----------------------------------------------------------- */
.sheet {
  background: var(--site-bg);
  margin: clamp(10px, 2vw, 30px);
  min-height: calc(100vh - clamp(20px, 4vw, 60px));
  position: relative;
  border-radius: var(--site-radius);
  overflow: clip;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header ------------------------------------------------------------------ */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(22px * var(--site-space, 1)) var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--site-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  z-index: 60;
}

.brand {
  font-family: var(--serif);
  font-size: calc(27px * var(--site-type, 1));
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.brand small {
  font-family: var(--site-font);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--site-muted);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a { position: relative; padding: 6px 0; color: var(--site-fg); opacity: 0.72; transition: opacity var(--dur); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--site-radius);
  background: var(--accent);
  color: var(--site-on-accent);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--dur), transform var(--dur) var(--ease), color var(--dur);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn--pill { border-radius: 999px; padding: 0 22px; }
.btn--ghost {
  background: transparent;
  color: var(--site-fg);
  border-color: var(--site-border);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--site-fg) 5%, transparent); border-color: var(--site-fg); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2a241f; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: transparent;
  position: relative;
  transition: border-color var(--dur), background var(--dur);
}
.icon-btn:hover { border-color: var(--site-fg); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--site-on-accent);
  font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

/* Language selector ------------------------------------------------------- */
.lang-menu { position: relative; }
.lang-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: transparent;
  color: var(--site-fg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--dur), background var(--dur);
}
.lang-btn:hover { border-color: var(--site-fg); }
.lang-btn > span { line-height: 1; }
.lang-btn__chev { opacity: 0.55; transition: transform var(--dur) var(--ease); }
.lang-menu.is-open .lang-btn__chev { transform: rotate(180deg); }
.lang-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 198px;
  padding: 6px;
  display: none;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: 0 20px 44px -20px rgba(11, 10, 9, 0.4);
  z-index: 90;
}
.lang-menu.is-open .lang-pop { display: block; }
.lang-pop__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  border-radius: 1px;
  text-align: start;
  font-size: 12.5px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--site-fg);
}
.lang-pop__item b {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-muted);
}
.lang-pop__item:hover { background: color-mix(in srgb, var(--site-fg) 5%, transparent); }
.lang-pop__item[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.lang-pop__item[aria-selected="true"] b { color: var(--accent); }
html[dir="rtl"] .lang-pop { right: auto; left: 0; }

.burger { display: none; }

/* Typographic utilities --------------------------------------------------- */
.kicker {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--site-muted);
}
.kicker--accent { color: var(--accent); }
.display-1 {
  font-size: calc(clamp(32px, 4.3vw, 57px) * var(--site-type, 1));
  line-height: 0.96;
  letter-spacing: -0.032em;
}
.display-2 {
  font-size: calc(clamp(23px, 3vw, 40px) * var(--site-type, 1));
  line-height: 1;
  letter-spacing: -0.028em;
}
.display-3 {
  font-size: calc(clamp(18px, 1.9vw, 25px) * var(--site-type, 1));
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lede { font-size: 15.5px; line-height: 1.65; color: var(--site-muted); max-width: 46ch; }
.ital { font-style: italic; }
.mono { font-variant-numeric: tabular-nums; }

.link-underline {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid var(--site-fg);
  padding-bottom: 5px;
  transition: color var(--dur), border-color var(--dur), gap var(--dur);
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); gap: 13px; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: calc(46px * var(--site-space, 1)) 0 calc(30px * var(--site-space, 1)); }
.hero-figure { position: relative; min-width: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.hero-media {
  position: relative;
  background: #0b0a09;
  aspect-ratio: 16 / 10.6;
  overflow: hidden;
  border-radius: var(--site-radius);
  isolation: isolate;
}
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media__label {
  position: absolute; top: 26px; left: 28px; z-index: 2;
  color: #f7f4ef;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.hero-media__tag {
  position: absolute; right: 24px; top: 26px; z-index: 2;
  color: rgba(247, 244, 239, 0.72);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid rgba(247, 244, 239, 0.25);
  padding: 6px 10px; border-radius: 999px;
}
.hero-overlay {
  position: absolute; left: 0; bottom: -1px; width: 74%;
  background: var(--site-bg);
  padding: 26px 30px 0 0;
  z-index: 3;
}
.hero-overlay h1 { font-size: calc(clamp(26px, 3vw, 41px) * var(--site-type, 1)); line-height: 0.98; letter-spacing: -0.035em; }
.hero-overlay h1 em { font-style: italic; color: var(--accent); }

.hero-copy { padding-top: 10px; }
.hero-copy h2 {
  font-size: calc(clamp(28px, 3.3vw, 44px) * var(--site-type, 1));
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin: 18px 0 26px;
}
.hero-copy .lede { margin-bottom: 30px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 34px;
}
.hero-facts strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1;
}
.hero-facts span { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }

/* Ticker / marquee -------------------------------------------------------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
  margin-top: calc(26px * var(--site-space, 1));
  white-space: nowrap;
}
.strip__inner {
  display: inline-flex;
  gap: 46px;
  padding-left: 0;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.strip__inner span {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--site-muted);
  display: inline-flex; align-items: center; gap: 46px;
}
.strip__inner span::after { content: "✦"; color: var(--accent); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections ---------------------------------------------------------------- */
.section { padding: calc(clamp(54px, 7vw, 96px) * var(--site-space, 1)) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  margin-bottom: calc(clamp(26px, 3vw, 44px) * var(--site-space, 1));
}
.section-head .index {
  font-family: var(--serif); font-size: 13px; color: var(--accent);
  display: block; margin-bottom: 14px; letter-spacing: 0.08em;
}
.section-head h2 { max-width: 18ch; }
.section-head p.side { max-width: 34ch; font-size: 13.5px; color: var(--site-muted); }

/* Rayons strip ------------------------------------------------------------ */
.rayons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rayon {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 22px 20px 26px;
  min-height: 148px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 22px;
  transition: background var(--dur);
  position: relative;
}
.rayon:nth-child(4n) { border-right: 0; }
.rayon:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.rayon__top { display: flex; justify-content: space-between; align-items: flex-start; }
.rayon__index { font-family: var(--serif); font-size: 12px; color: var(--site-muted); }
.rayon__arrow { color: var(--accent); transform: rotate(-45deg); transition: transform var(--dur) var(--ease); }
.rayon:hover .rayon__arrow { transform: rotate(0deg) translateX(2px); }
.rayon h3 { font-size: 23px; letter-spacing: -0.015em; }
.rayon p { font-size: 11px; color: var(--site-muted); margin-top: 5px; letter-spacing: 0.02em; }
.rayon__count { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

/* Product cards ----------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative;
  display: block;
  border-radius: var(--site-radius);
  overflow: hidden;
}
.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--c1, #171310);
  color: #f4efe8;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  transition: transform 600ms var(--ease);
}
.cover__grain {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}
.cover__shape { position: absolute; inset: 0; z-index: 0; }
.cover--wave .cover__shape {
  background:
    radial-gradient(120% 70% at 15% 88%, var(--c2) 0%, transparent 58%),
    repeating-radial-gradient(circle at 78% 18%, transparent 0 7px, rgba(255,255,255,0.05) 7px 8px);
}
.cover--grid .cover__shape {
  background:
    radial-gradient(90% 90% at 85% 12%, var(--c2) 0%, transparent 55%),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 22px 22px;
}
.cover--arc .cover__shape {
  background:
    radial-gradient(circle at 50% 118%, transparent 0 38%, var(--c2) 38% 42%, transparent 42%),
    radial-gradient(circle at 50% 118%, transparent 0 52%, rgba(255,255,255,0.12) 52% 52.6%, transparent 52.6%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.3));
}
.cover--orbit .cover__shape {
  background:
    radial-gradient(circle at 72% 78%, var(--c2) 0 18%, transparent 18.5%),
    radial-gradient(circle at 72% 78%, transparent 0 30%, rgba(255,255,255,0.18) 30% 30.5%, transparent 30.5%),
    repeating-radial-gradient(circle at 72% 78%, transparent 0 26px, rgba(255,255,255,0.06) 26px 27px);
}
.cover__top, .cover__bottom { position: relative; z-index: 2; }
.cover__type {
  font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.7;
  display: flex; justify-content: space-between; gap: 10px;
}
.cover__title {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-top: auto;
  padding-top: 28px;
  text-wrap: balance;
}
.cover__brand { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.62; margin-top: 10px; }
.cover__mark {
  width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; opacity: 0.8;
}
.cover--software .cover__title { font-size: clamp(17px, 1.4vw, 21px); }

.card:hover .cover { transform: scale(1.018); }
.card__badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: var(--site-bg); color: var(--site-fg);
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px;
}
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur) var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
.card__quick .btn { width: 100%; background: var(--site-bg); color: var(--site-fg); border-radius: 999px; }
.card__quick .btn:hover { background: var(--accent); color: var(--site-on-accent); }

.card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card__meta { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }
.card__title { font-family: var(--serif); font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.card__title a:hover { color: var(--accent); }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 7px; }
.price { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.price span { font-size: 9px; letter-spacing: 0.1em; color: var(--site-muted); margin-left: 3px; }
.rating { font-size: 10px; color: var(--site-muted); letter-spacing: 0.04em; }
.rating b { color: var(--site-fg); font-weight: 500; }

/* Editorial feature block ------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: var(--ink); color: var(--paper);
  border-radius: var(--site-radius);
  overflow: hidden;
}
.feature__media { position: relative; min-height: 420px; background: #0d0c0b; }
.feature__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__body { padding: clamp(28px, 4vw, 58px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.feature__body .kicker { color: rgba(247,244,239,0.55); }
.feature__body h2 { color: var(--paper); max-width: 16ch; }
.feature__body p { color: rgba(247,244,239,0.66); max-width: 42ch; font-size: 14px; }
.feature .link-underline { color: var(--paper); border-color: rgba(247,244,239,0.4); align-self: flex-start; }
.feature .link-underline:hover { color: var(--accent); border-color: var(--accent); }
.agent-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(247,244,239,0.14); border: 1px solid rgba(247,244,239,0.14); }
.agent-mini div { background: var(--ink); padding: 14px; }
.agent-mini b { display: block; font-family: var(--serif); font-weight: 400; font-size: 15px; margin-bottom: 3px; }
.agent-mini span { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,244,239,0.5); }

/* Two-column editorial ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.split__art {
  position: relative; aspect-ratio: 4/3.2; background: var(--ink); overflow: hidden;
}
.split__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Catches / list rows ----------------------------------------------------- */
.list-rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto;
  gap: 20px; align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur);
}
.row:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.row__date { font-family: var(--serif); font-size: 13px; color: var(--accent); }
.row__main b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.2; }
.row__main span { font-size: 11.5px; color: var(--site-muted); }
.row__tag { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-muted); border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.row__go { color: var(--accent); }

/* Footer ------------------------------------------------------------------ */
.site-foot { border-top: 1px solid var(--line); padding: calc(44px * var(--site-space, 1)) 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--site-font); font-weight: 500; color: var(--site-muted); margin-bottom: 14px; }
.foot-grid a { display: block; font-size: 12.5px; padding: 4px 0; color: color-mix(in srgb, var(--site-fg) 82%, transparent); }
.foot-grid a:hover { color: var(--accent); }
.foot-brand p { font-size: 12px; color: var(--site-muted); max-width: 32ch; margin-top: 12px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-muted);
}
.emblem {
  width: 54px; height: 54px; color: var(--accent);
  animation: spin calc(42s / var(--site-motion, 1)) linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page head (inner pages) ------------------------------------------------- */
.page-head {
  padding: calc(clamp(34px, 5vw, 66px) * var(--site-space, 1)) 0 calc(clamp(24px, 3vw, 40px) * var(--site-space, 1));
  border-bottom: 1px solid var(--line);
}
.page-head .kicker { margin-bottom: 16px; }
.page-head h1 { font-size: calc(clamp(28px, 3.7vw, 50px) * var(--site-type, 1)); line-height: 0.98; letter-spacing: -0.034em; max-width: 18ch; }
.page-head .lede { margin-top: 18px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: 0.5; }

/* Catalog controls -------------------------------------------------------- */
.catalog-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 89px; z-index: 40;
  background: color-mix(in srgb, var(--site-bg) 94%, transparent);
  backdrop-filter: blur(8px);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--site-fg);
  border-radius: 999px; padding: 7px 13px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.chip:hover { border-color: var(--site-fg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.catalog-bar .spacer { flex: 1; }
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }
input[type="search"], select {
  border: 1px solid var(--line); background: var(--site-surface);
  border-radius: var(--site-radius);
  min-height: 38px; padding: 0 12px; font-size: 12.5px;
  outline: none;
  transition: border-color var(--dur);
}
input[type="search"] { min-width: 200px; }
input[type="search"]:focus, select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.catalog-meta { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 4px; font-size: 11px; color: var(--site-muted); }
.empty-state { padding: 70px 0; text-align: center; color: var(--site-muted); font-family: var(--serif); font-size: 22px; }

/* Product detail ---------------------------------------------------------- */
.detail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); padding: calc(40px * var(--site-space)) 0 calc(60px * var(--site-space)); }
.detail__art .cover { aspect-ratio: 3/4; padding: 30px 26px; }
.detail__art .cover__title { font-size: clamp(28px, 2.6vw, 38px); }
.detail__art .cover__brand { font-size: 10px; }
.detail-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.detail-thumbs div { aspect-ratio: 4/3; background: #eee9e1; border: 1px solid var(--line); display: grid; place-items: center; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-muted); }
.detail__info .kicker { margin-bottom: 14px; }
.detail__info h1 { font-size: calc(clamp(23px, 2.9vw, 40px) * var(--site-type, 1)); line-height: 1; letter-spacing: -0.03em; }
.detail__brand { margin-top: 12px; font-size: 12.5px; color: var(--site-muted); letter-spacing: 0.04em; }
.detail__price { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 6px; }
.detail__price strong { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.02em; }
.detail__price span { font-size: 11px; color: var(--site-muted); }
.detail__desc { margin: 22px 0; font-size: 14.5px; line-height: 1.7; color: color-mix(in srgb, var(--site-fg) 84%, transparent); }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; }
.spec-table td { border-top: 1px solid var(--line); padding: 10px 0; font-size: 12.5px; vertical-align: top; }
.spec-table td:first-child { color: var(--site-muted); width: 40%; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--site-radius); background: var(--site-surface);
}
.qty button { width: 40px; height: 44px; background: transparent; border: 0; font-size: 16px; }
.qty button:hover { color: var(--accent); }
.qty input { width: 42px; height: 44px; border: 0; text-align: center; background: transparent; font-size: 13px; }
.notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 10.5px; color: var(--site-muted); }
.notes span { display: inline-flex; align-items: center; gap: 7px; }
.notes i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Cart drawer ------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(11,10,9,0.5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur); z-index: 90;
  backdrop-filter: blur(2px);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 94vw);
  background: var(--site-bg); z-index: 95;
  transform: translateX(102%); transition: transform 420ms var(--ease);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0,0,0,0.18);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 24px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px 24px; }
.line-total { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.line-total strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-item__cov { width: 64px; aspect-ratio: 3/4; background: var(--c1); color: #f4efe8; display: flex; align-items: flex-end; padding: 7px; font-family: var(--serif); font-size: 9px; line-height: 1.05; overflow: hidden; }
.drawer-item__t { font-family: var(--serif); font-size: 15.5px; line-height: 1.15; }
.drawer-item__p { font-size: 11px; color: var(--site-muted); margin-top: 4px; }
.drawer-item__q { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; }
.drawer-item__q button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; background: transparent; line-height: 1; }
.drawer-item__q button:hover { border-color: var(--accent); color: var(--accent); }
.drawer-item__x { background: none; border: 0; color: var(--site-muted); font-size: 18px; align-self: start; padding: 0 2px; }
.drawer-item__x:hover { color: var(--accent); }

/* Cart page --------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(30px, 5vw, 70px); padding: calc(36px * var(--site-space)) 0 calc(70px * var(--site-space)); align-items: start; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__cov { width: 88px; aspect-ratio: 3/4; background: var(--c1); color: #f4efe8; padding: 9px; display: flex; align-items: flex-end; font-family: var(--serif); font-size: 11px; line-height: 1.08; }
.cart-line__t { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.cart-line__m { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--site-muted); margin-top: 3px; }
.cart-line__p { font-size: 13px; margin-top: 6px; }
.cart-line__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line__side .price { font-family: var(--serif); font-size: 19px; }
.link-quiet { background: none; border: 0; padding: 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--site-muted); border-bottom: 1px solid transparent; }
.link-quiet:hover { color: var(--accent); border-color: var(--accent); }

.summary {
  background: var(--site-surface);
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  padding: 26px;
  position: sticky; top: 110px;
}
.summary h2 { font-size: 26px; margin-bottom: 18px; }
.summary .line-total { padding: 7px 0; color: var(--site-muted); }
.summary .line-total b { color: var(--site-fg); font-weight: 500; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; }
.summary__total span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }
.summary__total strong { font-family: var(--serif); font-weight: 400; font-size: 30px; }

/* Forms ------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: var(--site-surface);
  border-radius: var(--site-radius); padding: 11px 12px; font-size: 13px;
  outline: none; width: 100%;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 84px; resize: vertical; }
.field .hint { font-size: 10px; color: var(--site-muted); letter-spacing: 0.02em; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: 13px 14px; background: var(--site-surface); text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color var(--dur), background var(--dur);
}
.choice:hover { border-color: var(--site-fg); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--site-surface)); }
.choice b { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.choice span { font-size: 10.5px; color: var(--site-muted); }
.choice[disabled] { opacity: 0.55; cursor: not-allowed; }
.form-section { margin-top: 26px; }
.form-section > .kicker { margin-bottom: 12px; display: block; }
.notice {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--site-bg));
  padding: 12px 14px; font-size: 12px; line-height: 1.55;
  border-radius: var(--site-radius);
}
.notice strong { font-weight: 600; }

/* Confirmation ------------------------------------------------------------ */
.confirm { max-width: 760px; margin: 0 auto; padding: calc(50px * var(--site-space)) 0 80px; }
.confirm__mark { width: 66px; height: 66px; border-radius: 50%; background: var(--accent); color: var(--site-on-accent); display: grid; place-items: center; margin-bottom: 24px; }
.confirm h1 { font-size: clamp(26px, 3.3vw, 42px); line-height: 1; letter-spacing: -0.03em; }
.confirm .ref { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 18px 0 6px; }
.confirm .lede { margin-bottom: 30px; }
.order-box { border: 1px solid var(--line); border-radius: var(--site-radius); overflow: hidden; margin: 26px 0; }
.order-box__head { display: flex; justify-content: space-between; gap: 14px; padding: 16px 20px; background: color-mix(in srgb, var(--site-fg) 4%, transparent); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }
.order-box__row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-box__row:last-child { border-bottom: 0; }
.order-box__row span { color: var(--site-muted); }
.pay-instructions { display: grid; gap: 10px; margin-top: 8px; }
.pay-instructions div { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; }
.pay-instructions i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 9px; font-style: normal; }

/* Studio / agents --------------------------------------------------------- */
.studio-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-muted); }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: #b08968; box-shadow: 0 0 0 3px color-mix(in srgb, #b08968 20%, transparent); }
.conn.is-live i { background: #2e7d5b; box-shadow: 0 0 0 3px rgba(46,125,91,0.18); }

.studio { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(24px, 3vw, 46px); padding: calc(34px * var(--site-space)) 0 calc(60px * var(--site-space)); align-items: start; }
.brief {
  border: 1px solid var(--line); background: var(--site-surface);
  border-radius: var(--site-radius); padding: 22px;
  position: sticky; top: 104px;
}
.brief h2 { font-size: 24px; margin-bottom: 4px; }
.brief p { font-size: 11.5px; color: var(--site-muted); margin-bottom: 18px; }
.brief .field { margin-bottom: 11px; }
.brief__foot { margin-top: 16px; display: grid; gap: 8px; }
.brief__foot small { font-size: 10px; color: var(--site-muted); line-height: 1.5; }

.room { border-top: 1px solid var(--line); }
.room-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 6px; }
.room-head h2 { font-size: 28px; }
.room-head .kicker { margin-bottom: 6px; display: block; }
.agent {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px;
  opacity: 0.46; transition: opacity 400ms var(--ease);
}
.agent.is-active, .agent.is-done { opacity: 1; }
.agent__id {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px;
  position: relative;
}
.agent.is-active .agent__id { background: var(--accent); color: var(--site-on-accent); border-color: var(--accent); }
.agent.is-active .agent__id::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.94); opacity: 0.9; } 100% { transform: scale(1.22); opacity: 0; } }
.agent__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agent__head h3 { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; }
.agent__role { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-muted); }
.agent__state { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--site-muted); white-space: nowrap; }
.agent.is-active .agent__state { border-color: var(--accent); color: var(--accent); }
.agent.is-done .agent__state { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.agent__body { margin-top: 10px; font-size: 12.5px; color: var(--site-muted); }
.agent__out { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.agent__out:empty { display: none; }
.out-block h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.out-block p { font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
.out-block ul { margin: 0 0 12px; padding-left: 18px; font-size: 12.5px; line-height: 1.6; }
.out-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.pill { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; color: var(--site-muted); }
.pill--accent { border-color: var(--accent); color: var(--accent); }
.out-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 10px; }
.out-table th { text-align: left; font-weight: 500; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.out-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.out-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gate {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 16px; padding: 13px 14px;
  background: color-mix(in srgb, var(--accent) 6%, var(--site-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--site-radius);
}
.gate p { font-size: 11px; color: var(--site-muted); flex: 1 1 220px; }
.gate p b { color: var(--site-fg); font-weight: 500; }
.demo-note { font-size: 10.5px; color: var(--site-muted); border-left: 2px solid var(--accent); padding-left: 10px; margin-top: 10px; line-height: 1.55; }
.room-log { margin-top: 18px; font-size: 10px; letter-spacing: 0.04em; color: var(--site-muted); border-top: 1px solid var(--line); padding-top: 12px; max-height: 130px; overflow: auto; font-variant-numeric: tabular-nums; }
.room-log div { padding: 2px 0; }

/* Assistant --------------------------------------------------------------- */
.assistant { margin-top: calc(50px * var(--site-space)); border-top: 1px solid var(--line); padding-top: calc(40px * var(--site-space)); }
.assistant-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: clamp(24px, 3vw, 46px); align-items: start; }
.assistant-side h2 { font-size: 28px; margin: 8px 0 12px; }
.assistant-side p { font-size: 12.5px; color: var(--site-muted); margin-bottom: 18px; }
.suggest { display: grid; gap: 8px; }
.suggest button {
  text-align: left; background: transparent; border: 1px solid var(--line);
  border-radius: var(--site-radius); padding: 11px 13px; font-size: 11.5px; line-height: 1.5;
  transition: border-color var(--dur), background var(--dur);
}
.suggest button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.chat {
  border: 1px solid var(--line); background: var(--site-surface);
  border-radius: var(--site-radius); display: flex; flex-direction: column;
  min-height: 520px; overflow: hidden;
}
.chat__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__head b { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.chat__body { flex: 1; overflow: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; max-height: 460px; }
.msg { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; }
.msg__av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; letter-spacing: 0.05em; }
.msg--bot .msg__av { background: var(--ink); color: var(--paper); }
.msg--user { grid-template-columns: minmax(0,1fr) 30px; }
.msg--user .msg__av { background: var(--accent); color: var(--site-on-accent); order: 2; }
.msg--user .msg__text { order: 1; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); }
.msg__text { font-size: 12.5px; line-height: 1.65; padding: 12px 14px; border-radius: var(--site-radius); background: var(--site-bg); border: 1px solid var(--line); }
.msg__text p + p { margin-top: 8px; }
.msg__text strong { font-weight: 600; }
.msg__text ul { margin: 6px 0 0; padding-left: 18px; }
.msg__text li { margin: 3px 0; }
.chat__form { display: flex; gap: 8px; border-top: 1px solid var(--line); padding: 12px; }
.chat__form input { flex: 1; border: 1px solid var(--line); border-radius: var(--site-radius); padding: 10px 12px; font-size: 13px; outline: none; background: var(--site-bg); }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--site-muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* Settings dialog --------------------------------------------------------- */
dialog {
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: 0; background: var(--site-bg); color: var(--site-fg);
  width: min(520px, 92vw);
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}
dialog::backdrop { background: rgba(11,10,9,0.55); backdrop-filter: blur(2px); }
.dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog__head h2 { font-size: 22px; }
.dialog__body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.dialog__body p { font-size: 12px; color: var(--site-muted); line-height: 1.6; }
.dialog__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }

/* Toast ------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px);
  background: var(--ink); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: 0.04em;
  opacity: 0; pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease);
  z-index: 120; display: flex; align-items: center; gap: 8px;
  max-width: 88vw;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .studio { grid-template-columns: 1fr; }
  .brief { position: static; }
  .assistant-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 0.9fr 1.1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px var(--pad) 20px;
    background: var(--site-bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .burger { display: inline-grid; }
  .head-actions .btn--pill span.hide-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-overlay { position: relative; width: 100%; padding: 22px 0 0; bottom: auto; }
  .hero-figure { display: flex; flex-direction: column; }
  .hero-media { aspect-ratio: 4/3; }
  .hero-copy { padding-top: 0; }
  .hero-copy h2 { margin-top: 12px; }
  .rayons { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rayon:nth-child(4n) { border-right: 1px solid var(--line); }
  .rayon:nth-child(2n) { border-right: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 300px; }
  .split { grid-template-columns: 1fr; }
  .split__art { order: -1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail__art { max-width: 380px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .catalog-bar { top: 0; position: static; }
  .row { grid-template-columns: 38px minmax(0,1fr) auto; }
  .row__tag { display: none; }
  .agent-mini { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sheet { margin: 0; min-height: 100vh; border-radius: 0; }
  .brand { font-size: 23px; }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .cover { padding: 13px 11px; }
  .cover__title { font-size: 16px; }
  .cover__brand { display: none; }
  .card__title { font-size: 15px; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-facts strong { font-size: 20px; }
  .hero-facts span { font-size: 8px; letter-spacing: 0.1em; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .hero-overlay h1 { font-size: 24px; }
  .hero-media__label { font-size: 20px; top: 18px; left: 18px; }
  .cart-line { grid-template-columns: 64px minmax(0,1fr); }
  .cart-line__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-line__cov { width: 64px; }
  .section { padding: 44px 0; }
  .studio-toolbar { flex-direction: column; align-items: flex-start; }
  .head-actions { gap: 7px; }
  .head-actions:has([data-open-cart]) .btn--pill { display: none; }
  .brand small { display: none; }
  .lang-btn { padding: 0 8px; gap: 5px; }
  .lang-pop { width: 184px; }
}

/* Direction arabe / RTL --------------------------------------------------- */
html.lang-ar body,
html.lang-ar button,
html.lang-ar input,
html.lang-ar select,
html.lang-ar textarea {
  font-family: "IBM Plex Sans Arabic", var(--site-font);
}
html.lang-ar h1,
html.lang-ar h2,
html.lang-ar h3,
html.lang-ar h4,
html.lang-ar .brand {
  font-family: "IBM Plex Sans Arabic", var(--serif);
  font-weight: 500;
}
html.lang-ar * { letter-spacing: 0 !important; }
html.lang-ar body { font-size: 15.5px; line-height: 1.75; }
html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar h4 { line-height: 1.32; }
html.lang-ar .hero-overlay h1 { line-height: 1.14; }
html.lang-ar .kicker { letter-spacing: 0 !important; }

html[dir="rtl"] .btn .arrow,
html[dir="rtl"] .link-underline span,
html[dir="rtl"] .head-actions .arrow {
  display: inline-block;
  transform: scaleX(-1);
}
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .nav a::after { transform-origin: right; }
html[dir="rtl"] .cart-count { right: auto; left: -6px; }
html[dir="rtl"] .hero-media__label { left: auto; right: 26px; }
html[dir="rtl"] .hero-media__tag { right: auto; left: 24px; }
html[dir="rtl"] .hero-overlay { padding-left: 30px; padding-right: 0; }
html[dir="rtl"] .lang-btn__chev { transform: none; }
html[dir="rtl"] .crumbs span:first-child { transform: none; }
