/* YASSERSONS × RZOIL — design tokens */
:root {
  /* grey + red, taken from the RZ cans */
  --graphite: #1f2326;
  --graphite-2: #2b3034;
  --steel: #5b636a;
  --silver: #c4cacf;
  --paper: #eef0f1;
  --tile: #e4e7e9;
  --line: #d2d7db;
  --ink: #16191b;
  --ink-2: #4a5157;
  --red: #d71920;
  --red-deep: #a8131a;
  --red-soft: #f25a5f;
  --red-bright: #f04a50; /* red text on graphite: 4.4:1 contrast */
  --blue: #2346b8;
  --white: #ffffff;

  --font-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* modular scale 1.25 */
  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-5: clamp(2.3rem, 1.4rem + 4vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
[lang="en"] { font-family: var(--font-body); unicode-bidi: isolate; }
p [lang="en"], h3 [lang="en"] { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--red); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-color: var(--ink); }
.hero :focus-visible, .additives :focus-visible, .join :focus-visible, .site-footer :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-4);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: .6em;
  text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-size: var(--fs-3); line-height: 1.4; margin-bottom: .45em; }
.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 var(--fs-1)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: var(--fs-0); }
.btn-red { --bg: var(--red); --fg: var(--white); }
.btn-red:hover { --bg: var(--red-deep); }
.btn-ghost { --bg: transparent; --fg: var(--white); border-color: rgb(255 255 255 / .45); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / .06); }
.btn-wa { --bg: var(--graphite); --fg: var(--white); }
.btn-wa:hover { --bg: var(--red); }
.btn-dark { --bg: var(--ink); --fg: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.site-header.is-solid {
  background: rgb(243 245 241 / .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; direction: ltr; }
.lockup-roundel { width: 48px; height: 48px; flex: none; }
.lockup-rule { width: 1px; height: 34px; background: currentColor; opacity: .35; }
.lockup-ys { display: block; height: 40px; width: auto; }
/* the YASSERSONS mark is black; show it white on dark backgrounds */
.site-header:not(.is-solid) .lockup-ys, .site-footer .lockup-ys { filter: invert(1); }
.site-header .lockup-ys { transition: filter .35s; }

.nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 10px 12px; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 500; font-size: .95rem;
  opacity: .85; transition: opacity .2s, background-color .2s;
}
.nav-list a:hover { opacity: 1; background: rgb(127 127 127 / .12); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-wa { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: transparent; border: 0; color: inherit; cursor: pointer; border-radius: var(--radius-s);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .25s var(--ease), background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-list {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 12px 24px rgb(22 25 27 / .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-list a { padding: 14px 4px; font-size: var(--fs-2); border-bottom: 1px solid var(--line); border-radius: 0; opacity: 1; }
  .nav.is-open .nav-list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (max-width: 420px) {
  .lockup-roundel { width: 42px; height: 42px; }
  .lockup-ys { height: 32px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: radial-gradient(120% 90% at 20% 100%, #30363a 0%, var(--graphite) 60%);
  color: var(--white);
  padding-top: 72px;
  overflow: hidden;
}
.hero-grid, .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  min-height: clamp(520px, calc(100svh - 72px - 112px), 720px);
  padding-block: clamp(24px, 4vw, 48px);
}
.hero-copy { padding-bottom: 0; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-0); font-weight: 500; color: rgb(255 255 255 / .8);
  margin-bottom: 22px;
}
.flag { width: 6px; height: 26px; flex: none; background: linear-gradient(#000 0 33.3%, #dd0000 0 66.6%, #ffce00 0); border-radius: 1px; }
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-5);
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-title .line { display: block; text-wrap: balance; }
.hero-title .line + .line { color: var(--red-bright); }
.hero-lede { max-width: 34em; font-size: var(--fs-2); color: rgb(255 255 255 / .82); margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.panel-can picture { display: contents; }
/* one RZ600 can tilted over the pixel oil, pouring a stream into it (positions set in main.js) */
.hero-pour { position: relative; align-self: stretch; min-height: 420px; }
.pour-can {
  position: absolute; z-index: 2; top: 27%; left: 54%;   /* main.js centres it under the RZOIL watermark and sizes it to fit */
  width: clamp(130px, 12vw, 180px); rotate: 38deg;
  filter: drop-shadow(0 26px 22px rgb(0 0 0 / .5));
}
.pour-can img { display: block; width: 100%; height: auto; }
.pour-lip { position: absolute; top: 4%; right: 6%; width: 1px; height: 1px; }  /* the corner the oil leaves from */
html[dir="ltr"] .pour-can { left: auto; right: 54%; rotate: -38deg; }
html[dir="ltr"] .pour-lip { right: auto; left: 6%; }
.hero-proof {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgb(255 255 255 / .16);
  padding-block: 20px 28px;
}
.hero-proof li { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 16px; }
.hero-proof li + li { padding-inline-start: 20px; border-inline-start: 1px solid rgb(255 255 255 / .12); }
.hero-proof strong { font-weight: 600; font-size: .98rem; }
.hero-proof span { font-size: var(--fs-0); color: rgb(255 255 255 / .62); }

/* hero load sequence (JS adds .is-ready). Without JS everything is visible. */
.js .hero-title .line,
.js .hero-kicker, .js .hero-lede, .js .hero-cta, .js .hero-proof { opacity: 0; transform: translateY(14px); }
.js .pour-can { opacity: 0; translate: 0 -40px; rotate: 0deg; }
html[dir="ltr"].js .pour-can { rotate: 0deg; }
.js .hero.is-ready .hero-title .line,
.js .hero.is-ready .hero-kicker, .js .hero.is-ready .hero-lede, .js .hero.is-ready .hero-cta, .js .hero.is-ready .hero-proof {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}
.js .hero.is-ready .hero-kicker { transition-delay: .15s; }
.js .hero.is-ready .hero-title .line:nth-child(1) { transition-delay: .3s; }
.js .hero.is-ready .hero-title .line:nth-child(2) { transition-delay: .48s; }
.js .hero.is-ready .hero-lede { transition-delay: .66s; }
.js .hero.is-ready .hero-cta { transition-delay: .8s; }
.js .hero.is-ready .hero-proof { transition-delay: 1.5s; }
.js .hero.is-ready .pour-can { opacity: 1; translate: 0 0; rotate: 38deg; transition: opacity .6s ease .5s, translate 1s var(--ease) .5s, rotate 1.1s var(--ease) .9s; }
html[dir="ltr"].js .hero.is-ready .pour-can { rotate: -38deg; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-pour { min-height: clamp(320px, 88vw, 420px); }
  .pour-can { width: clamp(130px, 38vw, 190px); top: 2%; left: 24%; }
  html[dir="ltr"] .pour-can { right: 24%; }
  .hero-proof { grid-template-columns: 1fr; gap: 12px; padding-block: 18px 24px; }
  .hero-proof li + li { padding-inline-start: 0; border-inline-start: 0; }
  .hero-proof li { flex-direction: row; flex-wrap: wrap; column-gap: 10px; align-items: baseline; }
}

/* ---------- story ---------- */
.story { padding-block: clamp(72px, 10vw, 128px); }
.story-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "text photo" "stats stats";
  gap: clamp(32px, 5vw, 64px);
}
.story-text { grid-area: text; max-width: 36em; align-self: center; }
.story-text p { color: var(--ink-2); font-size: var(--fs-2); }
.story-photo { grid-area: photo; margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 1 / 1; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats {
  grid-area: stats; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-block: 22px 0; padding-inline: 0 20px; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.stat:first-child { padding-inline-start: 0; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; color: var(--red); font-weight: 600; }
.stat dd .num { font-variant-numeric: tabular-nums; }
.stat dt { color: var(--ink-2); font-size: var(--fs-0); margin-top: 8px; max-width: 14em; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; grid-template-areas: "text" "photo" "stats"; }
  .story-photo { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 0 20px 0 !important; border-inline-start: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-inline-end: 16px !important; }
  .stat:nth-child(even) { padding-inline-start: 16px !important; border-inline-start: 1px solid var(--line) !important; }
}

/* ---------- section heads ---------- */
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); font-size: var(--fs-2); margin: 0; }
.section-head.on-dark p { color: rgb(255 255 255 / .75); }

/* ---------- engine oils / series ---------- */
.oils { padding-block: clamp(72px, 9vw, 120px); background: var(--white); }
.series { display: grid; gap: 28px; }
.series-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: 14px 4px 16px;
  background: none; border: 0; color: var(--ink-2); text-align: start; cursor: pointer;
  font: inherit; transition: color .2s;
}
.tab::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px;
  background: var(--tone, var(--red)); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.tab[data-tone="blue"] { --tone: var(--blue); }
.tab[data-tone="dark"] { --tone: var(--ink); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-name { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); line-height: 1.2; direction: ltr; }
.tab-sub { font-size: var(--fs-0); }

.panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
}
.panel[hidden] { display: none; }
.panel-can {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1; border-radius: var(--radius-m);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(0deg, transparent 0 13px, rgb(22 25 27 / .05) 13px 14px),
    var(--paper);
  overflow: hidden;
}
.panel-can::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(22 25 27 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(22 25 27 / .06) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at 50% 60%, #000 0 40%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 0 40%, transparent 72%);
}
.panel-can img { position: relative; width: 58%; filter: drop-shadow(0 22px 20px rgb(22 25 27 / .25)); }
.panel.is-entering .panel-can img { animation: can-in .8s var(--ease) both; }
.panel.is-entering .panel-body > * { animation: rise .6s var(--ease) both; }
.panel.is-entering .panel-body > *:nth-child(2) { animation-delay: .06s; }
.panel.is-entering .panel-body > *:nth-child(3) { animation-delay: .12s; }
.panel.is-entering .panel-body > *:nth-child(4) { animation-delay: .18s; }
.panel.is-entering .panel-body > *:nth-child(5) { animation-delay: .24s; }
@keyframes can-in { from { opacity: 0; transform: translateY(36px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-body > p { color: var(--ink-2); max-width: 38em; }
.spec { margin-block: 18px; }
.spec h4 { font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; justify-content: flex-end; }
.chips li {
  font-weight: 600; font-size: .95rem; padding: 6px 12px; border-radius: var(--radius-s);
  background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.panel[data-tone="red"] .chips li:first-child,
.panel[data-tone="red"] .chips li { border-color: rgb(215 25 32 / .25); }
.panel[data-tone="blue"] .chips li { border-color: rgb(35 70 184 / .25); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; direction: ltr; justify-content: flex-end; font-size: var(--fs-0); color: var(--ink); }
.specs li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--red); margin-inline-end: 8px; vertical-align: middle; }
.sizes { font-size: var(--fs-0); color: var(--ink-2); margin-top: 14px; }

@media (max-width: 860px) {
  .series-tabs {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .series-tabs::-webkit-scrollbar { display: none; }
  .panel { grid-template-columns: 1fr; }
  .panel-can { aspect-ratio: 4 / 3; }
  .panel-can img { width: auto; height: min(260px, 62vw); }
  .chips, .specs { justify-content: flex-start; direction: rtl; }
  .chips li, .specs li { direction: ltr; }
}

/* ---------- range ---------- */
.range { padding-block: clamp(72px, 9vw, 120px); }
.range-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.item {
  display: grid; grid-template-rows: auto 1fr; gap: 0;
  background: var(--tile); border-radius: var(--radius-m); overflow: hidden;
}
.item img { width: auto; height: 220px; margin: 28px auto 8px; }
.item > div { padding: 12px 22px 24px; }
.item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.item .h3 { font-size: 1.15rem; }
.item-wide { grid-column: span 2; grid-row: span 2; grid-template-rows: 1fr auto; }
.item-wide img { height: auto; width: 62%; max-height: 380px; object-fit: contain; margin-top: 40px; }
.item-wide > div { padding: 16px 28px 32px; }
.item-wide .h3 { font-size: var(--fs-3); }
.item-wide p { font-size: var(--fs-1); max-width: 30em; }

@media (max-width: 960px) {
  .range-grid { grid-template-columns: 1fr 1fr; }
  .item-wide { grid-column: span 2; grid-row: auto; }
  .item-wide img { width: 46%; }
}
@media (max-width: 520px) {
  .range-grid { gap: 12px; }
  .item img { height: 160px; margin-top: 20px; }
  .item > div { padding: 10px 16px 20px; }
  .item-wide img { width: 60%; }
}

/* ---------- additives ---------- */
.additives { position: relative; isolation: isolate; background: var(--graphite); color: var(--white); padding-block: clamp(80px, 10vw, 136px); overflow: hidden; }
.add-photo { position: absolute; inset: 0 0 auto 0; height: 62%; z-index: -1; }
.add-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.35); }
.add-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(22 25 27 / .2), var(--graphite) 96%); }
.add-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.add-list li {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
  padding: 24px; border-radius: var(--radius-m);
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1);
  transition: background-color .25s, border-color .25s;
}
.add-list li:hover { background: rgb(255 255 255 / .08); border-color: rgb(215 25 32 / .6); }
.add-list img { width: 96px; height: auto; border-radius: 10px; background: var(--tile); padding: 8px 12px; }
.add-list h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--red); direction: ltr; text-align: right; line-height: 1.2; margin-bottom: 4px; }
.add-list .add-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--white); margin-bottom: 6px; }
.add-list p { margin: 0; color: rgb(255 255 255 / .75); font-size: .93rem; line-height: 1.7; }

