@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #183247;
  --secondary: #53616c;
  --primary: #b83c22;
  --primary-hover: #96301a;
  --saving: #176a49;
  --saving-bg: #edf6f0;
  --surface: #f4f6f8;
  --control: #7a8691;
  --separator: #dce2e6;
  --warning: #78501c;
  --warning-bg: #fff7e8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.55 "Open Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { border-radius: 5px; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
h1[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; line-height: 1.25; font-weight: 700; margin-bottom: 12px; }
h2 { font-size: 24px; line-height: 1.35; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; margin-bottom: 10px; }
p { margin-bottom: 16px; }
small, .small { font-size: 16px; }
svg { flex-shrink: 0; }
.icon { width: 24px; height: 24px; vertical-align: middle; }
.muted { color: var(--secondary); }
.saving { color: var(--saving); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-width { width: 100%; max-width: 1344px; padding-inline: 32px; margin-inline: auto; }
.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; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: #fff; padding: 12px 18px; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--separator); }
.header-layout { min-height: 108px; display: grid; grid-template-columns: 240px minmax(240px, 1fr) 220px; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 24px; font-weight: 700; width: fit-content; }
.brand-icon { width: 31px; height: 36px; color: var(--primary); flex: none; }
.search-form { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--control); border-radius: 5px; background: #fff; }
.search-form:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-form input { min-width: 0; width: 100%; border: 0; border-radius: 5px 0 0 5px; padding: 13px 16px; background: transparent; font-size: 18px; }
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--secondary); opacity: 1; }
.search-submit { width: 54px; min-height: 52px; border: 0; border-radius: 0 4px 4px 0; background: transparent; display: grid; place-items: center; flex: none; }
.search-submit:hover { background: var(--surface); }
.search-submit:disabled { color: var(--secondary); }
.header-nav { display: flex; justify-content: flex-end; }
.list-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; min-height: 50px; }
.list-count { font-weight: 400; }
.utility-bar { background: var(--surface); }
.utility-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; font-size: 16px; color: var(--secondary); }
.utility-content a { color: var(--ink); flex-shrink: 0; }
.mobile-data-stamp { display: none; }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 40px; padding-block: 36px 64px; align-items: start; min-height: 60vh; }
.app-layout.is-wide { grid-template-columns: minmax(0, 1fr); }
.app-view { min-width: 0; }
.page-heading { margin-bottom: 26px; }
.page-heading p { max-width: 64ch; color: var(--secondary); margin-bottom: 0; }
.heading-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; margin: -8px 0 18px; font-size: 16px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.button { min-height: 50px; border: 1px solid var(--control); border-radius: 5px; padding: 11px 18px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; line-height: 1.45; text-align: center; text-decoration: none; background: #fff; cursor: pointer; }
.button:hover { background: var(--surface); color: var(--ink); }
.button-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button-primary:hover { background: var(--primary-hover); color: #fff; border-color: var(--primary-hover); }
.button:disabled { background: var(--surface); color: var(--secondary); border-color: var(--separator); }
.button.is-added { color: var(--saving); border-color: var(--control); background: #fff; }
.button.is-added:hover { background: var(--saving-bg); }
.button-full { width: 100%; }
.text-button { background: transparent; border: 0; border-radius: 0; padding: 9px 0; min-height: 50px; font-size: 16px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; font-size: 16px; }
.icon-button { min-width: 50px; min-height: 50px; padding: 12px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; background: transparent; border-radius: 5px; }
.icon-button:hover { background: var(--surface); }
.empty-state, .load-state { padding-block: 36px 64px; max-width: 60ch; }
.empty-state .icon { color: var(--secondary); width: 40px; height: 40px; margin-bottom: 20px; }
.empty-state p, .load-state p { color: var(--secondary); }
.notice { background: var(--warning-bg); color: var(--ink); border-left: 4px solid var(--warning); padding: 18px 22px; margin-bottom: 24px; }
.notice p:last-child { margin-bottom: 0; }
.notice h2, .notice h3 { color: var(--ink); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.storage-notice { margin-top: 24px; margin-bottom: 0; font-size: 16px; }
.freshness { margin-top: 22px; color: var(--secondary); font-size: 16px; }
.freshness p { margin-bottom: 6px; }
.freshness .stale-warning { color: var(--warning); }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; border-bottom: 1px solid var(--separator); margin-bottom: 28px; }
.category-filters { display: flex; gap: 24px; flex-wrap: wrap; }
.category-button { min-height: 54px; padding: 9px 0 13px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; font-size: 18px; font-weight: 600; color: var(--secondary); }
.category-button[aria-pressed="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.category-button:hover { color: var(--primary); }
.result-count { font-size: 16px; color: var(--secondary); padding-block: 10px; margin: 0; }
.product-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.product-card { min-width: 0; height: 100%; display: flex; flex-direction: column; }
.product-photo-link { display: block; flex: none; }
.product-link { text-decoration: none; display: block; min-height: 44px; color: var(--ink); }
.product-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.product-photo { display: flex; position: relative; align-items: center; justify-content: center; width: 100%; height: 224px; background: #fff; overflow: hidden; flex: none; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px 16px; display: block; }
.photo-fallback { min-height: 110px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 18px; font-size: 16px; color: var(--secondary); text-align: center; background: var(--surface); width: 100%; height: 100%; }
.photo-fallback .icon { width: 40px; height: 40px; }
.has-image > .photo-fallback, .has-image > .logo-fallback { display: none; }
.product-copy { padding-top: 16px; flex-grow: 1; }
.product-brand { font-size: 16px; color: var(--secondary); margin-bottom: 5px; }
.product-card h2 { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.package-label { font-size: 16px; color: var(--secondary); margin-bottom: 12px; }
.catalog-price { padding-top: 4px; margin-bottom: 16px; }
.catalog-price .price { display: block; font-size: 26px; }
.catalog-price .small { display: block; color: var(--secondary); }
.catalog-price .unavailable-price { font-size: 18px; font-weight: 600; }
.product-card > .button { width: 100%; font-size: 16px; }
.load-more { margin-top: 40px; text-align: center; }
.load-more p { font-size: 16px; color: var(--secondary); margin-bottom: 12px; }

.list-sidebar { position: sticky; top: 24px; border-left: 1px solid var(--separator); padding-left: 28px; min-width: 0; font-size: 16px; }
.list-sidebar h2 { font-size: 22px; }
.sidebar-lines { list-style: none; padding: 0; margin: 20px 0; max-height: 48vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.sidebar-line { display: grid; grid-template-columns: minmax(0, 1fr) 50px; align-items: start; gap: 4px; padding-block: 12px; }
.sidebar-line + .sidebar-line { border-top: 1px solid var(--separator); }
.sidebar-line a { font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.sidebar-line a:hover { text-decoration: underline; }
.sidebar-line .quantity-note { display: block; font-size: 16px; color: var(--secondary); margin-top: 3px; }
.sidebar-line .icon-button { margin-top: -10px; }
.sidebar-total { margin-block: 22px; }
.sidebar-total .price { display: block; font-size: 26px; }
.sidebar-total p { font-size: 16px; color: var(--secondary); margin: 6px 0 0; }
.sidebar-pending { padding: 14px 16px; background: var(--warning-bg); margin-block: 16px; }
.sidebar-pending p { margin-bottom: 4px; }
.sidebar-pending a { display: inline-block; padding-block: 8px; }
.sidebar-note { font-size: 16px; color: var(--secondary); margin: 14px 0 0; }

.product-detail { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(0, 1.2fr); gap: 30px; align-items: start; }
.detail-visual { position: sticky; top: 24px; padding-top: 6px; }
.detail-visual .product-photo { height: 350px; }
.detail-visual .product-photo img { padding: 16px; }
.detail-information { min-width: 0; }
.detail-information h1 { font-size: 28px; line-height: 1.35; overflow-wrap: anywhere; }
.detail-information > .product-brand { font-size: 18px; margin-bottom: 8px; }
.detail-information .package-label { margin-bottom: 16px; }
.identity-note { margin-top: 16px; font-size: 16px; color: var(--secondary); overflow-wrap: anywhere; }
.identity-note summary { min-height: 44px; padding-block: 10px; }
.identity-note p { margin-top: 8px; }
.detail-price { margin-block: 20px; }
.detail-price .price { font-size: 32px; display: block; }
.detail-price p { font-size: 16px; color: var(--secondary); margin: 6px 0 0; }
.detail-price .saving { color: var(--saving); }
.quantity-picker { display: inline-grid; grid-template-columns: 50px 62px 50px; align-items: stretch; border: 1px solid var(--control); border-radius: 5px; width: max-content; }
.quantity-picker button { border: 0; background: transparent; min-height: 50px; border-radius: 4px; display: grid; place-items: center; }
.quantity-picker button:hover:not(:disabled) { background: var(--surface); }
.quantity-picker button:disabled { color: var(--control); }
.quantity-picker input { min-width: 0; width: 62px; min-height: 50px; border: 0; border-inline: 1px solid var(--separator); border-radius: 0; background: #fff; text-align: center; padding: 4px; font-size: 18px; }
.quantity-picker input[aria-invalid="true"] { outline: 2px solid var(--primary); outline-offset: -2px; }
.quantity-label { display: block; font-size: 16px; margin-bottom: 8px; }
.detail-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-block: 24px; }
.detail-add > .button { flex-grow: 1; }
.detail-add-note { margin: -10px 0 24px; font-size: 16px; color: var(--secondary); }
.offers-heading { font-size: 22px; margin: 32px 0 8px; }
.offers-list { list-style: none; padding: 0; margin: 0; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; padding-block: 20px; border-top: 1px solid var(--separator); }
.offer-market { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.market-logo { position: relative; flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; }
.market-logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback { color: var(--secondary); display: flex; }
.offer-value { text-align: right; font-size: 16px; }
.offer-value .price { display: block; font-size: 23px; }
.offer-value p { color: var(--secondary); font-size: 16px; margin: 3px 0 0; }
.offer-value s { font-size: 18px; font-weight: 600; }
.offer-note { font-size: 16px; margin: 7px 0 0; color: var(--secondary); }
.best-label { display: block; color: var(--saving); font-size: 16px; font-weight: 600; margin-top: 4px; }
.offer-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: 16px; color: var(--secondary); }
.offer-footer .text-link { min-height: 44px; }
.stale-label { color: var(--warning); }

.cart-content { max-width: 100%; }
.cart-lines { padding: 0; margin: 0 0 32px; list-style: none; }
.cart-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 164px 160px 50px; gap: 20px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--separator); }
.cart-row .product-photo { width: 88px; height: 108px; }
.cart-row .product-photo img { padding: 4px; }
.cart-row .photo-fallback { min-height: 0; font-size: 16px; padding: 4px; gap: 4px; }
.cart-row .photo-fallback .icon { width: 24px; height: 24px; }
.cart-row .photo-fallback .fallback-text { display: none; }
.cart-row h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.cart-row h3 a { text-decoration: none; }
.cart-row h3 a:hover { text-decoration: underline; }
.cart-row p { margin-bottom: 4px; font-size: 16px; color: var(--secondary); }
.cart-quantity .quantity-label { margin-bottom: 5px; }
.cart-row-price { text-align: right; }
.cart-row-price .price { font-size: 22px; }
.cart-row-price span:not(.price) { display: block; color: var(--secondary); font-size: 16px; }
.unavailable-note { display: block; color: var(--warning); font-size: 16px; margin-top: 8px; }
.missing-identity { overflow-wrap: anywhere; }
.unresolved-choices { margin-block: 24px 36px; }
.unresolved-choices > p { max-width: 72ch; }
.unresolved-list { list-style: none; padding: 0; margin: 0; }
.unresolved-row { padding-block: 20px; border-top: 1px solid #e0cfb1; }
.unresolved-row h3 { margin-bottom: 6px; }
.resolve-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.resolve-controls label { flex: 1 1 280px; font-size: 16px; }
.resolve-controls select { display: block; width: 100%; min-height: 50px; max-width: 100%; padding: 10px 38px 10px 12px; border: 1px solid var(--control); border-radius: 5px; background: #fff; font-size: 16px; margin-top: 8px; }
.comparison-section { margin-top: 48px; }
.comparison-section > p { max-width: 76ch; color: var(--secondary); }
.comparison-table-scroll { overflow-x: auto; margin-block: 28px; }
.comparison-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.comparison-table caption { text-align: left; color: var(--secondary); padding-bottom: 16px; }
.comparison-table th, .comparison-table td { text-align: right; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--separator); min-width: 160px; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; padding-left: 0; width: 35%; min-width: 230px; }
.comparison-table th:last-child, .comparison-table td:last-child { padding-right: 0; }
.comparison-table thead th { font-size: 18px; font-weight: 600; }
.comparison-table .market-heading { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.comparison-table .table-date { display: block; color: var(--secondary); font-size: 16px; font-weight: 400; margin-top: 10px; }
.comparison-table tbody th { font-weight: 600; }
.comparison-table tbody th span { display: block; color: var(--secondary); font-weight: 400; margin-top: 5px; }
.comparison-table .cell-unavailable { font-size: 16px; color: var(--secondary); }
.comparison-table tfoot .price { display: block; font-size: 26px; margin: 8px 0; }
.comparison-table tfoot .coverage { display: block; font-size: 16px; color: var(--secondary); }
.comparison-table tfoot td { padding-bottom: 24px; }
.comparison-table tfoot .button { margin-top: 18px; font-size: 16px; }
.comparison-table .best-market { background: var(--saving-bg); padding-inline: 16px; }
.market-options { display: none; }
.market-option { padding-block: 24px; border-top: 1px solid var(--separator); }
.market-option-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.market-option-head h3 { font-size: 20px; margin-bottom: 0; }
.market-option .option-price { text-align: right; flex-shrink: 0; }
.option-price .price { font-size: 26px; display: block; }
.option-price .small { display: block; color: var(--secondary); }
.market-option p { font-size: 16px; color: var(--secondary); margin: 12px 0; }
.market-option .button { margin-top: 4px; }
.comparison-summary { background: var(--saving-bg); padding: 24px 28px; margin-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.comparison-summary h2 { font-size: 20px; margin-bottom: 6px; }
.comparison-summary .price { font-size: 30px; }
.comparison-summary p { font-size: 16px; color: var(--secondary); margin: 8px 0 0; }
.split-option { background: var(--surface); padding: 28px; margin-top: 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.split-option h3 { font-size: 24px; }
.split-option p { margin-bottom: 10px; max-width: 65ch; font-size: 16px; color: var(--secondary); }
.split-option .split-action { flex-shrink: 0; text-align: right; }
.split-option .price { font-size: 30px; display: block; margin: 3px 0 14px; }
.split-option .coverage { color: var(--secondary); font-size: 16px; display: block; margin-bottom: 12px; }

.shopping-plan { max-width: 1020px; margin-inline: auto; }
.shopping-plan .page-heading { margin-bottom: 24px; }
.plan-summary { background: var(--surface); padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-block: 24px; }
.plan-summary .price { display: block; font-size: 32px; }
.plan-summary p { font-size: 16px; color: var(--secondary); margin: 6px 0 0; }
.checklist-progress { font-weight: 600; margin-block: 24px; }
.checklist-group { margin-top: 32px; }
.checklist-group h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 6px; }
.checklist-group > p { font-size: 16px; color: var(--secondary); }
.shopping-checklist { list-style: none; padding: 0; margin: 12px 0 24px; }
.checklist-row { padding-block: 20px; border-bottom: 1px solid var(--separator); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.checklist-row label { display: flex; align-items: flex-start; gap: 16px; cursor: pointer; flex: 1; min-width: 0; padding-block: 4px; }
.checklist-row input { width: 26px; height: 26px; margin: 3px 0 0; flex: none; accent-color: var(--saving); cursor: pointer; }
.checklist-row .check-product { font-weight: 600; display: block; overflow-wrap: anywhere; }
.checklist-row .check-meta { font-size: 16px; color: var(--secondary); display: block; margin-top: 5px; }
.checklist-row.is-checked .check-product { text-decoration: line-through; color: var(--secondary); }
.checklist-row .check-price { text-align: right; }
.checklist-row .check-price .price { font-size: 20px; }
.checklist-row .check-price .text-link { display: flex; justify-content: flex-end; }
.plan-missing { margin-top: 32px; }
.plan-missing ul { padding-left: 22px; }
.plan-missing li { margin-block: 12px; overflow-wrap: anywhere; }
.plan-print-note { color: var(--secondary); font-size: 16px; margin-top: 28px; }

.comparison-method { margin-bottom: 24px; }
.comparison-method details { border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); }
.comparison-method summary { font-size: 20px; font-weight: 600; min-height: 72px; padding-block: 20px; }
.method-content { max-width: 850px; padding-block: 12px 24px; }
.method-content p { color: var(--secondary); }
.method-content h3 { margin-top: 28px; }
.source-date-list { list-style: none; margin: 20px 0; padding: 0; }
.source-date-list li { padding-block: 10px; font-size: 16px; }
.source-date-list strong { display: block; }
.source-date-list time { color: var(--secondary); }
.generated-date { font-size: 16px; }
.site-footer { padding-block: 24px 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; font-size: 16px; }
.site-footer p { font-weight: 600; }
.site-footer p span { display: block; font-weight: 400; color: var(--secondary); margin-top: 5px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.toast { position: fixed; z-index: 5; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 10px 12px 10px 20px; border-radius: 6px; box-shadow: 0 6px 24px #18324726; width: max-content; max-width: calc(100% - 32px); font-size: 16px; }
.toast p { margin: 0; }
.toast-undo { border: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 600; min-height: 50px; padding: 10px; text-decoration: underline; text-underline-offset: 4px; }
.toast .icon-button { color: #fff; }
.toast .icon-button:hover { background: #30495b; }
.toast :focus-visible { outline-color: #fff; }
.no-script { padding-block: 24px; color: var(--ink); }
.mobile-list-bar { display: none; }

@media (min-width: 1160px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .header-layout { grid-template-columns: 220px minmax(220px, 1fr) 190px; gap: 24px; }
  .app-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 270px; }
  .list-sidebar { padding-left: 22px; }
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .detail-visual { position: static; }
  .detail-visual .product-photo { height: 300px; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) 164px 130px 50px; gap: 14px; }
  .cart-row .product-photo { width: 72px; height: 92px; }
}

@media (max-width: 850px) {
  .page-width { padding-inline: 24px; }
  .header-layout { grid-template-columns: 1fr auto; gap: 10px 20px; padding-block: 18px; }
  .header-nav { grid-column: 2; grid-row: 1; }
  .search-form { grid-row: 2; grid-column: 1 / -1; }
  .app-layout { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .list-sidebar { display: none; }
  .product-detail { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); }
  .detail-information h1 { font-size: 26px; }
  .detail-visual .product-photo { height: 310px; }
  .utility-content { align-items: flex-start; }
  .utility-content span { max-width: 40ch; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) 164px 50px; }
  .cart-row-price { grid-column: 2; grid-row: 2; text-align: left; margin-top: -10px; }
  .cart-row-price span:not(.price) { display: inline; margin-left: 8px; }
  .cart-row > .icon-button { grid-column: 4; grid-row: 1; }
  .cart-quantity { grid-column: 3; grid-row: 1 / 3; }
  .site-footer { flex-direction: column; gap: 8px; }
  .mobile-list-bar { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; background: #fff; border-top: 1px solid var(--separator); padding: 12px 24px max(12px, env(safe-area-inset-bottom)); }
  .mobile-list-bar .button { width: 100%; justify-content: space-between; }
  .has-mobile-list { padding-bottom: 88px; }
  .has-mobile-list .toast { bottom: 98px; }
}

@media (max-width: 700px) {
  .comparison-table-scroll { display: none; }
  .market-options { display: block; }
  .comparison-summary, .split-option { display: block; padding: 24px; }
  .comparison-summary .button { margin-top: 20px; width: 100%; }
  .split-option .split-action { text-align: left; margin-top: 20px; }
  .split-option .price { display: inline-block; margin: 0 12px 12px 0; }
  .split-option .button { width: 100%; }
  .split-option .coverage { display: block; }
  .product-detail { grid-template-columns: 126px minmax(0, 1fr); gap: 0 18px; }
  .detail-visual { grid-column: 1; grid-row: 1 / 4; padding-top: 0; }
  .detail-visual .product-photo { width: 126px; height: 174px; margin: 0; }
  .detail-visual .identity-note { display: none; }
  .detail-information { display: contents; }
  .detail-information > * { grid-column: 1 / -1; }
  .detail-information > .product-brand { grid-column: 2; grid-row: 1; font-size: 16px; margin-bottom: 6px; }
  .detail-information h1 { grid-column: 2; grid-row: 2; font-size: 24px; margin-bottom: 8px; }
  .detail-information > .package-label { grid-column: 2; grid-row: 3; font-size: 16px; margin-bottom: 0; }
  .detail-information > .package-label + .small { margin-top: 18px; }
  .detail-add { gap: 12px; }
  .detail-add > .button { flex-basis: 160px; }
  .plan-summary { padding: 20px; align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; gap: 16px; }
  .checklist-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .checklist-row label { flex-basis: calc(100% - 10px); }
  .checklist-row .check-price { width: 100%; padding-left: 42px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .checklist-row .check-price .text-link { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .page-width { padding-inline: 20px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-icon { width: 26px; height: 31px; }
  .list-link { gap: 7px; font-size: 16px; }
  .list-link .icon { width: 21px; height: 21px; }
  .header-layout { gap: 12px 8px; padding-block: 14px 16px; }
  .search-form input { font-size: 18px; padding-left: 13px; }
  .utility-content { flex-wrap: nowrap; gap: 12px; padding-block: 0; min-height: 48px; font-size: 16px; align-items: center; }
  .utility-content span { display: none; }
  .utility-content .mobile-data-stamp { display: block; }
  .utility-content a { min-height: 48px; display: inline-flex; align-items: center; }
  .app-layout { padding-block: 26px 44px; }
  .freshness { margin-top: 0; }
  .freshness > p:first-child { display: none; }
  .freshness .stale-warning { margin-top: 16px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading p { font-size: 18px; }
  .catalog-toolbar { display: block; margin-bottom: 4px; }
  .category-filters { gap: 24px; }
  .category-button { font-size: 18px; }
  .result-count { padding-block: 12px; border-top: 1px solid var(--separator); }
  .product-grid { display: block; }
  .product-grid > li + li { border-top: 1px solid var(--separator); }
  .product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 18px; padding-block: 24px; }
  .product-photo-link { grid-column: 1; grid-row: 1 / 4; }
  .product-photo { height: 156px; margin-top: 2px; }
  .product-photo img { padding: 2px; }
  .product-copy { grid-column: 2; padding-top: 0; }
  .product-card h2 { font-size: 18px; line-height: 1.45; }
  .product-brand { font-size: 16px; margin-bottom: 4px; }
  .package-label { margin-bottom: 8px; }
  .catalog-price { grid-column: 2; margin-bottom: 12px; padding-top: 0; }
  .catalog-price .price { font-size: 25px; }
  .product-card > .button { grid-column: 2; font-size: 16px; padding-inline: 10px; }
  .photo-fallback { padding: 10px; font-size: 16px; line-height: 1.4; }
  .photo-fallback .icon { width: 30px; height: 30px; }
  .load-more { margin-top: 24px; }
  .load-more .button { width: 100%; }
  .notice { padding: 18px; }
  .storage-notice { margin-top: 16px; }
  .notice-actions .button { width: 100%; }
  .offer-row { gap: 10px 12px; }
  .market-logo { width: 38px; height: 38px; }
  .offer-market { gap: 9px; font-size: 18px; }
  .offer-value .price { font-size: 24px; }
  .offer-footer { display: block; }
  .offer-footer .text-link { margin-top: 4px; }
  .cart-row { grid-template-columns: 66px minmax(0, 1fr) 50px; gap: 12px; align-items: start; padding-block: 22px; }
  .cart-row .product-photo { grid-column: 1; grid-row: 1 / 4; width: 66px; height: 94px; }
  .cart-product { grid-column: 2; grid-row: 1; }
  .cart-row > .icon-button { grid-column: 3; grid-row: 1; margin-top: -9px; margin-right: -8px; }
  .cart-quantity { grid-column: 2 / 4; grid-row: 2; }
  .cart-quantity .quantity-label { display: none; }
  .cart-row-price { grid-column: 2 / 4; grid-row: 3; margin-top: 0; }
  .cart-row-price .price { font-size: 22px; }
  .cart-row-price span:not(.price) { display: block; margin: 2px 0 0; }
  .cart-row h3 { font-size: 18px; }
  .comparison-section { margin-top: 32px; }
  .resolve-controls { display: block; }
  .resolve-controls .button { width: 100%; margin-top: 12px; font-size: 16px; }
  .resolve-controls label { display: block; }
  .resolve-controls select { width: 100%; }
  .resolve-controls .text-button { display: block; margin-top: 6px; }
  .market-option-head { gap: 10px; }
  .market-option .option-price .price { font-size: 24px; }
  .market-option .button { width: 100%; }
  .comparison-summary, .split-option { padding: 20px; }
  .plan-summary { display: block; }
  .plan-summary > div + div { margin-top: 16px; }
  .shopping-plan .heading-actions > .button { width: 100%; }
  .comparison-method summary { font-size: 20px; }
  .method-content { font-size: 18px; }
  .site-footer nav { display: block; }
  .site-footer nav a { display: flex; width: fit-content; }
  .mobile-list-bar { padding-inline: 20px; }
  .toast { width: calc(100% - 24px); max-width: none; padding: 12px; gap: 6px; flex-wrap: nowrap; }
  .toast p { flex: 1; min-width: 0; }
  .toast .toast-undo { order: initial; padding-inline: 4px; white-space: nowrap; }
  .toast .icon-button { flex: none; min-width: 44px; min-height: 44px; padding: 10px; margin-left: 0; }
}

@media (max-width: 360px) {
  .brand { font-size: 19px; }
  .list-link > .icon { display: none; }
  .category-filters { gap: 18px; }
  .category-button { font-size: 16px; }
}

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

@media print {
  @page { margin: 16mm; }
  body { font-size: 12pt; color: #000; padding: 0 !important; }
  .site-header, .utility-bar, #storage-notice, #freshness, .list-sidebar, .comparison-method, .site-footer, .mobile-list-bar, .toast, .skip-link, .back-link, .no-print, .check-price .text-link { display: none !important; }
  .page-width { max-width: none; padding: 0; }
  .app-layout { display: block; padding: 0; min-height: 0; }
  .shopping-plan { max-width: none; }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; }
  .plan-summary, .notice { border: 1px solid #777; background: #fff; padding: 12pt; }
  .plan-summary .price { font-size: 20pt; }
  .checklist-row { break-inside: avoid; padding-block: 10pt; }
  .checklist-group h2 { break-after: avoid; }
  .checklist-row input { appearance: auto; accent-color: #000; }
  .checklist-row .check-product, .checklist-row .check-meta, .plan-summary p, .plan-print-note, .checklist-group > p { color: #000; }
  .checklist-row .check-price { display: block; padding-left: 42px; }
  .market-logo { width: 32px; height: 32px; }
  a { color: #000; text-decoration: none; }
}
