/* ==========================================================================
   CL Cars
   Tokens → base → layout → components → pages
   Direction-agnostic: logical properties throughout (RTL default, LTR for EN)
   ========================================================================== */

:root {
  --ink: #14213D;          /* navy ink: text, plate border */
  --ink-2: #3A4760;        /* secondary text */
  --mute: #5E6A7E;         /* tertiary text, ≥4.5:1 on white */
  --plate: #2B5BA8;        /* primary action: plate blue */
  --plate-deep: #1D4383;
  --sky: #8CC4EA;          /* Egyptian private-plate band */
  --sky-soft: #DCEBF7;
  --amber: #F2A900;        /* offers only */
  --amber-soft: #FFF3D1;
  --steel: #E9EDF2;        /* page background */
  --steel-2: #DDE3EA;
  --paper: #FFFFFF;
  --line: #C9D2DD;
  --line-soft: #E1E6EC;
  --ok: #1C7A4C;
  --ok-soft: #E1F2E9;
  --danger: #B3322A;

  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;

  /* modular scale, ratio 1.25 on 16px */
  --t-xs: .8rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.25rem;
  --t-xl: 1.5625rem; --t-2xl: 1.953rem; --t-3xl: 2.441rem; --t-4xl: 3.052rem;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over component display rules such as `.grid-products { display: grid }` */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--steel); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: var(--plate); text-underline-offset: 3px; }