.add-list p:last-child { max-width: 30em; }
@media (max-width: 760px) { .add-list { grid-template-columns: 1fr; } .add-list li { grid-template-columns: 68px 1fr; gap: 16px; padding: 18px; } .add-list img { width: 68px; padding: 6px 8px; } }

/* ---------- quality ---------- */
.quality { padding-block: clamp(72px, 9vw, 120px) 0; background: var(--paper); overflow: hidden; }
.q-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.q-grid > div > p { color: var(--ink-2); font-size: var(--fs-2); max-width: 30em; }
.certs { margin-top: 28px; border-top: 1px solid var(--line); }
.certs li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.certs strong { font-weight: 600; direction: ltr; }
.certs span { color: var(--ink-2); font-size: var(--fs-0); }
.q-photo { margin: 0; }
.q-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; border-radius: var(--radius-m); }
.q-photo figcaption { font-size: var(--fs-0); color: var(--ink-2); margin-top: 10px; }

.oem {
  margin-top: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--line);
  overflow: hidden; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.oem-track { display: flex; gap: 48px; width: max-content; padding-block: 22px; animation: marquee 48s linear infinite; }
.oem-track span { font-weight: 600; color: var(--ink-2); white-space: nowrap; font-size: var(--fs-2); }
.oem:hover .oem-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) { .q-grid { grid-template-columns: 1fr; } }

