/* Persian layout: mirror interface chrome while isolating LTR names and numbers. */
html[lang^="fa"] body { font-family: Tahoma, Arial, sans-serif; line-height: 1.8; }
html[lang^="fa"] h1,html[lang^="fa"] h2,html[lang^="fa"] h3,html[lang^="fa"] button,html[lang^="fa"] input,html[lang^="fa"] summary,
html[lang^="fa"] .nc-menu a,html[lang^="fa"] .nc-mega__cat,html[lang^="fa"] .acto-subnav a { font-family: Tahoma, Arial, sans-serif !important; letter-spacing: normal !important; text-transform: none !important; }
html[lang^="fa"] .nc-search__panel { direction: rtl; }
html[lang^="fa"] .nc-search__panel::before { direction: rtl; unicode-bidi: plaintext; font-family: Tahoma, Arial, sans-serif !important; letter-spacing: normal !important; line-height: 1.7; }
html[lang^="fa"] .nc-search__input { direction: rtl; text-align: right; font-family: Tahoma, Arial, sans-serif; padding-inline: 28px !important; }
html[lang^="fa"] .nc-search__input::placeholder { text-align: right; }
html[lang^="fa"] .nc-search__results { direction: rtl; text-align: right; }
html[lang^="fa"] .nc-search__state { letter-spacing: normal; text-transform: none; line-height: 1.9; }
html[lang^="fa"] .nc-search__close { right: auto; left: 28px; }
html[lang^="fa"] .nc-search__item-go,html[lang^="fa"] .nc-mega__item-go,html[lang^="fa"] .nc-mega__cat-arrow,html[lang^="fa"] .ac-product__action svg { transform: scaleX(-1); }
html[lang^="fa"] .nc-lang__menu { right: auto; left: 0; text-align: right; }
html[lang^="fa"] .nc-lang__menu-code,html[lang^="fa"] .nc-sheet__code { margin-left: 0; margin-right: auto; direction: ltr; unicode-bidi: isolate; }
html[lang^="fa"] .nc-topbar__text strong,html[lang^="fa"] a[href^="tel:"],html[lang^="fa"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
html[lang^="fa"] .nc-mega__cats { border-right: 0 !important; border-left: 1px solid #e2e8f0; text-align: right; }
html[lang^="fa"] .nc-mega__cat { text-align: right; line-height: 1.8; }
html[lang^="fa"] .nc-mega__panel,html[lang^="fa"] .acto-pd__panels { text-align: right; }
html[lang^="fa"] .nc-mega__item-body { min-width: 0; text-align: start; }
html[lang^="fa"] .nc-mega__item-title,html[lang^="fa"] .ac-product__title,html[lang^="fa"] .acto-v-details b { direction: ltr; unicode-bidi: isolate; text-align: start; }
html[lang^="fa"] .ac-brand-filter__panel { right: auto; left: 0; direction: rtl; text-align: right; }
html[lang^="fa"] .ac-brand-filter__options label { line-height: 1.9; }
html[lang^="fa"] .acto-v-meta,html[lang^="fa"] .acto-pd__counter { direction: ltr; unicode-bidi: isolate; }
html[lang^="fa"] .acto-pd__counter { right: auto; left: 16px; }
html[lang^="fa"] .acto-pd__zoom { left: auto; right: 16px; }
html[lang^="fa"] .pdt-doc__body { text-align: start; min-width: 0; }
html[lang^="fa"] [data-auto-direction] { unicode-bidi: plaintext; text-align: start; }
html[lang^="fa"] .actorein-table-scroll { direction: ltr; }
html[lang^="fa"] .acto-pd__thumbs,html[lang^="fa"] .acto-pd__track,html[lang^="fa"] .acto-pd__main { direction: ltr; }
@media(max-width:640px) { html[lang^="fa"] .nc-search__close { left:16px; } html[lang^="fa"] .ac-category-filter .ac-brand-filter__panel { left: auto; right: 0; } }
html[lang^="fa"] .nc-search__state { font-size: 14px; }
html[lang^="fa"] .nc-search__input { font-size: 18px !important; }
html[lang^="fa"] .nc-search__panel::before { font-size: 30px !important; }
@media(max-width:640px){html[lang^="fa"] .nc-search__panel::before{font-size:24px !important}html[lang^="fa"] .nc-search__input{font-size:16px !important}}
/* Put card navigation at the RTL trailing edge, away from the packshot. */
html[lang^="fa"] .nc-mega__item-body { flex: 1; padding-right: 0; padding-left: 36px; }
html[lang^="fa"] .nc-mega__item-go { right: auto !important; left: 10px !important; top: 50%; bottom: auto; direction: ltr; unicode-bidi: isolate; transform: translateY(-50%) scaleX(-1) !important; }
html[lang^="fa"] .nc-mega__item:hover .nc-mega__item-go { transform: translateY(-50%) translateX(-3px) scaleX(-1) !important; }
html[lang^="fa"] .nc-mega__cat-arrow { direction: ltr; unicode-bidi: isolate; transform: scaleX(-1) !important; }
html[lang^="fa"] .nc-mega__cat:hover .nc-mega__cat-arrow,
html[lang^="fa"] .nc-mega__cat.is-active .nc-mega__cat-arrow { transform: translateX(-2px) scaleX(-1) !important; }

html[lang^="fa"] body.single-product .acto-pd__counter { right: auto !important; left: 14px !important; }

/* Latin product names keep their reading direction but align with Persian content. */
html[lang^="fa"] body.single-product .acto-pd__panels h1,
html[lang^="fa"] body.single-product .acto-pd__info h1,
html[lang^="fa"] body.single-product .acto-product__info h1,
html[lang^="fa"] body.single-product .pdt-title {
    text-align: right !important;
}
