/**
 * VISIO | فيسيو — Design System v2
 * Loaded on every page after visio.css and visio-rtl.css.
 *
 * - One type family per script: Plus Jakarta Sans (Latin), IBM Plex Sans Arabic (Arabic)
 *   (matches the approved Home Entertainment hero)
 * - Text greys raised to readable contrast on the black background (WCAG AA)
 * - Shared header, mobile menu and footer styles (markup: src/partials/)
 *
 * Inline styles in pages use var(--font-display) / var(--font-body) / var(--font-ar),
 * so changing a font here changes it everywhere.
 */

:root {
  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: var(--font-latin);
  --font-body: var(--font-latin);

  /* Text greys (contrast on #0a0a0c: 12.0, 8.2, 6.1, 4.8) */
  --ink-100: #c9c9cf;
  --ink-200: #a6a6ae;
  --ink-300: #8e8e97;
  --ink-400: #7c7c85;
}

html[dir="rtl"],
html[lang="ar"],
body.lang-ar {
  --font-display: var(--font-ar);
  --font-body: var(--font-ar);
}

body {
  font-family: var(--font-body);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-arabic { font-family: var(--font-ar); }

.h1, .h2, .h3,
h1, h2, h3, h4 {
  font-family: var(--font-display);
}

.h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.eyebrow,
.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.75;
  color: var(--ink-100);
}

/* Arabic: no uppercase or wide tracking, taller line height */
html[dir="rtl"] .h1, html[dir="rtl"] .h2, html[dir="rtl"] .h3,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
  letter-spacing: normal;
  line-height: 1.35;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-label,
html[dir="rtl"] .btn-yellow,
html[dir="rtl"] .btn-outline,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .nav-dropdown a,
html[dir="rtl"] .mobile-menu a {
  letter-spacing: normal;
  text-transform: none;
}

html[dir="rtl"] .lead {
  line-height: 1.9;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-yellow,
.btn-outline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.92rem;
  min-height: 44px;
  justify-content: center;
}

/* ── Tags and pills ─────────────────────────────────────────────────────── */
.tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════════════════
   SHARED HEADER
   ══════════════════════════════════════════════════════════════════════════ */
#main-nav .nav-inner {
  gap: 24px;
}

#main-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-end: 8px;
}

.nav-link,
.nav-dropdown a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.nav-dropdown a {
  font-size: 0.92rem;
}

/* Dropdown also opens for keyboard and touch, not only on hover */
.nav-item:focus-within .nav-dropdown,
.nav-link[aria-expanded="true"] + .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-link:focus-visible,
.nav-dropdown a:focus-visible,
.lang-btn:focus-visible,
.nav-burger:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.lang-btn {
  font-family: var(--font-display);
}

/* ── Mobile menu ────────────────────────────────────────────────────────── */
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 13px 16px;
}

.mobile-menu .mobile-section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ink-300);
}

html[dir="rtl"] .mobile-menu .mobile-section-label {
  letter-spacing: normal;
  font-size: 0.82rem;
}

.mobile-menu .mobile-contact {
  margin-top: 20px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-200);
}

.mobile-menu .mobile-contact a {
  display: inline;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: 500;
  color: var(--yellow);
}

@media (max-width: 1024px) {
  /* Menu opens below the header so the close button stays visible */
  .mobile-menu {
    inset: var(--nav-h) 0 0 0 !important;
    top: var(--nav-h) !important;
    z-index: 999 !important;
    padding: 12px 20px 32px !important;
    overflow-y: auto;
    /* Start at the top (centring pushed the first items out of reach) */
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .mobile-menu a {
    font-size: 1.2rem;
    padding: 14px 16px;
  }

  /* Menu button turns into a close (X) icon while the menu is open */
  .nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Phones and tablets: logo, language switch and menu button only */
  #main-nav .nav-menu {
    display: none !important;
  }

  .nav-burger {
    display: flex !important;
  }

  :root { --nav-h: 64px; }
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }

  .nav-burger {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHARED FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: #070708;
  padding: 72px 0 0;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 56px;
}

.site-footer .footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.85;
}

.site-footer .footer-about {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-200);
  max-width: 340px;
}

.site-footer .footer-legal {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-300);
  max-width: 340px;
}

.site-footer .footer-col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  list-style: none;
}

.site-footer .footer-col-title::-webkit-details-marker {
  display: none;
}

html[dir="rtl"] .site-footer .footer-col-title {
  letter-spacing: normal;
  font-size: 0.92rem;
}

.site-footer .footer-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-200);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

.site-footer .footer-link:hover {
  color: var(--yellow);
}

.site-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 16px;
}

.site-footer .social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #fff;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-footer .social-icon:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(212, 175, 55, 0.08);
}

.site-footer .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .footer-email {
  font-size: 0.88rem;
  color: var(--ink-200);
}

.site-footer .footer-email a {
  color: var(--yellow);
  text-decoration: none;
}

