/* Controls plus Chinese-only typography. RU/EN branding and icon glyphs stay intact. */
html[lang="zh-CN"] { --sf-chinese-font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", Arial, sans-serif; }
html[lang="zh-CN"] body { font-family: var(--sf-chinese-font); }
html[lang="zh-CN"] body :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,summary,dt,dd,span,small,strong,em,option,legend,th,td,.title,.hero__title,.section-title) {
  font-family: var(--sf-chinese-font) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
html[lang="zh-CN"] body .original-shop-shell :is(.slide-card .slide-card__title,.shop-card .shop-card__body h3,.shop-card .shop-card__body h3 a,h1.item__title,.product-detail__heading h1) { font-family: var(--sf-chinese-font) !important; }
/* Icon fonts are attached to pseudo-elements, intentionally not selected above. */
.sf-language { box-sizing: border-box; font-family: Manrope, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; font-size: 13px; line-height: 1.3; }
.sf-language *, .sf-language *::before, .sf-language *::after { box-sizing: border-box; }
.sf-language button { appearance: none; font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.sf-language button:focus-visible { outline: 2px solid #d7b67a; outline-offset: 3px; }
.sf-language--brand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 106px; flex: 0 0 106px; gap: 5px; align-content: center; }
.sf-language__pill { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 30px; padding: 5px 8px; border: 1px solid #d7b67a88; border-radius: 12px; color: #f6f4ec; background: #03121955; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.sf-language__pill.is-current { grid-column: 1 / -1; border-color: #d7b67a; background: #d7b67a; color: #031219; }
.sf-language__pill:hover { border-color: #f6f4ec; background: #f6f4ec; color: #031219; }
.sf-language--shop { position: relative; display: block; flex: 0 0 44px; width: 44px; height: 44px; z-index: 51; }
.sf-language__trigger { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 7px; border: 1px solid #d7b67a; border-radius: 50%; background: #fff; color: #0a2242; transition: background .18s, box-shadow .18s; }
.sf-language__trigger:hover, .sf-language__trigger[aria-expanded="true"] { background: #f9f5ed; box-shadow: 0 0 0 2px #d7b67a22; }
.sf-language__flag { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #0a224218; }
.sf-language__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 52; display: grid; gap: 3px; width: max-content; min-width: 170px; max-width: min(240px, calc(100vw - 24px)); padding: 7px; border: 1px solid #d7b67a88; border-radius: 14px; background: #fff; color: #0a2242; box-shadow: 0 12px 32px #0a224220; }
.sf-language [hidden] { display: none !important; }
.sf-language__option { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #0a2242; text-align: left; white-space: nowrap; }
.sf-language__option:hover, .sf-language__option:focus-visible { background: #f2f4f7; }
.sf-language__option[aria-checked="true"] { background: #f8f1e4; }
.sf-language__option-flag { flex: 0 0 24px; display: block; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #0a224218; }
.sf-language__option-name { flex: 1; }
.sf-language__selected { color: #796022; }
@media (min-width: 1024px) and (max-width: 1350px) {
  .desktop-redesign .desktop-header:has(.sf-language--brand) { gap: 12px; }
  .desktop-header:has(.sf-language--brand) .desktop-destinations { gap: 6px; }
  .desktop-header:has(.sf-language--brand) .desktop-destinations .desktop-cta { padding-inline: 10px; font-size: 12px; gap: 8px; }
  .desktop-header:has(.sf-language--brand) .desktop-sections { gap: 5px; }
  .desktop-header:has(.sf-language--brand) .desktop-sections > a { font-size: 13px; white-space: normal; text-align: center; }
  .desktop-header .sf-language--brand { width: 94px; flex-basis: 94px; }
}
@media (max-width: 1023px) {
  .portal-redesign .desktop-header:has(.sf-language--brand) { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 10px; }
  .desktop-header:has(.sf-language--brand) .desktop-brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .desktop-header:has(.sf-language--brand) .desktop-sections { grid-column: 1 / -1; grid-row: 2; }
  .desktop-header .sf-language--brand { grid-column: 3; grid-row: 1; justify-self: end; width: 94px; margin-block: 5px; }
  .sf-language__pill { min-height: 32px; }
}
@media (max-width: 700px) {
  .original-shop-shell .header__user-wrapper:has(.sf-language--shop) { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
  .original-shop-shell .header__bottom .header__container:has(.sf-language--shop) .header__search { flex: 1 1 auto; min-width: 0; width: auto; margin-right: 5px; margin-left: 8px; }
  .original-shop-shell .header__bottom .header__container:has(.sf-language--shop) .header__search-input { width: 100%; min-width: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .b2b-header:has(.sf-language--brand) { gap: 12px; }
  .b2b-header:has(.sf-language--brand) nav { gap: 6px; }
  .b2b-header:has(.sf-language--brand) nav a { font-size: 13px; white-space: normal; text-align: center; }
  .b2b-header:has(.sf-language--brand) .header-cta { padding-inline: 10px; gap: 8px; }
  .b2b-header .sf-language--brand { width: 94px; flex-basis: 94px; }
}
@media (max-width: 760px) {
  .b2b-header:has(.sf-language--brand) { display: grid; grid-template-columns: 60px minmax(0,1fr) 86px; gap: 6px 8px; }
  .b2b-header:has(.sf-language--brand) > .brand { grid-column: 1; grid-row: 1; width: 60px; height: 64px; }
  .b2b-header:has(.sf-language--brand) .header-cta { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; min-height: 50px; padding: 8px; margin-left: 0; font-size: 12px; gap: 8px; white-space: normal; }
  .b2b-header .sf-language--brand { grid-column: 3; grid-row: 1; width: 86px; font-size: 12px; }
  .b2b-header:has(.sf-language--brand) nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; flex-basis: auto; order: initial; }
}
/* Translated cart names need room at tablet widths; retain the Russian layout. */
@media (max-width: 1200px) {
  html:is([lang="en"],[lang="zh-CN"]) .wordpress-flow .cart-layout { grid-template-columns: minmax(0,1fr); }
  html:is([lang="en"],[lang="zh-CN"]) .wordpress-flow .cart-totals-column { position: static; }
}
/* These mobile captions are CSS-generated, not submitted product attributes. */
@media (max-width: 700px) {
  html[lang="en"] .wordpress-flow .shop_table.cart .product-price::before { content: "Price: "; }
  html[lang="en"] .wordpress-flow .shop_table.cart .product-subtotal::before { content: "Amount: "; }
  html[lang="zh-CN"] .wordpress-flow .shop_table.cart .product-price::before { content: "价格："; }
  html[lang="zh-CN"] .wordpress-flow .shop_table.cart .product-subtotal::before { content: "金额："; }
}
@media (prefers-reduced-motion: reduce) { .sf-language button { transition: none; } }
