/* Arabic (right-to-left). Loaded only on Arabic pages, so the English website never uses this file.
   The other stylesheets use start/end properties, which mirror by themselves; the rules here cover
   what cannot mirror on its own. */

/* Arabic type: no letter spacing, because it breaks the joined letters */
html[dir=rtl] body,html[dir=rtl] body *{font-family:'Tajawal','Mona Sans','Inter',system-ui,sans-serif!important;letter-spacing:0!important}

/* arrows point the other way */
[dir=rtl] img[src*="arrow-"]{scale:-1 1}
[dir=rtl] .car-btns button svg,[dir=rtl] .hm-ctl [data-prev] svg,[dir=rtl] .hm-ctl [data-next] svg{transform:scaleX(-1)}

/* prices keep the currency sign on the left of the number */
[dir=rtl] :has(>.aed){direction:ltr;unicode-bidi:isolate}
/* amounts use the English number font: the Arabic font's digits sit higher than the dirham sign.
   Arabic words on the same line still fall back to Tajawal. */
html[dir=rtl] body :has(>.aed),html[dir=rtl] body :has(>.aed) *{font-family:'Mona Sans Variable','Mona Sans','Tajawal','Inter',system-ui,sans-serif!important}

/* phone numbers, email addresses and card details are typed left to right */
[dir=rtl] input[type=tel],[dir=rtl] input[type=email],[dir=rtl] input[type=url],[dir=rtl] input#number{direction:ltr;text-align:right}
[dir=rtl] .phone{direction:ltr}

/* slide-out cart comes from the left */
[dir=rtl] .ui-drawer{transform:translateX(-100%);box-shadow:none}
[dir=rtl] .ui-drawer.open{transform:none;box-shadow:12px 0 40px rgba(1,49,108,.15)}

/* progress bars fill from the right */
[dir=rtl] .freebar .bar i{background:linear-gradient(270deg,var(--navy),var(--green))}
[dir=rtl] .mc-bar i{background:linear-gradient(270deg,#01316c,#049763)}

/* banner photos have their products on the right: unless Arabic artwork is uploaded,
   the wording stays on the clear left side and reads right to left inside it */
.hm-hero.keep-left .sh-wrap,.hm-promo.keep-left{direction:ltr}
.hm-hero.keep-left .sh-wrap>*{direction:rtl;width:100%;max-width:440px;margin-right:auto}
.hm-promo.keep-left .in{direction:rtl;width:100%;max-width:480px}
/* smaller laptops and tablets on their side: a narrower column keeps the wording off an Arabic picture */
@media (min-width:901px) and (max-width:1100px){html[dir=rtl] .hm-hero:not(.keep-left) .sh-wrap>*{max-width:35vw}}
/* phones: the wording is above the picture, so it reads from the right as usual */
@media (max-width:900px){.hm-hero.keep-left .sh-wrap{direction:rtl}.hm-hero.keep-left .sh-wrap>*{max-width:none;margin-right:0}}
@media (min-width:901px){.pg-story .bh.keep-left{direction:ltr}.pg-story .bh.keep-left>*{direction:rtl;max-width:640px;margin-right:auto}}

/* Shop page: the fruit moves to the left side of the banner */
[dir=rtl] .hero2{background:linear-gradient(to right,#fddad5 44%,#feebe6)!important}
[dir=rtl] .hero2 .bn{left:-800px;right:auto;-webkit-mask-image:linear-gradient(to right,#000 92%,transparent);mask-image:linear-gradient(to right,#000 92%,transparent)}

/* Arabic banner title is longer: keep it on one line on desktop */
@media (min-width:1001px){
  html[dir=rtl] .hm-promo.keep-left .in{width:fit-content;max-width:590px}
  html[dir=rtl] .hm-promo h2.hm-title{font-size:clamp(20px,1.9vw,27px)}
}
