/* Master Cars — Option A «السوق» (Souq). One stylesheet for Arabic (RTL) and English (LTR):
   logical properties only (inline-start / inline-end), so nothing is written twice. */

:root {
  --navy-900: #0B2145;
  --navy: #193B6D;
  --navy-700: #24497F;
  --azure: #2F6FD6;
  --azure-600: #2459B3;
  --azure-50: #EBF2FD;
  --silver: #C3C9D2;
  --steel: #8993A3;
  --muted: #5B6577;
  --ink: #0B2145;
  --text: #1D2A40;
  --line: #E1E5EC;
  --line-2: #EDF0F5;
  --bg: #F3F5F9;
  --white: #FFFFFF;
  --ok: #1F7A4D;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 33, 69, .06), 0 2px 8px rgba(11, 33, 69, .05);
  --shadow-lg: 0 10px 30px rgba(11, 33, 69, .16);
  --font: "Cairo", "Dubai", "Segoe UI", Tahoma, sans-serif;
  --gutter: 16px;
  --hdr-h: 64px;
  --fab-space: 84px;   /* room under the page for the pinned WhatsApp pill (phones/tablets) */
  --sell-pill: rgba(47, 111, 214, .82);
}
html[lang="en"] { --font: "Roboto", "Segoe UI", Arial, "Cairo", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-size: 15px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azure); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.35; }
bdi { unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* icons */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--xs { width: 14px; height: 14px; }
.ic--lg { width: 26px; height: 26px; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }
.ic-flipback { transform: scaleX(-1); }
[dir="rtl"] .ic-flipback { transform: none; }

/* ---------- sample-data note (only while data.js holds the sample cars) ---------- */
.demo-note { background: #FFF6DB; color: #6A4B00; font-size: 12px; line-height: 1.4; border-bottom: 1px solid #F0DFA8; }
.demo-note .wrap { display: flex; align-items: center; gap: 6px; min-height: 28px; padding-block: 4px; }
.demo-note .ic { flex: none; }

/* ---------- header (CEO-approved 6 Nov 2026) ----------
   Inner pages: solid white, navy logo, navy links. Home page (.hdr--over): transparent over the cover photo with the
   white cut-out logo; app.js adds .is-solid after ~40 px of scrolling and it turns white like the inner pages. */
.hdr {
  position: sticky; top: 0; z-index: 40; background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 2px 14px rgba(11,33,69,.06);
  transition: background-color .22s ease, box-shadow .22s ease, color .22s ease;
}
.hdr__in { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { height: 36px; width: auto; }
.hdr__lw { display: none; }
.hdr__nav { display: none; }
.hdr__act { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.hdr__wa { display: none; }
.hdr__burger {
  width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; padding: 0;
  margin-inline-end: -9px; color: var(--ink); border-radius: 10px;
}
.hdr__burger i { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor; }

/* language switch: small pill «AR | EN», AR always on the left, the current one highlighted */
.lang {
  display: inline-flex; align-items: center; gap: 2px; direction: ltr; padding: 3px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); font: 600 12.5px/1 "Roboto", Arial, sans-serif; letter-spacing: .06em;
}
.lang a { padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,33,69,.16); }

/* home page, over the cover (until it scrolls) */
.hdr--over:not(.is-solid) { background: transparent; box-shadow: none; color: #fff; }
.hdr--over:not(.is-solid) .hdr__lw { display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.hdr--over:not(.is-solid) .hdr__ln { display: none; }
.hdr--over:not(.is-solid) .hdr__burger { color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
.hdr--over:not(.is-solid) .lang { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hdr--over:not(.is-solid) .lang a { color: rgba(255,255,255,.66); }
.hdr--over:not(.is-solid) .lang a:hover { color: #fff; }
.hdr--over:not(.is-solid) .lang a.is-on { background: rgba(255,255,255,.88); color: var(--navy-900); box-shadow: none; }

/* pinned WhatsApp pill (phones/tablets; desktop shows the number in the header) */
.fab {
  position: fixed; z-index: 60; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  background: var(--navy-900); color: #fff; border-radius: 999px; padding-block: 7px; padding-inline: 7px 18px;
  font-weight: 700; font-size: 14.5px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(11,33,69,.35), 0 0 0 1px rgba(255,255,255,.08);
}
.fab:hover { color: #fff; background: #08193A; }
.fab__ic { width: 34px; height: 34px; border-radius: 50%; background: #25D366; display: grid; place-items: center; flex: none; }
.fab__ic .ic { width: 19px; height: 19px; color: #fff; }
.fab__t { overflow: hidden; text-overflow: ellipsis; }

/* burger menu (drops down from the top) */
.menu { position: fixed; inset: 0; z-index: 90; }
.menu__scrim { position: absolute; inset: 0; background: rgba(11,33,69,.5); animation: fadein .18s ease-out; }
.menu__panel {
  position: absolute; top: 0; inset-inline: 0; max-height: 100%; overflow-y: auto; background: #fff;
  border-radius: 0 0 18px 18px; box-shadow: var(--shadow-lg); padding: 0 var(--gutter) 20px; animation: dropin .2s ease-out;
}
.menu__hd { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); }
.menu__logo img { height: 36px; width: auto; }
.menu__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--ink); margin-inline-end: -4px; }
.menu__links { display: grid; border-top: 1px solid var(--line-2); }
.menu__links .nav-a { display: flex; align-items: center; min-height: 54px; padding: 0 4px; font-size: 17px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-2); }
html[lang="en"] .menu__links .nav-a { font-weight: 600; }
.menu__links .nav-a.is-on { color: var(--azure); }
.menu__links .nav-a.is-sell { justify-content: center; margin-top: 14px; min-height: 48px; border: 0; border-radius: 999px; background: var(--sell-pill); color: #fff; font-size: 16px; }
.menu__lang { display: flex; justify-content: center; margin-top: 16px; }
.menu__lang .lang { font-size: 14px; }
.menu__lang .lang a { padding: 9px 18px; }
@keyframes dropin { from { transform: translateY(-18px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; text-align: center;
}
.btn--primary { background: var(--azure); color: #fff; }
.btn--primary:hover { background: var(--azure-600); }
.btn--navy, .btn--wa { background: var(--navy); color: #fff; }
.btn--navy:hover, .btn--wa:hover { background: var(--navy-900); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--silver); }
.btn--light { background: #fff; color: var(--navy); }
.btn--lg { min-height: 50px; font-size: 16px; padding: 0 20px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; flex: none; }
.btn--sm { min-height: 38px; font-size: 14px; padding: 0 12px; }

/* ---------- hero (cover «A»: BMW photo under navy gradients) + search card ----------
   The hero slides up under the transparent sticky header (negative margin = header height). */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--navy-900);
  margin-top: calc(var(--hdr-h) * -1); padding: calc(var(--hdr-h) + 34px) 0 190px;
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 62%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,33,69,.88) 0%, rgba(11,33,69,.35) 42%, rgba(11,33,69,.25) 70%, rgba(11,33,69,.9) 100%);
}
.hero__q { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: 0; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
html[lang="en"] .hero__q { font-size: 26px; font-weight: 700; }
.hero__sub { margin: 4px 0 0; color: #E3E8F0; font-size: 14.5px; text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.sbox-wrap { margin-top: -56px; position: relative; z-index: 2; }
.sbox {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px;
  border: 1px solid rgba(195,201,210,.5);
}
.seg {
  display: flex; background: var(--bg); border-radius: 10px; padding: 3px; gap: 2px;
  border: 1px solid var(--line);
}
.seg button {
  flex: 1 1 auto; border: 0; background: none; border-radius: 8px; padding: 7px 6px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; line-height: 1.3;
}
.seg button.is-on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11,33,69,.14); font-weight: 700; }
.sbox__fields { display: grid; gap: 10px; margin-top: 12px; }
.field {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 12px;
  background: #fff; border: 1px solid var(--silver); border-radius: var(--radius-sm); text-align: start;
}
.field:hover { border-color: var(--azure); }
.field__logo { width: 34px; height: 34px; border-radius: 8px; background: var(--azure-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.field__logo svg { width: 24px; height: 24px; }
.field__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.field__lbl { font-size: 12px; color: var(--muted); line-height: 1.3; }
.field__val { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.7; margin: -2px 0 -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field__val.is-ph { color: var(--steel); font-weight: 600; }
.field .ic { color: var(--steel); }
.field:disabled { background: #F7F8FB; cursor: not-allowed; }
.field:disabled .field__val { color: #A4ACB9; }
.field__clear { margin-inline-start: auto; }
.sbox__go .ic { width: 20px; height: 20px; }

/* ---------- sections ---------- */
.sec { padding: 22px 0 0; }
.sec__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec__hd h2 { font-size: 18px; font-weight: 800; }
html[lang="en"] .sec__hd h2 { font-weight: 700; }
.sec__hd a, .linkbtn { font-size: 14px; font-weight: 700; color: var(--azure); display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 0; }

/* make tiles (sideways on phones, grid on desktop) */
.makes-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86px; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.makes-row::-webkit-scrollbar { display: none; }
.mtile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 4px 8px;
  color: var(--ink); scroll-snap-align: start; text-align: center; min-height: 104px;
}
.mtile:hover { border-color: var(--azure); }
.mtile.is-on { border-color: var(--azure); box-shadow: 0 0 0 2px var(--azure) inset; }
.mlogo { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); }
.mlogo svg { max-width: 38px; max-height: 34px; width: 100%; height: 100%; }
.mtxt {
  display: grid; place-items: center; width: 40px; height: 30px; border-radius: 6px; background: var(--azure-50);
  color: var(--navy); font: 700 9px/1.05 "Roboto", Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-align: center; padding: 0 2px; word-break: break-word;
}
.mtile__name { font-size: 13px; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.mtile__count { font-size: 11.5px; color: var(--azure); font-weight: 700; line-height: 1.2; }
.mtile__count.is-order { color: var(--steel); font-weight: 600; }
.mtile--all { background: var(--azure-50); border-color: #D3E1F7; justify-content: center; }
.mtile--all .mlogo { color: var(--azure); }

/* quick chips */
.qchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 2px; }
.qchips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
  min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2;
}
.chip .ic { color: var(--azure); width: 18px; height: 18px; }
.chip:hover { border-color: var(--azure); }
.chip.is-on { background: var(--azure); border-color: var(--azure); color: #fff; }
.chip.is-on .ic { color: #fff; }
.chip .n { color: var(--muted); font-weight: 600; font-size: 13px; }
.chip.is-on .n { color: #DCE7FA; }
.chip--order { border-style: dashed; color: var(--navy); }
.chip--x { padding-inline-end: 8px; background: var(--azure-50); border-color: #CFDDF5; color: var(--navy); min-height: 34px; font-size: 13px; }
.chip--x .ic { color: var(--navy); width: 16px; height: 16px; }

/* ---------- car cards ---------- */
.grid { display: grid; gap: 10px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: var(--text); position: relative; cursor: pointer;
  display: flex; flex-direction: column;
}
.card:hover { border-color: #C8D3E3; }
.card__media { position: relative; display: block; background: #E9EDF3; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.2; padding: 4px 8px; border-radius: 6px;
  background: var(--navy); color: #fff; white-space: nowrap;
}
.badge--new { background: var(--azure); }
.badge--used { background: var(--navy); }
.badge--arr { background: #fff; color: var(--azure); box-shadow: inset 0 0 0 1px #BCD0F2; }
.pcount {
  position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(11,33,69,.72); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; line-height: 1.5;
}
.pcount .ic { width: 13px; height: 13px; }
.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card__title {
  color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.facts { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.facts span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.facts .ic { width: 14px; height: 14px; color: var(--steel); }
.price { color: var(--ink); font-weight: 800; font-size: 17px; line-height: 1.35; margin-top: 2px; }
html[lang="en"] .price { font-weight: 700; }
.price.is-ask { color: var(--navy); font-weight: 700; font-size: 14px; }
.price small { font-weight: 600; color: var(--muted); font-size: 12px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; color: var(--muted); font-size: 12px; margin-top: auto; padding-top: 4px; }
.meta span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.meta span:first-child { min-width: 0; white-space: normal; }   /* «Damascus · by appointment» wraps instead of being cut */
.meta .ic { width: 14px; height: 14px; }
.adno { color: var(--steel); font-size: 11.5px; font-family: "Roboto", Arial, sans-serif; letter-spacing: .02em; }
.card__act { display: flex; gap: 6px; padding: 0 12px 12px; }
.card__act .btn { min-height: 40px; font-size: 14px; padding: 0 10px; flex: 1; min-width: 0; }
.card__act .btn--icon { flex: none; width: 40px; }
/* two cards side by side on a phone: no room for the call icon (the car page has it); the WhatsApp button
   takes the whole row and its text may wrap to two lines instead of being cut */
@media (max-width: 419px) {
  .grid--2 .card__act .btn--icon { display: none; }
  .grid--2 .card__act .btn { white-space: normal; line-height: 1.25; padding: 4px 8px; gap: 6px; }
}
.card__act .btn--ghost .ic { color: var(--navy); }
.card .card__body { padding-bottom: 10px; }

/* horizontal card (results on phones): photo on the start side, buttons across the bottom */
.card--h { display: grid; grid-template-columns: 43% minmax(0, 1fr); grid-template-areas: "media body" "act act"; }
.card--h .card__media { grid-area: media; aspect-ratio: auto; min-height: 128px; }
.card--h .card__media img { position: absolute; inset: 0; }
.card--h .card__body { grid-area: body; padding: 10px 12px 8px; gap: 3px; }
.card--h .card__title { font-size: 14.5px; min-height: 0; }
.card--h .facts { gap: 0 8px; font-size: 12px; }
.card--h .price { font-size: 16px; margin-top: 0; }
.card--h .price.is-ask { font-size: 13.5px; }
.card--h .meta { padding-top: 2px; }
.card--h .badges { top: 6px; inset-inline-start: 6px; flex-direction: column; align-items: flex-start; }
.card--h .badge { font-size: 11px; padding: 3px 7px; }
.card--h .card__act { grid-area: act; padding: 10px 12px 12px; border-top: 1px solid var(--line-2); }
.card--h .card__act .btn { min-height: 40px; }

.rlist { display: grid; gap: 10px; }

/* promo banners */
.promo {
  border-radius: 14px; padding: 18px; display: grid; gap: 10px; position: relative; overflow: hidden;
}
.promo h3 { font-size: 18px; font-weight: 800; }
html[lang="en"] .promo h3 { font-weight: 700; }
.promo p { margin: 0; font-size: 14px; line-height: 1.6; }
.promo .btn { justify-self: start; }
.promo--order { background: #fff; border: 1px solid var(--line); }
.promo--order p { color: var(--muted); }
.promo--order .promo__ic { position: absolute; inset-inline-end: -10px; bottom: -14px; color: var(--azure-50); }
.promo--order .promo__ic svg { width: 120px; height: 120px; stroke-width: 1.2; }
.promo--sell { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; }
.promo--sell h3 { color: #fff; }
.promo--sell p { color: #D5DCE7; }
.promo--sell .promo__ic { position: absolute; inset-inline-end: -8px; bottom: -18px; color: rgba(255,255,255,.08); }
.promo--sell .promo__ic svg { width: 130px; height: 130px; stroke-width: 1.2; }
.promo > *:not(.promo__ic) { position: relative; z-index: 1; }
.promos { display: grid; gap: 12px; }
.home-lower { display: grid; gap: 22px; }
.home-lower h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }

/* how it works */
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.step__n {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--azure-50); color: var(--azure);
  display: grid; place-items: center; font: 700 15px/1 "Roboto", Arial, sans-serif;
}
.step h4 { font-size: 15px; font-weight: 700; }
.step p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* trust row */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.trust .ic { display: block; margin: 0 auto 6px; color: var(--azure); width: 24px; height: 24px; }

/* ---------- footer ---------- */
/* phones/tablets: the footer itself makes room for the pinned WhatsApp pill, so nothing is hidden under it */
.ftr { background: var(--navy-900); color: #C9D1DD; margin-top: 32px; padding: 26px 0 calc(22px + var(--fab-space) + env(safe-area-inset-bottom)); font-size: 14px; }
.ftr img { height: 40px; width: auto; }
.ftr p { margin: 10px 0 14px; color: #AEB8C8; }
.ftr__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.ftr__links a { color: #fff; font-weight: 600; }
.ftr__row { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: #D5DCE7; }
.ftr__row .ic { color: var(--silver); width: 18px; height: 18px; }
a.ftr__row { color: #D5DCE7; }
a.ftr__row:hover { color: #fff; }
.ftr small { display: block; border-top: 1px solid rgba(255,255,255,.1); margin-top: 16px; padding-top: 14px; color: #8D99AD; font-size: 12px; }

/* ---------- results ---------- */
.rbar { position: sticky; top: var(--hdr-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.rbar__in { display: flex; align-items: center; gap: 8px; height: 54px; }
.rbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--silver); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
}
.rbtn .ic { width: 18px; height: 18px; color: var(--navy); }
.rbtn__n { background: var(--azure); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font: 700 12px/20px "Roboto", Arial, sans-serif; padding: 0 6px; text-align: center; }
.rbar__count { margin-inline-start: auto; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.vtoggle { display: none; }
.fside { display: none; }
.rhead { padding: 14px 0 4px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.crumbs .ic { width: 13px; height: 13px; color: var(--steel); }
.rhead h1 { font-size: 21px; font-weight: 800; }
html[lang="en"] .rhead h1 { font-weight: 700; }
.rhead__sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.tab.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab .n { opacity: .75; font-weight: 600; margin-inline-start: 2px; }

.makebar {
  margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
}
.makebar__top { display: flex; align-items: center; gap: 10px; }
.makebar__logo { width: 42px; height: 42px; border-radius: 10px; background: var(--azure-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.makebar__logo svg { width: 30px; height: 30px; }
.makebar__name { font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.3; }
.makebar__name small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.makebar__chg { margin-inline-start: auto; }
.mchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -12px 0; padding: 0 12px 2px; }
.mchips::-webkit-scrollbar { display: none; }
.mchips .chip { min-height: 36px; font-size: 13.5px; padding: 0 12px; }
.mkchips { margin-top: 12px; }
.mkchip .mlogo { width: 22px; height: 22px; }
.mkchip .mlogo svg { max-width: 22px; max-height: 20px; }
.mkchip { padding-inline-start: 8px; }
.applied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.rcount-line { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; color: var(--muted); font-size: 13.5px; }
.rcount-line b { color: var(--ink); }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 18px 22px; text-align: center; }
.empty__art { width: 88px; height: 88px; margin: 0 auto 10px; border-radius: 50%; background: var(--azure-50); color: var(--azure); display: grid; place-items: center; }
.empty__art .ic { width: 46px; height: 46px; stroke-width: 1.5; }
.empty h2 { font-size: 19px; font-weight: 800; }
.empty p { color: var(--muted); margin: 6px auto 16px; max-width: 420px; font-size: 14.5px; }
.empty .btns { display: grid; gap: 8px; max-width: 320px; margin: 0 auto; }
.nf { margin-top: 18px; }
.nf h1 { font-size: 20px; font-weight: 800; }

/* ---------- 404 (static page, Arabic + English, no JavaScript) ---------- */
body.is-static { padding-bottom: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.is-static main { flex: 1 0 auto; }
.e404 { padding-block: 28px 8px; }
.e404__card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 18px 22px; text-align: center; max-width: 560px; margin: 0 auto; }
.e404__code { font: 800 56px/1 "Roboto", Arial, sans-serif; color: var(--azure); letter-spacing: 2px; }
.e404__card h1 { font-size: 20px; font-weight: 800; margin-top: 12px; }
.e404__card h2 { font-size: 18px; font-weight: 700; }
.e404__card p { color: var(--muted); margin: 6px auto 14px; max-width: 420px; font-size: 14.5px; }
.e404__en { border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 18px; font-family: "Roboto", "Segoe UI", Arial, sans-serif; }
.e404 .btns { display: grid; gap: 8px; max-width: 320px; margin: 0 auto; }
.more { display: flex; justify-content: center; margin-top: 14px; }

/* filter panel (sheet body on phones, sidebar on desktop) */
.fpanel { display: grid; gap: 0; }
.fsec { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.fsec:last-child { border-bottom: 0; }
.fsec h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
html[lang="en"] .fsec h4 { font-weight: 700; }
.fsec h4 small { font-weight: 600; color: var(--muted); font-size: 12px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip { min-height: 36px; font-size: 13.5px; padding: 0 12px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sel {
  width: 100%; min-height: 44px; border: 1px solid var(--silver); border-radius: var(--radius-sm); background: #fff;
  padding: 0 12px; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238993A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 10px center; padding-inline-end: 34px;
}
html[dir="ltr"] .sel { background-position: right 10px center; }
.input {
  width: 100%; min-height: 44px; border: 1px solid var(--silver); border-radius: var(--radius-sm); background: #fff; padding: 0 12px; color: var(--ink);
}
.input:focus, .sel:focus { outline: 2px solid rgba(47,111,214,.35); border-color: var(--azure); }
.search-in { position: relative; display: block; }
.search-in .ic { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 12px; color: var(--steel); }
.search-in .input { padding-inline-start: 40px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 13px; font-weight: 600; min-height: 36px; }
html[dir="rtl"] .sw { padding: 4px 6px 4px 12px; }
.sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11,33,69,.18); }
.sw.is-on { border-color: var(--azure); box-shadow: 0 0 0 1px var(--azure) inset; color: var(--navy); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 44px; height: 26px; border-radius: 999px; background: var(--silver); position: relative; flex: none; transition: background .15s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: inset-inline-start .15s; }
.switch input:checked + .switch__ui { background: var(--azure); }
.switch input:checked + .switch__ui::after { inset-inline-start: 21px; }
.fmake { display: flex; align-items: center; gap: 10px; }
.fmake .field { min-height: 48px; }

/* ---------- sheet (bottom sheet on phones, dialog on desktop) ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(11,33,69,.5); }
.sheet__panel {
  position: relative; width: 100%; max-height: 88%; background: #fff; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line-2); }
.sheet__hd::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: #D6DBE3; }
.sheet__hd h3 { font-size: 17px; font-weight: 800; flex: 1; display: flex; align-items: center; gap: 8px; }
html[lang="en"] .sheet__hd h3 { font-weight: 700; }
.sheet__x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.sheet__bd { overflow-y: auto; padding: 4px 16px 16px; flex: 1; overscroll-behavior: contain; }
.sheet__ft { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.sheet__ft .btn--primary { flex: 1; }
.sheet .mlogo-h { width: 30px; height: 30px; color: var(--navy); display: grid; place-items: center; }
.sheet .mlogo-h svg { width: 28px; height: 26px; }

/* pickers */
.pk-sec { font-size: 13px; color: var(--muted); font-weight: 700; margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-grid .mtile { min-height: 100px; }
.pk-list { display: grid; }
.pk-row {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line-2);
  background: none; text-align: start; width: 100%; color: var(--ink); font-size: 15px; font-weight: 600;
}
.pk-row:last-child { border-bottom: 0; }
.pk-row .nm { flex: 1; min-width: 0; }
.pk-row .nm small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; font-family: "Roboto", Arial, sans-serif; }
.pk-row .ct { color: var(--azure); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pk-row .ct.is-order { color: var(--steel); font-weight: 600; font-size: 12.5px; }
.pk-row.is-on { color: var(--azure); }
.pk-row.is-on .nm::after { content: ""; }
.pk-row .ic { color: var(--steel); }
.pk-row.is-zero .nm { color: var(--muted); font-weight: 500; }
.radio { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid var(--line-2); font-weight: 600; cursor: pointer; }
.radio input { accent-color: var(--azure); width: 20px; height: 20px; }

/* ---------- detail ---------- */
.dwrap { padding-top: 0; }
.dside { display: none; }
.gal { position: relative; background: #0E1A2E; margin-inline: calc(var(--gutter) * -1); }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.gal__count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(11,33,69,.75); color: #fff; font: 600 12.5px/1 "Roboto", Arial, sans-serif; padding: 6px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; direction: ltr; }
.gal__count .ic { width: 14px; height: 14px; }
.gal__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.gal__dots i.is-on { background: #fff; }
.gal__nav { display: none; }
.gal__thumbs { display: none; }
.gal .badges { top: 12px; inset-inline-start: 12px; }
.dhead { padding: 12px 0 0; }
.dhead h1 { font-size: 21px; font-weight: 800; line-height: 1.4; margin-top: 2px; }
html[lang="en"] .dhead h1 { font-weight: 700; }
.dhead__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.dhead__row .adno { font-size: 13px; }
.sharebtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; min-height: 34px; }
.sharebtn .ic { width: 16px; height: 16px; }
.cbox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; }
.cbox__title { display: none; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; margin-bottom: 12px; }
.cbox__title h2 { font-size: 21px; font-weight: 800; line-height: 1.4; }
html[lang="en"] .cbox__title h2 { font-weight: 700; }
.cbox__title .dhead__row { display: flex; }
.cbox__price { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.3; }
html[lang="en"] .cbox__price { font-weight: 700; }
.cbox__price.is-ask { font-size: 20px; color: var(--navy); }
.cbox__note { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cbox__btns { display: grid; gap: 8px; margin-top: 12px; }
.cbox__seller { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 12px; }
.cbox__seller img { width: 44px; height: 44px; border-radius: 10px; }
.cbox__seller b { display: block; color: var(--ink); font-size: 14.5px; }
.cbox__seller span { color: var(--muted); font-size: 12.5px; }
.kfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.kf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; text-align: center; min-width: 0; }
.kf .ic { color: var(--azure); width: 22px; height: 22px; margin: 0 auto 4px; display: block; }
.kf b { display: block; color: var(--ink); font-size: 14px; line-height: 1.7; margin: -2px 0 -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kf span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; font-size: 14px; line-height: 1.6; }
.notice .ic { flex: none; margin-top: 2px; }
.notice--info { background: var(--azure-50); color: var(--navy); border: 1px solid #D3E1F7; }
.dsec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; }
.dsec h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
html[lang="en"] .dsec h2 { font-weight: 700; }
.dsec p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.75; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hl li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.hl .ic { color: var(--ok); flex: none; margin-top: 2px; width: 18px; height: 18px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: start; padding: 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { color: var(--muted); font-weight: 500; width: 44%; padding-inline-end: 10px; }
.spec td { color: var(--ink); font-weight: 700; }
.spec td small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.spec .swatches { gap: 6px; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11,33,69,.2); vertical-align: -3px; margin-inline-end: 4px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .card { scroll-snap-align: start; }

/* ---------- sell page ---------- */
.shero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 22px 0 26px; }
.shero h1 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.35; }
html[lang="en"] .shero h1 { font-weight: 700; }
.shero p { color: #D5DCE7; margin: 6px 0 16px; font-size: 14.5px; }
.shero__btns { display: grid; gap: 8px; }
.shero__btns .btn--light .ic { color: var(--navy); }
.shero__btns .btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.nsteps { display: grid; gap: 10px; }
.nstep { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; }
.nstep__n { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 17px/1 "Roboto", Arial, sans-serif; }
.nstep h3 { font-size: 15.5px; font-weight: 800; }
html[lang="en"] .nstep h3 { font-weight: 700; }
.nstep p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ph { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 4px 8px; text-align: center; }
.ph svg { width: 56px; height: 40px; margin: 0 auto 4px; display: block; color: var(--navy); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph b { display: block; font-size: 12px; line-height: 1.35; color: var(--ink); font-weight: 700; }
.ph span { display: block; font: 600 10.5px/1.2 "Roboto", Arial, sans-serif; color: var(--steel); margin-top: 2px; }
.privacy { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.privacy h2 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.privacy h2 .ic { color: var(--azure); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; margin-bottom: 8px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--steel); transition: transform .15s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .grid--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sbox__fields { grid-template-columns: 1fr 1fr; }
  .sbox__go { grid-column: 1 / -1; }
  .promos { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-bottom: 210px; }
  .hero__q, html[lang="en"] .hero__q { font-size: 30px; }
  .pgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .nsteps { grid-template-columns: 1fr 1fr; }
  .pk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { align-items: center; }
  .sheet__panel { max-width: 640px; border-radius: 18px; max-height: 84%; }
  .sheet__hd::before { display: none; }
  .card--h { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "media body" "media act"; }
  .card--h .card__media { min-height: 195px; }
  .card--h .card__act { border-top: 0; padding-top: 0; max-width: 360px; }
  .hscroll { grid-auto-columns: 32%; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .ftr { padding-bottom: 22px; }
  .fab, .hdr__burger { display: none; }
  :root { --hdr-h: 78px; }
  .hdr__logo img { height: 44px; }
  .hdr__nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 32px; }
  .hdr__nav .nav-a { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; padding: 8px 12px; border-radius: 8px; }
  .hdr__nav .nav-a:hover, .hdr__nav .nav-a.is-on { background: #EEF1F6; }
  .hdr__nav .nav-a.is-sell { background: var(--sell-pill); color: #fff; border-radius: 999px; padding: 8px 18px; margin-inline-start: 8px; }
  .hdr__nav .nav-a.is-sell:hover, .hdr__nav .nav-a.is-sell.is-on { background: var(--azure); }
  .hdr__act { gap: 18px; }
  .hdr__wa { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; }
  .hdr__wa .ic { width: 20px; height: 20px; }
  .hdr__wa:hover { color: var(--azure); }
  .hdr--over:not(.is-solid) .hdr__nav .nav-a:not(.is-sell) { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
  .hdr--over:not(.is-solid) .hdr__nav .nav-a:not(.is-sell):hover { background: rgba(255,255,255,.12); }
  .hdr--over:not(.is-solid) .hdr__wa { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

  /* cover: navy from the text side (right in Arabic, left in English) */
  .hero { padding: calc(var(--hdr-h) + 66px) 0 240px; }
  .hero__img { object-position: left 60%; }
  .hero::before {
    background: linear-gradient(to left, rgba(11,33,69,.94) 0%, rgba(11,33,69,.62) 36%, rgba(11,33,69,.12) 78%),
                linear-gradient(to bottom, rgba(11,33,69,.55) 0%, rgba(11,33,69,0) 30%);
  }
  html[dir="ltr"] .hero::before {
    background: linear-gradient(to right, rgba(11,33,69,.94) 0%, rgba(11,33,69,.62) 36%, rgba(11,33,69,.12) 78%),
                linear-gradient(to bottom, rgba(11,33,69,.55) 0%, rgba(11,33,69,0) 30%);
  }
  html[dir="ltr"] .hero__img { transform: scaleX(-1); }   /* English: the car faces the text side too */
  .hero__q, html[lang="en"] .hero__q { font-size: 38px; }
  .hero__sub { font-size: 16.5px; }
  .sbox-wrap { margin-top: -96px; }
  /* search card: the tabs stay one horizontal row above the fields (they used to stack vertically) */
  .sbox { padding: 18px 20px 20px; }
  .sbox .seg { display: inline-flex; width: auto; max-width: 100%; }
  .sbox .seg button { flex: none; padding: 7px 24px; }
  .sbox__fields { grid-template-columns: 1fr 1fr 230px; margin-top: 14px; align-items: stretch; }
  .sbox__go { grid-column: auto; }
  .sbox__go.btn--lg { min-height: 60px; }
  .field { min-height: 60px; }
  .sec { padding-top: 34px; }
  .sec__hd h2 { font-size: 22px; }
  .makes-row { grid-auto-flow: row; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .mtile { min-height: 112px; }
  .qchips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .grid--2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .home-lower { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; }
  .promos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ftr__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .ftr__links { grid-template-columns: 1fr; }

  .rbar { top: var(--hdr-h); }
  .rlayout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
  .fside { display: block !important; position: sticky; top: calc(var(--hdr-h) + 66px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 8px; max-height: calc(100vh - var(--hdr-h) - 82px); overflow-y: auto; margin-top: 16px; }
  .fside .fsec h4 { font-size: 14px; }
  .rbtn[data-open="filters"] { display: none; }
  .vtoggle { display: inline-flex; gap: 4px; }
  .vtoggle button { border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
  .vtoggle button.is-on { color: var(--azure); border-color: var(--azure); }
  .rlist.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rlist:not(.is-grid) { gap: 12px; }
  .card--h { grid-template-columns: 300px minmax(0, 1fr); }
  .card--h .card__media { min-height: 225px; }
  .card--h .card__title { font-size: 17px; }
  .card--h .facts { font-size: 13.5px; }

  .dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-top: 18px; }
  .gal { margin-inline: 0; border-radius: 14px; overflow: hidden; }
  .gal__nav { display: grid; place-items: center; position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: var(--shadow); }
  .gal__nav--prev { inset-inline-start: 12px; }
  .gal__nav--next { inset-inline-end: 12px; }
  .gal__thumbs { display: flex; gap: 8px; margin-top: 8px; }
  .gal__thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 110px; background: none; }
  .gal__thumbs button.is-on { border-color: var(--azure); }
  .gal__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .dhead h1, .dhead__row { display: none; }
  .cbox__title { display: block; }
  .dside { display: block; position: sticky; top: calc(var(--hdr-h) + 16px); }
  .d-price-m { display: none; }
  .dside .cbox { margin-top: 0; }
  .cbox__btns { display: grid; }
  .hscroll { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .shero { padding: 44px 0; }
  .shero h1 { font-size: 34px; }
  .shero__btns { grid-template-columns: auto auto; justify-content: start; }
  .sell-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .nsteps { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