.site-footer .footer-bottom-bar {
  border-top: 1px solid var(--glass-border);
  padding: 18px 0;
  font-size: 0.8rem;
  color: var(--ink-300);
  text-align: center;
}

/* Footer columns are <details>: open on desktop, collapsible on phones */
.site-footer details > summary {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .site-footer {
    padding-top: 48px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 28px;
    text-align: start;
  }

  .site-footer .footer-grid > * {
    align-items: stretch !important;
  }

  .site-footer .footer-brand {
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
  }

  .site-footer details {
    border-bottom: 1px solid var(--glass-border);
  }

  .site-footer details > summary {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 16px 0;
    font-size: 0.86rem;
  }

  .site-footer details > summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--yellow);
    line-height: 1;
  }

  .site-footer details[open] > summary::after {
    content: "−";
  }

  .site-footer details .footer-col-links {
    padding-bottom: 12px;
  }

  .site-footer .footer-link {
    padding: 9px 0;
    font-size: 0.95rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE COMPONENTS (Phase 3) — reused by category, platform and content pages
   ══════════════════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.ds-section { padding: clamp(64px, 9vw, 112px) 0; }
.ds-section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.ds-narrow { max-width: 880px; }

/* Section header */
.ds-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.ds-head .h2 { margin-top: 2px; }
.ds-head .lead { margin-top: 14px; }
.ds-head--left { margin: 0; text-align: start; max-width: none; }

/* Grids */
.ds-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.ds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ds-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ds-grid--2, .ds-grid--3 { grid-template-columns: 1fr; } }

/* Cards */
.ds-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ds-card--link:hover,
.ds-card--link:focus-visible {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.ds-card--link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.ds-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.ds-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ds-card--link:hover .ds-card-media img { transform: scale(1.04); }
.ds-card-media--product { aspect-ratio: 4 / 3; background: #fff; }
.ds-card-media--product img { object-fit: contain; }

.ds-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.ds-card-meta { font-size: 0.78rem; font-weight: 600; color: var(--yellow); letter-spacing: 0.02em; }
.ds-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em; color: #fff;
}
.ds-card--compact .ds-card-title { font-size: 1.1rem; }
.ds-card-text { font-size: 0.93rem; line-height: 1.6; color: var(--ink-200); }
.ds-card-cta { margin-top: auto; padding-top: 8px; font-size: 0.88rem; font-weight: 600; color: var(--yellow); }
.ds-card-cta::after { content: " \2192"; }
html[dir="rtl"] .ds-card-cta::after { content: " \2190"; }
.ds-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Two-column layout: copy + table/media */
.ds-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .ds-split { grid-template-columns: 1fr; } }

.ds-note {
  margin-top: 18px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--yellow);
  font-size: 0.92rem; line-height: 1.7; color: var(--ink-200);
}

/* Data table */
.ds-table-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ds-table th {
  padding: 16px 20px;
  text-align: start;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-300);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html[dir="rtl"] .ds-table th { letter-spacing: normal; text-transform: none; font-size: 0.86rem; }
.ds-table td { padding: 15px 20px; color: var(--ink-100); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table td:first-child { font-weight: 600; color: #fff; white-space: nowrap; }
.ds-table td:nth-child(2) { font-weight: 600; color: var(--yellow); white-space: nowrap; }
.ds-table-note {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem; line-height: 1.6; color: var(--ink-300);
}
@media (max-width: 480px) {
  .ds-table { font-size: 0.86rem; }
  .ds-table th, .ds-table td { padding: 12px 12px; }
}

/* Call-to-action panel with trust points */
.ds-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(212, 175, 55, 0.10), transparent 55%), var(--ink-800);
  border: 1px solid rgba(212, 175, 55, 0.22);
}
html[dir="rtl"] .ds-cta-panel {
  background: radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, 0.10), transparent 55%), var(--ink-800);
}
@media (max-width: 900px) { .ds-cta-panel { grid-template-columns: 1fr; } }
.ds-trust { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.ds-trust li { position: relative; padding-inline-start: 28px; line-height: 1.6; color: var(--ink-100); }
.ds-trust li::before {
  content: "";
  position: absolute; inset-inline-start: 2px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow);
  transform: rotate(-45deg);
}
.ds-trust strong { font-weight: 600; color: #fff; }
.ds-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.ds-cta-actions > span { display: block; }
.ds-cta-actions .btn-yellow,
.ds-cta-actions .btn-outline { display: flex; width: 100%; text-align: center; }

/* FAQ accordion */
.ds-faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ds-faq details:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ds-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.45; color: #fff;
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--yellow); }
.ds-faq details[open] summary::after { content: "\2212"; }
.ds-faq summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.ds-faq details p { max-width: 70ch; padding: 0 0 22px; line-height: 1.75; color: var(--ink-200); }

/* Wide product image (soundbars and other long, low products) */
.ds-card-media--wide { aspect-ratio: 16 / 9; }