a:hover { color: var(--plate-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(var(--t-2xl), 4.4vw, var(--t-4xl)); }
h2 { font-size: clamp(var(--t-xl), 3vw, var(--t-2xl)); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 1em; max-width: 68ch; }
.num, .price, .sku { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
html[lang="ar"] [data-lang="en"], html[lang="en"] [data-lang="ar"] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-block-end: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }
.more-link { gap: 6px; }
.more-link svg { width: 16px; height: 16px; transition: transform .15s; }
html[dir="rtl"] .more-link svg { transform: scaleX(-1); }
.more-link:hover svg { transform: translateX(3px); }
html[dir="rtl"] .more-link:hover svg { transform: scaleX(-1) translateX(3px); }
.lead { font-size: var(--t-lg); color: var(--ink-2); }
.muted { color: var(--mute); }

/* ---------- buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm);
  text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--plate); color: #fff; }
.btn-primary:hover { background: var(--plate-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22325A; color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #E09D00; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); position: relative;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { color: var(--danger); border-color: var(--danger); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

.field { display: grid; gap: 6px; }
.field > span, .field-label { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper); transition: border-color .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--plate); outline: none; box-shadow: 0 0 0 3px rgba(43, 91, 168, .18); }
.select { appearance: none; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
html[dir="rtl"] .select { background-position: left 14px center; }
.field-error { color: var(--danger); font-size: var(--t-sm); min-height: 0; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-block-start: 4px; accent-color: var(--plate); flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* option cards: radios for delivery / payment */
.options { display: grid; gap: 10px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer;
}
.option input { accent-color: var(--plate); width: 18px; height: 18px; margin-block-start: 4px; flex: none; }
.option strong { display: block; font-family: var(--f-display); font-weight: 600; }
.option small { color: var(--mute); }
.option:has(input:checked) { border-color: var(--plate); box-shadow: inset 0 0 0 1px var(--plate); background: #F6F9FD; }
.option .option-price { margin-inline-start: auto; font-weight: 600; white-space: nowrap; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #D5DCE8; font-size: var(--t-xs); }
.topbar .container { display: flex; align-items: center; gap: 20px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .tb-spacer { flex: 1; }
.lang-btn { background: none; border: 1px solid #44526F; color: #fff; border-radius: 999px; padding: 2px 12px; font-size: var(--t-xs); font-family: var(--f-body); }
html[lang="ar"] .lang-btn { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang-btn:hover { border-color: #fff; }
@media (max-width: 760px) { .topbar .tb-hide { display: none; } }

#site-header { display: contents; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.navbar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 9px; border: 2.5px solid var(--ink); background: #fff;
  display: grid; grid-template-rows: 12px 1fr; overflow: hidden;
}
.logo-mark i { background: var(--sky); border-bottom: 2px solid var(--ink); }
.logo-mark b { display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; line-height: 1; }
.logo-text { display: grid; line-height: 1.15; }
.logo-text strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; }
.logo-text small { color: var(--mute); font-size: var(--t-xs); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { white-space: nowrap; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 500; font-size: var(--t-sm); }
.main-nav a:hover { background: var(--steel); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--plate); box-shadow: inset 0 -2px 0 var(--plate); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.badge {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 2px solid #fff;
}
.badge[data-count="0"] { display: none; }
.car-pill {
  display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 7px; overflow: hidden;
  text-decoration: none; color: var(--ink); font-size: var(--t-xs); font-weight: 600; height: 42px; background: #fff;
}
.car-pill i { width: 8px; background: var(--sky); border-inline-end: 2px solid var(--ink); }
.car-pill span { display: grid; place-items: center; padding: 0 12px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.car-pill:hover { color: var(--plate); }
.menu-btn { display: none; }
.search-form { position: relative; flex: 1; max-width: 340px; }
.search-form .input { padding-inline-start: 40px; min-height: 42px; background: var(--steel); border-color: transparent; }
.search-form svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mute); }

@media (max-width: 1320px) { .search-form { max-width: 220px; } }
@media (max-width: 1180px) {
  .main-nav, .search-form { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 560px) {
  .logo-text small, .car-pill { display: none; }
  .nav-tools { gap: 6px; }
  .nav-tools .hide-xs { display: none; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 33, 61, .5); }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 88vw); background: var(--paper);
  padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
  animation: drawer-in .22s ease-out;
}
@keyframes drawer-in { from { transform: translateX(var(--drawer-from, -100%)); } }
html[dir="rtl"] .drawer-panel { --drawer-from: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: grid; }
.drawer nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-weight: 500; }
.drawer .search-form { display: block; max-width: none; }

/* ---------- plate (the signature element) ---------- */
.plate {
  --pb: 3px;
  background: #fff; border: var(--pb) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line), 0 18px 40px -22px rgba(20, 33, 61, .45);
  overflow: hidden;
}
.plate-band {
  background: var(--sky); border-bottom: var(--pb) solid var(--ink);
  display: flex; justify-content: space-between; align-items: center; padding: 4px 18px;
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-md); letter-spacing: .02em;
}
.plate-band [lang="en"] { letter-spacing: .2em; }
.plate-cells { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; }
.plate-cell { position: relative; padding: 12px 18px 14px; display: grid; gap: 2px; }
.plate-cell + .plate-cell { border-inline-start: var(--pb) solid var(--ink); }
.plate-cell label { font-size: var(--t-xs); font-weight: 600; color: var(--mute); }
.plate-cell select {
  appearance: none; border: 0; background: transparent; padding: 0; min-height: 44px; width: 100%;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--ink); cursor: pointer;
}
.plate-cell select:has(> option[value=""]:checked) { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; color: var(--mute); }
.plate-cell select:disabled { color: #A7B1C0; cursor: not-allowed; }
/* the open list must not inherit the plate's display size */
.plate-cell select option { font-family: var(--f-body); font-size: var(--t-md); font-weight: 500; color: var(--ink); }
@supports (appearance: base-select) {
  .plate-cell select, .plate-cell select::picker(select) { appearance: base-select; }
  .plate-cell select::picker-icon { display: none; }
  .plate-cell select::picker(select) {
    margin-block-start: 8px; padding: 6px; max-height: 320px; overflow-y: auto; background: var(--paper);
    border: 1.5px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px -18px rgba(20, 33, 61, .45);
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .plate-cell select option { padding: 8px 12px; border-radius: var(--r-sm); line-height: 1.5; }
  .plate-cell select option::checkmark { display: none; }
  .plate-cell select option:hover, .plate-cell select option:focus-visible { background: var(--sky-soft); outline: none; }
  .plate-cell select option:checked { background: var(--ink); color: #fff; }
}
.plate-cell select:focus { outline: none; }
.plate-cell:focus-within { background: var(--sky-soft); }
.plate-cell::after {
  content: ""; position: absolute; inset-inline-end: 16px; bottom: 22px; width: 9px; height: 9px;
  border-inline-end: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
@media (max-width: 640px) {
  .plate-cells { grid-template-columns: 1fr 1fr; }
  .plate-cell:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; border-top: var(--pb) solid var(--ink); }
}

/* small plate used in garage cards and header */
.mini-plate {
  display: inline-grid; grid-template-rows: auto 1fr; min-width: 168px; border: 2.5px solid var(--ink);
  border-radius: 9px; overflow: hidden; background: #fff; font-family: var(--f-display); direction: rtl;
}
.mini-plate .mp-band { background: var(--sky); border-bottom: 2.5px solid var(--ink); display: flex; justify-content: space-between; padding: 0 10px; font-size: 11px; font-weight: 700; line-height: 18px; }
.mini-plate .mp-band span:last-child { letter-spacing: .18em; direction: ltr; }
.mini-plate .mp-body { display: grid; grid-template-columns: 1fr 1fr; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.mini-plate .mp-body span { display: grid; place-items: center; padding: 10px 8px; letter-spacing: .12em; }
.mini-plate .mp-body span + span { border-inline-start: 2.5px solid var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--steel); border-bottom: 1px solid var(--line); }
.hero .container { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 84px) clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 17ch; margin-block-end: 18px; font-weight: 800; }
html[lang="ar"] .hero h1 { max-width: 19ch; }
.hero .lead { max-width: 52ch; margin-block-end: 34px; }
.hero-form { max-width: 820px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-block-start: 26px; }
.hero-actions .btn { min-height: 52px; padding: 0 26px; font-size: var(--t-md); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--t-sm); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--ok); }
.hero-drawing {
  position: absolute; z-index: -1; inset-inline-end: -40px; top: 50%; transform: translateY(-50%);
  width: min(580px, 48vw); color: #B9C5D4; pointer-events: none;
}
@media (max-width: 900px) { .hero-drawing { opacity: .45; inset-inline-end: -220px; } }
.hero-image { height: auto; max-height: 92%; object-fit: contain; }
.hero + .section { padding-block-start: clamp(28px, 4vw, 48px); }

/* page-load moment: plate characters settle in */
@media (prefers-reduced-motion: no-preference) {
  .hero .plate { animation: plate-in .7s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .hero .plate-cell { animation: cell-in .45s ease-out both; }
  .hero .plate-cell:nth-child(1) { animation-delay: .55s; }
  .hero .plate-cell:nth-child(2) { animation-delay: .65s; }
  .hero .plate-cell:nth-child(3) { animation-delay: .75s; }
}
@keyframes plate-in { from { opacity: 0; transform: translateY(18px) rotate(-1.2deg); } }
@keyframes cell-in { from { opacity: 0; } }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 36px 30px; }
.page-head h1 { font-size: clamp(var(--t-xl), 3.4vw, var(--t-3xl)); margin-block-end: 6px; }
.page-head p { color: var(--ink-2); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-sm); color: var(--mute); margin-block-end: 12px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--plate); }

