/* Local candidate: one-page market switching and live-price presentation. */
.header-market-switch{display:flex;align-items:center;padding:3px;border:1px solid #d9e2ed;border-radius:999px;background:#f5f8fc;flex-shrink:0}
.header-market-switch button{border:0;background:transparent;color:#65748a;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;cursor:pointer;line-height:1}
.header-market-switch button[aria-pressed="true"]{background:#123d78;color:#fff}
.header-market-switch button:focus-visible,.market-switch-buttons button:focus-visible{outline:3px solid #8eb1dc;outline-offset:3px}

.market-switch-panel{max-width:760px;margin:0 auto 30px;display:grid;gap:12px;justify-items:center}
.market-switch-panel>span{font-size:12px;letter-spacing:.12em;color:#60718a;font-weight:750}
.market-switch-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,560px);padding:4px;border:1px solid #d7e0ec;background:#fff;border-radius:8px;box-shadow:0 10px 28px rgba(17,57,108,.07)}
.market-switch-buttons button{position:relative;display:grid;gap:3px;min-height:66px;padding:10px 18px;border:0;border-radius:5px;background:transparent;color:#65748a;cursor:pointer;text-align:center;transition:background-color 180ms ease,color 180ms ease}
.market-switch-buttons button b{font-size:16px}
.market-switch-buttons button small{font-size:10px;font-weight:500;opacity:.8}
.market-switch-buttons button[aria-pressed="true"]{background:#123d78;color:#fff}
.market-detection-note{font-size:11px;color:#8794a7;line-height:1.5}

@media(max-width:1050px){
  .header-market-switch{margin-left:auto}
}
@media(max-width:760px){
  .nav{gap:6px}
  .header-market-switch{order:2;margin-left:auto}
  .header-market-switch button{padding:7px 10px;font-size:11px}
  .market-switch-panel{margin-bottom:24px}
  .market-switch-buttons{width:100%}
  .market-switch-buttons button{min-height:61px;padding:9px 7px}
}
@media(max-width:420px){
  .brand,.nav .brand{width:96px;flex-basis:96px}
  .header-market-switch button{padding:6px 6px;font-size:9px}
  .nav-actions .lang-switch{margin-right:0}
  .lang-switch button,.nav .lang-switch button{padding:3px 4px;font-size:10px}
  .menu-btn{min-width:31px;padding:5px 6px}
  .market-switch-buttons button b{font-size:14px}
  .market-switch-buttons button small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .market-switch-buttons button{transition:none}
}
/* Product selection uses the site's existing white, blue and fine-line vocabulary. */
#products [hidden]{display:none!important}
.product-options{scroll-margin-top:100px;margin:0 0 38px}
.supply-nav{display:flex;gap:28px;border-bottom:1px solid #dce3ec}
.supply-nav button{padding:13px 0;background:none;border:0;border-bottom:2px solid transparent;color:#6b7685;font-family:inherit;font-weight:600;font-size:15px;line-height:1.5;cursor:pointer}
.supply-nav button[aria-pressed="true"]{color:#123d78;border-color:#123d78}
.supply-help{font-size:13px;color:#697889;margin:18px 0 25px;line-height:1.8}
.spec-field{min-width:0;border:0;padding:0;margin:0 0 22px;display:block}
.spec-label{display:block;margin:0 0 10px;font-size:12px;font-weight:600;color:#56667a}
.spec-choices{display:flex;flex-wrap:wrap;gap:8px}
.spec-choice{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;min-width:48px;padding:9px 15px;border:1px solid #d9e1e9;border-radius:2px;background:#fff;color:#3d4d60;font-family:inherit;font-size:13px;line-height:1.4;cursor:pointer;transition:border-color .18s,color .18s}
.spec-choice[aria-pressed="true"]{border-color:#123d78;color:#123d78;background:#f4f7fb;box-shadow:inset 0 0 0 1px #123d78}
.spec-choice:hover{border-color:#123d78}
.spec-choice:focus-visible,.supply-nav button:focus-visible,.product-supply-links button:focus-visible{outline:2px solid #123d78;outline-offset:4px}
.spec-models{margin-bottom:30px}
.spec-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:60px;align-items:start;animation:spec-enter .25s ease}
.spec-photo{margin:0;position:sticky;top:108px;min-width:0}
.spec-photo img{display:block;width:100%;height:400px;object-fit:contain;background:#fafbfc;border:1px solid #edf0f4;padding:40px;box-sizing:border-box;filter:none}
.spec-photo figcaption{font-size:11px;line-height:1.7;color:#87909b;margin-top:12px}
.spec-controls{min-width:0}
.spec-controls h3{font-size:24px;line-height:1.4;color:#153b70;margin:0 0 8px;letter-spacing:0}
.spec-composition{color:#748092;font-size:13px;margin:0 0 26px;padding-bottom:20px;border-bottom:1px solid #e4e9ef}
.spec-swatch{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid #d8dde3;flex-shrink:0}
.spec-dimensions{margin:-5px 0 22px;color:#657287;font-size:12px}
.spec-dimensions>p{margin:0 0 10px;line-height:1.7}
.spec-chart summary{cursor:pointer;color:#123d78;text-decoration:underline;text-underline-offset:4px;padding:5px 0}
.spec-table-scroll{overflow:auto;margin-top:12px}
.spec-chart table{width:100%;font-size:12px;border-collapse:collapse;text-align:center;white-space:nowrap}
.spec-chart th,.spec-chart td{padding:9px 6px;border-bottom:1px solid #e6ebf1;font-weight:400}
.spec-chart thead th{color:#254366;font-weight:600}
.spec-chart .is-selected{background:#eff4fa;color:#123d78}
.spec-chart caption{text-align:left;white-space:normal;caption-side:bottom;line-height:1.7;padding-top:10px;color:#76869a}
.spec-field input,.spec-field select{width:100%;height:42px;box-sizing:border-box;border:1px solid #d9e1e9;border-radius:2px;background:#fff;padding:8px 12px;color:#243b56;font:inherit;font-size:14px}
.spec-field input:focus,.spec-field select:focus{outline:2px solid #7ea3d1;outline-offset:1px}
.spec-input-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.spec-note-small{font-size:12px;line-height:1.65;color:#758498;margin:0 0 20px}
.spec-result{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #dde5ee;padding-top:20px}
.spec-price{flex:1 1 220px}
.spec-price strong{display:block;color:#173e72;font-size:22px;font-weight:600}
.spec-price p{font-size:12px;line-height:1.7;color:#758498;margin:7px 0 0}
.spec-result .btn{border-radius:2px;font-size:13px;padding:12px 18px;min-height:44px}
.spec-result .btn:disabled{opacity:.45;cursor:not-allowed}
.spec-market{color:#8794a4;font-size:11px;margin:13px 0 0}
.spec-feedback{flex-basis:100%;font-size:12px;color:#315d92;margin:0}
.spec-feedback:empty{display:none}
.product-supply-links{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.product-supply-links button{padding:7px 0;border:0;border-bottom:1px solid #a6b9d1;background:none;color:#123d78;font:inherit;font-size:12px;cursor:pointer}
@keyframes spec-enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:900px){.spec-layout{gap:30px}.spec-photo img{height:330px;padding:30px}.spec-controls h3{font-size:21px}}
@media(max-width:650px){.spec-layout{grid-template-columns:1fr;gap:25px}.spec-photo{position:static}.spec-photo img{height:245px;padding:20px}.spec-choices{gap:7px}.spec-models .spec-choice{flex:1 1 145px;padding:10px}.spec-controls h3{font-size:22px}.spec-result .btn{width:100%}.spec-price{flex-basis:100%}.supply-nav button{font-size:14px}}
@media(prefers-reduced-motion:reduce){.spec-layout{animation:none}.spec-choice{transition:none}}

/* Restore the original horizontal logo and motto arrangement. */
.header .brand{display:flex;align-items:center}
.header .nav>.brand-slogan{display:flex!important;flex:0 0 auto;order:0;align-items:center;margin:0;padding:0 0 0 16px;border-left:1px solid #e0e7f0}
.header .nav>.brand-slogan img{display:block;height:28px;width:auto;max-width:none}
@media(max-width:1000px){.header .nav>.brand-slogan{order:1;flex-basis:auto}}
@media(max-width:650px){
  .header{height:auto}
  .header .nav{display:grid;height:auto;grid-template-columns:auto 1fr auto;gap:8px 12px;padding:9px 0}
  .header .nav .brand{grid-column:1;grid-row:1;width:110px;flex-basis:auto}
  .header .nav>.brand-slogan{grid-column:2;grid-row:1;padding-left:12px;justify-self:start}
  .header .nav>.brand-slogan img{height:22px}
  .header .menu-btn{grid-column:3;grid-row:1;margin:0}
  .header-market-switch{grid-column:1 / 3;grid-row:2;margin:0;justify-self:start}
  .header .nav-actions{grid-column:3;grid-row:2;justify-self:end;margin:0}
  .header .navlinks{position:absolute}
  html{scroll-padding-top:116px}
}
@media(max-width:360px){
  .header .nav{column-gap:8px}
  .header .nav .brand{width:96px}
  .header .nav>.brand-slogan img{height:20px}
  #products .filters{max-width:100%;overflow-x:auto;flex-wrap:nowrap}
  #products .filters button{flex-shrink:0}
}
@media(min-width:1281px) and (max-width:1680px){
  html:not([lang="zh-CN"]) .header .navlinks{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:20px 30px}
  html:not([lang="zh-CN"]) .header .navlinks.open{display:grid;grid-template-columns:1fr 1fr}
  html:not([lang="zh-CN"]) .header .menu-btn{display:block;order:3;margin-left:auto}
  html:not([lang="zh-CN"]) .header .nav-actions{order:4}
}

/* Explicit category and supply buttons: all products first, stock opens on selection. */
.product-choice-guide{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 14px}
.product-choice-guide strong{font-size:17px;color:#173e72}
.product-choice-guide p{margin:0;color:#68788c;font-size:13px;line-height:1.7}
#products .filters{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:0;margin:0 0 26px;overflow:visible;scroll-margin-top:120px}
#products .filters button{border:1px solid #b5c5d9;border-radius:3px;background:#fff;color:#214775;padding:12px 24px;min-height:46px;font-weight:600;cursor:pointer;white-space:normal}
#products .filters button.active{background:#123d78;color:#fff;border-color:#123d78}
#products .filters button:hover{border-color:#123d78;background:#edf3fa;color:#123d78}
#products .filters button.active:hover{background:#123d78;color:#fff}
#products .filters button:focus-visible{outline:2px solid #123d78;outline-offset:3px}
.supply-label{font-size:12px;color:#65758a;font-weight:600;margin:0 0 10px}
.supply-nav{gap:10px;border:0}
.supply-nav button{min-width:142px;min-height:44px;border:1px solid #b5c5d9;border-radius:3px;padding:10px 22px;background:#fff;color:#214775}
.supply-nav button[aria-pressed="true"]{background:#123d78;border-color:#123d78;color:#fff}
.supply-nav button:hover{border-color:#123d78}
.supply-help{margin-top:14px}
@media(max-width:650px){
 .product-choice-guide{display:block}
 .product-choice-guide p{margin-top:6px;font-size:12px}
 #products .filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 #products .filters button{padding:11px 8px;font-size:13px;min-width:0}
 .supply-nav{display:grid;grid-template-columns:1fr 1fr}
 .supply-nav button{min-width:0;padding:10px 8px;font-size:13px}
}
