:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #6b7075;
  --soft-muted: #8a9194;
  --line: #e2e1dc;
  --paper: #f5f4f1;
  --white: #ffffff;
  --wash: #f1f0ed;
  --teal: #b8954f;
  --teal-dark: #8f6f33;
  --danger: #9b4039;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f1112;
  color: #d9d7d1;
}
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.brand-emblem { display: block; width: 56px; height: 56px; max-width: none; object-fit: contain; }
.wordmark-name { color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.topbar .wordmark-name { color: #d9d7d1; }
.search { position: relative; display: flex; width: 380px; max-width: 100%; margin-left: auto; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #34393b; background: #181b1c; color: #a6a9aa; }
.search span { font: 20px/1 system-ui, sans-serif; }
.search input { width: 100%; min-width: 0; min-height: 38px; border: 0; outline: 0; background: transparent; color: #f2f1ed; font-family: system-ui, sans-serif; font-size: 13px; }
.search input::placeholder { color: #8a9194; }
.topbar-button, .language-control {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #34393b;
  border-radius: 2px;
  background: #181b1c;
  color: #d9d7d1;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.language-control { max-width: 120px; appearance: none; padding-right: 22px; }
.bag-trigger { min-height: 44px; padding: 0 2px 0 6px; border: 0; background: transparent; color: #d9d7d1; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bag-count { display: inline-grid; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 5px; place-items: center; border: 1px solid #6d5a38; border-radius: 50%; color: var(--teal); font-size: 10px; font-variant-numeric: tabular-nums; }

/* Category row and filters */
.toolbar {
  position: sticky;
  top: 72px;
  z-index: 19;
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.category-chips { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.category-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--teal); }
.chip.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.filters-trigger { display: none; flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 12px; cursor: pointer; white-space: nowrap; }
.filter-panel { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.filter-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.filter-label select { max-width: 150px; min-height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); font-size: 12px; cursor: pointer; }
.category-link-button, .favorites-filter { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); font-size: 11px; cursor: pointer; white-space: nowrap; }
.favorites-filter[aria-pressed="true"] { border-color: var(--teal); color: var(--teal-dark); }
.filter-done { display: none; }

main { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.list-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.result-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.snapshot { display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.snapshot::before { content: "·"; margin-right: 6px; }
.snapshot small { color: var(--muted); font-size: 11px; }
.snapshot-mark { display: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px 0 0; }
.filter-chip, .clear-filters { min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 11px; cursor: pointer; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; }
.filter-chip span:last-child { color: var(--muted); font-size: 15px; line-height: 1; }
.clear-filters { border-color: var(--teal); color: var(--teal-dark); }
.notice { margin: 12px 0 0; padding: 11px 13px; border-left: 2px solid var(--teal); background: #ebe9e3; color: #4d5558; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
#draft-banner { border-left-color: var(--teal-dark); background: #f4f0e8; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 12px 0 64px; }
.product-card { min-width: 0; cursor: pointer; }
.card-image { position: relative; display: grid; aspect-ratio: 1 / 1; overflow: hidden; place-items: center; background: var(--wash); }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .28s ease; }
.product-card:hover .card-image img { transform: scale(1.018); }
.favorite-button { position: absolute; z-index: 2; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.75); color: var(--ink); font-size: 18px; line-height: 1; opacity: .65; cursor: pointer; }
.favorite-button:hover { opacity: 1; }
.favorite-button.is-favorite { color: var(--teal); opacity: 1; }
.card-meta { display: block; margin-top: 10px; }
.card-brand { display: block; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.card-title { display: -webkit-box; margin: 3px 0 0; overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.35; font-weight: 500; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-price { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.currency-label { font-variant-numeric: tabular-nums; }
.card-recommendation { display: block; margin-top: 5px; color: var(--teal-dark); font-size: 10px; line-height: 1.4; }
.card-recommendation.needs-measurements { color: #8a5d28; }
.empty-state { padding: 58px 15px; color: var(--muted); text-align: center; font-size: 13px; }
.measure-entry { display: none; }
footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--soft-muted); font-size: 10px; }

/* Shared controls */
.eyebrow { margin: 0 0 12px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.secondary { appearance: none; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; cursor: pointer; }
.secondary:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); }
.secondary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.primary { width: 100%; min-height: 48px; border: 1px solid var(--teal); border-radius: 0; background: var(--teal); color: var(--ink); font-size: 11px; font-weight: 650; letter-spacing: .015em; cursor: pointer; }
.primary:hover:not(:disabled) { border-color: var(--teal-dark); background: var(--teal-dark); color: var(--white); }
.primary:disabled { border-color: #c9c8c2; background: #c9c8c2; color: var(--muted); cursor: not-allowed; }
.icon-button, .gallery-arrow, .zoom-trigger { display: grid; place-items: center; border: 1px solid rgba(226,225,220,.9); background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; font-size: 23px; line-height: 1; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@keyframes slidein { from { transform: translateX(20px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }

/* Dialogs */
dialog { color: var(--ink); }
dialog:not([open]), [hidden] { display: none !important; }
.product-dialog::backdrop, .bag-dialog::backdrop, .zoom-dialog::backdrop, .measure-dialog::backdrop, .profile-dialog::backdrop { background: rgba(17, 20, 22, .58); }
.product-dialog {
  width: min(1240px, calc(100vw - 40px));
  height: min(90dvh, 900px);
  max-width: none;
  max-height: min(90dvh, 900px);
  padding: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(20, 24, 26, .22);
}
.detail-dialog-bar { position: relative; z-index: 10; display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.detail-home-link { min-width: 0; }
.detail-home-link .brand-emblem { width: 40px; height: 40px; }
.close-detail { flex: 0 0 auto; margin: 0; }
.detail-layout { grid-row: 2; display: grid; height: 100%; min-height: 0; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: stretch; }
.gallery { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; padding: 22px; background: var(--paper); }
.detail-image-wrap { position: relative; display: grid; min-height: 0; flex: 1 1 auto; place-items: center; background: var(--wash); touch-action: pan-x pan-y pinch-zoom; }
.detail-image-wrap > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; width: 44px; height: 48px; transform: translateY(-50%); font-size: 25px; }
.gallery-arrow.prev { left: 0; }
.gallery-arrow.next { right: 0; }
.zoom-trigger { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; font-size: 19px; }
.photo-indicator { position: absolute; bottom: 10px; left: 10px; max-width: calc(100% - 66px); padding: 7px 9px; background: rgba(255,255,255,.94); color: #41454a; font-size: 10px; letter-spacing: .02em; }
.thumbs { display: flex; flex: 0 0 auto; max-width: 100%; min-width: 0; gap: 8px; margin-top: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; }
.thumb { flex: 0 0 auto; width: 56px; height: 68px; padding: 2px; border: 1px solid transparent; background: var(--wash); cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--teal); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-info { min-width: 0; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 43px clamp(24px, 4vw, 54px) 34px; }
.item-number { clear: both; margin: 0 0 8px; color: var(--soft-muted); font-family: system-ui, sans-serif; font-size: 10px; letter-spacing: .08em; }
.detail-info h2, .bag-head h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -.04em; }
.detail-price { margin: 12px 0 17px; color: var(--ink); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-note, .availability-note { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 11px; line-height: 1.65; }
.stock-note span, .availability-note span { color: var(--muted); }
.workspace-details { margin: 14px 0; padding: 12px 14px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.6; }
.workspace-details p { margin: 3px 0; }
.detail-info > .notice { margin: 12px 0; }
.link-panel { display: grid; gap: 15px; min-width: 0; margin: 18px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.link-block { min-width: 0; }
.link-block > label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 11px; font-weight: 650; }
.link-row { display: flex; min-width: 0; align-items: stretch; gap: 7px; }
.link-row input { width: 0; min-width: 0; min-height: 44px; flex: 1 1 auto; padding: 0 9px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.link-copy { min-height: 44px; flex: 0 0 auto; padding: 0 11px; border: 1px solid var(--teal); border-radius: 0; background: transparent; color: var(--teal-dark); font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.link-copy:hover:not(:disabled) { border-color: var(--teal-dark); color: var(--ink); }
.link-copy:disabled { opacity: .55; cursor: wait; }
.link-hint, .link-status { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.link-status { min-height: 0; }
.link-status:empty { display: none; }
.chart-section { min-width: 0; margin: 19px 0; }
.chart-section h3, .chart-section h4 { margin: 0 0 8px; font-size: 12px; font-weight: 650; }
.size-chart-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); }
.size-chart-scroll:focus-visible { outline-offset: 2px; }
.size-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; background: var(--white); font-family: system-ui, sans-serif; font-size: 11px; line-height: 1.45; }
.size-table th, .size-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.size-table thead th { background: #ebeae6; color: var(--ink); font-size: 10px; font-weight: 650; white-space: normal; }
.size-table thead th:first-child:nth-last-child(5) { width: 12%; }
.size-table thead th:nth-child(2):nth-last-child(4) { width: 17%; }
.size-table thead th:nth-child(3):nth-last-child(3) { width: 28%; }
.size-table thead th:nth-child(4):nth-last-child(2) { width: 19%; }
.size-table thead th:nth-child(5):last-child { width: 24%; }
.size-table tbody th { color: var(--ink); font-weight: 600; }
.size-table tbody td { color: var(--muted); font-variant-numeric: tabular-nums; }
.size-table tr:last-child > * { border-bottom: 0; }
.size-chart { display: block; max-width: 100%; min-width: 0; overflow-x: auto; white-space: pre; overflow-wrap: normal; font: 11px/1.6 system-ui, sans-serif; }
.available-sizes { display: block; margin: 8px 0 16px; }
.available-sizes h3 { margin: 0 0 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
#available-size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.available-size { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 11px; }
.available-sizes > p { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.size-picker { margin: 18px 0 16px; padding: 0; border: 0; }
.size-picker legend, .quantity-label { margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 650; }
.size-picker > div { display: flex; flex-wrap: wrap; gap: 7px; }
.size-option { min-width: 44px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font-size: 11px; cursor: pointer; }
.size-option[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--ink); }
.size-option:disabled { color: var(--soft-muted); text-decoration: line-through; cursor: not-allowed; opacity: .55; }
.quantity-label { display: block; }
.quantity-input { width: 94px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font-family: system-ui, sans-serif; font-size: 13px; }
.stock-hint { min-height: 15px; margin: 6px 0 10px; color: var(--muted); font-size: 10px; }
.detail-feedback { min-height: 16px; margin: 8px 0 0; color: var(--danger); font-size: 11px; }

/* Size assistant */
.size-assistant { display: grid; gap: 9px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.size-assistant-heading h3 { margin: 0 0 4px; font-size: 14px; }
.size-assistant-heading p, .size-assistant-disclaimer { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.size-assistant-unit-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7px 10px; }
.size-assistant-unit-row label { color: var(--ink); font-size: 11px; font-weight: 600; }
.size-assistant-unit-row select { width: 100%; min-width: 0; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; }
.size-assistant-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.size-assistant-fields label { align-self: end; color: var(--ink); font-size: 11px; font-weight: 600; }
.size-assistant-fields input, .size-assistant-fields select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; }
.size-assistant-extra-fields { padding-top: 8px; border-top: 1px solid var(--line); }
.size-assistant-calculate, .size-assistant-apply { min-height: 42px; padding: 9px 12px; border: 1px solid var(--teal); background: var(--white); color: var(--teal-dark); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.size-assistant-apply { justify-self: start; }
.size-assistant-result { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.5; }
.size-assistant-fields > small.measurement-conversion, .profile-fields > small.measurement-conversion { grid-column: 2; min-height: 12px; margin: -4px 0 4px; color: var(--muted); font-size: 10px; }
.detail-profile-editor { margin: 12px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-profile-editor summary { color: var(--ink); font-size: 11px; font-weight: 650; cursor: pointer; }
.detail-profile-editor .profile-fields { margin-top: 10px; }
.detail-profile-editor .profile-status { margin-top: 7px; }

/* Zoom */
.zoom-dialog { position: fixed; inset: 0; margin: auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; width: min(94vw, 1060px); height: min(92dvh, 1000px); max-width: none; max-height: none; padding: 14px; border: 0; background: var(--paper); box-shadow: 0 22px 70px rgba(20, 24, 26, .22); }
.zoom-stage { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; touch-action: pan-y pinch-zoom; }
.zoom-stage img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-close { position: absolute; z-index: 2; top: 12px; right: 12px; }
.zoom-arrow { position: absolute; z-index: 1; top: 50%; width: 48px; height: 60px; transform: translateY(-50%); border: 0; background: rgb(21 23 26 / 68%); color: #fff; font-size: 30px; cursor: pointer; }
.zoom-arrow.prev { left: 10px; }
.zoom-arrow.next { right: 10px; }
.zoom-footer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zoom-counter { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.zoom-thumbs { display: flex; min-width: 0; max-width: 100%; gap: 7px; overflow-x: auto; overscroll-behavior-inline: contain; }
.zoom-thumb { flex: 0 0 58px; width: 58px; height: 58px; padding: 2px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.zoom-thumb[aria-current="true"] { border: 2px solid var(--teal); }
.zoom-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Bag */
.bag-dialog { width: min(460px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 24px 24px 18px; overflow: auto; overscroll-behavior: contain; border: 0; background: var(--white); box-shadow: 0 22px 70px rgba(20, 24, 26, .22); }
.bag-dialog[open] { animation: slidein .2s ease-out; }
.bag-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bag-head .eyebrow { margin-bottom: 6px; }
.bag-head h2 { font-size: 25px; }
.bag-lines { min-height: 100px; padding: 6px 0; }
.bag-line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bag-thumb { width: 58px; height: 72px; object-fit: contain; background: var(--wash); }
.bag-name { color: var(--ink); font-size: 11px; font-weight: 650; line-height: 1.45; }
.bag-sub { margin-top: 5px; color: var(--muted); font-size: 10px; }
.bag-price { color: var(--ink); font-size: 11px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bag-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.bag-controls button, .bag-controls input { min-width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 0; background: var(--white); text-align: center; cursor: pointer; }
.bag-controls input { width: 42px; cursor: text; }
.bag-controls .remove-line { width: auto; padding: 0 5px; border-color: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; }
.bag-footer { position: sticky; bottom: -18px; padding: 16px 0 8px; border-top: 1px solid var(--line); background: var(--white); }
.subtotal { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.subtotal strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.fine-print { color: var(--muted); font-size: 10px; line-height: 1.6; }
.copy-status { min-height: 16px; color: #315e3a; font-size: 11px; line-height: 1.5; }
.copy-fallback { width: 100%; height: 180px; margin: 8px 0; padding: 10px; border: 1px solid var(--line); font: 11px/1.5 system-ui, sans-serif; }
.nothing-submitted { margin: 10px 0; text-align: center; }
.bag-empty { padding: 28px 0; color: var(--muted); font-size: 12px; }

/* Profile dialog and measure dialog */
.profile-dialog { position: fixed; inset: 0; margin: auto; width: min(680px, calc(100vw - 28px)); max-width: none; max-height: 88dvh; padding: 26px; overflow: auto; border: 0; background: var(--white); box-shadow: 0 22px 70px rgba(20, 24, 26, .22); }
.profile-close { position: absolute; top: 12px; right: 12px; }
.profile-panel { margin: 0; padding: 0; }
.profile-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-right: 44px; }
.profile-panel h2 { margin: 0 0 5px; color: var(--ink); font-size: 17px; }
.profile-copy { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.profile-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.profile-details summary { display: flex; justify-content: space-between; color: var(--ink); font-size: 11px; font-weight: 650; cursor: pointer; }
.profile-details summary::after { content: '＋'; color: var(--teal-dark); font-size: 14px; line-height: 1; }
.profile-details[open] summary::after { content: '−'; }
.profile-form { display: grid; gap: 10px; max-width: 720px; margin-top: 12px; }
.profile-unit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: center; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.profile-fields label { align-self: end; color: var(--ink); font-size: 11px; font-weight: 600; }
.profile-fields label span { color: var(--muted); font-weight: 400; }
.profile-fields input, .profile-fields select, .profile-unit-row select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; }
.remember-field { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; }
.remember-field input { width: 16px; height: 16px; }
.profile-actions { display: flex; gap: 8px; }
.profile-actions .primary, .profile-actions .secondary { width: auto; min-height: 42px; padding: 0 14px; }
.profile-status { min-height: 15px; margin: 0; color: #315e3a; font-size: 11px; }
.profile-status.error { color: var(--danger); }
.measure-dialog { width: min(780px, calc(100vw - 28px)); max-width: none; max-height: 88dvh; padding: 28px; overflow: auto; border: 0; background: var(--white); box-shadow: 0 22px 70px rgba(20, 24, 26, .22); }
.measure-dialog h2 { margin: 0 0 8px; font-size: 26px; }
.measure-dialog > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.measure-close { position: absolute; top: 12px; right: 12px; }
.measure-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.measure-paths section { padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.measure-paths h3 { margin: 0 0 8px; font-size: 13px; }
.measure-paths p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.measure-svg { display: block; width: 100%; height: auto; color: var(--ink); font: 10px system-ui, sans-serif; }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .95fr); }
  .gallery { padding: 20px; }
  .detail-info { padding: 34px 28px 28px; }
  .search { width: 260px; }
}
@media (max-width: 960px) {
  .filter-label > span { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: 56px; gap: 6px; padding: 0 12px 0 16px; }
  .brand-emblem { width: 44px; height: 44px; }
  .wordmark-name { display: none; }
  .search { width: 44px; height: 44px; margin-left: auto; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search input { width: 0; min-height: 0; padding: 0; }
  .search:focus-within { position: absolute; top: 6px; right: 12px; left: 12px; z-index: 5; width: auto; padding: 0 12px; justify-content: flex-start; border-color: #34393b; background: #181b1c; }
  .search:focus-within input { width: 100%; min-height: 42px; }
  .topbar-button, .language-control { min-height: 36px; padding: 0 8px; font-size: 11px; }
  .language-control { max-width: 86px; padding-right: 16px; }
  .bag-trigger { font-size: 11px; }
  .toolbar { top: 56px; padding: 0 16px; gap: 10px; }
  .filters-trigger { display: inline-block; }
  .filter-panel { display: none; }
  .filter-panel.open { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-height: 85dvh; overflow: auto; padding: 16px; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 -10px 40px rgba(20, 24, 26, .18); }
  .filter-panel .filter-label { justify-content: space-between; font-size: 12px; }
  .filter-panel .filter-label > span { display: inline; }
  .filter-panel .filter-label select { max-width: none; width: 60%; min-height: 44px; }
  .favorites-filter, .category-link-button { min-height: 44px; }
  .filter-done { display: block; width: 100%; min-height: 44px; }
  main { padding: 0 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 10px 0 48px; }
  .card-title, .card-price { font-size: 12px; }
  .product-dialog { display: block; width: 100vw; height: 100dvh; max-height: none; margin: 0; overflow-x: hidden; overflow-y: auto; }
  .detail-dialog-bar { position: sticky; top: 0; }
  .detail-layout { display: block; height: auto; min-height: 0; }
  .gallery { position: static; display: block; min-height: 0; padding: 16px 14px 12px; }
  .detail-image-wrap { min-height: auto; aspect-ratio: 4 / 5; max-height: 54dvh; }
  .thumbs { flex: initial; }
  .detail-info { height: auto; overflow: visible; padding: 22px 20px 32px; }
  .detail-info h2 { font-size: 27px; }
  .thumb { width: 48px; height: 58px; }
  .bag-dialog { width: 100vw; padding: 20px 18px 16px; }
  .bag-footer { bottom: -16px; }
  .profile-panel-head { display: block; }
  .profile-panel-head .secondary { margin-top: 12px; }
  footer { flex-wrap: wrap; gap: 8px 16px; padding: 18px 16px; }
}
@media (max-width: 620px) {
  .zoom-dialog { width: 100vw; height: 100dvh; padding: 8px; gap: 8px; }
  .zoom-footer { display: grid; grid-template-rows: auto auto; gap: 6px; }
  .zoom-thumbs { width: 100%; }
  .zoom-thumb { flex-basis: 50px; width: 50px; height: 50px; }
  .measure-paths { grid-template-columns: 1fr; }
  .measure-dialog { padding: 22px 16px; }
  .profile-dialog { padding: 22px 16px; }
}
@media (max-width: 390px) {
  .detail-info { padding-right: 16px; padding-left: 16px; }
  .link-row { gap: 5px; }
  .link-row input { padding: 0 6px; font-size: 9px; }
  .link-copy { padding: 0 8px; font-size: 9px; }
  .bag-dialog { padding-right: 14px; padding-left: 14px; }
}
@media (max-width: 389px) {
  .size-table { min-width: 390px; table-layout: auto; }
  .size-table th:first-child, .size-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); }
  .size-table thead th:first-child { z-index: 2; background: #ebeae6; }
}
/* Stage 3: product detail layout */
.detail-info h2 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.detail-back { display: none; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.buy-box { margin: 0 0 14px; }
.size-help, .link-help { margin: 14px 0; padding: 10px 0; border-top: 1px solid var(--line); }
.size-help > summary, .link-help > summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.size-help > summary::-webkit-details-marker, .link-help > summary::-webkit-details-marker { display: none; }
.size-help > summary::after, .link-help > summary::after { content: '＋'; color: var(--teal-dark); font-size: 14px; line-height: 1; }
.size-help[open] > summary::after, .link-help[open] > summary::after { content: '−'; }
.size-help > .size-assistant { margin: 10px 0 0; }
.link-help > .link-panel { margin: 10px 0 0; padding: 10px 0 0; border-top: 0; border-bottom: 0; }
.zoom-dialog { background: #0f1112; box-shadow: 0 22px 70px rgba(0, 0, 0, .5); }
#zoom-counter { flex: 0 0 auto; color: #c9ccce; font-size: 12px; }
.zoom-thumb { border-color: #3a3f42; background: #181b1c; }
.zoom-thumb[aria-current="true"] { border-color: var(--teal); }
@media (min-width: 761px) {
  .gallery { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 12px; align-content: stretch; }
  .gallery:has(.thumbs[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-column: 1; grid-row: 1; flex-direction: column; align-self: start; margin-top: 0; max-height: 100%; overflow-x: hidden; overflow-y: auto; }
  .thumb { width: 56px; height: 56px; flex: 0 0 auto; }
  .detail-image-wrap { grid-column: 2; grid-row: 1; justify-self: center; align-self: center; width: min(100%, calc(min(90dvh, 900px) - 102px)); aspect-ratio: 1 / 1; max-height: 100%; min-height: 0; flex: none; }
  .gallery:has(.thumbs[hidden]) .detail-image-wrap { grid-column: 1; }
  .purchase-controls { display: contents; }
  .buy-box { position: sticky; top: 0; z-index: 2; margin: 0; padding: 8px 0; background: var(--white); }
}
@media (max-width: 760px) {
  .detail-back { display: inline-flex; align-items: center; }
  .detail-dialog-bar { padding: 6px 10px; gap: 8px; }
  .detail-image-wrap { aspect-ratio: 1 / 1; max-height: none; }
  .detail-info { padding-bottom: 160px; }
  .buy-box { position: fixed; right: 0; bottom: 0; left: 0; z-index: 5; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 10px; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
  .buy-box .size-picker { grid-column: 1 / -1; grid-row: 1; min-width: 0; margin: 0; }
  .buy-box .size-picker legend { margin-bottom: 4px; }
  .size-picker > div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .size-picker > div::-webkit-scrollbar { display: none; }
  .size-option { flex: 0 0 auto; }
  .buy-box .quantity-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .buy-box .quantity-input { grid-column: 1; grid-row: 2; width: 100%; }
  .buy-box .add-button { grid-column: 2; grid-row: 2; width: 100%; min-height: 44px; }
  .buy-box .stock-hint { grid-column: 1 / -1; grid-row: 3; min-height: 0; margin: 0; }
  .buy-box .detail-feedback { grid-column: 1 / -1; grid-row: 4; min-height: 0; margin: 0; }
  .zoom-dialog { background: #0f1112; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Stage 4 · deep polish: real-device touch, feedback, layout */
html { -webkit-text-size-adjust: 100%; }
body.no-scroll { overflow: hidden; }
a, .product-card, .chip, .thumb, .dot, .favorite-button { -webkit-tap-highlight-color: transparent; }
.topbar { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.tb-icon { display: inline-grid; place-items: center; }
.tb-icon svg { display: block; width: 20px; height: 20px; }
.topbar-button { display: inline-flex; align-items: center; gap: 7px; }
.search span { display: inline-grid; place-items: center; }
.search span svg { display: block; width: 18px; height: 18px; }
.bag-trigger { display: inline-flex; align-items: center; gap: 6px; }
.primary { font-size: 13px; }
.secondary { font-size: 13px; }
.chip { height: 36px; font-size: 13px; }
.category-chips { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.list-meta, .result-count, .snapshot, .snapshot small { font-size: 12px; }
.card-image img.card-main { opacity: 0; transition: opacity .3s ease, transform .28s ease; }
.card-image img.card-main.is-loaded { opacity: 1; }
.card-image img.card-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.card-image img.card-alt:not([src]) { display: none; }
.product-card:hover .card-image img.card-alt[src] { opacity: 1; }
.product-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.card-title { font-size: 13px; }
.card-price { font-size: 14px; font-weight: 650; }
.empty-state { display: grid; justify-items: center; gap: 14px; }
.empty-state p { margin: 0; }
.empty-state .secondary { min-height: 44px; }
.filter-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(17, 20, 22, .42); }
.detail-bar-right { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.detail-nav { display: inline-flex; align-items: center; gap: 6px; }
.detail-nav-btn { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.detail-nav-btn:disabled { opacity: .3; cursor: default; }
.detail-price-sub { margin: -10px 0 16px; color: var(--muted); font-size: 12px; }
.gallery-arrow { width: 40px; height: 40px; border-radius: 50%; border-color: rgba(0, 0, 0, .08); background: rgba(255, 255, 255, .92); font-size: 22px; }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.zoom-trigger { width: 40px; height: 40px; border-radius: 50%; border-color: rgba(0, 0, 0, .08); }
.photo-indicator { padding: 5px 9px; border-radius: 12px; font-size: 11px; }
.thumbs { scroll-snap-type: x proximity; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { scroll-snap-align: start; }
.gallery-dots { display: none; }
.zoom-stage { overflow: auto; cursor: zoom-in; }
.zoom-stage.zoomed { display: block; cursor: zoom-out; touch-action: manipulation; }
.zoom-stage.zoomed img { width: 200%; height: auto; max-width: none; max-height: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery-arrow { opacity: 0; transition: opacity .18s ease; }
  .detail-image-wrap:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
}
@media (hover: none) {
  .gallery-arrow { display: none !important; }
  .favorite-button { width: 40px; height: 40px; opacity: .92; }
  .product-card:hover .card-image img { transform: none; }
  .chip:active, .size-option:active, .primary:active:not(:disabled), .secondary:active, .thumb:active, .detail-nav-btn:active, .favorite-button:active { transform: scale(.96); }
  .product-card:active .card-image { filter: brightness(.96); }
}
@media (max-width: 760px) {
  .topbar { padding-right: max(8px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); gap: 2px; }
  .brand-emblem { width: 40px; height: 40px; }
  .topbar-actions { gap: 0; }
  .tb-label { display: none; }
  .topbar-button { width: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .language-control { width: 44px; max-width: 44px; min-height: 44px; padding: 0 2px; border: 0; background: transparent; text-align: center; text-align-last: center; font-size: 12px; font-weight: 650; }
  .bag-trigger { position: relative; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .bag-trigger [data-i18n="selection.bag"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bag-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; margin: 0; padding: 0 4px; border-color: var(--teal); background: var(--teal); color: var(--ink); font-size: 10px; font-weight: 700; }
  .search { width: 44px; height: 44px; }
  .search:focus-within { top: 6px; right: 8px; left: 8px; }
  .search input, .filter-label select, .quantity-input, .size-assistant-fields input, .size-assistant-fields select, .size-assistant-unit-row select, .profile-fields input, .profile-fields select, .profile-unit-row select, .bag-controls input, .link-row input { font-size: 16px; }
  .toolbar { gap: 8px; }
  .category-chips { padding-right: 20px; }
  main { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .list-meta { justify-content: flex-start; padding-top: 12px; }
  .card-title { font-size: 13px; }
  .card-price { font-size: 14px; }
  .detail-dialog-bar { padding-right: max(8px, env(safe-area-inset-right)); padding-left: max(8px, env(safe-area-inset-left)); }
  .detail-home-link .brand-emblem { width: 36px; height: 36px; }
  .detail-bar-right { gap: 4px; }
  .detail-nav-btn { width: 38px; height: 38px; font-size: 20px; }
  .gallery { padding: 12px 12px 8px; }
  .gallery-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 2px; }
  .dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9c8c2; cursor: pointer; }
  .dot[aria-current="true"] { background: var(--ink); }
  .thumbs { margin-top: 8px; }
  .buy-box { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); box-shadow: 0 -8px 28px rgba(20, 24, 26, .08); }
  .bag-dialog { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .filter-panel.open { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .zoom-dialog { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .zoom-close { top: max(10px, env(safe-area-inset-top)); }
  .detail-price-sub { margin-top: -8px; }
}
.search-cancel { display: none; }
.detail-contact { margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); }
.detail-contact-title { margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.detail-contact-row { display: flex; gap: 8px; }
.detail-contact .secondary { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 44px; text-decoration: none; }
.contact-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 18; display: inline-flex; height: 48px; align-items: center; gap: 8px; padding: 0 18px; border-radius: 24px; background: #0f1112; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); text-decoration: none; }
.contact-fab-label { font-size: 13px; }
@keyframes fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.favorite-button.pop { animation: fav-pop .28s ease; }
@media (max-width: 760px) {
  .search:focus-within .search-cancel { display: inline-flex; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: #d9d7d1; font-size: 14px; }
  .product-dialog.kb-open .buy-box { position: static; box-shadow: none; padding-bottom: 10px; }
  .product-dialog.kb-open .detail-info { padding-bottom: 32px; }
  .contact-fab { width: 52px; height: 52px; padding: 0; border-radius: 50%; justify-content: center; }
  .contact-fab-label { display: none; }
}
button, .chip, .product-card, .thumb, .dot, .zoom-stage, .zoom-stage.zoomed, .gallery-track { touch-action: manipulation; }

/* 2026-11-05 加入成功：确认弹窗（William） */
.added-dialog { width: min(360px, calc(100vw - 32px)); padding: 28px 24px 22px; border: 0; background: var(--white); color: var(--ink); text-align: center; box-shadow: 0 22px 70px rgba(20, 24, 26, .25); }
.added-dialog::backdrop { background: rgba(17, 20, 22, .45); }
.added-check { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #2f7d4f; color: #fff; display: grid; place-items: center; }
.added-check svg { width: 28px; height: 28px; }
.added-dialog h2 { margin: 0 0 6px; font-size: 18px; color: #2f7d4f; }
.added-item { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.added-actions { display: grid; gap: 8px; }
.added-secondary { min-height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 13px; cursor: pointer; }

/* Selection bag product links and inline size editing. */
.bag-info { min-width: 0; }
.bag-product-image { display: block; width: 58px; height: 72px; padding: 0; border: 0; background: var(--wash); cursor: pointer; }
.bag-product-image .bag-thumb { display: block; }
.bag-product-image:hover { outline: 1px solid var(--teal-dark); }
.bag-product-name { padding: 0; border: 0; background: transparent; text-align: left; font-family: inherit; cursor: pointer; overflow-wrap: anywhere; }
.bag-product-name:hover, .bag-product-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.bag-product-image:focus-visible, .bag-product-name:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.bag-sub { overflow-wrap: anywhere; }
.bag-controls > button, .bag-controls > input { flex-shrink: 0; }
.bag-size-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; flex-basis: 100%; min-width: 0; }
.bag-size-editor[hidden] { display: none; }
.bag-size-editor select { flex: 1 1 100px; min-width: 0; max-width: 100%; height: 32px; padding: 0 5px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
@media (max-width: 480px) {
  .bag-line { grid-template-columns: 58px minmax(0, 1fr); }
  .bag-price { grid-column: 2; }
}