/* ---------- part drawings ---------- */
.drawing-bg {
  background-color: #F5F8FB;
  background-image:
    linear-gradient(rgba(43, 91, 168, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 91, 168, .07) 1px, transparent 1px);
  background-size: 16px 16px;
}
.part-svg { color: var(--ink); }
.part-svg .acc { color: var(--plate); }
/* uploaded product photos take the drawing's place */
.part-photo { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cart-thumb .part-photo, .pd-views .part-photo { padding: 4%; }
.pcard-media, .qv-media, .pd-main, .cart-thumb { overflow: hidden; }
/* an uploaded category icon sits where the drawing would, sized by the same rules */
.part-icon { display: block; object-fit: contain; aspect-ratio: 1; height: auto; }
.pcard-media .part-icon { width: 52%; }
.pd-main .part-icon { width: 58%; }
.pd-views .part-icon { width: 50%; }
.qv-media .part-icon { width: 56%; }
.cart-thumb .part-icon { width: 62%; }
.empty .part-icon { width: 72px; margin: 0 auto 14px; }
.part-icon.part-view-1 { transform: scale(1.5); }
.part-icon.part-view-2 { transform: rotate(-12deg); }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(var(--cat-cols, 9), minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
/* hairlines on one side and below each tile; the ones on the outer edge are clipped, so any number of rows works */
.cat {
  display: grid; justify-items: center; gap: 10px; padding: 22px 8px 18px; text-decoration: none; color: var(--ink);
  text-align: center; font-size: var(--t-sm); font-weight: 600; box-shadow: 1px 0 0 var(--line-soft), 0 1px 0 var(--line-soft);
}
.cats, .days, .ptabs, .acc-nav { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cat svg, .cat .part-icon { width: 58px; height: 58px; }
.cat:hover { background: var(--sky-soft); color: var(--ink); }
.cat:hover .part-svg { color: var(--plate-deep); }
/* tablet: separate tiles in an edge-to-edge rail, no visible scrollbar; the peeking tile signals more */
@media (max-width: 1000px) {
  .cats {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    border: 0; border-radius: 0; background: none; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scroll-padding-inline: var(--gutter);
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 112px; scroll-snap-align: start; padding: 16px 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: none; }
  .cat svg, .cat .part-icon { width: 48px; height: 48px; }
}
/* phone: the categories fit as a 3-column grid, nothing to scroll */
@media (max-width: 560px) {
  .cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; margin-inline: 0; padding: 0; }
  .cat { padding: 14px 6px 12px; gap: 6px; font-size: var(--t-xs); line-height: 1.4; }
  .cat svg, .cat .part-icon { width: 40px; height: 40px; }
}

/* ---------- product card: styled as a parts-box label ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
.pcard:hover { border-color: #9AA8BB; transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(20, 33, 61, .4); }
.pcard-label {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px;
  border-bottom: 1px dashed var(--line); font-size: var(--t-xs); color: var(--mute);
}
.pcard-label .sku { direction: ltr; unicode-bidi: isolate; font-weight: 600; color: var(--ink-2); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; text-decoration: none; }
.pcard-media svg { width: 52%; height: auto; }
.pcard-off {
  position: absolute; top: 42px; inset-inline-start: 10px; background: var(--amber); color: var(--ink);
  font-weight: 700; font-size: var(--t-xs); padding: 3px 9px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.pcard-tools { position: absolute; top: 40px; inset-inline-end: 8px; display: grid; gap: 6px; }
.pcard-tools .icon-btn { width: 38px; height: 38px; }
.pcard-tools .qv { opacity: 0; transition: opacity .15s; }
.pcard:hover .qv, .pcard:focus-within .qv { opacity: 1; }
@media (hover: none) { .pcard-tools .qv { opacity: 1; } }
.pcard-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-brand { font-size: var(--t-xs); font-weight: 700; color: var(--plate); }
.pcard-name { font-family: var(--f-display); font-weight: 600; font-size: var(--t-md); line-height: 1.45; margin: 0; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { color: var(--plate); }
.fit { display: flex; align-items: flex-start; gap: 6px; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.5; }
.fit svg { width: 14px; height: 14px; flex: none; margin-block-start: 2px; color: var(--mute); }
.fit.yes { color: var(--ok); font-weight: 600; }
.fit.yes svg { color: var(--ok); }
.pcard-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-block-start: auto; padding-block-start: 10px; }
.price { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.1; }
.price small { font-size: var(--t-xs); font-weight: 500; color: var(--mute); }
.price-old { display: block; font-size: var(--t-xs); color: var(--mute); text-decoration: line-through; font-weight: 400; font-family: var(--f-body); }
.add-btn { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; flex: none; }
.add-btn:hover { background: var(--plate); }
.add-btn svg { width: 20px; height: 20px; }

/* ---------- offers band ---------- */
.offers { background: var(--amber-soft); border-block: 1px solid #F3DC9C; }
.offers-layout > div > p { color: var(--ink-2); }
.offers-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.countdown { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 22px; }
.countdown p { color: #C9D2E3; font-size: var(--t-sm); margin-block-end: 12px; }
.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-grid div { background: #22325A; border-radius: var(--r-sm); padding: 10px 6px; text-align: center; }
.cd-grid b { display: block; font-family: var(--f-display); font-size: var(--t-2xl); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-grid span { font-size: var(--t-xs); color: #C9D2E3; }
.countdown .btn { margin-block-start: 18px; }
.offers-rail { position: relative; min-width: 0; }
.offers-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: max(220px, calc((100% - 32px) / 3)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-block: 6px 18px; margin-block: -6px -18px; /* room for the card hover lift */
}
.offers-track::-webkit-scrollbar { display: none; }
.offers-track .pcard { scroll-snap-align: start; border-color: rgba(20, 33, 61, .25); }
.rail-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border-color: var(--ink); box-shadow: 0 8px 20px -8px rgba(20, 33, 61, .55); transition: opacity .15s;
}
.rail-btn:hover { background: var(--ink); color: #fff; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-prev { inset-inline-start: -16px; }
.rail-next { inset-inline-end: -16px; }
.rail-next svg, html[dir="rtl"] .rail-prev svg { transform: scaleX(-1); }
html[dir="rtl"] .rail-next svg { transform: none; }
@media (max-width: 900px) { .offers-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .offers-track { grid-auto-columns: 72%; gap: 10px; }
  .rail-btn { display: none; }
}

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 22px; }

/* ---------- service price board ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.board { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.board table { width: 100%; border-collapse: collapse; }
.board th { text-align: start; font-size: var(--t-xs); color: var(--mute); font-weight: 600; padding: 12px 18px; border-bottom: 2px solid var(--ink); background: #F6F8FA; }
.board td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.board tr { position: relative; transition: background-color .15s; }
.board tbody tr:hover { background: var(--sky-soft); }
.board tr:last-child td { border-bottom: 0; }
.board .svc-link { color: var(--ink); text-decoration: none; }
.board .svc-link::after { content: ""; position: absolute; inset: 0; } /* stretch the link over the row */
.board .svc-link:focus-visible { outline: none; }
.board tr:has(.svc-link:focus-visible) { outline: 3px solid var(--plate); outline-offset: -3px; }
.board td:first-child strong { display: block; font-family: var(--f-display); font-weight: 600; }
.board td:first-child small { color: var(--mute); font-size: var(--t-xs); }
.board .c-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.board .c-price { font-weight: 700; font-family: var(--f-display); }
.board .c-act { text-align: end; white-space: nowrap; color: var(--plate); font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
.board .c-act svg { display: inline; width: 16px; height: 16px; vertical-align: -3px; margin-inline-start: 4px; transition: transform .15s; }
html[dir="ltr"] .board .c-act svg { transform: scaleX(-1); }
.board tbody tr:hover .c-act svg { transform: translateX(-3px); }
html[dir="ltr"] .board tbody tr:hover .c-act svg { transform: scaleX(-1) translateX(-3px); }
.board .c-book { opacity: 0; transition: opacity .15s; }
.board tbody tr:hover .c-book, .board tr:has(.svc-link:focus-visible) .c-book { opacity: 1; }

/* booking aside: dark panel that stays beside the long board */
.svc-aside {
  background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 26px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.svc-aside h3 { color: #fff; margin-block-end: 20px; }
.svc-aside-foot { margin: 16px 0 0; font-size: var(--t-xs); color: #C9D2E3; text-align: center; max-width: none; }
.svc-aside-foot a { color: #fff; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; position: relative; padding-block-end: 18px; }
.steps li:last-child { padding-block-end: 0; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--sky); background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: #2F4069; }
.steps strong { display: block; font-family: var(--f-display); font-weight: 600; margin-block-start: 6px; }
.steps p { margin: 0; color: #C9D2E3; font-size: var(--t-sm); }

@media (max-width: 1000px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-aside { position: static; }
  /* four steps side by side on tablets, the line runs horizontally */
  .svc-aside .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 0; }
  .steps li:not(:last-child)::after { inset-inline-start: 48px; inset-inline-end: -10px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps strong { margin: 0; }
  .svc-aside .btn-block { width: auto; }
  .svc-aside-foot { text-align: start; }
}
@media (max-width: 640px) {
  .board thead { display: none; }
  .board tr { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .board tr:last-child { border-bottom: 0; }
  .board td { padding: 0; border: 0; }
  .board td:first-child { grid-column: 1 / 4; }
  .board .c-price { grid-row: 2; grid-column: 1; font-size: var(--t-sm); }
  .board .c-act { grid-row: 1 / span 2; grid-column: 4; }
  .board .c-book { display: none; }
  .board .c-act svg { width: 20px; height: 20px; margin: 0; }
  /* compact vertical steps on phones */
  .svc-aside { padding: 20px; }
  .svc-aside .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 32px 1fr; gap: 12px; padding-block-end: 14px; }
  .steps li::before { width: 32px; height: 32px; font-size: var(--t-sm); }
  .steps li:not(:last-child)::after { inset-inline: 15px auto; top: 32px; bottom: 0; width: 2px; height: auto; }
  .steps strong { margin-block-start: 3px; font-size: var(--t-sm); }
  .steps p { font-size: var(--t-xs); }
  .svc-aside .btn-block { width: 100%; }
}

/* ---------- makes grid ---------- */
/* 14 makes + the "missing" tile = 15: 5 and 3 columns both fill every row */
.makes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .makes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.make {
  position: relative; display: grid; align-content: start; gap: 2px; padding: 16px 16px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .2s;
}
.make:hover { border-color: var(--ink); box-shadow: 0 10px 22px -16px rgba(20, 33, 61, .45); }
.make-name { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); color: var(--ink); text-decoration: none; line-height: 1.3; }
.make-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card opens the make */
.make:hover .make-name { color: var(--plate); }
.make-count { font-size: var(--t-xs); color: var(--mute); }
.make-models { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 10px; padding-block-start: 10px; border-top: 1px dashed var(--line); }
.make-models a { font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.make-models a:hover { color: var(--plate); text-decoration: underline; }
.make-missing { place-content: center; justify-items: center; text-align: center; gap: 4px; border-style: dashed; background: transparent; text-decoration: none; color: var(--ink-2); font-size: var(--t-sm); }
.make-missing svg { width: 26px; height: 26px; color: var(--ok); margin-block-end: 4px; }
.make-missing b { color: var(--plate); font-family: var(--f-display); font-weight: 600; }
.make-missing:hover { border-color: var(--ok); color: var(--ink-2); }
/* phone: compact 3-up tiles, name + count only */
@media (max-width: 560px) {
  .makes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .make { padding: 12px 10px; text-align: center; justify-items: center; }
  .make-name { font-size: var(--t-sm); }
  .make-models { display: none; }
  .make-missing { grid-column: 1 / -1; grid-auto-flow: column; gap: 8px; padding: 12px; }
  .make-missing svg { width: 20px; height: 20px; margin: 0; }
}

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.visit-info { padding: clamp(24px, 4vw, 40px); }
.visit-info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 20px 0 26px; }
.visit-info dt { color: var(--mute); font-size: var(--t-sm); }
.visit-info dd { margin: 0; font-weight: 500; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map {
  position: relative; min-height: 320px; background: #E4EAF0; overflow: hidden;
  background-image:
    linear-gradient(28deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(-62deg, transparent 48.5%, #fff 48.5%, #fff 51.5%, transparent 51.5%),
    linear-gradient(90deg, transparent 70%, #fff 70%, #fff 72%, transparent 72%),
    linear-gradient(0deg, transparent 30%, #F6F8FA 30%, #F6F8FA 31.5%, transparent 31.5%);
}
.map-pin { position: absolute; top: 44%; inset-inline-start: 48%; display: grid; justify-items: center; gap: 6px; transform: translate(-50%, -100%); }
html[dir="rtl"] .map-pin { transform: translate(50%, -100%); }
.map-pin span { background: var(--ink); color: #fff; padding: 6px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.map-pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--plate); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--plate); }
.map-label { position: absolute; font-size: var(--t-xs); color: var(--mute); font-weight: 600; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C3CCDB; margin-block-start: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 36px; }
.ft-grid h3 { color: #fff; font-size: var(--t-md); margin-block-end: 14px; }
.ft-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.site-footer .logo { color: #fff; margin-block-end: 14px; }
.site-footer .logo-text small { color: #9FAAC0; }
.site-footer .logo-mark { border-color: #fff; }
.site-footer .logo-mark i { border-color: #fff; }
.site-footer .logo-mark b { color: var(--ink); }
.ft-bottom { border-top: 1px solid #2A3A5E; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--t-xs); }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px 72px; }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: var(--t-md); margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--plate); font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 3px; }
.fgroup { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 10px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > h3 { font-size: var(--t-sm); margin: 0; }
.fgroup .check { font-size: var(--t-sm); align-items: center; }
.fgroup .check input { margin: 0; }
.fgroup .check .cnt { margin-inline-start: auto; color: var(--mute); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-row .input { min-height: 40px; padding: 6px 10px; }
.filters-apply { display: none; padding: 14px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--paper); }
.my-car-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sky-soft); font-size: var(--t-sm); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-height: 42px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 16px; }
.active-filters .chip { background: var(--sky-soft); border-color: transparent; }
.active-filters .chip svg { width: 14px; height: 14px; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 56px 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty p { margin-inline: auto; color: var(--ink-2); }
.empty svg { width: 72px; height: 72px; margin: 0 auto 14px; color: var(--mute); }
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 70; max-height: none; border-radius: 0; display: none; top: 0; }
  .filters.open { display: block; }
  .filters-apply { display: block; }
}

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 28px 56px; align-items: start; }
.pd-media { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); position: sticky; top: calc(var(--header-h) + 16px); }
.pd-main { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.pd-main svg { width: 58%; }
.pd-views { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pd-views button { aspect-ratio: 4 / 3; border: 0; background: #fff; display: grid; place-items: center; border-inline-end: 1px solid var(--line); padding: 10px; }
.pd-views button:last-child { border-inline-end: 0; }
.pd-views button svg { width: 50%; }
.pd-views button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--plate); background: var(--sky-soft); }
.pd-label { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-sm); color: var(--mute); margin-block-end: 10px; }
.pd-label b { color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.pd h1 { font-size: clamp(var(--t-xl), 3vw, var(--t-3xl)); margin-block-end: 10px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.rating svg { width: 16px; height: 16px; color: var(--amber); fill: currentColor; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-block: 18px; }
.pd-price .price { font-size: var(--t-3xl); }
.pd-price .price-old { display: inline; font-size: var(--t-md); }
.save-tag { background: var(--amber); color: var(--ink); padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: var(--t-sm); }
.fit-check { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-block: 16px; background: var(--paper); }
.fit-check.yes { border-color: var(--ok); background: var(--ok-soft); }
.fit-check.no { border-color: var(--amber); background: var(--amber-soft); }
.fit-check svg { width: 24px; height: 24px; flex: none; }
.fit-check.yes svg { color: var(--ok); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); height: 46px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 1.2rem; }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; min-width: 160px; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--plate); flex: none; }
.ptabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
.ptabs button { background: none; border: 0; padding: 12px 16px; font-family: var(--f-display); font-weight: 600; color: var(--mute); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.ptab-panel { padding-block: 22px; }
.spec-table, .fit-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec-table th, .spec-table td, .fit-table th, .fit-table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); text-align: start; font-size: var(--t-sm); }
.spec-table th { width: 40%; color: var(--mute); font-weight: 500; background: #F8FAFC; }
.fit-table thead th { background: #F6F8FA; color: var(--mute); font-weight: 600; border-bottom: 2px solid var(--ink); }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } .pd-media { position: static; } }

/* ---------- quick view dialog ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--paper); color: var(--ink); }
dialog.modal::backdrop { background: rgba(20, 33, 61, .55); }
@media (prefers-reduced-motion: no-preference) { dialog.modal[open] { animation: modal-in .2s ease-out; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { display: grid; place-items: center; min-height: 340px; border-inline-end: 1px solid var(--line); }
.qv-media svg { width: 56%; }
.qv-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.qv-body h2 { font-size: var(--t-xl); margin: 0; }
.qv-body p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
@media (max-width: 680px) { .qv-grid { grid-template-columns: 1fr; } .qv-media { min-height: 200px; border-inline-end: 0; border-bottom: 1px solid var(--line); } }

/* ---------- cart / checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-block: 28px 72px; }
@media (max-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-pad { padding: 22px; }
.panel h2 { font-size: var(--t-lg); }
.panel + .panel { margin-block-start: 18px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 96px; aspect-ratio: 1; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line-soft); }
.cart-thumb svg { width: 62%; }
.cart-line h3 { font-size: var(--t-md); margin: 0 0 2px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-meta { font-size: var(--t-xs); color: var(--mute); display: flex; gap: 12px; flex-wrap: wrap; }
.cart-meta .sku { direction: ltr; unicode-bidi: isolate; }
.cart-ctrl { display: flex; align-items: center; gap: 14px; margin-block-start: 10px; }
.cart-ctrl .qty { height: 38px; }
.cart-line .price { text-align: end; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; }
  .cart-line .price { grid-column: 2; text-align: start; }
}
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-rows { display: grid; gap: 10px; margin: 0 0 16px; }
.sum-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.sum-rows dt { color: var(--ink-2); }
.sum-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; margin-block-end: 18px; }
.sum-total span { font-family: var(--f-display); font-weight: 700; }
.ship-meter { margin-block-end: 18px; font-size: var(--t-sm); }
.ship-meter .bar { height: 8px; border-radius: 99px; background: var(--steel-2); overflow: hidden; margin-block-start: 8px; }
.ship-meter .bar i { display: block; height: 100%; background: var(--plate); border-radius: inherit; }
.coupon-row { display: flex; gap: 8px; margin-block-end: 16px; }
.coupon-row .input { min-height: 42px; }
.mini-lines { display: grid; gap: 12px; margin-block-end: 16px; padding-block-end: 16px; border-bottom: 1px solid var(--line-soft); }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: var(--t-sm); }
.mini-line .cart-thumb { width: 52px; }
.co-section { padding: 22px; border-bottom: 1px solid var(--line-soft); }
.co-section:last-child { border-bottom: 0; }
.co-section h2 { display: flex; align-items: center; gap: 12px; margin-block-end: 16px; }
.co-section h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: var(--t-sm); }
.success { text-align: center; padding: 48px 24px; }
.success .tick { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success .tick svg { width: 36px; height: 36px; }
.success p { margin-inline: auto; }
.success .order-no { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); padding: 8px 18px; border: 2px dashed var(--line); border-radius: var(--r-sm); margin-block: 6px 18px; direction: ltr; }

/* ---------- booking ---------- */
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc-pick .option { flex-direction: row; }
.svc-pick .option small { display: block; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 6px; margin-block-end: 16px; }
.day {
  flex: 0 0 74px; display: grid; justify-items: center; gap: 0; padding: 10px 4px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--paper); line-height: 1.35;
}
.day small { font-size: var(--t-xs); color: var(--mute); }
.day b { font-family: var(--f-display); font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] small { color: #C9D2E3; }
.day:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); font-variant-numeric: tabular-nums; font-weight: 600; }
.slot[aria-pressed="true"] { background: var(--plate); border-color: var(--plate); color: #fff; }
.slot:disabled { background: var(--steel); color: #9BA6B6; cursor: not-allowed; border-style: dashed; font-weight: 400; }
.car-choice { display: flex; flex-wrap: wrap; gap: 12px; }
.car-radio { display: block; cursor: pointer; }
.car-radio input { position: absolute; opacity: 0; }
.car-radio .mini-plate { transition: box-shadow .15s; }
.car-radio input:checked + .car-card { box-shadow: 0 0 0 3px var(--plate); }
.car-radio input:focus-visible + .car-card { outline: 3px solid var(--plate); outline-offset: 3px; }
.car-card { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--paper); }
.car-card .car-name { font-size: var(--t-sm); font-weight: 600; }

/* ---------- account / garage ---------- */
.acc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px 72px; }
.acc-nav { display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; position: sticky; top: calc(var(--header-h) + 16px); }
.acc-nav button { text-align: start; background: none; border: 0; padding: 11px 14px; border-radius: var(--r-sm); font-weight: 500; display: flex; justify-content: space-between; }
.acc-nav button:hover { background: var(--steel); }
.acc-nav button[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .acc-layout { grid-template-columns: minmax(0, 1fr); }
  .acc-nav { position: static; display: flex; overflow-x: auto; }
  .acc-nav button { white-space: nowrap; }
}
.garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.garage-car { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 12px; justify-items: start; }
.garage-car.is-active { border-color: var(--plate); box-shadow: inset 0 0 0 1px var(--plate); }
.garage-car h3 { margin: 0; font-size: var(--t-md); }
.garage-car .row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.tag-active { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; color: var(--plate); }
.tag-active::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--plate); }

/* ---------- login / register ---------- */
.auth-layout { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 380px); justify-content: center; gap: 28px; align-items: start; padding-block: 48px 80px; }
.auth-card { padding: clamp(22px, 4vw, 36px); }
.auth-card h1 { font-size: clamp(var(--t-xl), 3vw, var(--t-2xl)); margin-block-end: 6px; }
.auth-card > .muted { margin-block: 0 24px; }
.auth-form { display: grid; gap: 16px; }
.auth-form .btn-block { margin-block-start: 4px; }
.form-alert:empty { display: none; }
.form-alert { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #FBEAE8; color: var(--danger); font-size: var(--t-sm); font-weight: 500; border-inline-start: 4px solid var(--danger); }
.pass-wrap { position: relative; display: block; }
/* password inputs are always dir="ltr", so the toggle sits on the physical right in both languages */
.pass-wrap .input { padding-right: 50px; }
.pass-toggle { position: absolute; inset-block: 0; right: 0; width: 46px; display: grid; place-items: center; background: none; border: 0; color: var(--mute); cursor: pointer; }
.pass-toggle svg { width: 20px; height: 20px; }
.pass-toggle:hover, .pass-toggle[aria-pressed="true"] { color: var(--plate); }
.auth-layout--wide { grid-template-columns: minmax(0, 660px) minmax(0, 320px); }
.reg-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reg-steps li { display: flex; align-items: center; gap: 10px; padding-block-end: 10px; border-bottom: 3px solid var(--line-soft); color: var(--mute); font-weight: 600; font-size: var(--t-sm); }
.reg-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--steel); color: var(--ink-2); font-size: var(--t-xs); flex: none; }
.reg-steps li[aria-current] { color: var(--ink); border-color: var(--plate); }
.reg-steps li[aria-current] b { background: var(--plate); color: #fff; }
.reg-steps li.done { color: var(--ok); border-color: var(--ok); }
.reg-steps li.done b { background: var(--ok-soft); color: var(--ok); }
.reg-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.reg-step[hidden] { display: none; }
#reg-s3 { display: grid; gap: 16px; }
#reg-s3[hidden] { display: none; }
.reg-note { margin: 0; font-size: var(--t-sm); }
.reg-car { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; align-items: center; padding: 16px; background: var(--steel); border-radius: var(--r-md); }
.reg-car .input, .reg-car .select { background-color: var(--paper); }
.reg-plate { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.reg-plate .mini-plate { width: 100%; }
.reg-plate > .muted svg { width: 64px; height: 64px; opacity: .35; }
.plate-pair { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.reg-actions { display: flex; justify-content: space-between; gap: 10px; }
.reg-actions .btn-primary { flex: 1; max-width: 280px; }
.reg-actions .btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .reg-actions .btn-ghost svg { transform: scaleX(-1); }
@media (max-width: 640px) {
  .reg-car { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .reg-plate { order: -1; max-width: 200px; justify-self: center; }
  .reg-plate:has(> .muted) { display: none; }
}
.auth-switch { margin: 22px 0 0; padding-block-start: 18px; border-top: 1px solid var(--line-soft); text-align: center; color: var(--ink-2); font-size: var(--t-sm); }
.auth-switch a { font-weight: 600; color: var(--plate); }
.auth-aside { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 28px; border-top: 8px solid var(--sky); position: sticky; top: calc(var(--header-h) + 16px); }
.auth-aside h2 { color: #fff; font-size: var(--t-lg); margin-block-end: 18px; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-perks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.auth-perks svg { width: 22px; height: 22px; flex: none; color: var(--sky); margin-block-start: 2px; }
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); padding-block: 28px 56px; }
  .auth-aside { position: static; }
}
.add-car { border: 1.5px dashed var(--line); background: transparent; border-radius: var(--r-md); min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.add-car:hover { border-color: var(--plate); color: var(--plate); }
.add-car svg { width: 28px; height: 28px; }
.brand-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; padding: 2px; }
.brand-picker .chip { justify-content: center; border-radius: var(--r-sm); min-height: 44px; }
.model-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.plate-input { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-sm); }
.order-row:last-child { border-bottom: 0; }
.status-pill { padding: 3px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--plate-deep); font-size: var(--t-xs); font-weight: 600; }
.status-pill.is-done { background: var(--ok-soft); color: var(--ok); }
.status-pill.is-cancelled { background: #FBEAE8; color: var(--danger); }

/* ---------- account pages served by the app ---------- */
.acc-nav a { text-align: start; padding: 11px 14px; border-radius: var(--r-sm); font-weight: 500; display: flex; justify-content: space-between; color: inherit; text-decoration: none; }
.acc-nav a:hover { background: var(--steel); }
.acc-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.acc-nav form { display: contents; }
.acc-nav .acc-logout { color: var(--danger); border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--r-sm) var(--r-sm); margin-block-start: 4px; }
.acc-nav .acc-logout:hover { background: #FBEAE8; }
@media (max-width: 860px) {
  .acc-nav a { white-space: nowrap; }
  .acc-nav .acc-logout { border-top: 0; margin: 0; }
}
.inline-form { display: inline; margin: 0; }
.order-link { color: inherit; text-decoration: none; }
.order-link:hover b { color: var(--plate); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-block-end: 22px; }
.order-head h2 { margin: 0 0 4px; }
.order-head p { margin: 0; }
.order-detail { padding-block: 18px; }
.order-detail .summary h3 { font-size: var(--t-sm); color: var(--mute); margin-block: 0 6px; }
.order-detail .summary p { margin-block: 0 16px; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.track-steps li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: var(--t-sm); font-weight: 600; color: var(--mute); position: relative; }
.track-steps li::before { content: ""; position: absolute; top: 15px; inset-inline: -50% 50%; height: 3px; background: var(--line-soft); }
.track-steps li:first-child::before { display: none; }
.track-steps li.done::before { background: var(--ok); }
.track-steps b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--steel); color: transparent; position: relative; }
.track-steps b svg { width: 18px; height: 18px; }
.track-steps li.done { color: var(--ink); }
.track-steps li.done b { background: var(--ok); color: #fff; }
.track-steps li[aria-current="step"] b { box-shadow: 0 0 0 4px var(--ok-soft); }
@media (max-width: 640px) {
  .track-steps { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .track-steps li { grid-auto-flow: column; justify-content: start; text-align: start; }
  .track-steps li::before { display: none; }
}

/* ---------- content pages (about / policies) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-xl); margin-block: 1.8em .5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-block-start: 0; }
.prose h3 { font-size: var(--t-md); margin-block: 1.4em .4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-block-end: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1em 1.4em; background: var(--paper); font-size: var(--t-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.prose th { background: #F6F8FA; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding-block: 36px 80px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: var(--t-sm); }
.toc h2 { font-size: var(--t-sm); color: var(--mute); margin-block-end: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--plate); border-color: var(--plate); }
.doc-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 4vw, 44px); }
.doc-meta { color: var(--mute); font-size: var(--t-sm); margin-block-end: 24px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; } }

.about-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-figure { border: 1px solid var(--line); border-radius: var(--r-md); aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.about-figure svg { width: 80%; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(var(--facts, 4), 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.facts div { padding: 22px; border-inline-end: 1px solid var(--line-soft); }
.facts div:last-child { border-inline-end: 0; }
.facts b { display: block; font-family: var(--f-display); font-size: var(--t-xl); }
.facts span { color: var(--ink-2); font-size: var(--t-sm); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

/* milestones: year · rail with a stop per milestone · card; the latest stop is filled */
.milestones-head { margin-block-end: 28px; }
.milestones-head p { color: var(--ink-2); margin: 6px 0 0; }
.milestones { --year-w: 84px; --rail-w: 32px; list-style: none; padding: 0; margin: 0 0 8px; }
.milestones > li { position: relative; display: grid; grid-template-columns: var(--year-w) var(--rail-w) 1fr; padding-block-end: 22px; }
.milestones > li::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--year-w) + var(--rail-w) / 2 - 1px); width: 2px; background: var(--line); }
.milestones > li:first-child::before { inset-block-start: 22px; }
.milestones > li:last-child::before { inset-block-end: auto; height: 22px; }
.milestones > li:only-child::before { display: none; }
.milestones > li::after { content: ""; position: absolute; inset-block-start: 15px; inset-inline-start: calc(var(--year-w) + var(--rail-w) / 2 - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--plate); box-sizing: border-box; }
.milestones > li.is-latest::after { background: var(--plate); box-shadow: 0 0 0 5px var(--sky-soft); }
.milestone-year { grid-column: 1; padding-block-start: 9px; font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: var(--plate); font-variant-numeric: tabular-nums; }
.milestone-card { grid-column: 3; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.milestones > li.is-latest .milestone-card { border-color: var(--plate); box-shadow: 0 6px 18px -12px rgba(43, 91, 168, .6); }
.milestone-card h3 { font-size: var(--t-md); margin: 0 0 4px; }
.milestone-card p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.milestone-tag { display: inline-block; margin-block-end: 6px; padding: 2px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--plate-deep); font-size: var(--t-xs); font-weight: 600; }
.milestones.is-animated > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.milestones.is-animated > li::after { transform: scale(.4); transition: transform .4s ease .15s; }
.milestones.is-animated > li.is-in { opacity: 1; transform: none; }
.milestones.is-animated > li.is-in::after { transform: none; }
@media (max-width: 560px) {
  .milestones { --year-w: 0px; --rail-w: 28px; }
  .milestones > li { grid-template-columns: var(--rail-w) 1fr; }
  .milestone-year { grid-column: 2; padding-block: 8px 6px; }
  .milestone-card { grid-column: 2; }
}
.values h3 { font-size: var(--t-md); }
.values p { color: var(--ink-2); font-size: var(--t-sm); margin: 0; }
@media (max-width: 860px) { .about-hero, .values { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-inline-end: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); } }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; padding-block: 28px 72px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; }
.contact-card svg { width: 22px; height: 22px; color: var(--plate); flex: none; margin-block-start: 3px; }
.contact-card h3 { font-size: var(--t-sm); color: var(--mute); margin: 0; font-family: var(--f-body); font-weight: 600; }
.contact-card p { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
html[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-size: var(--t-sm); display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px -10px rgba(20, 33, 61, .6); pointer-events: auto; }
.toast svg { width: 18px; height: 18px; color: #7FD1A6; }
.toast a { color: var(--sky); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in .2s ease-out; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- phone refinements ---------- */
@media (max-width: 560px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-label .sku { display: none; }
  .pcard-body { padding: 10px 10px 12px; }
  .pcard-name { font-size: var(--t-sm); }
  .price { font-size: var(--t-md); }
  .add-btn { width: 38px; height: 38px; }
  .pcard-tools .icon-btn { width: 34px; height: 34px; }
  .toolbar > div, .toolbar form, .toolbar .select { width: 100%; }
  #shop-search { width: 100% !important; }
  .topbar .container { justify-content: space-between; }
}
