:root {
  --ink: #17362f;
  --ink-soft: #3f534e;
  --muted: #65746f;
  --paper: #f4f0e6;
  --paper-deep: #e9e2d3;
  --card: #fffdf8;
  --primary: #155f52;
  --primary-deep: #0c493f;
  --primary-light: #dceee8;
  --accent: #efb43f;
  --accent-deep: #9d6300;
  --accent-soft: #fff1c9;
  --danger: #a83926;
  --danger-soft: #fde7df;
  --line: #d9d3c5;
  --shadow: 0 10px 30px rgba(34, 52, 45, 0.09);
  --shadow-small: 0 5px 15px rgba(34, 52, 45, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 2%, rgba(239, 180, 63, 0.22), transparent 25rem),
    radial-gradient(circle at -10% 30%, rgba(21, 95, 82, 0.1), transparent 28rem),
    var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.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: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  padding: 22px max(18px, calc((100vw - 920px) / 2)) 26px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 54, 46, 0.98), rgba(21, 95, 82, 0.96)),
    var(--primary-deep);
  border-radius: 0 0 34px 34px;
  box-shadow: var(--shadow);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -8px;
  width: 130px;
  height: 34px;
  opacity: 0.16;
  background:
    radial-gradient(circle at 16px 18px, #fff 0 7px, transparent 8px) 0 0 / 32px 32px;
  transform: rotate(-3deg);
  pointer-events: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  background: var(--accent);
  color: var(--primary-deep);
  border-radius: 17px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.help-button {
  display: inline-flex;
  min-height: 48px;
  padding: 8px 15px;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
}

.help-button span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--primary-deep);
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 900;
}

.search-panel {
  max-width: 920px;
  margin: 0 auto;
}

.search-field {
  display: flex;
  min-height: 70px;
  padding: 8px 10px 8px 18px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  background: #fff;
  border: 3px solid transparent;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.13);
  transition: border-color 150ms ease, transform 150ms ease;
}

.search-field:focus-within {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.search-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1.17rem;
  font-weight: 700;
}

