/* ==========================================================================
   Shared components: header, navigation, footer, cards, art panels.
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  /* Sticks with the top bar scrolled out of view, so only the main bar stays on screen. */
  inset-block-start: calc(-1 * var(--topbar-h));
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-block-end: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), inset-block-start .3s var(--ease);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-bar-h);
}

/* Overlay treatment on top of a dark hero; becomes solid once the page scrolls. */
.has-overlay-header .site-header { position: fixed; inset-inline: 0; inset-block-start: 0; }
.has-overlay-header .site-header.is-solid { inset-block-start: calc(-1 * var(--topbar-h)); }
.has-overlay-header .site-header:not(.is-solid):not(.is-open) {
  background: transparent;
  backdrop-filter: none;
  border-color: rgba(255, 255, 255, .12);
  color: var(--white);
}
.has-overlay-header .site-header:not(.is-solid):not(.is-open) .brand__name small { color: var(--text-inverse-muted); }
.has-overlay-header .site-header:not(.is-solid):not(.is-open) .header-quote { --btn-bg: var(--white); --btn-fg: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__logo { display: block; width: auto; height: 46px; flex: none; }
.brand__logo--white { display: none; }
.has-overlay-header .site-header:not(.is-solid):not(.is-open) .brand__logo { display: none; }
.has-overlay-header .site-header:not(.is-solid):not(.is-open) .brand__logo--white { display: block; }
.footer-brand .brand__logo { height: 56px; }
@media (max-width: 480px) { .brand__logo { height: 36px; } }
.brand__name { display: grid; line-height: 1.1; }
.brand__name strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__name small { font-size: .72rem; color: var(--text-muted); font-weight: 400; letter-spacing: .04em; }
[lang="ar"] .brand__name small { letter-spacing: 0; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav__list { display: flex; list-style: none; gap: 2px; }
.primary-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.primary-nav__link:hover, .primary-nav__link[aria-expanded="true"] { background: rgba(10, 16, 32, .06); }
.has-overlay-header .site-header:not(.is-solid):not(.is-open) .primary-nav__link:hover { background: rgba(255, 255, 255, .12); }
.primary-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.primary-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
}
.icon-btn:hover { background: rgba(10, 16, 32, .06); }
.has-overlay-header .site-header:not(.is-solid):not(.is-open) .icon-btn:hover { background: rgba(255, 255, 255, .12); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { background: rgba(10, 16, 32, .06); }
.lang-switch__current { opacity: 1; }
.lang-switch__sep { opacity: .35; }
.lang-switch__other { opacity: .7; }
.lang-switch__other[lang="ar"] { font-family: var(--font-arabic); }
.lang-switch__other[lang="en"] { font-family: var(--font-latin); }
.menu-toggle { display: none; }

/* ---------- Top bar (contact + links from Admin > Header links) ---------- */
.topbar { display: none; background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: var(--fs-xs); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--topbar-h); }
.topbar__contact, .topbar__nav ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.topbar .icon { width: 14px; height: 14px; }
.topbar__nav li + li { border-inline-start: 1px solid rgba(255, 255, 255, .18); padding-inline-start: 20px; }
@media (min-width: 768px) {
  :root:has(.topbar) { --topbar-h: 36px; }
  .topbar { display: block; }
}
@media (max-width: 1023px) { .topbar__email { display: none; } }

/* ---------- Apps launcher (related websites) ---------- */
.apps { position: relative; }
.apps [data-apps-toggle][aria-expanded="true"] { background: rgba(10, 16, 32, .08); }
.apps-menu {
  position: absolute;
  inset-block-start: calc(100% + 12px);
  inset-inline-end: 0;
  z-index: 120;
  width: 340px;
  padding: 18px 14px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.apps-menu__title { margin: 0 6px 10px; font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
.apps-menu__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.apps-menu__item {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.3;
}
.apps-menu__item:hover, .apps-menu__item:focus-visible { background: var(--surface-alt); }
.apps-menu__tile {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-latin);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.apps-menu__label { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  /* Full-width sheet under the bar: the launcher button is not at the screen edge. */
  .apps { position: static; }
  .apps-menu { position: fixed; inset-block-start: calc(var(--header-bar-h) + 6px); inset-inline: 12px; width: auto; }
}

/* Extra links in the mobile drawer (Login, phone, ...). */
.drawer-links { list-style: none; margin: 8px 0 0; padding: 0; }
.drawer-links a { display: flex; align-items: center; gap: 10px; min-height: 52px; border-block-end: 1px solid var(--line); text-decoration: none; font-weight: 400; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  background: var(--white);
  color: var(--ink);
  border-block: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-block: 36px 40px; }
.mega__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 32px; }
.mega__group-title { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-block-end: 12px; }
[lang="ar"] .mega__group-title { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.mega__links { list-style: none; display: grid; gap: 2px; }
.mega__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  margin-inline: -10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 400;
}
.mega__link:hover { background: var(--gray-50); }
.mega__link .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.mega__link small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.4; }
.mega__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  background: var(--navy-900);
}
.mega__feature .art { position: absolute; inset: 0; border-radius: 0; }
.mega__feature .art__glyph { inset-block-start: 24px; inset-inline-end: 24px; width: 72px; transform: none; border-radius: 20px; }
.mega__feature > :not(.art) { position: relative; }
.mega__feature h3 { font-size: var(--fs-lg); margin-block: 6px 8px; }
.mega__feature p { font-size: var(--fs-sm); color: var(--text-inverse-muted); margin: 0 0 14px; }
.mega__footer { grid-column: 1 / -1; display: flex; gap: 24px; padding-block-start: 20px; border-block-start: 1px solid var(--line); }