/* Phones: swipeable row (next card peeks in) */
@media (max-width: 640px) {
  .ds-grid--swipe {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    margin-inline: -20px;
    padding: 4px 20px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ds-grid--swipe::-webkit-scrollbar { display: none; }
  .ds-grid--swipe > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .ds-grid--swipe .ds-card--link:hover { transform: none; }

  /* Phones: two compact cards per row */
  .ds-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ds-grid--pair .ds-card-body { padding: 12px 12px 14px; gap: 4px; }
  .ds-grid--pair .ds-card-title { font-size: 0.95rem; }
  .ds-grid--pair .ds-card-text { font-size: 0.8rem; line-height: 1.5; }
  .ds-grid--pair .ds-card { border-radius: 14px; }
}

/* FAQ — two-column layout with question cards */
.ds-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.ds-faq-intro { position: sticky; top: calc(var(--nav-h, 72px) + 32px); }
.ds-faq-intro .lead { margin-top: 14px; }
@media (max-width: 900px) {
  .ds-faq-layout { grid-template-columns: 1fr; }
  .ds-faq-intro { position: static; }
}

.ds-help-card {
  margin-top: 28px;
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-help-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #fff; }
.ds-help-text { margin-top: 6px; font-size: 0.92rem; line-height: 1.6; color: var(--ink-200); }
.ds-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.ds-text-link { font-size: 0.92rem; font-weight: 600; color: var(--yellow); text-decoration: none; }
.ds-text-link::after { content: " \2192"; }
html[dir="rtl"] .ds-text-link::after { content: " \2190"; }
.ds-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Phones and tablets: intro, then questions, then the help box */
@media (max-width: 900px) {
  .ds-faq-layout { display: flex; flex-direction: column; gap: 0; }
  .ds-faq-intro { display: contents; }
  .ds-faq-intro > .eyebrow, .ds-faq-intro > .h2, .ds-faq-intro > .lead { order: 0; }
  .ds-faq-intro > .lead { margin-bottom: 28px; }
  .ds-faq--cards { order: 1; }
  .ds-help-card { order: 2; margin-top: 18px; }
}

.ds-faq--cards details,
.ds-faq--cards details:first-child {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--ink-800);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.ds-faq--cards details:hover { border-color: rgba(255, 255, 255, 0.16); }
.ds-faq--cards details[open] {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), transparent 70%), var(--ink-800);
}
.ds-faq--cards summary { justify-content: flex-start; gap: 14px; padding: 18px 20px; font-size: 1rem; }
.ds-faq-num { flex-shrink: 0; min-width: 22px; font-size: 0.78rem; font-weight: 700; color: var(--yellow); letter-spacing: 0.04em; }
.ds-faq-q { flex: 1; }
.ds-faq--cards summary::after {
  content: "+";
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.ds-faq--cards details[open] summary::after { content: "+"; transform: rotate(45deg); background: rgba(212, 175, 55, 0.12); }
.ds-faq--cards details p { padding: 0 20px 20px; padding-inline-start: 56px; }
@media (max-width: 640px) {
  .ds-faq--cards summary { padding: 16px; gap: 10px; font-size: 0.96rem; }
  .ds-faq--cards details p { padding: 0 16px 18px; padding-inline-start: 48px; }
}

/* Product photos sit on the same soft background as the images */
.ds-card-media--product { background: #f3f3f0; }

/* Key specs inside a product card */
.ds-specs { list-style: none; display: grid; gap: 0; margin-top: 6px; }
.ds-specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem; color: var(--ink-200);
}
.ds-specs strong { font-weight: 600; color: #fff; text-align: end; }

/* Comparison table: row labels on the side, one column per model */
.ds-table-wrap--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ds-table--compare { min-width: 560px; }
.ds-table--compare thead th { color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; }
.ds-table--compare thead th:first-child { color: var(--ink-300); }
.ds-table--compare tbody th {
  padding: 15px 20px;
  text-align: start; font-weight: 500; font-size: 0.9rem;
  color: var(--ink-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.ds-table--compare tbody tr:last-child th { border-bottom: 0; }
.ds-table--compare td,
.ds-table--compare td:first-child,
.ds-table--compare td:nth-child(2) { color: #fff; font-weight: 600; white-space: nowrap; }
html[dir="rtl"] .ds-table--compare thead th { letter-spacing: normal; }

/* Feature list under a table */
.ds-feature-list { margin-top: 28px; }
.ds-feature-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; }
.ds-trust--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 14px; }
@media (max-width: 900px) { .ds-trust--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ds-trust--cols { grid-template-columns: 1fr; } }

/* Numbered steps */
.ds-steps { list-style: none; display: grid; gap: 14px; counter-reset: ds-step; }
.ds-steps li {
  position: relative;
  display: grid; gap: 4px;
  padding: 20px 22px;
  padding-inline-start: 72px;
  border-radius: 16px;
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: ds-step;
}
.ds-steps li::before {
  content: counter(ds-step);
  position: absolute; inset-inline-start: 22px; top: 20px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--yellow); font-weight: 700; font-size: 0.95rem;
}
.ds-steps strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #fff; }
.ds-steps span { font-size: 0.93rem; line-height: 1.65; color: var(--ink-200); }

/* Coming-soon cards */
.ds-card--soon .ds-card-body { padding: 26px 26px 28px; gap: 10px; }
.ds-soon-icon { width: 34px; height: 34px; color: var(--yellow); opacity: 0.9; }
.ds-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  color: var(--yellow);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}
.ds-table--compare tbody th { text-transform: none; letter-spacing: 0; background: transparent; }

/* Comparison table on phones: model labels stay visible while scrolling sideways */
.ds-table--compare tbody th,
.ds-table--compare thead th:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--ink-800);
}
@media (max-width: 640px) {
  .ds-table--compare tbody th { white-space: normal; min-width: 110px; }
}