/* ---------- dealers ---------- */
.dealers { padding-block: clamp(72px, 9vw, 120px); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.d-grid > div > p { color: var(--ink-2); font-size: var(--fs-2); max-width: 32em; }
.hq {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 28px; padding: 24px 26px; border-radius: var(--radius-m);
  background: var(--graphite); color: var(--white);
  border-inline-start: 5px solid var(--red);
}
.hq-label { margin: 0; font-size: var(--fs-0); color: var(--red-soft); font-weight: 600; }
.hq-city { font-family: var(--font-display); font-size: var(--fs-4); line-height: 1.25; margin: 2px 0 4px; }
.hq-addr { margin: 0; color: rgb(255 255 255 / .75); font-size: .95rem; }
.hq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hq :focus-visible { outline-color: var(--white); }

.city-search {
  display: flex; align-items: center; gap: 10px; max-width: 360px;
  margin-top: 28px; padding: 0 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.city-search svg { width: 20px; height: 20px; flex: none; color: var(--steel); }
.city-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font: 500 var(--fs-1) var(--font-body); color: var(--ink); }
.city-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgb(215 25 32 / .25); }

.cities { margin-top: 20px; }
.cities .country { font-family: var(--font-display); font-size: var(--fs-3); margin: 26px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cities .country:first-child { margin-top: 0; }
.cities .country[hidden], .gov[hidden], .gov li[hidden] { display: none; }
.gov { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gov-name {
  display: flex; align-items: baseline; gap: 6px; padding: 8px 0 0; margin: 0;
  background: none; border: 0; text-align: start; cursor: default;
  font: 600 .92rem var(--font-body); color: var(--ink-2);
}
.gov-count { display: none; }
.gov ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cities a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.cities a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--silver); flex: none; transition: background-color .2s; }
.cities a:hover { border-color: var(--red); }
.cities a:hover::before { background: var(--red); }
.cities-none { color: var(--ink-2); margin-top: 16px; }
@media (max-width: 600px) {
  /* phones: each governorate is a row you tap to open its cities */
  .gov { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .gov-name {
    width: 100%; min-height: 52px; padding: 0 2px; justify-content: space-between; align-items: center;
    cursor: pointer; font-size: 1rem; color: var(--ink);
  }
  .gov-name::after {
    content: ""; width: 8px; height: 8px; margin-inline-start: 12px; flex: none;
    border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
    transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease);
  }
  .gov.is-open .gov-name::after { transform: rotate(-135deg) translateY(-2px); }
  .gov-title { flex: 1; }
  .gov-count { display: inline; font-weight: 500; font-size: .82rem; color: var(--ink-2); }
  .gov ul { display: none; padding-bottom: 14px; }
  .gov.is-open ul { display: flex; }
  .gov.is-open .gov-name { color: var(--red-deep); }
  .cities a { min-height: 44px; }
  .hq { padding: 20px; }
  .hq-actions, .hq-actions .btn { width: 100%; }
}
.join {
  background: var(--graphite); color: var(--white);
  border-radius: var(--radius-m); padding: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden;
}
.join::before {
  content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 180px; height: 180px;
  background-image: linear-gradient(rgb(255 255 255 / .09) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .09) 1px, transparent 1px);
  background-size: 14px 14px; transform: rotate(8deg);
}
.join p { color: rgb(255 255 255 / .78); position: relative; }
.join .h3, .join .btn { position: relative; }

