/* Knight Shot – Arabic / RTL layer (16.11.2026). Loaded only on lang="ar" dir="rtl" pages, AFTER the page CSS.
   Fonts = design system r3 (fonts/fonts.css): IBM Plex Sans Arabic for text and small headings, Rakkas only for the
   big display headings; both self-hosted (no Google Fonts). Latin (brand names, prices, SKUs) stays Commissioner /
   Spline Sans via unicode-range, digits stay Western. Arabic never gets letter-spacing (it breaks the joins). */
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/plex-arabic/arabic-400.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/plex-arabic/arabic-500.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600 900;font-display:swap;src:url("/fonts/plex-arabic/arabic-600.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Rakkas";font-style:normal;font-weight:400 900;font-display:swap;src:url("/fonts/rakkas/arabic.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

html[lang="ar"]{
  --font-d:"Commissioner","IBM Plex Sans Arabic","Commissioner FB",system-ui,sans-serif;
  --font-u:"Spline Sans","IBM Plex Sans Arabic","Spline Sans FB",system-ui,sans-serif;
  --font-ar-d:"Commissioner","Rakkas","IBM Plex Sans Arabic",system-ui,sans-serif;
}
html[lang="ar"] body{font-family:var(--font-u)}
html[lang="ar"] *{letter-spacing:0!important;font-style:normal}
html[lang="ar"] :is(p,li,dd,dt,figcaption,td,th,label,summary){line-height:1.75}
html[lang="ar"] :is(h1,h2,h3,h4){line-height:1.35}
/* big display headings: Rakkas (one weight) – no synthetic bold */
html[lang="ar"] :is(h1,.d-l,.d-m,.ce-h1,.pt-h1,.cue-h1,.g-h1){font-family:var(--font-ar-d);font-weight:400;font-synthesis:none;line-height:1.45!important}
/* Rakkas has tall ascenders/descenders: two-line display headings need room between the lines */
html[lang="ar"] :is(h1,.d-l,.d-m) br+*{line-height:inherit}
html[lang="ar"] :is(h1,.d-l,.d-m,.ce-h1,.pt-h1,.cue-h1,.g-h1) :is(b,strong,em,i){font-weight:400}
/* small headings / labels: Plex 600 max */
html[lang="ar"] :is(h3,h4,h5,b,strong,th,dt,.btn){font-synthesis:none}
html[lang="ar"] [lang="en"]{font-family:var(--font-u)}
/* Latin runs inside Arabic text (brand names, prices, SKUs, phone numbers) keep their own direction */
html[lang="ar"] :is(.num,.price,.pr,.sku,[data-price],bdi){unicode-bidi:isolate}
/* no uppercase/eyebrow tracking in Arabic */
html[lang="ar"] :is(.eyebrow,.kick,.ey,.k,.d-k){text-transform:none}

/* ---- RTL: the page stylesheets are loaded as mirrored copies (rtlcss, assets/css/*.rtl.css); only fixes here ---- */
html[dir="rtl"] .ar-flip{transform:scaleX(-1)}
/* FEHLER-218: nothing may hang out to the left in RTL (scrollWidth) – checked per page in tools/ar/shot.mjs */
/* Latin-only labels inside RTL layouts: keep their own direction (minus sign before the number, ellipsis at the end) */
html[dir="rtl"] :is(.badge,.sn-sn,.pc-n,.pn,.p-name,.ttl){unicode-bidi:plaintext}
html[dir="rtl"] .badge.sale{direction:ltr}
html[dir="rtl"] .shdr .logo span:not(.ks-mark){unicode-bidi:plaintext}
/* Hasnat #56113 (16.11.2026): one-row brand header (>=1280 px, shop/head.css widefix) – the Arabic nav is wider and used to
   shrink with overflow:visible, so "تواصل معنا" ran 10–23 px into the search box. In RTL the nav never shrinks; the search
   takes the squeeze instead, keeps >=16 px clear of the nav, icon stays at inline-start (right) with the text left of it. */
@media (min-width:1280px){
  html[dir="rtl"] .shdr:has(>.bnav)>.bnav{flex:0 0 auto}
  html[dir="rtl"] .shdr:has(>.bnav) .ssearch{flex:0 1 300px;min-width:140px;margin-inline-start:4px}
}
@media (min-width:1280px) and (max-width:1439px){
  html[dir="rtl"] .shdr:has(>.bnav) .ssearch{flex-basis:240px}
  html[dir="rtl"] .shdr:has(>.bnav)>.bnav .snav-row{gap:0}
}
html[dir="rtl"] .ssearch{flex-direction:row}
html[dir="rtl"] .ssearch>svg{order:0}
html[dir="rtl"] .ssearch input{order:1;text-align:right;padding:0}
/* Policy page, Arabic only (Hasnat WA #60889, 18.11.2026): "English version prevails" note under the lede – small, quiet */
html[dir="rtl"] .ar-legal-note{margin-top:14px;padding:10px 14px;max-width:62ch;border:1px solid var(--line,rgba(203,162,83,.28));
  border-inline-start:3px solid var(--brass,#CBA253);border-radius:6px;font-size:.88rem;line-height:1.7;color:var(--fg-dim,#AFB5AC)}
html[dir="rtl"] .ar-legal-note a{color:var(--brass-hi,#F0D79A);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