/* Category hero: darken behind the text side (mirrors in Arabic), stronger on phones */
.cat-hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.35) 55%, rgba(8, 8, 8, 0.15) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.92) 0%, transparent 45%);
}
html[dir="rtl"] .cat-hero-overlay {
  background:
    linear-gradient(270deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.35) 55%, rgba(8, 8, 8, 0.15) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.92) 0%, transparent 45%);
}
@media (max-width: 768px) {
  .cat-hero-overlay,
  html[dir="rtl"] .cat-hero-overlay {
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.6) 55%, rgba(8, 8, 8, 0.45) 100%);
  }
}
@media (max-width: 640px) {
  .ds-table--compare tbody th,
  .ds-table--compare thead th:first-child { box-shadow: inset -1px 0 0 rgba(255,255,255,0.12), 6px 0 10px -6px rgba(0,0,0,0.8); }
  html[dir="rtl"] .ds-table--compare tbody th,
  html[dir="rtl"] .ds-table--compare thead th:first-child { box-shadow: inset 1px 0 0 rgba(255,255,255,0.12), -6px 0 10px -6px rgba(0,0,0,0.8); }
}

/* ── Full-bleed feature banners (Home Entertainment "Sight & Sound") ── */
.ds-banners { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: #000; }
.ds-banners .ds-head { text-align: center; margin-inline: auto; }
.ds-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(420px, 56.25vw, 80vh);
  padding: 0 max(6vw, 24px);
  margin-top: 10px;
}
.ds-banner--end { justify-content: flex-end; }
.ds-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ds-banner--start::after { background: linear-gradient(to right, rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.3) 66%, transparent 84%); }
.ds-banner--end::after   { background: linear-gradient(to left,  rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.3) 66%, transparent 84%); }
html[dir="rtl"] .ds-banner--start::after { background: linear-gradient(to left,  rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.3) 66%, transparent 84%); }
html[dir="rtl"] .ds-banner--end::after   { background: linear-gradient(to right, rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.3) 66%, transparent 84%); }
.ds-banner-copy { position: relative; z-index: 1; max-width: 520px; }
.ds-banner--end .ds-banner-copy { text-align: end; }
.ds-banner-copy > *, [dir="rtl"] .ds-banner-copy > .eyebrow { text-align: inherit; }
@media (max-width: 768px) { .ds-banner--end .ds-banner-copy { text-align: start; } }
.ds-banner-title {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin: 12px 0 16px;
}
html[dir="rtl"] .ds-banner-title { font-family: var(--font-ar); line-height: 1.3; }
.ds-banner-text { color: var(--ink-100); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.65; margin: 0 0 18px; }
@media (max-width: 768px) {
  .ds-banner, .ds-banner--end {
    min-height: 0; aspect-ratio: 4 / 5;
    align-items: flex-end; justify-content: flex-start;
    padding: 0 20px 28px;
  }
  .ds-banner--start::after, .ds-banner--end::after,
  html[dir="rtl"] .ds-banner--start::after, html[dir="rtl"] .ds-banner--end::after {
    background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.85) 42%, rgba(0,0,0,.3) 62%, transparent 78%);
  }
}
/* Coming-soon product shots: same tone as the washer cards, extra air around the product */
.ds-card-media--soon { aspect-ratio: 16 / 9; }
.ds-card-media--soon img { padding: 22px 28px; }

/* Dark product stage for white appliances (black products keep the light stage) */
.ds-card-media--dark {
  position: relative;
  background: radial-gradient(120% 90% at 50% 32%, #303036 0%, #1c1c20 55%, #131315 100%);
}
.ds-card-media--dark::after {
  content: ""; position: absolute; z-index: 0;
  left: 18%; right: 18%; bottom: 6%; height: 9%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
}
.ds-card-media--dark img {
  position: relative; z-index: 1;
  padding: 20px 24px 24px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}
.cat-hero-content > .ds-badge { display: block; width: fit-content; margin-bottom: 14px; }
@media (min-width: 769px) { .cat-hero-content > .ds-badge { margin-inline: auto; } }

/* Four-up product grid (Clean & Care) */
.ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .ds-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ds-grid--4 { grid-template-columns: 1fr; } }