@media (max-width: 860px) { .d-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(72px, 9vw, 112px); background: var(--white); border-top: 1px solid var(--line); }
/* three stacked rows separated by lines: label | details | action */
.c-grid { display: grid; grid-template-columns: 1fr; max-width: 980px; }
.c-card {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 12px 32px;
  padding: 28px 0; border-top: 1px solid var(--line); font-style: normal;
}
.c-card:last-child { border-bottom: 1px solid var(--line); }
.c-label {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.c-label::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }
.c-addr { margin: 0; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.c-card > .c-big { text-align: start; }
html[dir="rtl"] .c-card > .c-big { text-align: right; }
.c-big { margin: 0; font-weight: 600; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-variant-numeric: tabular-nums; }
.c-link {
  font-weight: 600; color: var(--red-deep); text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
}
.c-link:hover { color: var(--red); }
.wa-list { grid-column: 2 / -1; }
.wa-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 8px 0; }
.wa-list li + li { border-top: 1px dashed var(--line); }
@media (max-width: 760px) {
  .c-card { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .wa-list { grid-column: auto; }
  .c-link { justify-self: start; }
}

/* ---------- contact form page ---------- */
.page-contact .phero { padding-bottom: clamp(110px, 14vw, 170px); }
.cform[hidden], .f-err[hidden], .f-status[hidden], .f-done[hidden] { display: none; }
.cform-sec { background: var(--white); padding-block: clamp(48px, 7vw, 96px); }
.cform-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cform-box { min-width: 0; }
.cform { display: grid; gap: 22px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-0); color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 500 var(--fs-1)/1.5 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(-45deg, transparent 50%, var(--steel) 50%);
  background-size: 6px 6px; background-repeat: no-repeat;
  background-position: left 20px center, left 14px center; padding-inline-end: 40px; }