.search-field input::placeholder {
  color: #7a8783;
  font-weight: 500;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.clear-search {
  min-height: 48px;
  padding: 7px 15px;
  flex: 0 0 auto;
  color: var(--primary-deep);
  background: var(--primary-light);
  border: 0;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.search-actions {
  display: flex;
  min-height: 46px;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-guide {
  display: inline-flex;
  min-height: 46px;
  padding: 8px 13px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 13px;
  font-size: 0.94rem;
  font-weight: 750;
  cursor: pointer;
}

.voice-guide:hover,
.voice-guide:focus-visible,
.help-button:hover,
.help-button:focus-visible {
  background: rgba(255, 255, 255, 0.17);
}

.voice-guide svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.data-note {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  text-align: right;
}

.voice-tip {
  margin-top: 10px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid #e8c96f;
  border-radius: 15px;
  font-size: 0.95rem;
}

main {
  width: min(920px, calc(100% - 32px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 30px 0 48px;
  outline: none;
}

.loading-view {
  display: grid;
  min-height: 48vh;
  place-items: center;
  align-content: center;
  text-align: center;
}

.loading-view h1 {
  margin: 20px 0 5px;
  font-size: 1.35rem;
}

.loading-view p {
  color: var(--muted);
}

.loading-mark {
  width: 62px;
  height: 62px;
  border: 7px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-head {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-head h1 {
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 4.4vw, 2.35rem);
}

.page-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.back-button {
  display: inline-flex;
  min-width: 52px;
  min-height: 52px;
  padding: 10px 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--primary-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-small);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.back-button:hover,
.back-button:focus-visible {
  background: #fff;
  border-color: var(--primary);
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 38px);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(17, 78, 67, 0.98) 0 58%, rgba(10, 67, 57, 0.98) 58% 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border: 30px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-card h1 {
  max-width: 630px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
}

.hero-card p {
  max-width: 590px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.key-button,
.surface-button {
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  color: var(--primary-deep);
  background: var(--accent);
  border: 0;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #ffc95c;
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.primary-button.wide {
  width: 100%;
}

.section-block {
  margin-top: 30px;
}

.section-title {
  display: flex;
  margin-bottom: 14px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.36rem;
}

.section-title p,
.section-title a {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-title a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.method-card {
  display: flex;
  min-height: 140px;
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
  cursor: pointer;
}

.method-card:hover,
.method-card:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.method-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 16px;
}

.method-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-card:nth-child(2) .method-icon {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.method-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.05rem;
}

.method-card span {
  color: var(--muted);
  font-size: 0.83rem;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-chip,
.zone-chip,
.shelf-chip {
  min-height: 56px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.category-chip small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.category-chip:hover,
.category-chip:focus-visible,
.zone-chip:hover,
.zone-chip:focus-visible,
.shelf-chip:hover,
.shelf-chip:focus-visible {
  border-color: var(--primary);
  background: #fff;
}

.zone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.zone-chip {
  display: grid;
  min-height: 76px;
  place-items: center;
  font-size: 1.3rem;
}

.zone-chip small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.product-list {
  display: grid;
  gap: 13px;
}

.product-card {
  display: grid;
  min-height: 150px;
  padding: 13px;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  background: #fff;
  border: 1px solid #e6e0d4;
  border-radius: 16px;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  min-height: 122px;
  object-fit: contain;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 122px;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(21, 95, 82, 0.05) 25%, transparent 25%) 0 0 / 18px 18px,
    #faf8f2;
  font-size: 0.78rem;
  text-align: center;
}

.product-copy {
  min-width: 0;
  padding: 5px 2px 3px 0;
}

.product-kicker {
  display: flex;
  margin-bottom: 6px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.short-badge {
  display: inline-flex;
  min-height: 27px;
  padding: 3px 8px;
  align-items: center;
  color: var(--primary-deep);
  background: var(--primary-light);
  border-radius: 8px;
  font-weight: 900;
}

.product-name {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 9px;
  font-size: 1.07rem;
  font-weight: 850;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.location-badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 39px;
  padding: 7px 11px;
  align-items: center;
  gap: 7px;
  color: #4a3200;
  background: var(--accent-soft);
  border: 1px solid #e3c46d;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 900;
}

.location-badge svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-badge.missing {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #e6b4a8;
}

.product-subline {
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-summary {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-summary strong {
  font-size: 1.03rem;
}

.result-summary span {
  color: var(--muted);
  font-size: 0.83rem;
}

.empty-state {
  padding: 40px 22px;
  text-align: center;
  background: var(--card);
  border: 1px dashed #beb5a5;
  border-radius: var(--radius-xl);
}

.empty-state-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 24px;
  font-size: 1.6rem;
  font-weight: 900;
}

.empty-state h2 {
  margin-bottom: 7px;
  font-size: 1.3rem;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.surface-button {
  color: var(--primary-deep);
  background: var(--card);
  border: 1px solid var(--line);
}

.surface-button:hover,
.surface-button:focus-visible {
  border-color: var(--primary);
  background: #fff;
}

.load-more-wrap {
  margin-top: 18px;
  text-align: center;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(300px, 1.12fr);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.product-detail-image {
  display: grid;
  min-height: 400px;
  padding: 22px;
  place-items: center;
  background: #fff;
  border-right: 1px solid var(--line);
}

.product-detail-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.product-detail-image .image-placeholder {
  min-height: 330px;
  border-radius: 22px;
}

.product-detail-copy {
  padding: clamp(24px, 4vw, 38px);
}

.product-detail-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.detail-location {
  margin: 20px 0;
  padding: 20px;
  background: var(--accent-soft);
  border: 1px solid #e0c05f;
  border-radius: 20px;
}

.detail-location.missing {
  background: var(--danger-soft);
  border-color: #e2a99b;
}

.detail-location span {
  display: block;
  margin-bottom: 3px;
  color: #6e5b27;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.detail-location strong {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.2;
}

.detail-info {
  display: grid;
  margin: 22px 0;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-info div {
  padding: 12px 14px;
  background: #f6f3ea;
  border-radius: 13px;
}

.detail-info dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.detail-info dd {
  margin: 0;
  font-weight: 800;
  word-break: break-word;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions > * {
  flex: 1 1 170px;
}

.status-message {
  margin: 18px 0;
  padding: 12px 15px;
  color: var(--primary-deep);
  background: var(--primary-light);
  border-radius: 12px;
  font-weight: 750;
}

.shelf-zone-list {
  display: grid;
  gap: 22px;
}

.zone-section {
  padding: 20px;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.zone-section h2 {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  justify-content: space-between;
}

.zone-letter {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 14px;
  font-size: 1.3rem;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.shelf-chip {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-decoration: none;
}

.shelf-chip strong {
  font-size: 0.98rem;
}

.shelf-chip small {
  color: var(--muted);
  font-size: 0.76rem;
}

.positions-list {
  display: flex;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 7px;
}

.position-pill {
  padding: 6px 10px;
  color: #614500;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 750;
}

.keypad-card {
  max-width: 470px;
  margin: 0 auto;
  padding: clamp(18px, 5vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
}

.keypad-display {
  min-height: 94px;
  margin-bottom: 18px;
  padding: 12px;
  color: var(--ink);
  background: #f6f3ea;
  border: 2px solid var(--line);
  border-radius: 20px;
}

.keypad-display span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.keypad-display strong {
  display: block;
  min-height: 52px;
  font-size: 2.7rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.keypad-display strong:empty::before {
  content: "— — —";
  color: #c2bcaf;
  letter-spacing: 0.03em;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.key-button {
  min-height: 68px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 3px 0 #d6d0c3;
  font-size: 1.35rem;
}

.key-button:active {
  box-shadow: none;
  transform: translateY(3px);
}

.key-button.action {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 3px 0 var(--primary-deep);
  font-size: 0.93rem;
}

.keypad-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 calc(34px + var(--safe-bottom));
  color: var(--muted);
  border-top: 1px solid rgba(100, 116, 111, 0.2);
  font-size: 0.78rem;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 5px 0;
}

.help-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: min(88vh, 800px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--card);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.help-dialog::backdrop {
  background: rgba(10, 37, 32, 0.68);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  padding: 24px 24px 16px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-head h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: var(--ink);
  background: #f0ede4;
  border: 0;
  border-radius: 14px;
  font-size: 1.6rem;
  cursor: pointer;
}

.help-list {
  display: grid;
  margin: 0;
  padding: 0 24px 10px;
  gap: 10px;
  list-style: none;
}

.help-list li {
  display: grid;
  padding: 14px;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  background: #f6f3ea;
  border-radius: 16px;
}

.help-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 13px;
  font-weight: 900;
}

.help-list strong {
  font-size: 1.03rem;
}

.help-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.dialog-note {
  margin: 8px 24px 18px;
  padding: 15px;
  color: #664100;
  background: var(--accent-soft);
  border-radius: 15px;
}

.dialog-note p {
  margin: 4px 0 0;
  color: #72562a;
  font-size: 0.87rem;
}

.help-dialog .primary-button {
  width: calc(100% - 48px);
  margin: 0 24px 24px;
}

.noscript {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  color: #fff;
  background: var(--primary-deep);
  text-align: center;
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px 14px 21px;
    border-radius: 0 0 28px 28px;
  }

  .header-top {
    margin-bottom: 16px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .brand strong {
    font-size: 1.25rem;
  }

  .brand small {
    display: none;
  }

  .help-button {
    min-height: 44px;
    padding: 7px 11px;
    font-size: 0.84rem;
  }

  .search-field {
    min-height: 64px;
    padding-left: 14px;
    border-radius: 19px;
  }

  .search-field input {
    font-size: 1.02rem;
  }

  .search-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .clear-search {
    min-height: 44px;
    padding: 6px 11px;
  }

  .search-actions {
    min-height: 42px;
    margin-top: 8px;
  }

  .voice-guide {
    min-height: 42px;
    padding-left: 4px;
    font-size: 0.85rem;
  }

  .data-note {
    max-width: 43%;
    font-size: 0.7rem;
  }

  main {
    width: min(100% - 24px, 920px);
    padding-top: 22px;
  }

  .hero-card {
    border-radius: 23px;
  }

  .hero-actions > button {
    flex: 1 1 145px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 92px;
    padding: 14px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .method-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zone-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    min-height: 132px;
    padding: 11px;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
  }

  .product-card-image,
  .product-card-image img,
  .product-card-image .image-placeholder {
    min-height: 106px;
  }

  .product-name {
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
  }

  .location-badge {
    min-height: 35px;
    padding: 6px 9px;
    font-size: 0.84rem;
  }

  .product-subline {
    margin-top: 6px;
    font-size: 0.7rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-copy {
    order: 1;
  }

  .product-detail-image {
    order: 2;
    min-height: 270px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .product-detail-image .image-placeholder {
    min-height: 230px;
  }

  .product-detail-copy {
    padding: 22px;
  }

  .detail-info {
    grid-template-columns: 1fr;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zone-section {
    padding: 15px;
  }
}

@media (max-width: 390px) {
  body {
    font-size: 17px;
  }

  .brand strong {
    font-size: 1.14rem;
  }

  .help-button {
    font-size: 0.78rem;
  }

  .search-field input {
    font-size: 0.95rem;
  }

  .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-card-image,
  .product-card-image img,
  .product-card-image .image-placeholder {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