/* Featured product: photo + copy + spec list */
.ds-split--feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.ds-feature-media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.ds-feature-copy .h2 { margin: 6px 0 14px; }
.ds-feature-copy .ds-specs { margin: 18px 0 24px; }
.ds-feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .ds-split--feature { grid-template-columns: 1fr; } }
.ds-feature-list > .ds-badge { margin-bottom: 10px; }
.ds-table--wrap td:first-child, .ds-table--wrap td:nth-child(2) { white-space: normal; }
.ds-feature-list > h2.ds-feature-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 4px; }
.ds-grid--narrow { max-width: 860px; margin-inline: auto; }
/* Model links inside spec rows (mounts, stands) */
.ds-model-link { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ds-model-link:hover { color: #fff; }
.ds-card .ds-specs--models { margin-top: 10px; }
.ds-card .ds-card-cta { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .ds-grid--pair .ds-specs--models li { font-size: 0.74rem; gap: 6px; }
  .ds-grid--pair .ds-specs--models li > span { white-space: nowrap; }
}
.ds-specs--models li > strong { flex-shrink: 0; }

/* ═══ HOMEPAGE ═══ */
.home-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; background: #08080a; padding: calc(var(--nav-h, 72px) + 32px) 0 40px; }
/* Image sits on the right and fades into the dark side, so the headline never covers the TV */
.home-hero-bg { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; background-size: cover; background-position: 55% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%); mask-image: linear-gradient(90deg, transparent 0%, #000 36%); }
html[dir="rtl"] .home-hero-bg { right: auto; left: 0; background-position: 45% 45%;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 36%); mask-image: linear-gradient(270deg, transparent 0%, #000 36%); }
.home-hero-overlay { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 70% at 18% 50%, rgba(212,175,55,.07), transparent 70%),
  linear-gradient(to top, #08080a 0%, transparent 22%),
  linear-gradient(to bottom, rgba(8,8,8,.55) 0%, transparent 18%); }
html[dir="rtl"] .home-hero-overlay { background:
  radial-gradient(60% 70% at 82% 50%, rgba(212,175,55,.07), transparent 70%),
  linear-gradient(to top, #08080a 0%, transparent 22%),
  linear-gradient(to bottom, rgba(8,8,8,.55) 0%, transparent 18%); }
.home-hero-content { position: relative; z-index: 1; width: 100%; }
.home-hero-content > * { max-width: 560px; }
.home-hero .h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; margin: 10px 0 18px; text-align: start; }
html[dir="rtl"] .home-hero .h1 { line-height: 1.3; }
.home-hero .lead { color: var(--ink-100); text-align: start; max-width: 500px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; font-size: 0.85rem; color: var(--ink-100); }
.home-hero-trust li { display: flex; align-items: center; gap: 8px; }
.home-hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
@media (max-width: 1024px) {
  .home-hero { min-height: 0; align-items: flex-end; padding-top: calc(var(--nav-h, 64px) + clamp(250px, 48vw, 420px)); }
  .home-hero-bg, html[dir="rtl"] .home-hero-bg { inset: 0 0 auto 0; width: 100%; height: clamp(420px, 70vw, 640px); background-position: center 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
  .home-hero-overlay, html[dir="rtl"] .home-hero-overlay { background: linear-gradient(to bottom, rgba(8,8,8,.5) 0%, transparent 25%); }
  .home-hero-actions > * { flex: 1 1 auto; text-align: center; }
}

/* Category tiles */
.home-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: clamp(12px, 1.6vw, 20px); }
.home-cat { position: relative; display: block; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: #111; text-decoration: none; color: #fff; isolation: isolate; }
.home-cat--lg { grid-column: span 2; grid-row: span 2; }
.home-cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -1; }
.home-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 45%, transparent 75%); z-index: -1; }
.home-cat:hover .home-cat-img { transform: scale(1.04); }
.home-cat-info { position: absolute; inset-inline: 22px; bottom: 20px; }
.home-cat-title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 700; margin: 0 0 4px; color: #fff; }
.home-cat--lg .home-cat-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
html[dir="rtl"] .home-cat-title { font-family: var(--font-ar); }
.home-cat-sub { margin: 0; font-size: 0.86rem; color: var(--ink-100); }
.home-cat-arrow { position: absolute; top: 16px; inset-inline-end: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .3s, color .3s; }
html[dir="rtl"] .home-cat-arrow svg { transform: scaleX(-1); }
.home-cat:hover .home-cat-arrow { background: var(--yellow); color: #000; }
.home-cat-badge { position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .home-cat--lg { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 520px) {
  .home-cats { grid-auto-rows: 170px; gap: 10px; }
  .home-cat-info { inset-inline: 14px; bottom: 12px; }
  .home-cat-title { font-size: 1rem; }
  .home-cat-sub { font-size: 0.74rem; }
  .home-cat-arrow { width: 28px; height: 28px; top: 10px; inset-inline-end: 10px; }
  .home-cat-badge { top: 10px; inset-inline-start: 10px; }
}

/* Smart TV platform tiles */
.home-plats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.home-plat { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-radius: 18px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); text-decoration: none; transition: border-color .3s, transform .3s; }
.home-plat:hover { border-color: rgba(212,175,55,.6); transform: translateY(-3px); }
.home-plat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.home-plat-size { font-weight: 700; color: var(--yellow); font-size: 0.95rem; }
.home-plat-note { font-size: 0.8rem; color: var(--ink-200); line-height: 1.45; }
@media (max-width: 1100px) { .home-plats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .home-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-plat { padding: 16px 14px; } }

/* Retailers */
.home-retailers { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-retailers li { display: grid; place-items: center; height: 84px; padding: 14px 18px; border-radius: 16px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); }
.home-retailers img { max-height: 40px; width: auto; max-width: 100%; object-fit: contain; opacity: .9; }
.home-retailer-text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.01em; }
.home-center { display: flex; justify-content: center; }
@media (max-width: 900px) { .home-retailers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .home-retailers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-retailers li { height: 70px; } .home-retailers img { max-height: 32px; } }

/* About + badges */
.home-about .h2 { margin: 6px 0 16px; }
.home-about-actions { margin-top: 18px; }
.home-badges ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.home-badges li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); color: var(--ink-100); font-weight: 600; font-size: 0.95rem; }
.home-badges img { height: 44px; width: auto; flex-shrink: 0; }

