/* Four-language UI additions, scoped to avoid changing Persian or English layouts. */
.sn-masthead .sn-header-lang-wrap{position:relative;display:flex;flex:none;align-items:center;z-index:100;direction:ltr!important}
.sn-masthead .sn-header-lang-menu{position:relative;font-family:Arial,Tahoma,sans-serif;direction:ltr!important}
.sn-masthead .sn-header-lang-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e6b64a;border-radius:999px;padding:7px 12px;min-width:86px;min-height:40px;background:linear-gradient(130deg,#fff,#fff6e5,#ffeabc);box-shadow:0 4px 15px rgba(172,122,28,.12);font-size:12px;font-weight:800;color:#20394d;white-space:nowrap;transition:transform .2s,box-shadow .2s}
.sn-masthead .sn-header-lang-menu summary::-webkit-details-marker{display:none}
.sn-masthead .sn-header-lang-menu summary:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(172,122,28,.18)}
.sn-masthead .sn-header-lang-menu summary:focus-visible{outline:2px solid #b6811d;outline-offset:3px}
.sn-masthead .sn-lang-globe{font-size:16px;line-height:1}.sn-masthead .sn-lang-active-flag{font-size:19px;font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;line-height:1}
.sn-masthead .sn-lang-chevron{font-size:17px;color:#ad7c24;margin-inline-start:2px}
.sn-masthead .sn-header-lang-options{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:1001;width:180px;max-width:calc(100vw - 24px);padding:7px;background:#fff;border:1px solid #eedcba;border-radius:15px;box-shadow:0 14px 35px rgba(23,50,70,.20);display:flex;flex-direction:column;gap:3px;direction:ltr;text-align:left}
.sn-masthead .sn-header-lang-menu:not([open]) .sn-header-lang-options{display:none}
.sn-masthead .sn-header-lang-options a,.sn-masthead .sn-header-lang-options .sn-lang-unavailable{display:flex;align-items:center;gap:9px;text-decoration:none;color:#243f52;padding:10px 9px;border-radius:9px;font-family:Arial,Tahoma,sans-serif;font-size:13px;font-weight:600;white-space:nowrap}
.sn-masthead .sn-header-lang-options a:hover,.sn-masthead .sn-header-lang-options a[aria-current="true"]{background:#fff3d8;color:#9c6515}
.sn-masthead .sn-header-lang-options a span:first-child,.sn-masthead .sn-lang-unavailable span:first-child{font-size:19px;line-height:1}
.sn-masthead .sn-header-lang-options .sn-lang-unavailable{opacity:.48;cursor:not-allowed}
.sn-masthead .sn-header-lang-options small{margin-left:auto}
html[lang^="ru"],html[lang^="ar"]{scroll-behavior:smooth}
html[lang^="ru"] body,html[lang^="ru"] .sn-catalog-home,html[lang^="ru"] .sn-footer{direction:ltr}
html[lang^="ar"] body,html[lang^="ar"] .sn-catalog-home,html[lang^="ar"] .sn-footer{direction:rtl}
html[lang^="ru"] :is(.sn-catalog-home,.sn-footer,.sn-masthead-mobile,.sn-live-shop) :is(h1,h2,h3,h4,p,li,small),
html[lang^="ru"] :is(.sn-system101,.sn-labs73,.sn-company-news,.sn-news-carousel) :is(h1,h2,h3,p,span){direction:ltr;text-align:left;unicode-bidi:plaintext}
html[lang^="ar"] :is(.sn-catalog-home,.sn-footer,.sn-masthead-mobile,.sn-live-shop) :is(h1,h2,h3,h4,p,li,small),
html[lang^="ar"] :is(.sn-system101,.sn-labs73,.sn-company-news,.sn-news-carousel) :is(h1,h2,h3,p,span){direction:rtl;text-align:right;unicode-bidi:plaintext}
html[lang^="ru"] .sn-footer-four .sn-footer-card{text-align:left!important}
html[lang^="ru"] .sn-footer-four .sn-footer-card p,html[lang^="ru"] .sn-footer-four .sn-footer-brand-description{text-align:justify!important;text-justify:inter-word}
html[lang^="ar"] .sn-footer-four .sn-footer-card{text-align:right!important}
html[lang^="ar"] .sn-footer-four .sn-footer-card p,html[lang^="ar"] .sn-footer-four .sn-footer-brand-description{text-align:justify!important;text-justify:inter-word}
html[lang^="ar"] .sn-footer-four .sn-footer-social-icons,html[lang^="ru"] .sn-footer-four .sn-footer-social-icons{justify-content:center!important}
html[lang^="ar"] .sn-footer-call-button,html[lang^="ru"] .sn-footer-call-button{font-family:Arial,Helvetica,sans-serif!important;font-feature-settings:"locl" 0!important;font-variant-numeric:lining-nums!important;direction:ltr!important;unicode-bidi:isolate!important;text-align:center!important}
html[lang^="ru"] .sn-masthead-links{direction:ltr;text-align:left}
html[lang^="ar"] .sn-masthead-links{direction:rtl;text-align:right}
html[lang^="ru"] input[type="email"]{direction:ltr;text-align:left}
@media(max-width:780px){.sn-masthead .sn-header-lang-menu summary{min-width:65px;min-height:36px;padding:5px 8px;gap:4px}.sn-masthead .sn-lang-globe{display:none}.sn-masthead .sn-lang-active-flag{font-size:17px}.sn-masthead .sn-header-lang-options{left:auto;right:0;transform:none}}
@media(prefers-reduced-motion:reduce){.sn-masthead .sn-header-lang-menu summary{transition:none}}

/* 3.2.8.250 — display the four languages as header buttons on desktop. */
.sn-masthead .sn-header-lang-desktop-inline{display:none}
@media(min-width:1101px){
  .sn-masthead .sn-header-lang-menu{display:none!important}
  .sn-masthead .sn-header-lang-desktop-inline{display:flex!important;align-items:center;gap:3px;direction:ltr;flex-wrap:nowrap}
  .sn-masthead .sn-header-lang-desktop-inline a,
  .sn-masthead .sn-header-lang-desktop-inline .sn-header-lang-inline-disabled{
    display:inline-flex;gap:3px;align-items:center;justify-content:center;
    padding:6px 5px;border-radius:8px;text-decoration:none;font:700 11px Arial,sans-serif;
    color:#20394c;white-space:nowrap;background:#f6f7f8;border:1px solid transparent;
  }
  .sn-masthead .sn-header-lang-desktop-inline a:hover,
  .sn-masthead .sn-header-lang-desktop-inline a[aria-current="page"]{
    background:#fff2d5;border-color:#efc877;color:#81570d;
  }
  .sn-masthead .sn-header-lang-desktop-inline .sn-header-lang-inline-disabled{opacity:.48}
}