html[dir="ltr"] .field select { background-position: right 14px center, right 20px center; }
.field input::placeholder, .field textarea::placeholder { color: #7a8288; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c0c5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 3px rgb(215 25 32 / .18);
}
.field [aria-invalid="true"] { border-color: var(--red); background: #fff6f6; }
.f-err { margin: 0; font-size: var(--fs-0); color: var(--red-deep); font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.f-err::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; transform: translateY(-1px); }
.f-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 4px; }
.f-send { min-width: 200px; }
.f-send[disabled] { opacity: .7; cursor: progress; transform: none; }
.f-note-req { margin: 0; font-size: var(--fs-0); color: var(--ink-2); }
.f-status { margin: 0; padding: 14px 16px; border-inline-start: 4px solid var(--red); background: #fff1f1; color: var(--ink); border-radius: var(--radius-s); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.f-done { padding: clamp(28px, 4vw, 44px); background: var(--paper); border-radius: var(--radius-m); border-inline-start: 5px solid var(--red); }
.f-done:focus { outline: none; }
.f-done p { color: var(--ink-2); font-size: var(--fs-2); }
.f-done .f-again { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; }
.f-done-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--red); color: var(--white); }
.f-done-mark svg { width: 28px; height: 28px; }
.js .f-done:not([hidden]) { animation: done-in .5s var(--ease) both; }
@keyframes done-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cform-aside { background: var(--graphite); color: var(--white); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-m); border-inline-start: 5px solid var(--red); }
.cform-aside .h3 { margin-bottom: 20px; }
.cform-aside .c-label { color: var(--white); font-size: var(--fs-0); margin-bottom: 6px; }
.cform-aside .c-big { color: var(--white); text-decoration: none; line-height: 1.9; }
.cform-aside .c-big:hover { color: var(--red-soft); }
.cform-aside .c-addr { color: rgb(255 255 255 / .8); font-size: var(--fs-1); margin-bottom: 22px; }
.cform-aside p { margin-bottom: 18px; }
.cform-aside :focus-visible { outline-color: var(--white); }
.cform-aside .btn-wa { --bg: var(--red); }
.cform-aside .btn-wa:hover { --bg: var(--red-deep); }
@media (max-width: 900px) { .cform-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr; } .f-send { width: 100%; } }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--white); padding-top: clamp(56px, 7vw, 80px); }
.f-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; padding-bottom: 48px; }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lockup-footer .lockup-roundel { width: 56px; height: 56px; }
.lockup-footer .lockup-ys { height: 46px; }
.f-note { color: rgb(255 255 255 / .7); font-size: var(--fs-0); margin: 0; max-width: 34em; line-height: 1.8; }
.f-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.f-title::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }
.f-col ul { display: grid; gap: 2px; }
.f-col a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
  color: rgb(255 255 255 / .75); text-decoration: none; font-size: .95rem;
  transition: color .2s;
}
.f-col a:hover { color: var(--white); }
.f-col a:hover bdi, .f-col a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); }
.f-contact svg { width: 18px; height: 18px; flex: none; color: var(--red-soft); }
.f-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  border-top: 1px solid rgb(255 255 255 / .12);
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
}
.f-copy { color: rgb(255 255 255 / .55); font-size: var(--fs-0); margin: 0; }
.f-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: rgb(255 255 255 / .75); text-decoration: none; font-size: var(--fs-0); font-weight: 600;
}
.f-top::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg) translate(2px, 2px); }
.f-top:hover { color: var(--white); }
@media (max-width: 960px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .f-grid > .f-col:last-child { grid-column: 1 / -1; }
  .f-col a { min-height: 44px; font-size: .9rem; }
}