/* Support banner (no stock photo: real support channels instead) */
.home-support { position: relative; overflow: hidden; border-radius: 28px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(24px,4vw,56px); align-items: center; padding: clamp(28px,6vw,72px); border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(120% 140% at 100% 0%, rgba(212,175,55,.16) 0%, rgba(212,175,55,.04) 38%, transparent 62%), linear-gradient(180deg,#121214 0%,#0b0b0d 100%); }
html[dir="rtl"] .home-support { background: radial-gradient(120% 140% at 0% 0%, rgba(212,175,55,.16) 0%, rgba(212,175,55,.04) 38%, transparent 62%), linear-gradient(180deg,#121214 0%,#0b0b0d 100%); }
.home-support-copy { position: relative; z-index: 1; max-width: 520px; }
.home-support-copy .h2 { margin: 8px 0 14px; }
.home-support-copy .lead { margin-bottom: 26px; }
.home-support-media { position: relative; aspect-ratio: 128 / 85; }
.home-support-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-support-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.home-support-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.home-support-item:hover { border-color: rgba(212,175,55,.45); background: rgba(212,175,55,.06); transform: translateY(-2px); }
.home-support-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(212,175,55,.12); color: var(--yellow); }
.home-support-icon svg { width: 24px; height: 24px; }
.home-support-icon svg:not([fill="none"]) { fill: currentColor; }
.home-support-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-support-text strong { font-size: 1.02rem; font-weight: 700; color: #fff; }
.home-support-text span { font-size: .92rem; color: rgba(255,255,255,.65); }
@media (max-width: 860px) {
  .home-support { grid-template-columns: minmax(0,1fr); }
  .home-support-media { order: -1; }
  .home-support-list { grid-template-columns: minmax(0,1fr); }
}

/* Footer: contact list + bottom legal bar */
.site-footer .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-300); }
.site-footer .footer-contact a { color: var(--yellow); text-decoration: none; margin-inline-start: 6px; }
.site-footer .footer-contact a:hover { text-decoration: underline; }
.site-footer .footer-bottom { border-top: 1px solid var(--glass-border); }
.site-footer .footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 20px 24px; }
.site-footer .footer-bottom .footer-copy,
.site-footer .footer-bottom .footer-legal { margin: 0; max-width: none; font-size: 0.78rem; line-height: 1.6; color: var(--ink-300); }
@media (max-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer .footer-brand { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom-inner { flex-direction: column; text-align: start; }
}

/* ═══ SMART TV PLATFORM PAGES ═══ */
.plat-hero { position: relative; padding: calc(var(--nav-h, 72px) + 48px) 0 56px; background:
  radial-gradient(60% 70% at 75% 45%, rgba(212,175,55,.10) 0%, transparent 70%), linear-gradient(180deg, #0d0d10 0%, #08080a 100%); overflow: hidden; }
html[dir="rtl"] .plat-hero { background: radial-gradient(60% 70% at 25% 45%, rgba(212,175,55,.10) 0%, transparent 70%), linear-gradient(180deg, #0d0d10 0%, #08080a 100%); }
.plat-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.plat-back { display: inline-block; margin-bottom: 14px; font-size: .85rem; color: var(--ink-200); text-decoration: none; }
.plat-back::before { content: "\2190  "; }
html[dir="rtl"] .plat-back::before { content: "\2192  "; }
.plat-back:hover { color: var(--yellow); }
.plat-hero .h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.08; margin: 0 0 16px; text-align: start; }
html[dir="rtl"] .plat-hero .h1 { line-height: 1.3; }
.plat-hero .lead { text-align: start; color: var(--ink-100); }
.plat-sizes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plat-sizes li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(212,175,55,.45); color: var(--yellow); font-weight: 700; font-size: .85rem; }
.plat-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.plat-hero-media img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
@media (max-width: 900px) {
  .plat-hero-grid { grid-template-columns: 1fr; }
  .plat-hero-media { order: -1; max-width: 560px; margin-inline: auto; }
  .plat-hero { padding-top: calc(var(--nav-h, 64px) + 24px); }
  .plat-hero-actions > * { flex: 1 1 auto; text-align: center; }
}

.plat-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: rgba(0,0,0,.6); }
.ds-grid--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plat-box { margin-top: 24px; }
.plat-box .ds-trust { margin-top: 12px; }
.home-plats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .home-plats--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .home-plats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ds-card-note { margin-top: auto; padding-top: 8px; font-size: .86rem; color: var(--ink-200); }

/* Model cards: spec cards led by screen size (all models share one body; only size differs) */
.plat-model { border-top: 3px solid rgba(212,175,55,.55); }
.plat-model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.plat-size-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: .95; color: #fff; letter-spacing: -.03em; }
.plat-size-num small { font-size: .55em; color: var(--yellow); margin-inline-start: 2px; vertical-align: top; }
.plat-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.plat-badges .plat-badge--soon { background: rgba(212,175,55,.92); color: #111; border-color: transparent; }

/* Platform pages: "Is it right for you?" */
.plat-fit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.plat-fit-best, .plat-fit-know { border-radius: 22px; padding: clamp(24px, 3vw, 36px); background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); }
.plat-fit-best { background: linear-gradient(160deg, rgba(212,175,55,.10) 0%, rgba(212,175,55,0) 55%), var(--ink-800); border-color: rgba(212,175,55,.35); }
.plat-fit-side { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.plat-fit-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 16px; }
html[dir="rtl"] .plat-fit-title { font-family: var(--font-ar); }
.plat-fit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.plat-fit-list li { position: relative; padding-inline-start: 34px; color: var(--ink-100); font-size: 1rem; line-height: 1.55; }
.plat-fit-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.plat-fit-list--info li { font-size: .93rem; color: var(--ink-200); }
.plat-fit-list--info li::before { background: transparent; border: 2px solid var(--ink-300); width: 20px; height: 20px; content: "i"; color: var(--ink-200); font: 700 12px/16px var(--font-display); text-align: center; }
.plat-fit-alt { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.18); text-decoration: none; color: var(--ink-200); font-size: .92rem; transition: border-color .3s; }
.plat-fit-alt strong { color: var(--yellow); font-size: 1.02rem; }
.plat-fit-alt strong::after { content: " \2192"; }
html[dir="rtl"] .plat-fit-alt strong::after { content: " \2190"; }
.plat-fit-alt:hover { border-color: var(--yellow); }
@media (max-width: 900px) { .plat-fit { grid-template-columns: 1fr; } }

/* ═══ WARRANTY PAGE ═══ */
.war-hero { padding: calc(var(--nav-h, 72px) + 56px) 0 56px; background:
  radial-gradient(55% 80% at 80% 20%, rgba(212,175,55,.12) 0%, transparent 65%), linear-gradient(180deg, #0d0d10 0%, #08080a 100%); }
html[dir="rtl"] .war-hero { background: radial-gradient(55% 80% at 20% 20%, rgba(212,175,55,.12) 0%, transparent 65%), linear-gradient(180deg, #0d0d10 0%, #08080a 100%); }
.war-hero-inner > * { max-width: 720px; }
.war-hero .h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; margin: 10px 0 16px; text-align: start; }
html[dir="rtl"] .war-hero .h1 { line-height: 1.3; }
.war-hero .lead { text-align: start; color: var(--ink-100); }
.war-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.war-quick { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px !important; }
.war-quick li { padding: 18px 20px; border-radius: 18px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.war-quick strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.war-quick span { font-size: .88rem; color: var(--ink-200); }
@media (max-width: 640px) { .war-quick { grid-template-columns: 1fr; } .war-hero-actions > * { flex: 1 1 auto; text-align: center; } }
.war-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: war; }
.war-steps li { counter-increment: war; position: relative; padding: 28px 24px 26px; border-radius: 20px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); }
.war-steps li::before { content: counter(war); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #111; font: 800 1.05rem var(--font-display); margin-bottom: 16px; }
.war-step-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
html[dir="rtl"] .war-step-title { font-family: var(--font-ar); }
.war-step-text { color: var(--ink-200); font-size: .95rem; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .war-steps { grid-template-columns: 1fr; } }
.war-contact { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: 20px; border: 1px solid rgba(212,175,55,.35); background: linear-gradient(120deg, rgba(212,175,55,.10), rgba(212,175,55,0) 60%), var(--ink-800); }
.war-contact-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.war-contact-text { margin: 0; color: var(--ink-200); }
.war-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.war-cov-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--yellow); line-height: 1; margin-bottom: 4px; }
.war-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 24px); }
.war-box, .war-quality { border-radius: 22px; padding: clamp(26px, 3vw, 40px); background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); }
.war-box { border-color: rgba(212,175,55,.35); }
.war-duo-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; color: #fff; margin: 8px 0 14px; }
html[dir="rtl"] .war-duo-title { font-family: var(--font-ar); }
.war-duo-text { color: var(--ink-100); line-height: 1.7; margin: 0 0 12px; }
.war-duo-note { color: var(--yellow); font-weight: 600; margin: 0; }
.war-quality-stat { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 12px; }
.war-quality-stat strong { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 800; color: #fff; line-height: 1; }
.war-quality-stat span { color: var(--yellow); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 900px) { .war-duo { grid-template-columns: 1fr; } }
.war-terms { border-radius: 18px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.08); padding: 4px 24px; }
.war-terms summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: #fff; list-style: none; }
.war-terms summary::-webkit-details-marker { display: none; }
.war-terms summary::after { content: "+"; float: inline-end; color: var(--yellow); font-size: 1.3rem; line-height: 1; }
.war-terms[open] summary::after { content: "\2212"; }
.war-terms .ds-trust { padding-bottom: 20px; }
.war-center-sub { margin: -4px 0 4px; color: var(--ink-300); font-size: .88rem; }

