/* Halix store — Arabic (RTL). Loaded after store.css on /ar/ pages only.
   Flex and grid flip by themselves under dir="rtl"; this file fixes what is written with
   physical left/right, swaps the fonts, and keeps JS-driven carousels working. */
:root {
  --serif: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --sans: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[dir="rtl"] body { line-height: 1.75; }

/* Arabic has no case and must not be letter-spaced */
html[dir="rtl"] *, html[dir="rtl"] *::before, html[dir="rtl"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
html[dir="rtl"] .display, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.35; font-weight: 700; }
html[dir="rtl"] .eyebrow { font-size: 13px; }
html[dir="rtl"] .foot__word, html[dir="rtl"] .hdr__logo, html[dir="rtl"] .foot img { direction: ltr; }

/* physical offsets -> mirrored */
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { right: 8px; }
html[dir="rtl"] .badge { right: auto; left: 2px; }
html[dir="rtl"] .menu__close { right: auto; left: 12px; }
html[dir="rtl"] .nav a::after, html[dir="rtl"] .nav button::after { transform-origin: right; }
html[dir="rtl"] .how__step::before, html[dir="rtl"] .cure__line i { transform-origin: right; left: auto; right: 0; }
html[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
html[dir="rtl"] .drawer.open { transform: none; }
html[dir="rtl"] .line { transform: translateX(-24px); }
html[dir="rtl"] .line__x, html[dir="rtl"] .popt__p { text-align: left; }
html[dir="rtl"] .popt__badge { right: auto; left: 16px; }
html[dir="rtl"] .pk__tag { left: auto; right: 26px; }
html[dir="rtl"] .sticky .btn { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .assure li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] table.nut th, html[dir="rtl"] table.nut td { text-align: right; }
html[dir="rtl"] .qz__opt { text-align: right; }
html[dir="rtl"] .qz__opt:hover { transform: translateX(-6px); }
html[dir="rtl"] .pot__dot { padding: 4px 8px 4px 12px; }
@keyframes qzIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

/* arrows point the other way */
html[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: translateX(-6px) scaleX(-1); }

/* price odometer: digits stay left-to-right */
html[dir="rtl"] .odo, html[dir="rtl"] .odo__d, html[dir="rtl"] .odo__col { direction: ltr; }

/* carousels are driven by scrollLeft / translateX in JS: keep them LTR, flip the content back */
html[dir="rtl"] .gal__track, html[dir="rtl"] .rail, html[dir="rtl"] .bt, html[dir="rtl"] .marquee, html[dir="rtl"] .marquee__track, html[dir="rtl"] .thumbs { direction: ltr; }
html[dir="rtl"] .gal__slide, html[dir="rtl"] .rail > *, html[dir="rtl"] .bt > *, html[dir="rtl"] .marquee__track > * { direction: rtl; }
html[dir="rtl"] .gal__slide .gal__over { text-align: right; }

/* Arabic glyphs are taller: keep the big headlines inside their column */
html[dir="rtl"] h1.split, html[dir="rtl"] .hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
html[dir="rtl"] .foot__word { line-height: .9; }