/* ---------- floating WhatsApp (mobile) ---------- */
.fab-wa {
  position: fixed; z-index: 40;
  inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--red); color: var(--white);
  box-shadow: 0 10px 24px rgb(22 25 27 / .35);
  transform: scale(.6); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa.is-visible { transform: none; opacity: 1; }
@media (max-width: 960px) { .fab-wa { display: grid; } }

/* ---------- scroll reveal (images only, subtle) ---------- */
.js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }

/* ---------- links from home into the catalogue ---------- */
.range-more { display: flex; justify-content: center; margin-top: 32px; }
.series-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px;
  font-weight: 600; color: var(--red-deep); text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}
.series-link::after { content: ""; width: 7px; height: 7px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.series-link:hover { color: var(--red); }
.nav-list a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- products page ---------- */
.phero {
  background: radial-gradient(90% 120% at 15% 0%, #30363a 0%, var(--graphite) 60%);
  color: var(--white);
  padding: calc(72px + clamp(36px, 6vw, 72px)) 0 clamp(36px, 5vw, 56px);
  position: relative; overflow: hidden; isolation: isolate;
}
.phero .wrap { position: relative; z-index: 1; }
.phero-title { font-family: var(--font-display); font-size: var(--fs-5); line-height: 1.2; margin-bottom: 14px; }
.phero-title { display: flex; flex-wrap: wrap; align-items: center; gap: .3em; }
.block-word { height: .86em; width: auto; flex: none; direction: ltr; fill: var(--red); }
.logo-word .lw-cell { fill: var(--white); }
.block-word rect { animation: cell-in .5s var(--ease) both; animation-delay: calc(var(--d) + 150ms); }
.hero-word {
  position: absolute; z-index: -1; pointer-events: none;
  left: 3%; top: calc(72px + 5%);
  width: min(40vw, 600px); height: auto;
  fill: var(--red); opacity: .16;
}
@media (max-width: 860px) {
  .hero-word { left: 50%; transform: translateX(-50%); width: 88vw; top: 92px; opacity: .14; }
}
@keyframes cell-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.phero-lede { max-width: 38em; color: rgb(255 255 255 / .78); font-size: var(--fs-2); margin-bottom: 28px; }
.psearch {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  background: var(--white); color: var(--ink); border-radius: 999px; padding: 0 20px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.psearch svg { width: 22px; height: 22px; flex: none; color: var(--steel); }
.psearch input {
  flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; outline: none;
  font: 500 var(--fs-1) var(--font-body); color: var(--ink);
}
.psearch:focus-within { box-shadow: 0 0 0 3px var(--red), 0 10px 30px rgb(0 0 0 / .25); }
.psearch input::placeholder, .city-search input::placeholder { color: #6b737a; }

.pfilter {
  position: sticky; top: 72px; z-index: 30;
  background: rgb(238 240 241 / .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.pfilter.is-stuck { box-shadow: 0 8px 18px rgb(22 25 27 / .08); }
.pfilter .chips {
  display: flex; gap: 8px; padding-block: 12px;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; direction: rtl;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.pfilter .chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 .95rem var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--steel); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.chip[aria-pressed="true"] span { color: var(--red-soft); }

.pwrap { padding-block: 24px clamp(64px, 8vw, 112px); }
.presult { min-height: 1.5em; margin: 0 0 8px; color: var(--ink-2); font-size: var(--fs-0); }
.pcat { padding-top: clamp(28px, 4vw, 48px); }
.pcat[hidden] { display: none; }
.pcat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pcat-head .h2 { margin: 0; }
.pcat-count { color: var(--ink-2); font-size: var(--fs-0); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pc {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; transition: border-color .2s, box-shadow .25s;
}
.pc[hidden] { display: none; }
.pc:hover { border-color: var(--silver); box-shadow: 0 12px 28px rgb(22 25 27 / .08); }
.pc-open {
  flex: 1; display: flex; flex-direction: column; text-align: start;
  background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer;
}
.pc-img { display: grid; place-items: center; height: 210px; padding: 18px; background: var(--white); position: relative; width: 100%; }
.pc-img::after { content: ""; position: absolute; inset-inline: 18px; bottom: 0; height: 1px; background: var(--line); }
.pc-img img { height: 174px; width: auto; max-width: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.pc:hover .pc-img img { transform: translateY(-4px); }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 12px; flex: 1; width: 100%; }
.pc-type { align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--red-deep); background: rgb(215 25 32 / .08); padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; }
.pc-name { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; }
.pc-code { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; direction: ltr; text-align: right; color: var(--ink); margin: 0; }
h3.pc-code { font-size: 1.2rem; }
.pc-name + .pc-code { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.pc-desc {
  margin: 6px 0 0; color: var(--ink-2); font-size: .9rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; direction: rtl; }
.pc-specs li { font-size: .74rem; font-weight: 500; padding: 3px 8px; border-radius: 4px; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.pc-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0 18px 10px; padding-top: 12px; border-top: 1px solid var(--line);
}
.pc-price[hidden] { display: none; }
.pc-price-label { font-size: .8rem; color: var(--ink-2); }
.pc-price-num { font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; color: var(--red-deep); font-variant-numeric: tabular-nums; direction: ltr; }
.pc-price-size { font-size: .8rem; color: var(--ink-2); background: var(--paper); padding: 1px 8px; border-radius: 4px; }
.pd-price { margin: 26px 0 0; padding-top: 16px; }
.pd-price .pc-price-num { font-size: 1.7rem; }
.pd-price + .pd-wa { margin-top: 14px; }
.pc-wa {
  display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 0 18px 18px;
  border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pc-wa:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.pc-open:focus-visible { outline-offset: -3px; }

.pempty { text-align: center; padding: 64px 16px; max-width: 30em; margin-inline: auto; }
.pempty[hidden] { display: none; }
.pempty p { color: var(--ink-2); }

/* product dialog */
.pdialog {
  width: min(980px, calc(100vw - 32px)); max-height: min(88vh, 860px);
  padding: 0; border: 0; border-radius: 18px; background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / .35); overflow: hidden;
}
.pdialog::backdrop { background: rgb(22 25 27 / .6); backdrop-filter: blur(3px); }
.pdialog[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); max-height: inherit; }
.pd-img { display: grid; place-items: center; background: var(--white); padding: 32px; border-inline-end: 1px solid var(--line); }
.pd-img img { max-height: min(60vh, 520px); width: auto; object-fit: contain; }
.pd-body { padding: 36px 32px 28px; overflow-y: auto; max-height: min(88vh, 860px); overscroll-behavior: contain; }
.pd-close {
  position: absolute; inset-inline-end: 14px; top: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .12);
}
.pd-close svg { width: 22px; height: 22px; }
.pd-close:hover { background: var(--red); color: var(--white); }
.pd-cat { color: var(--red-deep); font-size: var(--fs-0); font-weight: 600; margin-bottom: 6px; }
.pd-title { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; padding-inline-end: 44px; }
.pd-title[lang="en"] { font-family: var(--font-body); direction: ltr; text-align: right; }
.pd-code { font-weight: 600; color: var(--ink-2); margin: 4px 0 18px; }
.pd-code[lang="en"] { direction: ltr; text-align: right; }
.pd-desc { color: var(--ink-2); line-height: 1.85; }
.pd-sec { margin-top: 22px; }
.pd-sec h3 { font-size: var(--fs-0); font-weight: 600; color: var(--ink); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pd-sec p { color: var(--ink-2); margin: 0; line-height: 1.8; }
.pd-list li { position: relative; padding-inline-start: 18px; color: var(--ink-2); margin-bottom: 6px; line-height: 1.7; }
.pd-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; background: var(--red); }
.pd-specs { display: flex; flex-wrap: wrap; gap: 6px; direction: rtl; }
.pd-specs li, .pc-specs li { direction: ltr; unicode-bidi: isolate; }
.pd-specs li { font-size: .82rem; font-weight: 500; padding: 4px 10px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.pd-sec p.pd-note { margin-top: 10px; font-size: var(--fs-0); }
.pd-wa { margin-top: 26px; }
html.dialog-open { overflow: hidden; }

@media (max-width: 760px) {
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pc-img { height: 160px; padding: 12px; }
  .pc-img img { height: 136px; }
  .pc-body { padding: 12px 12px 8px; }
  .pc-name { font-size: .98rem; }
  h3.pc-code { font-size: 1rem; }
  .pc-desc { -webkit-line-clamp: 2; font-size: .84rem; }
  .pc-specs { display: none; }
  .pc-wa { margin: 0 12px 12px; min-height: 44px; font-size: .84rem; }
  .pc-price { margin: 0 12px 8px; padding-top: 8px; gap: 6px; }
  .pc-price-num { font-size: 1.15rem; }
  .pdialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pd-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; overflow-y: auto; max-height: none; }
  .pd-img { padding: 20px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .pd-img img { max-height: 220px; }
  .pd-body { max-height: none; overflow: visible; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
  .pd-close { position: fixed; }
}
@media (max-width: 360px) { .pgrid { grid-template-columns: 1fr; } }


/* ---------- English (left-to-right) versions ----------
   Most layout uses logical properties and mirrors automatically; these are the few exceptions. */
html[dir="ltr"] .tab::after { transform-origin: left; }
html[dir="ltr"] .series-link::after { transform: rotate(-135deg); }
html[dir="ltr"] .chips, html[dir="ltr"] .specs { justify-content: flex-start; }
html[dir="ltr"] .add-list h3, html[dir="ltr"] .pc-code,
html[dir="ltr"] .pd-title[lang="en"], html[dir="ltr"] .pd-code[lang="en"] { text-align: left; }
html[dir="ltr"] .pfilter .chips, html[dir="ltr"] .pc-specs, html[dir="ltr"] .pd-specs { direction: ltr; }
html[dir="ltr"] .hero-word { left: auto; right: 3%; }
@media (max-width: 860px) {
  html[dir="ltr"] .chips, html[dir="ltr"] .specs { direction: ltr; }
  html[dir="ltr"] .hero-word { right: auto; left: 50%; }
}
html[dir="ltr"] body { font-family: var(--font-body); }
/* English sentences run longer than the Arabic ones, so the big headlines step down a little */
html[dir="ltr"] .hero-title { font-size: clamp(2.1rem, 1.1rem + 3.1vw, 3.5rem); line-height: 1.12; }
html[dir="ltr"] .h2 { line-height: 1.2; }

/* language switch in the header */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 1.5px solid currentColor; border-radius: 999px; opacity: .85;
  text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap;
  transition: opacity .2s, background-color .2s;
}
.lang-switch:hover { opacity: 1; background: rgb(127 127 127 / .12); }
.lang-switch[lang="ar"] { font-family: var(--font-display); font-size: .95rem; }
@media (max-width: 960px) {
  .lang-switch { min-height: 40px; order: 2; margin-inline-start: auto; }
  .header-row .nav { order: 3; margin-inline-start: 0; }
}

/* ---------- reduced motion ----------
   JS sets html.rm from prefers-reduced-motion (overridable with ?motion=full for previews).
   Movement is removed; gentle opacity fades stay. */
.rm *, .rm *::before, .rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
.rm.js .hero-title .line, .rm.js .hero-kicker, .rm.js .hero-lede, .rm.js .hero-cta, .rm.js .hero-proof { transform: none !important; }
.rm.js .pour-can { translate: 0 0 !important; rotate: 38deg !important; }
html[dir="ltr"].rm.js .pour-can { rotate: -38deg !important; }
.rm.js .hero.is-ready .pour-can { transition: opacity 1s ease; }
@keyframes grid-fade { from { opacity: 0; } to { opacity: 1; } }
.rm .oem-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; padding-inline: 16px; }
.rm .oem { mask-image: none; -webkit-mask-image: none; }
.rm.js .reveal { clip-path: none; transition: none; }
.rm .btn:hover, .rm .pc:hover .pc-img img { transform: none; }
.rm .pdialog[open] { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; transition: none !important; }
}
