/* Arabic, right to left. lang-ar.js sets <html lang="ar" dir="rtl">; nothing here applies in English or French.
   - The layout mirrors by itself (flex and grid follow the direction).
   - Latin text that stays English (slogans, product names, prices, the Instagram handle, brand lines) is kept left-to-right
     inside the Arabic page, so its punctuation and word order never flip ("LEAD." not ".LEAD", "6 500 DA" not "DA 6 500").
   - Letter spacing was designed for capital Latin letters; on Arabic it pulls the joined letters apart, so it is removed
     everywhere except the English slogans. The typewriter font has no Arabic letters: Arabic small print uses the body
     font instead. */
[dir=rtl] :not([data-slogan], [data-slogan] *, [data-content^="slogan."], [data-content^="slogan."] *) { letter-spacing: 0 !important; }

/* slogans: English, left to right, in their usual order */
[dir=rtl] :is([data-slogan], [data-content^="slogan."]) { direction: ltr; unicode-bidi: isolate; text-align: right; }
[dir=rtl] .statement-bar { direction: ltr; }
[dir=rtl] .statement-bar [data-slogan] { text-align: center; }

/* FR / EN / AR keep the same order in every language */
[dir=rtl] .language { direction: ltr; }

/* English blocks inside the Arabic page: left-to-right text, still aligned with the right-to-left layout */
[dir=rtl] :is(#product-title, #product-description, .product-title, .bag-line-name, .bag-line-meta, .kicker:not([data-ar]), [data-content="about.text"]) {
  direction: ltr; unicode-bidi: isolate; text-align: right;
}
[dir=rtl] :is(.chip, .social, .footer-bottom span, .attitude-visual span, .order-number) { direction: ltr; unicode-bidi: isolate; }

/* Arabic small print: the body font, since the typewriter font has no Arabic letters */
[dir=rtl] :is(.kicker[data-ar], .stock-note, .cod-note, .product-badge, .slot) { font-family: Arial, Helvetica, sans-serif; }

/* phone numbers are typed left to right */
[dir=rtl] input[type=tel] { direction: ltr; text-align: right; }
