/* One language control; established product grids, images and heights stay intact. */
.locale-nav-shell { display:flex; align-items:flex-end; justify-self:end; min-width:0; gap:20px; }
.locale-nav-shell .main-nav { justify-self:auto; }
.language-switcher { position:relative; flex:none; align-self:flex-end; z-index:40; direction:ltr; }
.language-trigger { display:flex; align-items:center; justify-content:center; gap:6px; min-height:52px; border:0; border-radius:8px; background:transparent; color:#d2d2d7; padding:0 4px 0 10px; font:600 13px/1.25 var(--font-system); cursor:pointer; }
.language-trigger>svg { width:19px; height:19px; stroke:currentColor; stroke-width:1.4; }
.language-trigger:hover,.language-trigger[aria-expanded="true"] { color:#8fc547; }
.language-trigger:focus-visible,.language-option:focus-visible { outline:2px solid #8fc547; outline-offset:3px; }
.language-panel { position:absolute; top:calc(100% + 12px); right:0; width:760px; max-width:calc(100vw - 40px); padding:20px; background:#fff; color:#1d1d1f; border:1px solid #e6e6e8; border-radius:14px; box-shadow:0 20px 60px #0007; z-index:41; direction:ltr; }
.language-panel[hidden] { display:none!important; }
.language-panel-heading { display:flex; align-items:center; justify-content:space-between; padding:0 4px 14px; margin-bottom:10px; border-bottom:1px solid #ececee; gap:12px; }
.language-panel-heading h2 { margin:0; color:#1d1d1f; font:600 15px/1.5 var(--font-system); letter-spacing:0; }
.language-panel-heading>span { font:400 12px/1.5 var(--font-system); color:#77777c; }
.language-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px 6px; }
.language-option { display:flex; align-items:center; gap:9px; min-width:0; min-height:47px; padding:9px 8px; border-radius:7px; color:#2e2e33; font:400 14px/1.35 var(--font-system); text-align:start; text-decoration:none; overflow-wrap:anywhere; }
.language-option-code { width:20px; flex:none; color:#85858a; font:500 10px/1.3 var(--font-system); letter-spacing:.04em; }
.language-option:hover { background:#f1f3ee; }
.language-option[aria-current="true"] { color:#243709; background:#eaf3df; font-weight:600; }
html[data-ui-locale]:not([lang="en"]) .main-nav a { font-family:var(--font-system),Tahoma,Arial,sans-serif; font-size:14px; font-weight:600; letter-spacing:0; text-transform:none; }
html[data-ui-locale]:not([lang="en"]) .main-nav { gap:clamp(10px,1.5vw,24px); }
html[data-ui-locale]:not([lang="en"]) .catalog-detail-links nav a,
html[data-ui-locale]:not([lang="en"]) .catalog-table-container .catalog-table th { font-family:var(--font-system),Tahoma,Arial,sans-serif; letter-spacing:normal; text-transform:none; overflow-wrap:break-word; white-space:normal; }
html[data-ui-locale]:not([lang="en"]) .catalog-card-meta dt { white-space:normal; overflow-wrap:break-word; }
html[data-ui-locale] bdi { unicode-bidi:isolate; }
/* RTL changes interface reading direction, never product or globe geometry. */
html[lang="ar"] .site-header-shell,html[lang="ar"] .site-shell,
html[lang="ar"] .catalog-product-hero,html[lang="ar"] .catalog-card-main,
html[lang="ar"] .catalog-table,html[lang="ar"] .catalog-detail-table,
html[lang="ar"] .catalog-spec-list,html[lang="ar"] #product-title,
html[lang="ar"] .catalog-model-link,html[lang="ar"] .own-source-model,
html[lang="ar"] .catalog-card-meta dd,html[lang="ar"] .site-search-metadata dd,
html[lang="ar"] .site-search-result h3 { direction:ltr; unicode-bidi:isolate; }
html[lang="ar"] .main-nav a,html[lang="ar"] .language-panel-heading h2,
html[lang="ar"] .selection-title,html[lang="ar"] .region-en,
html[lang="ar"] .hero-copy,html[lang="ar"] .site-search-status,
html[lang="ar"] .site-search-form label,html[lang="ar"] .catalog-breadcrumb,
html[lang="ar"] .catalog-pagination,html[lang="ar"] .catalog-panel-heading,
html[lang="ar"] .catalog-section-heading,html[lang="ar"] .catalog-detail-links nav a,
html[lang="ar"] .catalog-card-meta dt,html[lang="ar"] .site-search-metadata dt { direction:rtl; letter-spacing:normal; text-transform:none; }
html[lang="ar"] .catalog-table th,html[lang="ar"] .catalog-detail-table th { direction:rtl; unicode-bidi:isolate; }
html[lang="ar"] .catalog-toolbar label>span,html[lang="ar"] .catalog-detail-meta dt,
html[lang="ar"] .catalog-total>span,html[lang="ar"] .catalog-page-heading h1,
html[lang="ar"] #spec-title,html[lang="ar"] .catalog-empty>p { direction:rtl; unicode-bidi:isolate; }
html[lang="ar"] .hero-copy,html[lang="ar"] .region { text-align:right; }
@media(max-width:1100px) and (min-width:1001px) { .locale-nav-shell { gap:10px; }.locale-nav-shell .main-nav { gap:12px; }.locale-nav-shell .main-nav a { padding-inline:7px; } }
@media(max-width:1000px) {
 .locale-nav-shell { grid-column:1/-1; grid-row:2; justify-self:stretch; width:100%; align-items:center; gap:12px; }
 .locale-nav-shell .main-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); flex:1; width:auto; gap:4px; }
 .locale-nav-shell .main-nav a { text-align:center; white-space:normal; line-height:1.3; overflow-wrap:break-word; }
 .language-panel { width:700px; }
}
@media(max-width:600px) {
 .locale-nav-shell { gap:8px; }
 .language-trigger { min-height:46px; gap:4px; padding-inline:0; font-size:11px; }
 .language-trigger>svg { width:16px; height:16px; }
 .language-panel { position:fixed; top:var(--locale-panel-top,132px); left:16px; right:16px; width:auto; max-width:none; max-height:calc(100dvh - var(--locale-panel-top,132px) - 16px); overflow-y:auto; padding:14px 12px; }
 .language-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px 8px; }
 .language-option { min-height:44px; padding:8px 6px; }
 .locale-nav-shell .main-nav a { padding-inline:1px; }
 html[data-ui-locale]:not([lang="en"]) .main-nav a { font-size:12px; }
}
