:root {
  color-scheme: dark;
  --bg: #111317;
  --surface: #1b1e23;
  --surface-2: #24282e;
  --surface-3: #2d3239;
  --text: #f5f7fa;
  --muted: #aeb5bf;
  --line: #343a43;
  --brand: #a50012;
  --brand-deep: #5c0009;
  --accent: #ef3047;
  --yellow: #f4b400;
  --green: #14a36f;
  --shadow: 0 16px 42px rgba(0, 0, 0, .22);
  --radius: 14px;
  --page: min(1480px, calc(100% - 40px));
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eceff3;
  --text: #17191d;
  --muted: #5e6671;
  --line: #d9dee5;
  --brand: #a70013;
  --brand-deep: #71000c;
  --accent: #cc1830;
  --yellow: #d49300;
  --green: #087b53;
  --shadow: 0 16px 38px rgba(37, 43, 52, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-shell { width: var(--page); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 8px 28px rgba(0,0,0,.24); }
.store-switcher {
  min-height: 38px;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 7vw, 110px);
  padding-inline: 18px;
  background: #202328;
}
.store-switcher a {
  min-width: 86px;
  padding: 7px 10px 6px;
  color: #b9bec6;
  text-align: center;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: .9rem;
}
.store-switcher a.active { color: #fff; border-bottom-color: #ee3149; }
.header-main {
  min-height: 72px;
  display: grid;
  grid-template-columns: 290px minmax(360px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 10px max(18px, calc((100vw - 1560px) / 2));
  background: linear-gradient(100deg, var(--brand-deep), var(--brand) 52%, #6d0009);
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { display: block; width: min(265px, 100%); height: 46px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.global-search { display: grid; grid-template-columns: 150px minmax(160px, 1fr) 88px; min-width: 0; }
.global-search select, .global-search input, .search-button {
  min-height: 46px;
  border: 0;
}
.global-search select { padding: 0 15px; color: #fff; background: #32363d; border-radius: 9px 0 0 9px; }
.search-input-wrap { position: relative; }
.global-search input { width: 100%; padding: 0 16px; color: #17191d; background: #fff; outline: 0; }
.global-search input:focus { box-shadow: inset 0 0 0 3px rgba(244,180,0,.55); }
.search-button { color: #151515; background: var(--yellow); border-radius: 0 9px 9px 0; font-weight: 900; cursor: pointer; }
.suggestions {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 390px;
  overflow: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.suggestion-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.suggestion-item:hover, .suggestion-item:focus-visible { background: var(--surface-3); outline: none; }
.suggestion-item span { color: var(--muted); font-size: .82rem; }
.header-actions { display: flex; align-items: stretch; gap: 8px; }
.icon-button { position: relative; min-width: 62px; min-height: 48px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(0,0,0,.16); color: #fff; cursor: pointer; }
.icon-button small { display: block; font-size: .7rem; }
.cart-button b { position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: #111; font-size: .72rem; line-height: 20px; }

.intro-shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; padding-top: 34px; }
.intro-copy { padding: 20px 0; }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.12; letter-spacing: -.035em; }
.intro-copy > p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); align-self: stretch; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trust-strip span { display: grid; place-content: center; gap: 2px; padding: 18px 14px; text-align: center; color: var(--muted); font-size: .86rem; border-left: 1px solid var(--line); }
.trust-strip span:first-child { border-left: 0; }
.trust-strip b { color: var(--text); font-size: 1.12rem; }

.section-block { margin-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.category-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.category-main { display: grid; grid-template-columns: 94px 1fr; align-items: center; min-height: 112px; color: inherit; text-decoration: none; }
.category-main img { width: 94px; height: 100%; min-height: 112px; padding: 10px; object-fit: contain; background: #f7f7f7; }
.category-main div { min-width: 0; padding: 14px; }
.category-main h3 { margin: 0; font-size: 1.13rem; }
.category-main p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.category-links { display: flex; flex-wrap: wrap; gap: 7px; min-height: 48px; padding: 12px; background: var(--surface-2); border-top: 1px solid var(--line); }
.category-links a, .category-more { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 700; }
.category-links a:hover, .category-links a:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.category-more { border-color: transparent; background: transparent; color: var(--accent); cursor: pointer; }
.category-links .extra-link[hidden] { display: none; }

.maker-section { padding: 44px 0; background: var(--surface); border-block: 1px solid var(--line); }
.maker-heading { align-items: center; }
.maker-filter { width: min(420px, 100%); color: var(--muted); font-size: .78rem; }
.maker-filter span { display: block; margin-bottom: 4px; }
.maker-filter input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); outline: 0; }
.maker-filter input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.major-makers { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.major-makers button { min-height: 52px; padding: 9px; border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--text); font-weight: 800; cursor: pointer; }
.major-makers b { display: block; color: var(--muted); font-size: .72rem; }
.maker-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.maker-index button { min-width: 40px; min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.maker-index button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.maker-list { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.maker-list a { display: flex; justify-content: space-between; gap: 8px; min-width: 0; padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .84rem; }
.maker-list a:hover, .maker-list a:focus-visible { background: var(--surface-3); color: var(--accent); outline: none; }
.maker-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maker-list b { color: var(--muted); font-size: .72rem; }
.empty-message { padding: 24px; text-align: center; color: var(--muted); }

.product-preview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.preview-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.preview-card img { width: 100%; height: 176px; padding: 18px; object-fit: contain; background: #fff; }
.preview-card-body { padding: 13px; }
.preview-card h3 { min-height: 3em; margin: 0 0 8px; font-size: .93rem; line-height: 1.45; }
.preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-price { color: var(--accent); font-size: 1.06rem; font-weight: 900; }
.stock { padding: 3px 7px; border-radius: 5px; background: color-mix(in srgb, var(--green) 18%, var(--surface)); color: var(--green); font-size: .78rem; font-weight: 900; }

.info-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 44px; margin-bottom: 54px; }
.info-row article { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-row span { color: var(--accent); font-size: .78rem; font-weight: 900; }
.info-row h2 { margin: 4px 0 8px; font-size: 1rem; }
.info-row p { margin: 0; color: var(--muted); font-size: .86rem; }
.text-link { color: var(--accent); font-weight: 800; text-decoration: none; }

.site-footer { margin-top:30px;padding: 30px 0 100px; background: #191b1f; border-top: 1px solid #30343b; color: #b9bec6; }
.footer-inner { display: flex; align-items: center; gap: 26px; }
.footer-inner img { width: 220px; filter: brightness(0) invert(1); }
.footer-inner p { margin: 0; font-size: .82rem; }
.mobile-nav { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); max-width: calc(100vw - 30px); padding: 12px 18px; border-radius: 9px; background: #101216; color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

[hidden] { display: none !important; }
.prototype-notice {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 7px 20px;
  background: color-mix(in srgb, var(--yellow) 18%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--yellow) 45%, var(--line));
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}
.prototype-notice strong { color: var(--yellow); }
.preview-card { padding: 0; color: var(--text); text-align: left; cursor: pointer; }
.preview-card:hover, .preview-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); outline: none; }
.product-maker { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; }

.breadcrumb { display: flex; align-items: center; gap: 9px; margin: 25px 0 18px; color: var(--muted); font-size: .8rem; }
.breadcrumb button { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.catalog-page, .detail-page { padding-bottom: 100px; }
.catalog-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); align-items: start; gap: 24px; }
.filter-panel { position: sticky; top: 135px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.filter-panel-head h2 { margin: 0; font-size: 1.12rem; }
.plain-button { display: none; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.filter-label, .filter-panel legend { display: block; margin: 17px 0 6px; color: var(--muted); font-size: .78rem; font-weight: 900; }
.filter-panel select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.filter-panel fieldset { margin: 8px 0 18px; padding: 0; border: 0; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 38px; color: var(--text); font-size: .86rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.secondary-button { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.filter-note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.catalog-title-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.catalog-title-row h1 { margin-bottom: 5px; font-size: clamp(1.7rem, 3.3vw, 2.65rem); }
.catalog-title-row p:last-child { margin: 0; color: var(--muted); }
.filter-open { display: none; min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 800; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.result-toolbar p { margin: 0; }
.result-toolbar p strong { color: var(--accent); font-size: 1.18rem; }
.result-toolbar p span { color: var(--muted); font-size: .76rem; }
.toolbar-controls { display: flex; align-items: center; gap: 10px; }
.toolbar-controls label { color: var(--muted); font-size: .76rem; }
.toolbar-controls select { min-height: 36px; margin-left: 5px; padding: 0 26px 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text); }
.density-switch { display: flex; }
.density-switch button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.density-switch button:first-child { border-radius: 7px 0 0 7px; }
.density-switch button:last-child { border-radius: 0 7px 7px 0; }
.density-switch button.active { background: var(--accent); color: #fff; }
.catalog-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.catalog-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-image { display: block; width: 100%; height: 215px; padding: 15px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.catalog-image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-card-body { padding: 13px; }
.card-labels { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 7px; }
.card-labels span { padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font-size: .68rem; font-weight: 900; }
.card-labels small { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.product-title { display: block; width: 100%; min-height: 3.8em; padding: 0; border: 0; background: transparent; color: var(--text); font-size: .94rem; font-weight: 900; line-height: 1.42; text-align: left; cursor: pointer; }
.product-title small { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; }
.product-title:hover, .product-title:focus-visible { color: var(--accent); outline: none; }
.product-spec { min-height: 2.6em; margin: 7px 0; color: var(--muted); font-size: .72rem; }
.purchase-row { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.purchase-row > div:first-child { display: flex; align-items: baseline; gap: 4px; }
.purchase-row strong { color: var(--accent); font-size: 1.08rem; }
.purchase-row small { color: var(--muted); font-size: .64rem; }
.stock-and-qty { display: flex; align-items: center; gap: 7px; }
.stock-and-qty > span { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.stock-and-qty b { color: var(--green); }
.qty-select { min-width: 60px; min-height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-3); color: var(--text); font-weight: 900; cursor: pointer; }
.qty-select:focus { border-color: var(--yellow); outline: 3px solid color-mix(in srgb, var(--yellow) 25%, transparent); }
.catalog-products.compact { grid-template-columns: 1fr; }
.catalog-products.compact .catalog-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.catalog-products.compact .catalog-image { height: 100%; min-height: 150px; border-bottom: 0; border-right: 1px solid var(--line); }
.catalog-products.compact .product-title, .catalog-products.compact .product-spec { min-height: 0; }
.no-results { grid-column: 1 / -1; padding: 70px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.no-results p { margin: 0; color: var(--muted); }
.prototype-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.prototype-pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
.prototype-pagination button.active { border-color: var(--accent); background: var(--accent); color: #fff; }

.detail-shell { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr); gap: clamp(25px, 5vw, 70px); padding: clamp(20px, 4vw, 55px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.detail-gallery { display: grid; gap: 9px; align-content: start; }
.detail-gallery img { width: 100%; aspect-ratio: 1 / 1; padding: 8%; object-fit: contain; background: #fff; border-radius: var(--radius); }
.detail-gallery span { color: var(--muted); font-size: .72rem; text-align: center; }
.detail-maker { margin: 0 0 5px; color: var(--accent); font-weight: 900; }
.detail-info h1 { margin: 0 0 5px; font-size: clamp(1.8rem, 4vw, 3.1rem); }
.detail-id { color: var(--muted); font-size: .72rem; }
.detail-description { margin: 22px 0; color: var(--muted); }
.detail-info dl { margin: 0; border-top: 1px solid var(--line); }
.detail-info dl div { display: grid; grid-template-columns: 80px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-info dt { color: var(--muted); font-size: .76rem; font-weight: 900; }
.detail-info dd { margin: 0; font-size: .88rem; }
.detail-buy { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; margin-top: 22px; padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.detail-buy > div { display: flex; align-items: baseline; gap: 5px; }
.detail-buy strong { color: var(--accent); font-size: 1.65rem; }
.detail-buy small { color: var(--muted); }
.detail-stock { color: var(--muted); font-size: .82rem; }
.detail-stock b { color: var(--green); }
.detail-buy label { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 900; }
.detail-hint { margin: 9px 0 0; color: var(--muted); font-size: .75rem; }
.variant-section { margin: 45px 0; }
.variant-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.variant-row { display: grid; grid-template-columns: 75px minmax(210px, 1fr) 110px 80px 68px; align-items: center; gap: 12px; min-height: 90px; padding: 8px 13px; background: var(--surface); border-bottom: 1px solid var(--line); }
.variant-row:last-child { border-bottom: 0; }
.variant-row img { width: 68px; height: 68px; padding: 5px; object-fit: contain; background: #fff; border-radius: 7px; }
.variant-row > button { display: grid; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.variant-row > button small, .variant-row > button span { color: var(--muted); font-size: .7rem; }
.variant-price { color: var(--accent); font-weight: 900; text-align: right; }
.variant-stock { color: var(--green); font-size: .76rem; font-weight: 800; text-align: right; }

.batch-bar { position: fixed; left: 50%; bottom: 18px; z-index: 75; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; width: min(780px, calc(100% - 32px)); min-height: 68px; padding: 9px 10px 9px 18px; transform: translateX(-50%); background: #21252b; border: 1px solid #464d57; border-radius: 13px; box-shadow: 0 18px 55px rgba(0,0,0,.48); color: #fff; }
.batch-summary { display: flex; align-items: center; gap: 12px; font-size: .8rem; }
.batch-summary b { color: #ffd24b; font-size: 1.14rem; }
.batch-detail { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #aeb5bf; font-size: .73rem; cursor: pointer; }
.reset-button, .batch-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: 8px; font-weight: 900; cursor: pointer; }
.reset-button { background: #f4b400; color: #171717; }
.batch-submit { min-width: 210px; background: #c42337; color: #fff; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 88; background: rgba(0,0,0,.58); }
.selection-drawer { position: fixed; top: 0; right: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto auto; width: min(460px, 100%); height: 100dvh; padding: 20px; transform: translateX(105%); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.35); transition: transform .24s ease; }
.selection-drawer.open { transform: translateX(0); }
.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-head > button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 1.5rem; cursor: pointer; }
.drawer-items { overflow: auto; }
.drawer-items article { display: grid; grid-template-columns: 68px 1fr 34px; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.drawer-items img { width: 68px; height: 68px; padding: 5px; object-fit: contain; background: #fff; border-radius: 7px; }
.drawer-items article div { display: grid; }
.drawer-items small, .drawer-items span { color: var(--muted); font-size: .72rem; }
.drawer-items article button { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.drawer-empty { padding: 50px 10px; color: var(--muted); text-align: center; }
.drawer-total { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.drawer-total strong { color: var(--accent); font-size: 1.25rem; }
.drawer-submit { min-height: 52px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 900; cursor: pointer; }
.selection-drawer > p { margin: 8px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: 225px minmax(300px,1fr) auto; gap: 14px; }
  .header-actions .icon-button:first-child { display: none; }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .major-makers, .maker-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .catalog-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 840px) {
  :root { --page: min(100% - 24px, 720px); }
  body { padding-bottom: 64px; }
  .store-switcher { gap: 6px; justify-content: space-between; }
  .store-switcher a { min-width: 0; flex: 1; }
  .header-main { grid-template-columns: 1fr auto; min-height: 62px; padding: 8px 12px; }
  .brand img { width: 230px; height: 42px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr 66px; order: 3; }
  .global-search select { display: none; }
  .global-search input { border-radius: 8px 0 0 8px; }
  .header-actions .icon-button:not(.cart-button) { display: none; }
  .cart-button { min-width: 54px; }
  .intro-shell { grid-template-columns: 1fr; padding-top: 16px; }
  .intro-copy { padding-bottom: 0; }
  .trust-strip { min-height: 92px; }
  .section-block { margin-top: 34px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .maker-heading { align-items: stretch; flex-direction: column; }
  .major-makers, .maker-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .info-row { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: fixed; inset: auto 12px 72px; z-index: 82; max-height: calc(100dvh - 100px); overflow: auto; transform: translateY(calc(100% + 90px)); box-shadow: var(--shadow); transition: transform .22s ease; }
  .filter-panel.open { transform: translateY(0); }
  .plain-button, .filter-open { display: inline-flex; align-items: center; }
  .detail-shell { grid-template-columns: 1fr; }
  .detail-gallery img { max-height: 480px; }
  .batch-bar { bottom: 70px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 70; display: grid; grid-template-columns: repeat(5,1fr); min-height: 60px; background: #096ee8; box-shadow: 0 -8px 24px rgba(0,0,0,.28); }
  .mobile-nav a, .mobile-nav button { display: grid; place-items: center; padding: 5px 3px; border: 0; border-right: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 800; }
  .mobile-nav a:nth-child(4) { background: #e7a800; color: #171717; }
  .mobile-nav button:last-child { background: #07885c; }
  .mobile-nav button:last-child b { padding: 1px 5px; border-radius: 999px; background: #fff; color: #07885c; font-size: .65rem; }
}

@media (max-width: 560px) {
  .brand img { width: 196px; }
  .header-actions { gap: 2px; }
  .intro-copy h1 { font-size: 2rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip span { min-height: 54px; border-left: 0; border-top: 1px solid var(--line); }
  .trust-strip span:first-child { border-top: 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .section-heading > p { text-align: left; }
  .category-grid { grid-template-columns: 1fr; }
  .category-main { grid-template-columns: 82px 1fr; min-height: 94px; }
  .category-main img { width: 82px; min-height: 94px; }
  .major-makers { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .maker-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-preview { grid-template-columns: 1fr; }
  .preview-card { display: grid; grid-template-columns: 118px 1fr; }
  .preview-card img { height: 128px; padding: 10px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .prototype-notice { align-items: center; flex-direction: column; gap: 0; }
  .catalog-title-row { align-items: start; }
  .result-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-controls { justify-content: space-between; }
  .toolbar-controls label { flex: 1; }
  .toolbar-controls select { width: calc(100% - 52px); }
  .catalog-products { grid-template-columns: 1fr; }
  .catalog-card { display: grid; grid-template-columns: 118px minmax(0,1fr); }
  .catalog-image { height: 100%; min-height: 182px; padding: 8px; border-bottom: 0; border-right: 1px solid var(--line); }
  .catalog-card-body { padding: 10px; }
  .card-labels small { display: none; }
  .product-title, .product-spec { min-height: 0; }
  .product-title { font-size: .86rem; }
  .purchase-row { align-items: stretch; flex-direction: column; }
  .stock-and-qty { justify-content: space-between; }
  .catalog-products.compact .catalog-card { grid-template-columns: 84px minmax(0,1fr); }
  .catalog-products.compact .catalog-image { min-height: 140px; }
  .detail-shell { padding: 15px; }
  .detail-buy { grid-template-columns: 1fr auto; }
  .detail-buy label { grid-column: 1 / -1; justify-content: space-between; }
  .detail-buy .qty-select { width: 110px; }
  .variant-row { grid-template-columns: 58px minmax(0,1fr) 64px; gap: 9px; }
  .variant-row img { width: 54px; height: 54px; }
  .variant-price { grid-column: 2; text-align: left; }
  .variant-stock { display: none; }
  .variant-row label { grid-column: 3; grid-row: 1 / span 2; }
  .batch-bar { grid-template-columns: 1fr auto; gap: 7px; min-height: 62px; padding: 7px; }
  .batch-summary { gap: 7px; padding-left: 5px; }
  .batch-summary span:first-child, .batch-detail { display: none; }
  .reset-button { min-width: 56px; padding: 0 8px; }
  .batch-submit { grid-column: 1 / -1; grid-row: 2; min-width: 0; min-height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
