/* PIXORA — Arabic (RTL) overrides. Loaded after style.css on /ar/ pages only. */
html[dir="rtl"] {
  --font: 'Almarai', 'Lexend Deca', 'Montserrat', -apple-system, sans-serif;
  --font-mono: 'Almarai', 'Montserrat', sans-serif;
}
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea { font-family: var(--font); }

/* Arabic script must never be letter-spaced (it breaks the joins), italicised or upper-cased */
html[dir="rtl"] body * { letter-spacing: 0 !important; font-style: normal !important; }
html[dir="rtl"] .t-display { line-height: 1.15; }
html[dir="rtl"] .t-h1, html[dir="rtl"] .t-h2, html[dir="rtl"] h1, html[dir="rtl"] h2 { line-height: 1.3; }
html[dir="rtl"] p, html[dir="rtl"] li { line-height: 1.9; }

/* Latin-only technical runs (model names, values) keep LTR order but follow RTL alignment */
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }
html[dir="rtl"] td[dir="ltr"], html[dir="rtl"] th[dir="ltr"] { text-align: right; }

/* Directional arrows */
html[dir="rtl"] .btn-icon:hover .arrow { transform: translateX(-4px); }
html[dir="rtl"] .range-product-row:hover .rpr-arrow { transform: translateX(-3px); }
html[dir="rtl"] .breadcrumb-sep, html[dir="rtl"] .bc-sep { display: inline-block; transform: scaleX(-1); }

/* Scripted horizontal tracks keep LTR geometry; their content stays RTL */
html[dir="rtl"] .marquee, html[dir="rtl"] .si-rail, html[dir="rtl"] .si-track { direction: ltr; }
html[dir="rtl"] .marquee-content, html[dir="rtl"] .si-panel { direction: rtl; }

/* Navigation labels stay on one line */
html[dir="rtl"] .nav-link { white-space: nowrap; }
html[dir="rtl"] .nav-links { gap: 0; }

/* Language switcher link in Arabic points to English */
html[dir="rtl"] .nav-lang { font-family: 'Lexend Deca', 'Montserrat', sans-serif; }

/* Product names mix Latin segments: keep them in reading order */
html[dir="rtl"] .pd-hero-name { unicode-bidi: plaintext; text-align: right; }
