:root {
  color-scheme: light;
  --ink: #0d1c30;
  --text: #24354d;
  --muted: #52657f;
  --accent: #244fb8;
  --rule: #dfe6f0;
  --soft: #f1f5fb;
  --white: #fff;
  --canvas: #f7f9fc;
  --card-shadow: 0 13px 36px -25px #12397065, 0 2px 5px #172b4808;
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--canvas); font-optical-sizing: auto; }
h1,h2,h3,p,ol,dl,dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #527ed6; outline-offset: 3px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 15px; background: white; }
.wrap { width: min( calc(100% - 80px), 1320px ); margin-inline: auto; }
.topbar { background: #101a2b; color: #e6edfa; font-size: .82rem; }
.topbar-inner { min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.topbar a:hover { text-decoration: underline; }
.header { background: white; }
.header-inner { display: grid; grid-template-columns: 225px minmax(210px, 1fr) max-content; gap: clamp(24px,4vw,64px); align-items: center; min-height: 77px; }
.brand { display: flex; gap: 11px; align-items: center; width: fit-content; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand strong { display: block; font: 850 1.43rem/.97 "Inter", system-ui, sans-serif; letter-spacing: -.065em; }
.brand small { display: block; margin-top: 6px; font-size: .73rem; font-weight: 700; letter-spacing: .22em; }
.search { display: flex; min-width: 0; height: 43px; border: 1px solid var(--rule); background: #f7f9fc; border-radius: 9px; }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 0 15px; color: var(--ink); border-radius: 7px 0 0 7px; }
.search input::placeholder { color: #607088; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 21px; min-height: 45px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: white; font-weight: 680; font-size: .92rem; text-align: center; transition: background .18s, border-color .18s, box-shadow .18s; }
.button:hover { background: #193989; border-color: #193989; box-shadow: 0 6px 20px #1e419331; }
.button.light { border-color: #aebbd1; color: var(--ink); background: white; }
.button.light:hover { background: #e9f0fa; border-color: #8a9fbd; }
.button:disabled { opacity: .52; cursor: default; }
.search .button { min-height: 41px; padding: 0 19px; border-radius: 0 6px 6px 0; white-space: nowrap; }
.icon { display: inline-block; vertical-align: middle; width: 20px; height: 20px; flex: 0 0 20px; }
.utilities { display: flex; align-items: center; gap: 23px; }
.utility { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: .88rem; min-height: 44px; white-space: nowrap; }
.utility:hover,.nav a:hover { color: var(--accent); }
.count { font: 700 .74rem system-ui; min-width: 20px; height: 20px; padding: 0 4px; display: inline-grid; place-items: center; color: white; background: var(--accent); border-radius: 20px; }
.nav { border-top: 1px solid #edf0f4; border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: stretch; gap: clamp(20px, 3vw, 44px); min-height: 43px; overflow: auto; scrollbar-width: none; }
.nav a { display: inline-flex; align-items: center; gap: 8px; font-size: .89rem; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; padding: 3px 0 1px; }
.nav a[aria-current] { border-color: var(--accent); color: var(--accent); }
.nav-inner .all-categories { color: var(--accent); font-weight: 750; }
.nav .nav-guide { margin-left: auto; }
main { min-height: 57vh; }
.initial { display: grid; place-items: center; min-height: 340px; color: var(--muted); }
.hero {
  margin-top: 26px;
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  isolation: isolate;
  position: relative;
  background: radial-gradient(ellipse at 83% 61%, #1f3a70 0, #0d1a31 42%, #0a1121 77%);
  border: 1px solid #253657;
  border-radius: 24px;
  overflow: hidden;
  min-height: clamp(380px, 35vw, 486px);
  box-shadow: 0 24px 60px -35px #1424489c, inset 0 1px #c1d6ff2f;
}
.hero::before { content: ""; position: absolute; z-index: 1; inset: 14px; border: 1px solid #c1d6ff16; border-radius: 15px; pointer-events: none; }
.hero-copy { align-self: center; padding: clamp(29px,4.5vw,69px) clamp(24px,4.6vw,73px); color: #f6faff; position: relative; z-index: 2; }
.hero-label { display: inline-flex; align-items: center; gap: 10px; color: #b0c6f6; font-size: .87rem; font-weight: 690; letter-spacing: .12em; }
.hero-label::before { content: ""; width: 15px; height: 2px; border-radius: 3px; background: #74a3ff; box-shadow: 0 0 12px #719af5aa; }
.hero h1 { margin-top: 18px; font-size: clamp(2.65rem, 4.62vw, 4.6rem); letter-spacing: -.074em; line-height: 1.12; font-weight: 850; }
.hero h1 em { font-style: normal; color: #bed1fb; }
.hero p { margin: 18px 0 27px; max-width: 27rem; line-height: 1.75; font-size: 1.02rem; color: #c0cce5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .button { background: #f0f5ff; color: #102755; border-color: #f0f5ff; }
.hero-actions .button:hover { background: #c8d9ff; border-color: #c8d9ff; }
.hero-actions .button.light { background: #172a46; color: #e8efff; border-color: #51698e; }
.hero-actions .button.light:hover { background: #243d64; border-color: #91a8cf; }
.hero-image { position: relative; min-width: 0; min-height: 340px; perspective: 1000px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 18%); }
.hero-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 52% 54%;
  transform: rotateX(var(--turn-x, 0deg)) rotateY(var(--turn-y, 0deg)) scale(1.035);
  transition: transform .28s cubic-bezier(.2,.7,.25,1);
}
.home-section { margin-top: clamp(36px,4.2vw,62px); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 19px; }
.section-top h2, .section-title { font-size: clamp(1.4rem, 2.4vw, 2.15rem); letter-spacing: -.047em; color: var(--ink); font-weight: 800; }
.section-top p { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.text-link { color: var(--accent); font-weight: 680; font-size: .9rem; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.categories { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; perspective: 1100px; }
.category-tile {
  display: grid; min-width: 0; grid-template-rows: auto 1fr; overflow: hidden;
  border: 1px solid #e3eaf6; border-radius: 14px; background: #fdfefe; color: var(--ink);
  box-shadow: var(--card-shadow); transition: transform .26s, border-color .2s, box-shadow .26s;
}
.category-photo { display: block; overflow: hidden; background: #e6efff; aspect-ratio: 1.26; }
.category-photo img { height: 100%; object-fit: cover; object-position: 50% 37%; }
.category-name { padding: 11px 14px 13px; }
.category-tile strong { display: block; font-size: .94rem; font-weight: 760; }
.category-tile small { display: block; font-size: .73rem; color: var(--muted); margin-top: 4px; line-height: 1.2; }
.list-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; perspective: 1400px; }
.card { min-width: 0; border: 1px solid #e0e7f2; border-radius: 14px; overflow: hidden; background: white; box-shadow: var(--card-shadow); transition: border-color .2s, transform .24s, box-shadow .24s; }
.card:hover { border-color: #8fa6c4; }
.card-link { display: block; height: 100%; }
.card-visual { background: #f4f6f8; aspect-ratio: 1.21; position: relative; overflow: hidden; }
.card-visual img { height: 100%; object-fit: contain; background: white; transition: transform .25s; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .category-tile:hover, .card:hover { transform: translate3d(0,-5px,12px) rotateX(2deg); border-color: #9bb0d5; box-shadow: 0 17px 32px -19px #20447d76; }
  .card:hover img { transform: scale(1.025); }
}
.card-info { padding: 15px 17px 17px; }
.card-meta { font-size: .77rem; color: var(--muted); }
.card-name { margin-top: 5px; color: var(--ink); line-height: 1.45; font-size: .99rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-foot { border-top: 1px solid #edf0f4; margin-top: 11px; padding-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; row-gap: 4px; font-size: .8rem; color: var(--muted); }
.card-price { color: var(--accent); font-weight: 700; }
.image-error { width: 100%; height: 100%; }
.image-fallback { width: 100%; height: 100%; min-height: 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: #eef3fb; color: #586b89; font-size: .86rem; text-align: center; }
.image-fallback > .icon { width: 23px; height: 23px; flex: 0 0 23px; }
.image-fallback > .button { min-height: 40px; margin-top: 8px; }
:is(.thumb,.bag-image) .image-fallback > span { display: none; }
.purchase-strip { margin-bottom: clamp(32px,5vw,68px); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px,4vw,45px); background: linear-gradient(115deg,#e8f0fc,#edf3fb); border: 1px solid #dae6f8; border-radius: 19px; color: var(--ink); }
.purchase-strip p { margin-top: 8px; color: var(--muted); }
.footer { border-top: 1px solid #213455; background: #101a2b; padding: 34px 0; color: #c1cde2; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { color: #eef4ff; font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; }
.footer-brand span { font-size: .86rem; letter-spacing: .02em; margin-left: 7px; }
.footer p { margin-top: 8px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a:hover { text-decoration: underline; }
.page { padding-block: 32px 62px; }
.crumb { display: flex; flex-wrap: wrap; gap: 9px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.crumb a:hover { text-decoration: underline; color: var(--accent); }
.page h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); color: var(--ink); letter-spacing: -.045em; }
.page-intro { margin-top: 9px; color: var(--muted); line-height: 1.6; }
.catalog-layout { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 26px; margin-top: 23px; align-items: start; }
.filter { border: 1px solid var(--rule); border-radius: 13px; padding: 14px; background: white; box-shadow: var(--card-shadow); }
.filter summary { cursor: pointer; font-weight: 750; color: var(--ink); padding: 6px 1px; font-size: .96rem; }
.filter nav { margin-top: 7px; display: grid; gap: 3px; max-height: 610px; overflow: auto; }
.filter a { display: block; padding: 8px; border-radius: 5px; font-size: .9rem; }
.filter a:hover, .filter a[aria-current] { background: #ebf2fd; color: var(--accent); font-weight: 650; }
.subfilters { display: flex; gap: 7px; overflow: auto; padding: 4px 3px 8px; scrollbar-width: thin; }
.subfilters a { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 20px; white-space: nowrap; font-size: .84rem; }
.subfilters a[aria-current], .subfilters a:hover { background: #ebf2fd; border-color: #86a3c8; color: var(--accent); }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 5px 0 12px; font-size: .88rem; min-height: 23px; color: var(--muted); }
.status-panel { display: grid; gap: 15px; justify-items: start; align-content: center; min-height: 205px; padding: 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--soft); color: var(--muted); }
.pages { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 25px; font-size: .9rem; }
.pages .button { min-height: 38px; padding: 7px 13px; }
.product-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: clamp(24px,5vw,74px); align-items: start; }
.product-image { aspect-ratio: 1.16; background: white; border: 1px solid var(--rule); border-radius: 17px; overflow: hidden; box-shadow: var(--card-shadow); }
.product-image img { height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow: auto; padding: 3px; }
.thumb { background: white; width: 62px; height: 62px; border: 1px solid var(--rule); border-radius: 5px; padding: 0; overflow: hidden; flex: 0 0 auto; }
.thumb[aria-pressed="true"] { border: 2px solid var(--accent); }
.thumb img { height: 100%; object-fit: contain; }
.product-name { overflow-wrap: anywhere; line-height: 1.25; }
.sku { margin: 10px 0 20px; color: var(--muted); }
.order-panel { padding: 20px; border: 1px solid var(--rule); background: #fff; border-radius: 14px; box-shadow: var(--card-shadow); }
.order-panel .price { color: var(--accent); font-size: 1.18rem; font-weight: 750; }
.order-panel p { color: var(--muted); margin: 7px 0 13px; font-size: .87rem; line-height: 1.55; }
.quantity-row { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-block: 11px 13px; }
.quantity-row label { font-weight: 600; }
.quantity { width: 102px; border: 1px solid #a7b7cc; min-height: 40px; padding: 7px; border-radius: 5px; color: var(--ink); background: white; }
.action-group { display: flex; flex-wrap: wrap; gap: 9px; }
.details { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.details div { display: grid; grid-template-columns: auto 1fr; gap: 11px; justify-items: start; border-bottom: 1px solid var(--rule); padding: 9px 0; font-size: .88rem; }
.details dt { color: var(--muted); }
.details dd { overflow-wrap: anywhere; }
.bag-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(240px,1fr); align-items: start; gap: 20px; margin-top: 20px; }
.bag-items { display: grid; gap: 10px; }
.bag-item { display: grid; align-items: center; grid-template-columns: 77px minmax(0,1fr) auto; gap: 14px; border: 1px solid var(--rule); border-radius: 13px; padding: 12px; background: white; }
.bag-image { border-radius: 5px; height: 69px; overflow: hidden; }
.bag-image img { height: 100%; object-fit: contain; }
.bag-name { font-weight: 700; color: var(--ink); }
.bag-meta { display: block; font-size: .81rem; color: var(--muted); margin-top: 5px; }
.bag-actions { display: flex; align-items: center; gap: 12px; }
.inline-button { border: 0; padding: 7px 2px; color: var(--accent); background: transparent; white-space: nowrap; }
.inline-button:hover { text-decoration: underline; }
.bag-summary h2 { font-size: 1.18rem; color: var(--ink); margin-bottom: 8px; }
.bag-summary .button { width: 100%; }
.bag-summary .button + .button { margin-top: 8px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 23px 0; }
.guide-grid article { background: var(--soft); border-radius: 8px; padding: 22px; }
.guide-grid h2 { font-size: 1.08rem; color: var(--ink); }
.guide-grid p { margin-top: 9px; color: var(--muted); line-height: 1.7; }
.toast { position: fixed; z-index: 4; bottom: 18px; inset-inline-end: 20px; max-width: calc(100% - 40px); padding: 12px 16px; background: var(--ink); color: white; border-radius: 6px; box-shadow: 0 7px 26px #162b4845; }
@media (max-width: 1120px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { grid-template-columns: 175px minmax(150px,1fr) max-content; gap: 23px; }
  .categories { gap: 9px; }
  .category-name { padding: 10px 11px 11px; }
  .catalog-layout .list-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 790px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 6px 14px; min-height: 0; padding-block: 10px; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 1.22rem; }
  .brand small { font-size: .68rem; }
  .utilities { gap: 12px; }
  .utility { font-size: .8rem; gap: 4px; }
  .utility .icon { width: 17px; height: 17px; flex-basis: 17px; }
  .nav-inner { min-height: 40px; gap: 21px; }
  .hero { margin-top: 18px; grid-template-columns: .97fr 1.03fr; min-height: 320px; border-radius: 18px; }
  .hero-copy { padding: 29px 23px; }
  .hero-label { font-size: .74rem; letter-spacing: .09em; }
  .hero h1 { font-size: clamp(2rem,5.6vw,3.25rem); }
  .hero p { margin: 12px 0 17px; font-size: .88rem; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding: 8px 12px; min-height: 39px; font-size: .83rem; }
  .hero-image { min-height: 260px; }
  .categories { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .list-grid { gap: 10px; }
  .catalog-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .filter nav { grid-template-columns: repeat(3,1fr); max-height: 180px; }
  .product-layout { gap: 18px; }
  .details { grid-template-columns: 1fr; }
  .bag-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; min-height: auto; overflow: hidden; }
  .hero-copy { padding: 25px 22px 18px; }
  .hero-image { min-height: 0; aspect-ratio: 1.72; mask-image: linear-gradient(180deg, transparent, #000 17%); }
  .hero-image img { object-position: 52% 54%; }
}
@media (max-width: 525px) {
  .wrap { width: calc(100% - 24px); }
  .topbar { font-size: .73rem; }
  .topbar-inner { min-height: 29px; }
  .search-label { display: none; }
  .search .button { padding-inline: 14px; }
  .hero-label { letter-spacing: .13em; }
  .hero h1 { margin-top: 11px; font-size: clamp(2rem,9vw,2.6rem); }
  .hero p { margin: 11px 0 16px; }
  .hero::before { inset: 9px; border-radius: 11px; }
  .category-tile { border-radius: 11px; }
  .category-name { padding: 8px 8px 9px; }
  .category-tile strong { font-size: .86rem; }
  .category-tile small { font-size: .69rem; }
  .list-grid, .catalog-layout .list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-info { padding: 10px; }
  .card-name { font-size: .9rem; }
  .card-foot { font-size: .75rem; }
  .purchase-strip { flex-direction: column; align-items: start; gap: 13px; }
  .footer-inner { flex-direction: column; align-items: start; }
  .product-layout, .guide-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr 1fr; }
  .bag-item { grid-template-columns: 59px minmax(0,1fr); gap: 8px; }
  .bag-image { height: 55px; }
  .bag-actions { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition: none !important; }
  .hero-image img { transform: scale(1.035); }
}

.commerce-section { margin-top: 22px; }
.narrow { max-width: 550px; }
.account-tabs { display: flex; gap: 5px; margin-bottom: 12px; }
.account-tabs a { border: 1px solid var(--rule); padding: 9px 13px; border-radius: 6px; font-size: .9rem; color: var(--accent); }
.account-tabs a[aria-current] { background: #e9f0fb; font-weight: 700; border-color: #9db4d4; }
.form-grid { display: grid; gap: 13px; }
.form-grid h2, .contact-panel h2 { font-size: 1.16rem; color: var(--ink); }
.field { display: grid; gap: 5px; font-size: .9rem; color: var(--ink); }
.field > span { font-weight: 600; }
.field :is(input,select,textarea) { min-width: 0; width: 100%; border: 1px solid #acbdd3; border-radius: 6px; background: white; color: var(--ink); padding: 8px 10px; min-height: 41px; font-size: 1rem; }
.field textarea { resize: vertical; }
.form-grid .button { justify-self: start; }
.order-panel .form-error { margin: 3px 0; color: #9c2d22; }
.form-error:empty { display: none; }
.recovery-code { display: block; overflow-wrap: anywhere; line-height: 1.6; padding: 10px; border: 1px solid var(--rule); background: white; border-radius: 5px; margin: 5px 0 15px; }
.purchase-list { display: grid; gap: 8px; margin-top: 8px; }
.purchase-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px 16px; padding: 13px 15px; border: 1px solid var(--rule); border-radius: 6px; }
.purchase-row:hover { border-color: #92a8c7; background: #f7faff; }
.purchase-row strong { color: var(--ink); overflow-wrap: anywhere; }
.purchase-state { display: inline-block; justify-self: start; font-size: .82rem; white-space: nowrap; color: #22497c; font-weight: 700; border-radius: 5px; padding: 4px 8px; background: #e5edf9; }
.purchase-state[data-state="quoted"] { color: #785124; background: #f7eedc; }
.purchase-state[data-state="shipped"], .purchase-state[data-state="completed"] { color: #245440; background: #e2f0ea; }
.purchase-state[data-state="cancelled"] { color: #5a687b; background: #e9eff5; }
.order-heading { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.line-items { display: grid; }
.line-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .87rem; }
.line-item .text-link { overflow-wrap: anywhere; }
.quote-total { margin: 12px 0; color: var(--ink); }
.preserve-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-panel dl { margin: 10px 0; display: grid; gap: 9px; }
.contact-panel dl div { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 9px; font-size: .9rem; }
.contact-panel dt { color: var(--muted); }
.contact-panel dd { overflow-wrap: anywhere; }
#quote-form, #ship-form, #order-actions { margin-top: 12px; }
@media (max-width: 525px) {
  .purchase-row { grid-template-columns: minmax(0,1fr) auto; }
  .purchase-row .purchase-state { grid-column: 1 / -1; }
  .order-heading { flex-wrap: wrap; }
}
