/* Language switcher as a nav menu item (shown inside the ☰ mobile menu,
   and inline in the desktop nav bar) */
.lang-switch-item{
  list-style:none;
  display:flex;
  align-items:center;
}
@media (max-width:980px){
  .lang-switch-item{
    margin-top:8px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,.12);
  }
}

/* Language switcher widget */
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border-radius:100px;
  background:var(--surface, #fff);
  border:1px solid var(--border, #e2e2e2);
}
.lang-switch .lang-btn{
  border:none;
  background:transparent;
  color:var(--ink-soft, #4a4a4a);
  font-size:12px;
  font-weight:700;
  letter-spacing:.3px;
  padding:6px 10px;
  border-radius:100px;
  cursor:pointer;
  line-height:1;
  transition:background-color .2s ease, color .2s ease;
}
.lang-switch .lang-btn:hover{ color:var(--ink, #0d0d0d); }
.lang-switch .lang-btn.active{
  background:var(--accent, #0d0d0d);
  color:#fff;
}
[data-theme="dark"] .lang-switch .lang-btn.active{ color:#0d0d0d; background:#fff; }

/* ================= RTL support (Arabic) =================
   Best-effort structural mirroring for the site's flex/grid layouts.
   Because this codebase hand-authors many left/right values, some
   visual fine-tuning may still be needed after a design pass. */
html[dir="rtl"] body{ text-align:right; }

html[dir="rtl"] .nav-wrap,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .hero-ctas,
html[dir="rtl"] .hero-stats,
html[dir="rtl"] .trust-strip,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .socials,
html[dir="rtl"] .hero-flex,
html[dir="rtl"] .hero-notices,
html[dir="rtl"] .notice-chip,
html[dir="rtl"] .filter-row,
html[dir="rtl"] .modal-head,
html[dir="rtl"] .platform-list,
html[dir="rtl"] .lang-switch{
  direction:rtl;
}

html[dir="rtl"] nav ul{
  direction:rtl;
}

html[dir="rtl"] .back-to-top{ left:20px; right:auto; }
html[dir="rtl"] .back-link{ direction:rtl; }

html[dir="rtl"] .legal-wrap ul{
  margin:0 22px 14px 0;
}

html[dir="rtl"] .cart-drawer,
html[dir="rtl"] .filter-drawer{
  right:auto;
  left:0;
  transform:translateX(-100%);
}
html[dir="rtl"] .cart-drawer.active,
html[dir="rtl"] .filter-drawer.active{
  transform:translateX(0);
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select{
  text-align:right;
}
