/* ChinaBazar: feuille de style (mobile d'abord, propriétés logiques pour le RTL) */

/* Polices auto-hébergées (/fonts) */
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/tajawal-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/tajawal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/tajawal-500-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/tajawal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/tajawal-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/tajawal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jost-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jost-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/jost-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/jost-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/jost-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/jost-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- Tokens ----------
   Lacquer red + kraft carton: the wholesale warehouse, not the print shop. */
:root {
  --red: #9b1b1f;
  --red-deep: #6f1014;
  --red-tint: #fbeceb;
  --kraft-pale: #f4ead9;
  --kraft-line: #b98a4b;
  --kraft-ink: #5c4122;
  --ink: #241c19;
  --ink-2: #4b3f39;
  --muted: #6b5f57;
  --paper: #ffffff;
  --paper-2: #f3efe9;
  --line: #e3dbd0;
  --wa: #0d7a3b;
  --wa-deep: #095c2c;
  --warn-ink: #7a4300;
  --warn-bg: #fff3d6;
  --err: #b3261e;
  --display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --r-sm: 3px;
  --r-md: 6px;
  --container: 1240px;
  --gutter: 16px;
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--ink);
}
:root[lang="ar"] {
  --display: "Tajawal", "Jost", system-ui, sans-serif;
  --body: "Tajawal", "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 150px; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; inset-inline-start: 8px; inset-block-start: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-md); text-decoration: none;
}
.skip:focus { inset-block-start: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 2px solid transparent; border-radius: var(--r-md);
  font: 600 1rem/1.2 var(--display); text-decoration: none; cursor: pointer; text-align: center;
}
.btn--add { background: var(--red); color: #fff; }
.btn--add:hover { background: var(--red-deep); }
.btn--choose, .btn--ghost { background: var(--paper); color: var(--red); border-color: currentColor; }
.btn--choose:hover, .btn--ghost:hover { background: var(--red-tint); }
.btn--light { background: #fff; color: var(--red-deep); }
.btn--light:hover { background: var(--kraft-pale); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-deep); }
.btn--wa:disabled { background: #8f8780; cursor: not-allowed; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; border-radius: var(--r-md); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn:disabled { color: #b7aea6; cursor: not-allowed; background: transparent; }
.link-btn {
  background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #f3ece6; font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar__notice { min-width: 0; padding-block: 6px; line-height: 1.3; }
.topbar__wa { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; font-weight: 600; }
.topbar__wa .icon { width: 16px; height: 16px; }
.topbar__wa > span:first-of-type { display: none; }
.topbar__wa:hover { text-decoration: underline; }

.header { position: sticky; inset-block-start: 0; z-index: 20; background: var(--paper); border-block-end: 1px solid var(--line); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo basket" "search search";
  align-items: center; gap: 10px 12px; padding-block: 10px;
}
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.logo__word { font: 700 1.375rem/1 "Jost", var(--display); letter-spacing: -.01em; color: var(--ink); }
.search { grid-area: search; position: relative; }
.search__icon { position: absolute; inset-inline-start: 12px; inset-block-start: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding-block: 8px; padding-inline: 42px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2);
}
.search input:focus { background: var(--paper); border-color: var(--ink-2); }
.search input::placeholder { color: var(--muted); }
.basket-btn {
  grid-area: basket; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 12px;
  background: var(--red); color: #fff; border: 0; border-radius: var(--r-md); cursor: pointer; font: 600 1rem/1 var(--display);
}
.basket-btn:hover { background: var(--red-deep); }
.basket-btn__label { display: none; }
.basket-btn__count {
  min-width: 24px; padding: 3px 6px; border-radius: 999px; background: #fff; color: var(--red-deep);
  font: 700 .875rem/1.1 var(--body); text-align: center;
}
.catnav { border-block-start: 1px solid var(--line); }
.catnav__list {
  display: flex; gap: 8px; margin-block: 0; padding-block: 8px; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.catnav__list::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; min-height: 36px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Hero: a red band with a carton shipping label ---------- */
.hero { background: var(--red); color: #fff; }
.hero__inner { display: grid; gap: 24px; padding-block: 28px 34px; }
.hero__title { font-size: clamp(2rem, 8.5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; max-width: 14ch; }
:root[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.25; }
.hero__lead { margin-block: 14px 20px; max-width: 48ch; font-size: 1.0625rem; color: #fbe9e7; }
.hero__label {
  list-style: none; margin: 0; padding: 14px 18px; align-self: start;
  background: var(--kraft-pale); color: var(--ink);
  outline: 2px dashed var(--kraft-line); outline-offset: -8px;
  border-radius: var(--r-sm); font-weight: 600; rotate: -1.2deg;
}
.hero__label li { padding-block: 8px; padding-inline-start: 26px; position: relative; }
.hero__label li + li { border-block-start: 1px solid #e2d2b8; }
.hero__label li::before {
  content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 13px;
  width: 13px; height: 7px; border-inline-start: 3px solid var(--red); border-block-end: 3px solid var(--red);
  rotate: -45deg;
}
[dir="rtl"] .hero__label { rotate: 1.2deg; }
[dir="rtl"] .hero__label li::before { rotate: 45deg; }

/* ---------- Sections ---------- */
.catalogue, .how, .faq { padding-block: 32px; }
.catalogue:focus { outline: none; box-shadow: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.section-title { font-size: 1.625rem; font-weight: 700; letter-spacing: -.01em; }
.catalogue__count { color: var(--muted); font-size: .9375rem; }
.catalogue__empty { display: grid; justify-items: start; gap: 12px; padding: 24px; background: var(--paper-2); border-radius: var(--r-md); }
.notice { padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper-2); }
.notice--warn { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }

/* ---------- Catalogue grid: dense, 2 columns on phones ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid__item { display: flex; }
.card {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 10px; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
}
.card__link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card__media { display: block; aspect-ratio: 1; background: #f7f5f2; border-radius: var(--r-sm); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__name { font: 600 .9375rem/1.25 var(--display); }
.card__link:hover .card__name { text-decoration: underline; text-underline-offset: 3px; }
.card__price { font-size: .9375rem; color: var(--ink-2); }
.card__price strong { font: 700 1.125rem/1.1 var(--display); color: var(--red); }
.card__price--quote { color: var(--red-deep); font-weight: 600; }
/* The carton tag: MOQ and carton size, like a box stencil. */
.card__tag {
  display: flex; flex-wrap: wrap; gap: 2px 10px; margin-block-start: auto;
  padding: 5px 8px; background: var(--kraft-pale); border-block-start: 2px dashed var(--kraft-line);
  font-size: .8125rem; font-weight: 600; color: var(--kraft-ink); border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.card__action { width: 100%; min-height: 40px; padding-block: 8px; }

/* ---------- How to order (a real sequence, so it is numbered) ---------- */
.how { background: var(--paper-2); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-block: 4px; padding-inline-start: 52px; }
.step::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font: 700 1.125rem/1 "Jost", var(--display);
}
.step__title { font-size: 1.125rem; margin-block-end: 2px; }
.step p { color: var(--ink-2); max-width: 40ch; }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 820px; }
.faq__list { margin-block-start: 14px; border-block-start: 1px solid var(--line); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding-block: 14px; padding-inline-end: 32px; position: relative;
  font: 600 1.0625rem/1.3 var(--display); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; inset-block-start: 10px; font-size: 1.5rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-block-end: 16px; color: var(--ink-2); max-width: 65ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #e9e1da; padding-block: 28px; font-size: .9375rem; }
.footer__inner { display: grid; gap: 14px; }
.footer .logo__word { color: #fff; }
.footer__brand p { margin-block-start: 6px; max-width: 46ch; }
.footer__note { color: #d3c8be; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { color: #fff; font-weight: 600; }

/* ---------- Basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(36, 28, 25, .55); }
.drawer {
  --slide: 100%;
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 50;
  width: min(460px, 100%); display: flex; flex-direction: column;
  background: var(--paper); box-shadow: -12px 0 32px rgba(36, 28, 25, .25);
  animation: drawer-in .22s ease-out;
}
[dir="rtl"] .drawer { --slide: -100%; box-shadow: 12px 0 32px rgba(36, 28, 25, .25); }
@keyframes drawer-in { from { translate: var(--slide) 0; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-block: 8px; padding-inline: 16px 8px; border-block-end: 3px solid var(--red);
}
.drawer__title { font-size: 1.375rem; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 20px; }
.drawer__foot { padding: 12px 16px 14px; border-block-start: 1px solid var(--line); background: var(--paper-2); display: grid; gap: 8px; }
.drawer__notice { font-size: .8125rem; color: var(--muted); text-align: center; }
.basket-empty { display: grid; gap: 14px; justify-items: start; padding-block: 12px; }

.groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.group {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.group--invalid { border-color: var(--warn-ink); background: #fffbf1; }
.group__thumb { width: 56px; height: 56px; object-fit: contain; background: #f7f5f2; border-radius: var(--r-sm); }
.group__info { display: grid; align-content: start; gap: 2px; min-width: 0; }
.group__name { font: 600 1rem/1.25 var(--display); text-decoration: none; }
.group__name:hover { text-decoration: underline; }
.group__unit { font-size: .875rem; color: var(--muted); }
.lines { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.line__variant { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.line__row { display: flex; align-items: center; gap: 8px; }
.line__total { margin-inline-start: auto; font-weight: 600; white-space: nowrap; }
.line__total--quote { color: var(--red-deep); }
.line__remove { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid #c9bfb3; border-radius: var(--r-md); background: var(--paper); }
.stepper__btn { width: 40px; height: 40px; }
.stepper__input {
  width: 72px; min-height: 40px; border: 0; border-inline: 1px solid var(--line); text-align: center;
  font-weight: 600; background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.stepper__input::-webkit-inner-spin-button, .stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.group__problem, .group__nudge { grid-column: 1 / -1; font-size: .875rem; padding: 6px 8px; border-radius: var(--r-sm); }
.group__problem { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.group__nudge { background: var(--kraft-pale); color: var(--kraft-ink); }
.basket-clear { margin-block: 6px 4px; font-size: .9375rem; }

.checkout { display: grid; gap: 12px; margin-block-start: 14px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.checkout__title { font-size: 1.125rem; }
.field { display: grid; gap: 4px; }
.field__label { font-weight: 600; font-size: .9375rem; }
.field__req { color: var(--err); text-decoration: none; margin-inline-start: 2px; }
.field input, .field textarea, .confirm__message {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #a99d91; border-radius: var(--r-md); background: var(--paper);
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field__error { color: var(--err); font-size: .875rem; font-weight: 600; }
.checkout__privacy { font-size: .8125rem; color: var(--muted); }

.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 600 1.0625rem/1.2 var(--display); }
.total__value { font-size: 1.375rem; color: var(--red); white-space: nowrap; }
.total__note { font-size: .875rem; color: var(--muted); margin-block-start: -6px; }
.send-hint { font-size: .875rem; color: var(--ink-2); }

.confirm { display: grid; gap: 12px; }
.confirm__title { font-size: 1.375rem; color: var(--wa-deep); }
.confirm__title:focus { outline: none; box-shadow: none; }
.confirm__ref {
  display: inline-block; padding: 3px 10px; background: var(--kraft-pale); outline: 2px dashed var(--kraft-line); outline-offset: -3px;
  font: 700 1.125rem/1.3 "Jost", var(--display); letter-spacing: .02em; direction: ltr; unicode-bidi: isolate;
}
.confirm__text { color: var(--ink-2); }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm__status { font-size: .9375rem; font-weight: 600; color: var(--wa-deep); min-height: 1.4em; }
.confirm__message { min-height: 140px; font-size: .875rem; background: var(--paper-2); resize: vertical; }

/* ---------- Larger screens ---------- */
@media (min-width: 480px) {
  .topbar__wa > span:first-of-type { display: inline; }
  .basket-btn__label { display: inline; }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .card { padding: 10px 10px 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  html { scroll-padding-block-start: 130px; }
  .header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search basket"; gap: 24px; padding-block: 14px; }
  .search { max-width: 560px; width: 100%; justify-self: center; }
  .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; padding-block: 48px 52px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .catalogue, .how, .faq { padding-block: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1.3fr 1fr auto; align-items: start; gap: 32px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (forced-colors: active) {
  .btn, .chip, .basket-btn { border: 1px solid ButtonText; }
}

/* Confirmation: opening WhatsApp is the one thing left to do */
.confirm__open { min-height: 56px; font-size: 1.125rem; }
.confirm__hint { font-size: .875rem; color: var(--muted); margin-block-start: -4px; }
.notice--dismissible { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.notice--dismissible p { margin: 0; }
.notice--error { background: #fdecea; color: var(--err); font-weight: 600; }
.notice--error a { color: inherit; font-weight: 700; }

/* ---------- Product page ---------- */
.crumbs { padding-block: 14px 4px; font-size: .875rem; color: var(--muted); }
.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs__list li { min-width: 0; }
.crumbs__list li + li::before { content: "/"; margin-inline: 8px; color: #b7aea6; }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.product { display: grid; gap: 20px; padding-block: 10px 32px; }
.product:focus { outline: none; box-shadow: none; }
.product__gallery { display: grid; gap: 10px; min-width: 0; }
.product__figure { display: grid; place-items: center; aspect-ratio: 1; background: #f7f5f2; border-radius: var(--r-md); overflow: hidden; }
.product__photo { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.product__thumb { display: block; width: 68px; height: 68px; padding: 2px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #f7f5f2; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb[aria-current="true"] { border-color: var(--red); }
.product__info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.product__cat { font-size: .875rem; font-weight: 600; color: var(--red-deep); text-transform: uppercase; letter-spacing: .04em; }
:root[lang="ar"] .product__cat { text-transform: none; letter-spacing: 0; }
.product__name { font-size: clamp(1.625rem, 6vw, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
:root[lang="ar"] .product__name { letter-spacing: 0; line-height: 1.3; }
.product__price { font-size: 1.0625rem; color: var(--ink-2); }
.product__price strong { font: 700 1.625rem/1.1 var(--display); color: var(--red); }
.product__price--quote { color: var(--red-deep); font-weight: 600; }
.product__tag { margin-block-start: 0; justify-self: start; border-radius: var(--r-sm); }

.tiers { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tiers caption { text-align: start; font: 600 1rem/1.3 var(--display); padding-block-end: 6px; }
.tiers th, .tiers td { padding: 8px 10px; text-align: start; border-block-end: 1px solid var(--line); }
.tiers thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.tiers tbody th { font-weight: 400; }
.tiers td { font-weight: 700; color: var(--red-deep); white-space: nowrap; }

.buy { display: grid; gap: 14px; padding: 14px; background: var(--paper-2); border-radius: var(--r-md); border-block-start: 3px solid var(--red); }
.buy__label { font-weight: 600; font-size: .9375rem; padding: 0; }
.buy__variants { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.buy__variants legend { margin-block-end: 6px; }
.variant { position: relative; display: inline-flex; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid #c9bfb3; border-radius: 999px; background: var(--paper); font-weight: 600; }
.variant input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.variant input:focus-visible + span { box-shadow: var(--focus); }
.buy__qty { display: grid; gap: 6px; justify-items: start; }
.buy__hint, .buy__unit, .buy__pooled { font-size: .875rem; color: var(--muted); }
.buy__status { display: grid; gap: 4px; }
.buy__nudge { margin-block-start: 4px; }
.buy__add { min-height: 52px; font-size: 1.0625rem; }

.product__details { display: grid; gap: 10px; align-content: start; min-width: 0; }
.product__h2 { font-size: 1.25rem; margin-block-start: 6px; }
.product__desc { color: var(--ink-2); max-width: 65ch; }
.specs { width: 100%; max-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.specs th, .specs td { padding: 8px 10px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.specs th { width: 40%; font-weight: 600; color: var(--ink-2); }
.related { padding-block: 28px 40px; background: var(--paper-2); }
.related .section-title { margin-block-end: 14px; }

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 28px; padding-block: 16px 48px; }
  .product__gallery { grid-row: span 2; align-self: start; position: sticky; inset-block-start: 96px; }
  .product__thumb { width: 80px; height: 80px; }
}

/* ---------- 404 ---------- */
.header__inner--slim { grid-template-columns: 1fr; grid-template-areas: "logo"; }
.nf { padding-block: 40px 64px; }
.nf__inner { display: grid; gap: 32px; }
.nf__block { display: grid; gap: 12px; justify-items: start; max-width: 560px; }
.nf__block[lang="ar"] { font-family: "Tajawal", system-ui, sans-serif; }
.nf__block[lang="ar"] .nf__title { font-family: "Tajawal", system-ui, sans-serif; }
.nf__code { font: 700 4rem/1 "Jost", var(--display); color: var(--red); }
.nf__title { font-size: 1.625rem; }
.nf__lead { color: var(--ink-2); }
@media (min-width: 900px) { .nf__inner { grid-template-columns: 1fr 1fr; align-items: end; } }