/* ---------- Search overlay ---------- */
.search-panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  background: var(--white);
  color: var(--ink);
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding-block: 28px;
}
.search-form { position: relative; display: flex; gap: 12px; }
.search-form .input { min-height: 56px; padding-inline-start: 52px; font-size: var(--fs-lg); border-radius: var(--radius-pill); }
.search-form > .icon { position: absolute; inset-inline-start: 18px; inset-block-start: 16px; color: var(--gray-500); pointer-events: none; }
.suggestions { list-style: none; margin-block-start: 12px; display: grid; gap: 2px; max-width: 820px; }
.suggestions a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; }
.suggestions a:hover, .suggestions a[aria-selected="true"] { background: var(--gray-50); }
.suggestions .kind { grid-row: span 2; align-self: center; font-size: var(--fs-xs); font-weight: 500; color: var(--accent); background: #eef4ff; padding: 3px 10px; border-radius: var(--radius-pill); }
.suggestions strong { font-weight: 500; }
.suggestions span:last-child { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Mobile navigation ---------- */
/* The full menu needs about 1,230 px; below 1280 px it moves into the drawer. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .primary-nav__link { padding-inline: 9px; }
  .header-quote { display: none; }
}
@media (max-width: 767px) { .header-quote { display: none; } }
@media (max-width: 1279px) {
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
  .primary-nav {
    position: fixed;
    inset: var(--drawer-top, var(--header-h)) 0 0 0;
    display: block;
    background: var(--white);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  /* No blur on small screens: backdrop-filter would make the header the containing block of the fixed drawer. */
  .site-header { backdrop-filter: none; background: var(--white); }
  .site-header.is-open .primary-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .primary-nav__list { flex-direction: column; gap: 0; }
  .primary-nav__list > li { border-block-end: 1px solid var(--line); }
  .primary-nav__link { width: 100%; height: 56px; justify-content: space-between; padding-inline: 0; font-size: var(--fs-md); border-radius: 0; }
  .primary-nav__link:hover, .primary-nav__link[aria-expanded="true"] { background: none; }
  .primary-nav__link[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .mega.is-open { display: block; }
  .mega__inner { grid-template-columns: 1fr; padding: 0 0 20px; gap: 20px; }
  .mega__inner.container { padding-inline: 0; }
  .mega__feature { display: none; }
  .mega__footer { flex-direction: column; gap: 12px; }
  .mobile-only { display: block; }
  .nav-mobile-cta { display: grid; gap: 12px; padding-block-start: 24px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1280px) {
  .mobile-only, .nav-mobile-cta { display: none; }
}
@media (max-width: 480px) {
  .brand__name small { display: none; }
  .header-actions { gap: 0; }
  .lang-switch { padding-inline: 8px; }
  .lang-switch__current, .lang-switch__sep { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 18px 0; font-size: var(--fs-xs); color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 400; }
.on-dark .breadcrumbs, .page-hero--dark .breadcrumbs { color: var(--text-inverse-muted); }
.on-dark .breadcrumbs [aria-current], .page-hero--dark .breadcrumbs [aria-current], .page-hero--dark .breadcrumbs a:hover { color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(20px, 2.5vw, 32px) clamp(28px, 4vw, 52px); border-block-end: 1px solid var(--line); background: #f8faff; }
/* The light page hero's colour mesh drifts slowly, like the mesh sections (core.css, "Ambient motion"). */
.page-hero:not(.page-hero--dark)::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(42% 95% at 10% 12%, #dcebff, transparent 70%), radial-gradient(34% 90% at 90% 12%, #efe4ff, transparent 70%), radial-gradient(30% 75% at 58% 88%, #dff6ec, transparent 70%);
  pointer-events: none;
  animation: ambient-drift 34s ease-in-out infinite alternate;
}
.page-hero--shop::before { display: none; }
.page-hero__title { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: 600; margin-block: 18px 0; max-width: 20ch; }
.page-hero .lede { margin-block: 18px 0; }
.page-hero__actions { margin-block-start: 28px; }
.page-hero--dark { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); border: 0; }
.page-hero--dark .lede { color: var(--text-inverse-muted); }
.page-hero--split .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero--split .art { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .page-hero--split .container { grid-template-columns: 1fr; } }

/* ---------- Art panels (illustrative backgrounds) ---------- */
.art {
  /* Vivid colour panels; every --a1 keeps white text at 4.5:1 or better. */
  --a1: #0f6cbd;
  --a2: #0b2a6f;
  --glow: rgba(80, 230, 255, .45);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 85% 10%, var(--glow), transparent 55%),
    linear-gradient(160deg, var(--a1), var(--a2));
  color: rgba(255, 255, 255, .92);
  isolation: isolate;
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
  z-index: -1;
}
.art__glyph {
  position: absolute;
  inset-inline-end: 8%;
  inset-block-start: 50%;
  width: 46%;
  max-width: 220px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.art__glyph .icon { width: 52%; height: 52%; stroke-width: 1.2; }
.art__ring {
  position: absolute;
  inset-inline-end: -12%;
  inset-block-start: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .025), 0 0 0 90px rgba(255, 255, 255, .02);
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.art--cyan { --a1: #00799e; --a2: #0a3a63; --glow: rgba(127, 186, 0, .45); }
.art--violet { --a1: #6b3fd4; --a2: #2a1666; --glow: rgba(255, 120, 220, .45); }
.art--teal { --a1: #00756f; --a2: #08403c; --glow: rgba(0, 164, 239, .45); }
.art--amber { --a1: #b34700; --a2: #5c1f00; --glow: rgba(255, 185, 0, .6); }
.art--slate { --a1: #3b4bb5; --a2: #1a2160; --glow: rgba(0, 183, 195, .45); }
.art--rose { --a1: #b4146c; --a2: #5a0a3a; --glow: rgba(255, 150, 80, .5); }
.art--light { --a1: #eef3fb; --a2: #dfe7f4; --glow: rgba(47, 116, 245, .25); color: var(--navy-800); }
.art--light::before { background-image: linear-gradient(rgba(16, 32, 71, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 32, 71, .06) 1px, transparent 1px); }
.art--light .art__glyph { background: linear-gradient(145deg, #fff, rgba(255, 255, 255, .6)); border-color: rgba(16, 32, 71, .1); box-shadow: 0 30px 50px -24px rgba(16, 32, 71, .35); }
.art--light .art__ring { border-color: rgba(16, 32, 71, .08); box-shadow: 0 0 0 40px rgba(16, 32, 71, .02); }

/* ---------- Editorial card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; border-radius: 0; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.card__eyebrow { font-size: var(--fs-xs); font-weight: 500; color: var(--accent); letter-spacing: .02em; }
.card__title { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.card__text { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.card__foot { margin-block-start: auto; padding-block-start: 8px; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card :focus-visible { outline-offset: -3px; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--c-bg, #eef4ff);
  color: var(--c-ink, var(--accent));
  flex: none;
}
.icon-badge .icon { width: 24px; height: 24px; }
.section--dark .icon-badge { background: rgba(255, 255, 255, .08); color: var(--c-accent, var(--cyan-300)); }

/* ---------- Product card (shop style: badge, brand, model, key specs, price, stock, quote button) ---------- */
.product-card {
  --sale: #c8241b;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); transform: translateY(-2px); }
/* Catalogue images sit in a square white frame up to 200 px wide, scaled down proportionally in narrow cards. */
.product-card__media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
  background: var(--white);
  border-block-end: 1px solid var(--line);
}
.product-card__media:has(.badge-clearance) { padding-block-start: 32px; }
.product-card__media img,
.product-card__media .product-placeholder { width: 200px; max-width: 100%; height: auto; aspect-ratio: 1; }
.product-card__media img { object-fit: contain; }
.product-placeholder { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--navy-700); text-align: center; }
.product-placeholder .icon { width: 64px; height: 64px; stroke-width: 1.1; opacity: .85; }
.product-placeholder span { font-family: var(--font-latin); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; color: var(--gray-500); }
.badge-clearance {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 6px;
  background: #c8241b;
  color: var(--white);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}
[lang="ar"] .badge-clearance { letter-spacing: 0; }
.product-card__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.product-card__brand { margin: 0; font-size: .75rem; font-weight: 500; color: var(--accent); }
/* Titles stop at two lines so one long name does not stretch every card in the row. */
.product-card__title { margin: 0; font-size: .9375rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.product-card__title a { text-decoration: none; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__model { margin: 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); direction: ltr; unicode-bidi: isolate; text-align: start; }
/* Key specs are small tags that wrap, at most two rows. */
.product-card__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; max-height: 44px; overflow: hidden; margin: 4px 0 0; padding: 0; font-size: .6875rem; line-height: 1.45; color: var(--text-muted); }
.product-card__specs li { padding: 1px 7px; border-radius: 5px; background: var(--gray-50); border: 1px solid var(--line); white-space: nowrap; }
.product-card__foot { display: grid; gap: 4px; margin-block-start: auto; padding-block-start: 10px; }
.product-card__actions { display: flex; gap: 8px; margin-block-start: 4px; }
.product-card__quote { position: relative; z-index: 1; flex: 1; min-height: 40px; padding-inline: 12px; border-radius: 8px; font-size: .8125rem; }
.product-card__go {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}
.product-card__go:hover { border-color: var(--accent); }
.product-card__go .icon { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .product-card__body { padding: 12px 10px 12px; }
  .product-card__quote { min-width: 0; white-space: normal; text-align: center; padding-inline: 8px; }
  .product-card__quote .icon { display: none; }
  .product-card__go { display: none; }
}

/* Price and stock line (cards and product page) */
.price--card { flex-direction: row; align-items: baseline; gap: 0 6px; }
.price--card .price__amount { font-size: 1.25rem; font-weight: 600; color: var(--sale, #c8241b); }
.price__ask { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.stock { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
[lang="ar"] .stock { letter-spacing: 0; }
.stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock--in { color: var(--success); }
.stock--low { color: #a15c00; }
.stock--out { color: var(--danger); }

/* Brand logos (filters, product page) */
.brand-logo { display: inline-block; width: auto; height: 28px; max-width: 110px; object-fit: contain; }
.brand-logo--sm { height: 18px; max-width: 56px; }

/* ---------- Chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--gray-100); font-size: var(--fs-xs); font-weight: 500; color: var(--gray-700); }
.chip--accent { background: #eef4ff; color: var(--accent); }
.chip--dark { background: rgba(255, 255, 255, .1); color: var(--text-inverse); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* ---------- Check list ---------- */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist .icon { width: 22px; height: 22px; color: var(--accent); margin-block-start: 2px; }
.section--dark .checklist .icon { color: var(--cyan-300); }

/* ---------- FAQ (details/summary) ---------- */
.faq { border-block-start: 1px solid var(--line); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: var(--fs-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 22px; height: 22px; transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding-block-end: 22px; color: var(--text-muted); max-width: 75ch; }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-block-start: 48px; list-style: none; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pager .icon { width: 18px; height: 18px; }
.pager .prev .icon { transform: scaleX(-1); }
[dir="rtl"] .pager .prev .icon { transform: none; }

/* ---------- Fallback language notice ---------- */
.lang-notice { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--warning-bg); color: var(--warning); font-size: var(--fs-sm); margin-block-start: 16px; }
.lang-notice .icon { width: 18px; height: 18px; flex: none; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 80px);
  /* Bright multi-colour gradient; every stop keeps white text at 4.5:1 or better. */
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(255, 140, 60, .4), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(0, 164, 239, .45), transparent 60%),
    linear-gradient(110deg, #0b4fa8 0%, #5b34a8 55%, #9b1460 100%);
  color: var(--white);
  isolation: isolate;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); }
/* Liquid light: two soft glows flow slowly across the banner, under the grid. They only lighten the colours a little,
   so white text keeps its contrast. */
.cta-banner::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(28% 38% at 30% 40%, rgba(0, 200, 255, .28), transparent 70%),
    radial-gradient(24% 34% at 70% 60%, rgba(255, 120, 200, .22), transparent 70%);
  pointer-events: none;
  animation: ambient-flow 26s ease-in-out infinite alternate;
}
@keyframes ambient-flow {
  0% { transform: translate3d(-8%, 4%, 0) rotate(0deg); }
  50% { transform: translate3d(6%, -6%, 0) rotate(8deg) scale(1.1); }
  100% { transform: translate3d(10%, 6%, 0) rotate(-6deg); }
}
.cta-banner .eyebrow { color: rgba(255, 255, 255, .9); }
.cta-banner h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); max-width: 18ch; }
.cta-banner p { font-size: var(--fs-lg); color: rgba(255, 255, 255, .9); max-width: 56ch; margin-block: 20px 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-inverse-muted); font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(140px, 1fr)); gap: 32px; padding-block: 52px 36px; }
.footer-brand .brand { color: var(--white); margin-block-end: 16px; }
.footer-brand .brand__name small { color: var(--text-inverse-muted); }
.footer-brand p { max-width: 36ch; }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-block-end: 16px; }
[lang="ar"] .footer-col h2 { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 12px; margin-block-start: 20px; }
.footer-contact a, .footer-contact address { display: flex; gap: 10px; align-items: flex-start; font-style: normal; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; margin-block-start: 2px; color: var(--cyan-300); }
.footer-social { display: flex; gap: 8px; margin-block-start: 20px; list-style: none; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); color: var(--white); }
.footer-social a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-block-start: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
@media (max-width: 1023px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; padding-block-start: 56px; } }

/* ---------- Spec table ---------- */
.spec-table { font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: 14px 0; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { width: 42%; font-weight: 400; color: var(--text-muted); padding-inline-end: 24px; }
.spec-table td { font-weight: 500; }

/* ---------- Tables (admin + public) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* Prices: SAR excluding VAT; the amount stays LTR inside Arabic text */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.price__amount { font-weight: 500; color: var(--text); unicode-bidi: isolate; }
.price__note, .price__incl { font-size: var(--fs-xs); color: var(--text-muted); }
.price--card { margin-block-start: 0; }
.price--card .price__amount { font-size: 1.0625rem; }
.price--detail { margin-block: 4px 18px; }
.price--detail .price__amount { font-size: 1.75rem; letter-spacing: -0.01em; }
.price--detail .price__incl { flex-basis: 100%; }

/* ---------- Floating buttons: simulator and WhatsApp ----------
   One stack in the bottom-right corner on every page (as asked, also in Arabic). Above page content, below the
   header menus. On phones with the product page's bottom bar it moves up so the two never overlap. */
.fab-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.fab-stack > * { pointer-events: auto; }
.fab-stack:empty { display: none; }
.wa { position: relative; }

.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1d5fe0, #5b34a8);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(29, 95, 224, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sim-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(29, 95, 224, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.sim-btn .icon { width: 20px; height: 20px; }
.sim-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-pill); }

/* Simulator popup: a large glass-framed window; full screen on phones. */
.sim-dialog {
  width: min(1400px, 94vw);
  height: min(900px, 90vh);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 40px 90px -30px rgba(7, 13, 28, .7);
  color: var(--ink);
}
.sim-dialog[open] { display: flex; flex-direction: column; animation: wa-in .2s var(--ease); }
.sim-dialog::backdrop { background: rgba(7, 13, 28, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sim-dialog__bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-block-end: 1px solid rgba(23, 48, 106, .1); background: rgba(255, 255, 255, .8); }
[dir="rtl"] .sim-dialog__bar { padding: 10px 20px 10px 10px; }
.sim-dialog__title { margin: 0; margin-inline-end: auto; font-size: var(--fs-md); font-weight: 600; }
.sim-dialog__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--accent); text-decoration: none; }
.sim-dialog__link:hover { text-decoration: underline; }
.sim-dialog__link .icon { width: 16px; height: 16px; }
.sim-dialog__close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(23, 48, 106, .06); color: var(--ink); cursor: pointer; }
.sim-dialog__close:hover { background: rgba(23, 48, 106, .12); }
.sim-dialog__close .icon { width: 20px; height: 20px; }
.sim-dialog__body { position: relative; flex: 1; min-height: 0; background: #05070d; }
.sim-dialog__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s var(--ease); }
.sim-dialog.is-loaded .sim-dialog__frame { opacity: 1; }
.sim-dialog__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; margin: 0; color: rgba(255, 255, 255, .8); font-size: var(--fs-sm); }
.sim-dialog.is-loaded .sim-dialog__loading { display: none; }
.sim-dialog__spinner { width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #6fdcf2; border-radius: 50%; animation: spin .9s linear infinite; }
body.sim-open { overflow: hidden; }
@media (max-width: 600px) {
  .sim-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .sim-dialog__link span, .sim-dialog__link { font-size: var(--fs-xs); }
}
.wa__btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(7, 94, 84, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.wa__btn::-webkit-details-marker { display: none; }
.wa__btn:hover { transform: scale(1.06); background: #1ebe5b; }
.wa__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 50%; }
.wa__icon { width: 32px; height: 32px; }
.wa__icon--close { display: none; width: 24px; height: 24px; }
.wa[open] .wa__icon--open { display: none; }
.wa[open] .wa__icon--close { display: block; }
/* A soft pulse invites the first tap; it stops once the card has been opened and for reduced motion. */
.wa:not([open]) .wa__btn { animation: wa-pulse 2.8s ease-out 1.5s 3; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 10px 28px -8px rgba(7, 94, 84, .6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 28px -8px rgba(7, 94, 84, .6); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 28px -8px rgba(7, 94, 84, .6); }
}
.wa__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(300px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 1px rgba(23, 48, 106, .08), var(--shadow-lg), inset 0 1px 0 #fff;
  color: var(--ink);
  animation: wa-in .2s var(--ease);
}
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } }
.wa__title { margin: 0 0 6px; font-weight: 600; font-size: var(--fs-md); color: #075e54; }
.wa__text { margin: 0 0 14px; font-size: var(--fs-sm); color: var(--text-muted); }
.wa__start { --btn-bg: #25d366; --btn-fg: #06291a; width: 100%; }
.wa__start:hover { --btn-bg: #1ebe5b; }
@media (max-width: 760px) {
  .wa__btn { width: 52px; height: 52px; }
  .has-sticky-cta .fab-stack { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sim-btn { min-height: 42px; padding: 8px 14px 8px 12px; }
}
@media print { .fab-stack, .sim-dialog { display: none; } }
