/* RISE: apply Vazirmatn only to Persian UI and Persian alternate names.
   Loaded after the existing CSS. English typography remains unchanged. */
:root {
  --rise-font-fa: "Vazirmatn", Tahoma, Arial, sans-serif;
}

/* Main content, header/cart launcher, footer, and the skip link in Persian mode.
   Scoping instead of styling body avoids changing the django CMS toolbar. */
html[lang="fa"] header,
html[lang="fa"] main,
html[lang="fa"] footer,
html[lang="fa"] .skip,
.product-modal[lang="fa"],
.cart-dropdown[dir="rtl"] {
  font-family: var(--rise-font-fa);
}

/* Secondary English names shown while the interface is Persian. */
html[lang="fa"] .section-heading small[dir="ltr"],
.product-modal[lang="fa"] .modal-other-name[dir="ltr"] {
  font-family: Tahoma, Arial, sans-serif;
}

/* Secondary Persian names shown while the interface is English. */
html[lang="en"] .section-heading small[dir="rtl"],
.product-modal[lang="en"] .modal-other-name[dir="rtl"] {
  font-family: var(--rise-font-fa);
}