/* ═══ COMPANY PAGES (About / FAQ / Press) ═══ */
.co-hero { padding-bottom: 40px; }
.co-facts th { width: 38%; color: var(--ink-300); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .9rem; background: transparent; }
.co-facts td { color: #fff; font-weight: 600; }
.co-facts td:first-child, .co-facts td:nth-child(2) { white-space: normal; color: #fff; }
.home-plats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-plats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq-nav-wrap { margin-top: -8px; margin-bottom: 8px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(212,175,55,.45); color: var(--yellow); text-decoration: none; font-weight: 600; font-size: .9rem; }
.faq-chip:hover { background: rgba(212,175,55,.12); }
.faq-group { scroll-margin-top: calc(var(--nav-h, 72px) + 16px); }
.faq-group-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.faq-group-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; color: #fff; margin: 0 0 10px; }
html[dir="rtl"] .faq-group-title { font-family: var(--font-ar); }
.faq-group-head { position: sticky; top: calc(var(--nav-h, 72px) + 24px); }
@media (max-width: 900px) { .faq-group-grid { grid-template-columns: 1fr; } .faq-group-head { position: static; } }
.press-bp { color: var(--ink-100); line-height: 1.75; margin: 6px 0 0; }
.press-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.press-logo--dark { background: #0b0b0d; }
.press-logo img { width: auto !important; height: auto !important; max-width: 60%; max-height: 50%; object-fit: contain; }
.ds-cta-panel .ds-trust a { color: var(--yellow); text-decoration: none; } .ds-cta-panel .ds-trust a:hover { text-decoration: underline; }
.press-bp-wrap { max-width: 860px; margin-inline: auto; } .press-bp-wrap .press-bp { font-size: 1.08rem; margin: 0; }

/* Arabic homepage headline: keep "للمنازل السعودية" together on wide screens */
@media (min-width: 769px) { html[dir="rtl"] .home-hero .h1 .yellow-glow { white-space: nowrap; } }

/* Platform cards: easier to compare at a glance */
#os-ecosystem .ds-card-meta { font-size: 0.9rem; font-weight: 700; color: #F2C94C; letter-spacing: 0.01em; }
#os-ecosystem .ds-card-text { color: var(--ink-100); }

/* Homepage hero on wide screens: keep the photo inside the page frame instead of running to the screen edge */
@media (min-width: 1400px) {
  .home-hero-bg { right: max(0px, calc((100vw - 1340px) / 2)); width: min(60%, 960px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 86%, transparent 100%); }
  html[dir="rtl"] .home-hero-bg { right: auto; left: max(0px, calc((100vw - 1340px) / 2));
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 34%, #000 86%, transparent 100%); mask-image: linear-gradient(270deg, transparent 0%, #000 34%, #000 86%, transparent 100%); }
}
/* Less empty space between the hero and the categories */
.home-hero + .divider, .home-hero ~ .divider:first-of-type { display: none; }
#categories { padding-top: clamp(32px, 4vw, 56px); }

/* Mobile: show the main button on arrival */
@media (max-width: 600px) {
  .home-hero { padding-top: calc(var(--nav-h, 64px) + 150px); padding-bottom: 32px; }
  .home-hero-bg, html[dir="rtl"] .home-hero-bg { height: 280px; }
  .home-hero .h1 { font-size: 2.45rem !important; margin: 6px 0 12px; }
  html[dir="rtl"] .home-hero .h1 { font-size: 2.2rem !important; line-height: 1.3; }
  .home-hero .lead { font-size: 0.95rem !important; line-height: 1.6; }
  html[dir="rtl"] .home-hero .lead { font-size: 0.92rem !important; line-height: 1.65; }
  .home-hero-actions { margin-top: 18px; }
  .home-hero-trust { margin-top: 18px; }
}
