/* YUANZE Arabic (RTL) layer. Loaded last on /ar/ pages, after the mirrored stylesheets in /assets/rtl/.
   Arabic glyphs use the visitor's system Arabic fonts through local() aliases restricted to the Arabic Unicode
   ranges, so Latin text keeps Manrope / Newsreader and no external font download is needed (CSP font-src 'self'). */
@font-face{font-family:"Manrope";src:local("SF Arabic"),local("Segoe UI"),local("Geeza Pro"),local("Noto Sans Arabic"),local("Noto Sans Arabic UI"),local("Tahoma");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF;font-weight:100 900}
@font-face{font-family:"Inter";src:local("SF Arabic"),local("Segoe UI"),local("Geeza Pro"),local("Noto Sans Arabic"),local("Tahoma");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF;font-weight:100 900}
@font-face{font-family:"Newsreader";src:local("Noto Naskh Arabic"),local("Noto Naskh Arabic UI"),local("Times New Roman"),local("Traditional Arabic"),local("Geeza Pro"),local("Noto Sans Arabic");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF;font-weight:100 900}
@font-face{font-family:"Newsreader";font-style:italic;src:local("Noto Naskh Arabic"),local("Times New Roman"),local("Traditional Arabic"),local("Geeza Pro");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF;font-weight:100 900}
@font-face{font-family:"Georgia";src:local("Noto Naskh Arabic"),local("Times New Roman"),local("Traditional Arabic"),local("Geeza Pro");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF}

/* Arabic letters must stay joined: no tracking, no synthetic italics, no forced uppercase spacing tricks. */
html[lang="ar"] body, html[lang="ar"] body *{letter-spacing:normal!important;word-spacing:normal}
html[lang="ar"] em, html[lang="ar"] i, html[lang="ar"] [class*="italic"]{font-style:normal}
html[lang="ar"] body{line-height:1.75}
/* Arabic ascenders/descenders need more vertical room than the Latin display settings allow.
   The :not(#yz-*) chain only raises specificity above the page-specific ID rules. */
html[lang="ar"][dir="rtl"] body:not(#yz-a):not(#yz-b):not(#yz-c) :is(h1,h2,h3,h4,.display,[class*="-title"],[class*="caption"]){line-height:1.35!important}
html[lang="ar"][dir="rtl"] body:not(#yz-a):not(#yz-b):not(#yz-c) :is(h1,h2,h3,h4) :is(span,em,strong,b,i){line-height:inherit!important}

/* Directional arrows and chevrons point the other way in RTL. */
html[dir="rtl"] .yz-action-arrow, html[dir="rtl"] .bm-cta-arrow, html[dir="rtl"] [class*="arrow"] > svg,
html[dir="rtl"] svg[class*="arrow"], html[dir="rtl"] .yz-arrow{transform:scaleX(-1)}

/* Latin-only tokens (emails, phone numbers, codes) keep LTR order inside Arabic text. */
html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] [data-ltr]{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="url"]{direction:ltr;text-align:right}

/* Language menu in the top bar: the open list hangs from the inline-end edge of the control. */
html[dir="rtl"] .yz-language-list{right:auto;left:0}

/* Home hero: the photograph keeps its composition (dark copy area on the left), so the hero copy stays on the
   left side in Arabic too; the text itself is still right-to-left. The readability gradient is flipped back. */
html[dir="rtl"] .bm-hero .bm-main{direction:ltr}
html[dir="rtl"] .bm-hero .bm-copy{direction:rtl}
html[dir="rtl"] .bm-hero .bm-readability{transform:scaleX(-1)}

/* Desktop navigation: Arabic labels need a little more separation; keep the product caret centred. */
html[dir="rtl"] .desktop-nav{column-gap:clamp(12px,1.5vw,24px)}
html[dir="rtl"] .nav-product-group{align-items:center}
html[dir="rtl"] .nav-family-toggle{align-self:center;line-height:1}
/* 2026-10-17: home hero now shows the product photo (client update). Keep the Arabic copy inside the dark left band
   so it does not run over the bottles; desktop only (mobile stacks the copy). */
@media (min-width:1024px){
html[dir="rtl"] body[data-page="home"] .bm-hero .bm-copy:not(#yz-a){width:max(440px,calc(34vw - 40px))!important;max-width:max(440px,calc(34vw - 40px))!important}
html[dir="rtl"] body[data-page="home"] .bm-hero .bm-copy:not(#yz-a) > *{max-width:100%!important}
}
