/* Native selects remain available until their accessible replacement is ready. */
.choice-control { position: relative; width: 100%; min-width: 0; }
.choice-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--control-line); border-radius: 5px; background: #303232; color: var(--text); text-align: left; font-size: 1rem; line-height: 1.5; transition: border-color 160ms ease, background-color 160ms ease; }
.choice-trigger::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.choice-trigger[aria-expanded=true] { border-color: var(--accent); background: #393939; }
.choice-trigger[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.choice-trigger:active { transform: none; }
.choice-value { min-width: 0; overflow-wrap: anywhere; }
.choice-popover { position: fixed; inset: auto; margin: 0; padding: 6px; border: 1px solid #969696; border-radius: 7px; background: var(--surface); color: var(--text); box-shadow: 0 12px 30px #0007; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #797979 transparent; max-width: calc(100vw - 24px); }
.choice-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; border: 1px solid transparent; border-radius: 3px; padding: 10px 12px; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.choice-option > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.choice-option[data-active=true] { background: #424242; border-color: #888888; }
.choice-option[aria-selected=true] { color: var(--text); font-weight: 550; }
.choice-option[aria-disabled=true] { color: #a1a1a1; cursor: not-allowed; }
.choice-check { width: 12px; height: 7px; margin-right: 2px; flex-shrink: 0; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); visibility: hidden; }
.choice-option[aria-selected=true] .choice-check { visibility: visible; }
.language-control .choice-trigger { min-height: 44px; padding: 8px 12px; gap: 12px; font-size: .875rem; }
/* Navigation and language stay visible, including in narrow in-app browsers. */
.site-header .header-inner { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.site-header .brand { order: 0; }
#desktop-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; order: 1; }
#desktop-language-slot { display: block; margin-left: auto; flex: 0 0 108px; min-width: 0; grid-area: language; order: 2; }
#desktop-language-slot .language-control { width: 100%; margin: 0; }
.site-header .cart-toggle { order: 3; }
.site-header #desktop-navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 4px; color: var(--secondary); text-decoration: none; white-space: nowrap; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.site-header #desktop-navigation a[aria-current=page] { color: var(--text); background: var(--control); border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .choice-trigger:hover { border-color: var(--accent); background: #393939; }
  .choice-option:not([aria-disabled=true]):hover { background: #424242; }
  .site-header #desktop-navigation a:hover { color: var(--text); background: #363636; }
}
@media (min-width: 1040px) {
  .site-header .header-inner { flex-wrap: nowrap; }
}
@media (max-width: 1039px) {
  .site-header .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; grid-template-areas: 'brand language cart' 'nav nav nav'; gap: 8px 16px; padding: 10px 24px 8px; }
  .site-header .brand { grid-area: brand; margin: 0; }
  .site-header .cart-toggle { grid-area: cart; margin: 0; }
  #desktop-language-slot { width: 100%; margin: 0; }
  #desktop-navigation { grid-area: nav; width: 100%; justify-content: flex-start; justify-self: stretch; gap: 4px 8px; }
  html { scroll-padding-top: 128px; }
}
@media (max-width: 720px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) 88px auto; padding: 8px 16px 6px; gap: 6px 8px; }
  #desktop-language-slot .choice-trigger { padding: 8px; gap: 8px; font-size: .875rem; }
  #desktop-navigation { justify-content: space-between; gap: 2px 4px; }
  .site-header #desktop-navigation a { padding: 10px 4px; font-size: .875rem; }
  .choice-popover { border-radius: 6px; }
  .choice-option { min-height: 48px; }
}
@media (max-width: 359px) {
  #desktop-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .site-header #desktop-navigation a { width: 100%; }
  html { scroll-padding-top: 176px; }
}
@media (prefers-reduced-motion: reduce) { .choice-trigger::after { transition: none; } }
@media (prefers-contrast: more) {
  .choice-popover { border-color: var(--accent); }
  .choice-option[data-active=true] { border-color: var(--accent); }
}
