/*
 * Arabic / RTL layer for the Amerce family. styles.css already carries the template's own
 * [dir=rtl] rules (the core header sets dir on <html>); this adds Arabic typography and the
 * places the template hardcodes a side. Loaded only for RTL languages (theme.json → rtl_style).
 * Cairo is linked by the core header (tenant/frontend/partials/header.blade.php).
 */
/* Amerce sets its Latin fonts (DM Sans…) on links, spans and headings directly, so the Arabic face
   goes on everything except icon elements (i tags, la- and fa- classes); icomoon is !important anyway. */
body.rtl, body.rtl *:not(i):not([class^="la"]):not([class*=" la"]):not([class^="fa"]):not([class*=" fa"]) {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
/* icon fonts (Line Awesome for the platform's back-to-top and the shop's social icons, icomoon) keep their own face */
/* Arabic sits taller than Latin at the same size: looser leading so ج / ي are not clipped */
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl .h1, body.rtl .h2, body.rtl .h3, body.rtl .h4, body.rtl .h5, body.rtl .h6 { line-height: 1.5; }
/* Latin letter-spacing pulls joined Arabic letters apart */
body.rtl .text-uppercase, body.rtl .tf-btn, body.rtl .footer-heading, body.rtl .title, body.rtl h1, body.rtl h2,
body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6 { letter-spacing: 0 !important; }
body.rtl .text-uppercase, body.rtl .footer-heading { text-transform: none; }
body.rtl { text-align: right; }
/* Arabic reads better a size up (same scale as the Ecomus family's rtl.css) */
body.rtl { font-size: 16px; }

/* outlined strip words: Arabic strokes are thinner than DM Sans, so the 1px text-shadow outline filled them in.
   A heavier weight leaves the white inside visible, like the demo. */
body.rtl .infiniteSlide-policy-v2 .policy-text { font-weight: 800; letter-spacing: .5px; }

/* phones, RTL: the template reserves the photo space with padding-inline-start (right in Arabic) but pins the
   photo to left:0, so it covered the price row */
@media (max-width: 767px) { [dir=rtl] .tf-cart_item .img-prd { left: auto; right: 0; } }
