/* EN | ع switch + right-to-left layout for Arabic */
.lang-switch { font: 600 14px/1 'Inter', system-ui, sans-serif; min-width:44px; height:38px; padding:0 12px; border-radius:10px; border:1px solid var(--line, #E3E9E6); background:transparent; color:var(--ink, #18211F); cursor:pointer; }
.lang-switch:hover { background:var(--surface, #F7F9F8); }
.lang-switch:focus-visible { outline:2px solid var(--primary, #0F6657); outline-offset:2px; }
.lang-switch[lang="ar"] { font-family:'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif; font-size:17px; }
.mobile-menu .lang-switch { width:100%; height:44px; }

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input { font-family:'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Noto Naskh Arabic', Arial, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .brand, html[dir="rtl"] .eyebrow-line { font-family:'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif; }
/* Arabic letters join: never letter-space or uppercase them */
html[dir="rtl"] * { letter-spacing:0 !important; }
html[dir="rtl"] body *:not(.showcase-frame *):not(.preview-frame *) { text-transform:none; }
/* brand, product screenshots, codes and prices keep their own direction */
html[dir="rtl"] .brand, html[dir="rtl"] .showcase-frame, html[dir="rtl"] .preview-frame, html[dir="rtl"] [translate="no"]:not(.lang-switch) { direction:ltr; }

/* Skip link and alternating showcase rows in right-to-left */
html[dir="rtl"] .skip-link { left:auto; right:-9999px; border-radius:0 0 0 8px; }
html[dir="rtl"] .skip-link:focus { left:auto; right:0; }
html[dir="rtl"] .showcase-row.reverse { direction:ltr; }
html[dir="rtl"] .showcase-row.reverse > * { direction:rtl; }
html[dir="rtl"] .showcase-row .showcase-frame { direction:ltr; }
