:root {
  --primary: #17abdd;
  --secondary: #a1d4ef;
  --tertiary: #0083c3;
  /* 品牌蓝用于大面积图形；文字与小字必须用更深的两级以保证对比度。 */
  --blue-display: #0f93c6;
  --blue-text: #0077b5;
  --action: #0077b5;
  --ink: #111719;
  --muted: #5b686d;
  --paper: #fbfcfc;
  --soft: #eff4f6;
  --line: #d7e0e3;
  --white: #fff;
  --error: #a42b2b;
  --font-display: "DIN Alternate", "DIN Condensed", "Bahnschrift SemiCondensed", "Bahnschrift", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "HanYi QiHei 45S", "HanYi QiHei", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --z-header: 20;
  --z-dialog: 40;
  --z-toast: 60;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

html:has(dialog[open]),
body:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--tertiary);
  outline-offset: 3px;
}

.products-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--secondary);
}

::selection {
  color: var(--ink);
  background: var(--secondary);
}

.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: calc(var(--z-toast) + 1);
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  border-bottom: 1px solid rgb(17 23 25 / 10%);
  background: rgb(251 252 252 / 96%);
}

.brand-link {
  display: block;
  width: 94px;
}

.brand-link img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  margin-left: auto;
  font-size: 14px;
}

.site-nav a,
.cart-trigger {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--tertiary);
}

.cart-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-left: clamp(20px, 3vw, 42px);
  padding: 0 18px;
  color: var(--white);
  border: 1px solid var(--ink);
  background: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .cart-trigger:hover {
    color: var(--white);
    border-color: var(--action);
    background: var(--action);
  }
}

.cart-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  max-width: var(--container);
  min-height: calc(100dvh - 76px);
  margin: 0 auto;
  padding: var(--gutter);
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.eyebrow,
.section-index {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: var(--space-4);
  font-size: clamp(56px, 7.6vw, 118px);
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--blue-display);
}

.hero-intro {
  max-width: 620px;
  margin-bottom: var(--space-4);
  color: #344146;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  border-color: var(--action);
  background: var(--action);
}

.button-primary:disabled,
.buy-button:disabled,
.text-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button-primary:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--white);
}

.button-ghost {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button-ghost:hover {
  color: var(--white);
  background: var(--ink);
}

.button-full {
  width: 100%;
}

.hero-facts {
  display: grid;
  max-width: 600px;
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.hero-facts dt {
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-visual > picture,
.product-media-link > picture {
  display: grid;
  width: 100%;
  place-items: center;
}

.store-photo > picture {
  display: block;
  height: 100%;
}

.hero-packages {
  height: auto;
  width: 116%;
  max-width: none;
  mix-blend-mode: multiply;
  transform: rotate(-4deg);
}

.hero-mark {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.hero-mark img {
  width: 64px;
  filter: brightness(0) invert(1);
}

.brand-statement {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-statement h2 {
  max-width: 960px;
  margin-bottom: var(--space-4);
  font-size: clamp(44px, 7vw, 104px);
}

.brand-statement > p:last-child {
  max-width: 780px;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
}

.story {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-7);
}

.section-heading h2 {
  max-width: 700px;
  font-size: clamp(42px, 5.5vw, 78px);
}

.section-heading.compact h2 {
  font-size: clamp(38px, 4.5vw, 64px);
}

.story-body {
  padding-top: 36px;
  color: #39474b;
  font-size: 18px;
}

.story-lead {
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.55;
}

.timeline {
  display: grid;
  margin: var(--space-7) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.timeline li {
  min-height: 220px;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-right: 1px solid var(--line);
}

.timeline li + li {
  padding-left: var(--space-3);
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span {
  display: block;
  margin-bottom: var(--space-5);
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.timeline p {
  color: var(--muted);
  font-size: 14px;
}

.values {
  padding-top: var(--space-5);
}

.value-grid {
  display: grid;
  margin-top: var(--space-5);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.value-grid article {
  min-height: 300px;
  padding: var(--space-3);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-grid article > span {
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.value-grid h3 {
  margin: 80px 0 14px;
  font-size: 28px;
}

.value-grid p {
  color: var(--muted);
  font-size: 14px;
}

.products-section {
  padding: var(--space-7) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  color: var(--white);
  background: var(--ink);
}

.products-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.products-heading > div {
  min-width: 0;
}

.products-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 88px);
  overflow-wrap: anywhere;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #c8d4d8;
  font-size: 13px;
}

.source-dot {
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 50%;
}

.source-dot[data-state="error"] {
  background: #ef9d9d;
}

.text-button {
  min-height: 44px;
  padding: 0 10px;
  color: var(--white);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
}

.catalog-notice {
  min-height: 28px;
  margin: var(--space-3) 0 var(--space-2);
  color: #c8d4d8;
  font-size: 14px;
}

.product-carousel-controls {
  display: none;
}

.product-carousel-buttons {
  display: flex;
  gap: var(--space-1);
}

.product-carousel-buttons button {
  min-width: 44px;
  min-height: 44px;
  color: var(--white);
  border: 1px solid #8e9ca1;
  background: transparent;
  font-size: 20px;
}

.product-carousel-buttons button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #384145;
}

.product-card {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
}

.product-card:target {
  outline: 2px solid var(--tertiary);
  outline-offset: -2px;
}

.product-card :focus-visible {
  outline-color: var(--blue-text);
}

.product-media {
  position: relative;
  display: grid;
  min-height: 270px;
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  place-items: center;
  overflow: hidden;
}

.product-media-link {
  display: grid;
  align-self: stretch;
  justify-self: stretch;
  place-items: center;
  text-decoration: none;
}

.product-media img {
  width: 68%;
  max-height: 250px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-media-link:focus-visible {
  outline-offset: -3px;
}

.product-weight {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: var(--ink);
  border: 1px solid rgb(17 23 25 / 22%);
  background: rgb(255 255 255 / 82%);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.product-origin {
  margin-bottom: 8px;
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 700;
}

.product-card h3 {
  margin-bottom: 5px;
  font-size: clamp(30px, 3vw, 46px);
}

.product-subtitle {
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
}

.flavor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}

.flavor-list li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: #3e4b4f;
  font-size: 12px;
}

.product-description {
  margin-bottom: var(--space-3);
  color: #4a585c;
  font-size: 14px;
}

.product-meta {
  display: grid;
  margin: auto 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-meta div {
  min-width: 0;
}

.product-meta dt {
  color: var(--muted);
  font-size: 11px;
}

.product-meta dd {
  margin: 3px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.card-variants {
  min-width: 0;
  margin: var(--space-2) 0 0;
  padding: 0;
  border: 0;
}

.card-variants legend {
  margin-bottom: var(--space-1);
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.card-variant-choice {
  position: relative;
  font-size: 14px;
  text-decoration: none;
}

a.card-variant-choice,
.card-variant-choice span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--muted);
}

.card-variant-choice span {
  cursor: pointer;
}

.card-variant-choice input:checked + span {
  color: var(--ink);
  border-color: var(--blue-text);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--blue-text);
  font-weight: 700;
}

.card-variant-choice input:focus-visible + span {
  outline: 3px solid var(--blue-text);
  outline-offset: 2px;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--space-3);
}

.product-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
}

.buy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: var(--white);
  border: 1px solid var(--action);
  background: var(--action);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .buy-button:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--white);
  }
}

@media (prefers-reduced-motion: no-preference) {
  button.buy-button {
    transition: transform 120ms ease-out;
  }

  button.buy-button:active {
    transform: scale(0.98);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-media img {
    transition: transform 180ms ease-out;
  }

  .product-media-link:hover img {
    transform: scale(1.04);
  }
}

.inquiry-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.product-skeleton {
  min-height: 620px;
  background: #f4f6f6;
}

.product-skeleton::before,
.product-skeleton::after {
  display: block;
  content: "";
  background: #dfe5e7;
}

.product-skeleton::before {
  height: 270px;
  margin: 18px;
}

.product-skeleton::after {
  width: 62%;
  height: 42px;
  margin: 40px 18px;
}

.product-filler {
  display: grid;
  min-height: 620px;
  padding: var(--space-4);
  place-content: center;
  justify-items: center;
  gap: var(--space-2);
  color: #e6eef0;
  background: #1a2225;
  text-align: center;
}

.product-filler img {
  width: 64px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.product-filler p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.product-filler a {
  color: var(--secondary);
  font-size: 13px;
}

.product-empty {
  display: grid;
  min-height: 320px;
  padding: var(--space-5);
  align-content: center;
  justify-items: start;
  gap: var(--space-2);
  color: var(--ink);
  background: var(--white);
}

.product-empty h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}

.product-empty p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

.product-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-2);
}

.product-price-inquiry {
  font-family: var(--font-body);
  font-size: 18px;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--blue-text);
}

.product-detail-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-text);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail-link:hover {
  color: var(--ink);
}

.shipping-note {
  display: grid;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid #384145;
  grid-template-columns: 180px 1fr;
  gap: var(--space-3);
}

.shipping-note p {
  max-width: 800px;
  margin-bottom: 0;
  color: #c8d4d8;
}

.craft {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
}

.craft-copy h2 {
  max-width: 620px;
  font-size: clamp(42px, 5vw, 76px);
}

.craft-copy > p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.craft-list {
  border-top: 1px solid var(--ink);
}

.craft-list article {
  display: grid;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 60px 1fr;
  gap: var(--space-2);
}

.craft-list article > span {
  color: var(--blue-text);
  font-family: var(--font-display);
  font-weight: 700;
}

.craft-list h3 {
  margin-bottom: 6px;
  font-size: 30px;
}

.craft-list p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

.stores {
  padding: var(--space-7) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  color: var(--ink);
  background: var(--paper);
}

.stores-heading {
  display: grid;
  margin-bottom: var(--space-5);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: var(--space-5);
  align-items: end;
}

.stores-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(34px, 5.5vw, 78px);
}

.store-note {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.store-note a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.store-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 20px;
}

.store-controls button[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

#storePosition {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.store-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.store-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.store-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.store-contact-card h3,
.store-contact-card p,
.store-contact-card .store-actions {
  margin: 0;
}

.store-photo {
  aspect-ratio: 4 / 3;
  padding: 9px;
  overflow: hidden;
  background: #f2f2f2;
}

.store-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-photo.is-contain img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.store-photo-placeholder {
  display: grid;
  place-items: center;
  background: var(--ink);
}

.store-photo-placeholder img {
  width: 32%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.store-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 4vw, 52px);
}

.store-body h3 {
  margin-bottom: 4px;
  font-size: 26px;
}

.store-alias {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.store-address {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.store-meta {
  display: grid;
  margin: 0 0 16px;
  gap: 8px;
}

.store-meta div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
}

.store-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.store-meta dd {
  margin: 0;
  font-size: 13px;
}

.store-meta a {
  color: var(--blue-text);
}

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

.store-contact {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--blue-text);
  border: 1px solid var(--blue-text);
  font-size: 13px;
  text-decoration: none;
}

.store-contact:hover {
  color: var(--white);
  background: var(--action);
}

.store-fallback {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.closing {
  display: grid;
  min-height: 72dvh;
  padding: var(--space-7) var(--gutter);
  place-items: center;
  align-content: center;
  text-align: center;
  background: var(--white);
}

.closing img {
  width: min(430px, 70vw);
  margin-bottom: var(--space-4);
}

.closing p {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
}

.closing span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  padding: var(--space-5) var(--gutter);
  color: var(--white);
  background: var(--ink);
  grid-template-columns: 1fr auto auto;
  gap: var(--space-5);
  align-items: end;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  color: #b8c3c6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
}

.copyright {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy {
  max-width: 900px;
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

.privacy h1 {
  margin-bottom: var(--space-3);
  font-size: clamp(44px, 7vw, 76px);
}

.privacy-lead {
  max-width: 66ch;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.privacy section {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}

.privacy h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(24px, 2.6vw, 32px);
}

.privacy p,
.privacy li {
  max-width: 70ch;
  color: #39474b;
}

.privacy ul {
  padding-left: 1.2em;
}

.privacy li + li {
  margin-top: 6px;
}

.privacy-return {
  margin-top: var(--space-4);
}

.error-page {
  display: grid;
  max-width: 900px;
  min-height: calc(100dvh - 220px);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
  align-content: center;
  justify-items: start;
}

.error-code {
  margin: var(--space-2) 0 0;
  color: var(--blue-display);
  font-family: var(--font-display);
  font-size: clamp(88px, 16vw, 180px);
  font-weight: 700;
  line-height: 0.9;
}

.error-page h1 {
  margin: var(--space-3) 0 var(--space-2);
  font-size: clamp(30px, 4vw, 52px);
}

.error-page > p:not(.section-index):not(.error-code) {
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}

.shop-dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
  margin: max(12px, env(safe-area-inset-top)) 12px 12px auto;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 0;
  background: var(--white);
}

.shop-dialog::backdrop {
  background: rgb(17 23 25 / 64%);
}

#cartDialog[open] {
  display: flex;
  flex-direction: column;
}

#cartDialog .cart-items {
  flex: 0 1 auto;
  min-height: 0;
}

#cartDialog .cart-footer {
  margin-top: auto;
}

.checkout-dialog {
  width: min(660px, calc(100vw - 24px));
  margin: auto;
  overscroll-behavior: contain;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.dialog-header .section-index {
  margin-bottom: 4px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 36px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  max-height: 54dvh;
  overflow: auto;
}

.cart-item {
  display: grid;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.cart-item h3 {
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}

.cart-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-side {
  text-align: right;
}

.cart-item-main {
  min-width: 0;
}

.cart-remove {
  margin-top: 6px;
  min-height: 28px;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-remove:hover {
  color: var(--error);
}

.quantity-control {
  display: inline-grid;
  margin-top: 8px;
  border: 1px solid var(--line);
  grid-template-columns: 34px 32px 34px;
}

.quantity-control button {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
}

.quantity-control button:hover {
  background: var(--soft);
}

.quantity-control span {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.cart-empty {
  padding: var(--space-5) var(--space-3);
  text-align: center;
}

.cart-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--line);
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 18px;
}

.summary-row strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.summary-row-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-row-total strong {
  font-size: 30px;
}

.saved-customers {
  margin: 0 0 var(--space-3);
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7fafb;
}

.saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.saved-clear {
  padding: 0;
  color: var(--secondary);
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.saved-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.saved-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.saved-item strong {
  display: block;
  font-size: 14px;
}

.saved-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.saved-item:hover {
  border-color: var(--secondary);
}

.cart-footer > p {
  margin: 8px 0 var(--space-3);
  color: var(--muted);
  font-size: 12px;
}

#checkoutForm,
.order-success {
  padding: var(--space-3);
}

.order-summary {
  margin-bottom: var(--space-3);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.order-summary p {
  margin-bottom: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.form-grid label > span {
  font-size: 13px;
  font-weight: 600;
}

.form-grid small {
  color: var(--muted);
  font-weight: 400;
}

.form-full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #aebabe;
  border-radius: 0;
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--tertiary);
  outline: 2px solid var(--secondary);
  outline-offset: 0;
}

.form-hint {
  margin: var(--space-2) 0;
  color: var(--muted);
  font-size: 12px;
}

.form-error {
  color: var(--error);
  font-size: 13px;
}

.field-error {
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}

.order-success {
  padding: var(--space-6) var(--space-3);
  text-align: center;
}

.order-success img {
  width: 90px;
  margin: 0 auto var(--space-3);
}

.order-success h2 {
  font-size: 48px;
}

.order-success p {
  color: var(--muted);
}

.order-success strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.order-status-note {
  max-width: 40ch;
  margin: var(--space-2) auto var(--space-3);
  font-size: 13px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.miniprogram-slot:empty {
  display: none;
}

.toast {
  position: fixed;
  z-index: var(--z-toast);
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

/* Product detail page */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter) 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--blue-text);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

.product-hero {
  display: grid;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter) var(--space-6);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.product-hero-copy .section-index {
  margin-bottom: var(--space-2);
}

.product-hero h1 {
  margin-bottom: 4px;
  font-size: clamp(52px, 7vw, 104px);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.product-hero-subtitle {
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
}

.product-hero-lead {
  max-width: 34ch;
  margin-bottom: var(--space-3);
  color: #344146;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.7;
}

.product-facts dt,
.keep-list dt {
  color: var(--muted);
  font-size: 11px;
}

.product-facts dd {
  margin: 3px 0 0;
  font-size: 14px;
}

.product-hero-price {
  margin-bottom: var(--space-2);
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-hero-actions,
.product-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-variant {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.product-variant select {
  min-height: 36px;
  padding: 0 28px 0 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-size: 13px;
}

.product-variant-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: var(--space-2);
  font-size: 14px;
}

.product-variant-switch > span:first-child {
  color: var(--muted);
  font-size: 12px;
}

.product-variant-switch a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-variant-switch strong {
  font-weight: 600;
}

.product-hero-media {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
}

.product-hero-visual {
  min-width: 0;
}

.product-image-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.product-hero-media img {
  width: 78%;
  max-height: 500px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-hero-media .product-weight {
  right: 18px;
  bottom: 18px;
}

.product-facts {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.product-facts dl {
  display: grid;
  margin: 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--ink);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}

.product-section {
  display: grid;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: var(--space-6);
}

.product-section-heading {
  position: sticky;
  top: 100px;
  align-self: start;
}

.product-section-heading .section-index {
  margin-bottom: var(--space-2);
}

.product-section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
}

.product-story-body {
  max-width: 720px;
}

.product-story-body p {
  margin-bottom: var(--space-2);
  color: #39474b;
  font-size: 17px;
  line-height: 1.75;
}

.product-story-body .product-story-lead {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.6;
}

.product-story-body .product-note,
.product-flavor-body .product-note,
.product-brew > .product-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.origin-facts {
  display: grid;
  margin: var(--space-3) 0;
  border-top: 1px solid var(--line);
}

.origin-facts div {
  display: grid;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px 1fr;
  gap: var(--space-2);
}

.origin-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.origin-facts dd {
  margin: 0;
  color: #39474b;
  font-size: 15px;
  line-height: 1.6;
}

.product-gallery {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--line);
}

.product-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.product-gallery-head .section-index {
  margin: 0;
}

.product-gallery-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-gallery figure {
  margin: 0;
}

.product-gallery figure:only-child {
  grid-column: 1 / -1;
}

.product-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-gallery figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-gallery figcaption a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-flavor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.product-flavor-list li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
}

.product-highlights {
  display: grid;
  margin: 0 0 var(--space-3);
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
}

.product-highlights li {
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.product-highlights li + li {
  padding-left: var(--space-2);
  border-left: 1px solid var(--line);
}

.brew-list {
  border-top: 1px solid var(--ink);
}

.brew-row {
  display: grid;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.brew-row h3 {
  margin: 0;
  font-size: 24px;
}

.brew-params {
  margin: 0;
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.brew-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.keep-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.keep-list div {
  display: grid;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 100px 1fr;
  gap: var(--space-2);
}

.keep-list dd {
  margin: 0;
  color: #39474b;
  font-size: 16px;
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: var(--space-2) 40px var(--space-2) 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  content: "+";
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 24px;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 70ch;
  margin: 0;
  padding-bottom: var(--space-3);
  color: #4a585c;
  font-size: 15px;
  line-height: 1.7;
}

.product-related-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.product-related-list li {
  border-bottom: 1px solid var(--line);
}

.product-related-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: var(--space-2) 0;
  text-decoration: none;
}

.product-related-list span {
  font-size: 18px;
  font-weight: 600;
}

.product-related-list small {
  color: var(--muted);
  font-size: 13px;
}

.product-related-list a:hover span {
  color: var(--blue-text);
}

.product-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  color: var(--white);
  background: var(--ink);
}

.product-cta-band p {
  margin-bottom: 4px;
  color: #c8d4d8;
  font-size: 14px;
}

.product-cta-band strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.product-cta-band .button-ghost {
  color: var(--white);
  border-color: var(--white);
}

.product-cta-band .button-ghost:hover {
  color: var(--ink);
  background: var(--white);
}


@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .story,
  .craft {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline li:nth-child(3) {
    border-right: 0;
  }

  .timeline li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

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

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

  .stores-heading {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

}

@media (max-width: 760px) {
  .site-header {
    padding-right: 20px;
    padding-left: 20px;
    gap: var(--space-1);
  }

  .site-header .brand-link {
    margin-right: auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    min-height: calc(100dvh - var(--header-h));
    padding: 32px 20px calc(40px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .cart-trigger {
    margin-left: 0;
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-title {
    font-size: clamp(44px, 15vw, 92px);
  }

  .hero-facts {
    gap: 12px;
  }

  .hero-facts dt {
    font-size: 24px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .brand-statement,
  .section,
  .products-section,
  .stores {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .products-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-meta {
    justify-content: flex-start;
  }

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

  .timeline li,
  .timeline li:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .timeline li:nth-child(even) {
    border-right: 0;
  }

  .timeline li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .product-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    margin-bottom: var(--space-1);
    color: #c8d4d8;
    font-size: 13px;
  }

  .product-grid:has(.product-card ~ .product-card) {
    position: relative;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 32px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: transparent;
  }

  .product-grid:has(.product-card ~ .product-card) .product-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .product-grid .product-filler {
    display: none;
  }

  .product-card {
    min-height: 0;
    padding: var(--space-2);
  }

  .product-media {
    height: clamp(170px, 50vw, 230px);
    min-height: 0;
    margin-bottom: var(--space-2);
    padding: var(--space-1);
    grid-template-rows: minmax(0, 1fr);
  }

  .product-media img {
    max-height: calc(clamp(170px, 50vw, 230px) - 2 * var(--space-1));
  }

  .product-card h3 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .product-subtitle,
  .product-card .flavor-list {
    margin-bottom: var(--space-1);
  }

  .product-description,
  .product-meta {
    display: none;
  }

  .product-buy {
    margin-top: auto;
    padding-top: var(--space-2);
  }

  .product-detail-link {
    min-height: 44px;
    align-self: flex-start;
    align-items: center;
    margin-top: 2px;
  }

  .value-grid article {
    min-height: 230px;
  }

  .value-grid h3 {
    margin-top: 54px;
  }

  .shipping-note {
    grid-template-columns: 1fr;
  }

  .store-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .store-photo {
    aspect-ratio: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shop-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .checkout-dialog {
    overflow: auto;
  }

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

  .form-full {
    grid-column: 1;
  }
}

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

@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(44px, 16vw, 62px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .quantity-control {
    grid-template-columns: 44px 32px 44px;
  }
}

@media (max-width: 1000px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .product-hero-media {
    min-height: 420px;
  }

  .product-facts dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-section {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .product-section-heading {
    position: static;
  }

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

  .product-highlights li + li {
    padding-left: 0;
    border-left: 0;
  }

  .brew-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-cta-band {
    padding: var(--space-5) var(--gutter);
  }
}

@media (max-width: 760px) {
  .product-hero {
    padding-top: var(--space-3);
  }

  .product-hero-media {
    min-height: 340px;
  }

  .product-hero-media img {
    width: 82%;
  }

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

  .product-hero-actions .button,
  .product-cta-actions .button {
    width: 100%;
  }

  .product-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .product-gallery-head {
    flex-direction: column;
    gap: 4px;
  }

  .product-image-note {
    text-align: left;
  }
}

/* 订单付款页 */
.pay-main {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter) var(--space-7);
}

.pay-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 48px);
}

.pay-panel h1 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.pay-order-id {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pay-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.pay-amount-block {
  margin: var(--space-4) 0 var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pay-amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  color: var(--ink);
}

.pay-amount-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pay-qr-block {
  padding: var(--space-3) 0;
  text-align: center;
}

.pay-qr-frame {
  width: 100%;
  max-width: 272px;
  margin: 0 auto;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.pay-qr-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.pay-qr-hint {
  margin: 16px 0 4px;
  font-weight: 600;
}

.pay-wechat-button {
  display: none;
  width: 100%;
  margin: 0 0 16px;
}

.pay-wechat-hint {
  display: none;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .pay-wechat-button {
    display: inline-flex;
  }

  .pay-wechat-hint {
    display: block;
  }
}

.pay-expire {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pay-state {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--soft);
}

.pay-state-success {
  background: #eef7fb;
  border-left: 3px solid var(--blue-text);
}

.pay-state-closed {
  background: #fdf2f2;
  border-left: 3px solid var(--error);
}

.pay-state-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.pay-state-success .pay-state-title {
  color: var(--blue-text);
}

.pay-state p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.pay-state-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.pay-state-facts div {
  display: flex;
  gap: 12px;
}

.pay-state-facts dt {
  min-width: 96px;
  color: var(--muted);
}

.pay-state-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pay-status {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.pay-status-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pay-items {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.pay-items summary {
  cursor: pointer;
  color: var(--blue-text);
}

.pay-items ul {
  display: grid;
  gap: 8px;
  margin: var(--space-2) 0;
  padding: 0;
  list-style: none;
}

.pay-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.pay-items-total {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.pay-note {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pay-mock {
  margin: 0 0 var(--space-3);
  padding: 12px 16px;
  background: #fff4d6;
  border: 1px solid #e5c97a;
  color: #6b5300;
  font-size: 14px;
}

@media (max-width: 560px) {
  .pay-panel {
    padding: 24px 20px;
  }

  .pay-state-facts div {
    flex-direction: column;
    gap: 2px;
  }
}

/* Product detail enrichment — 产地档案、处理流程、烘焙曲线、配方、手冲演示、分享 */
.dossier-origin {
  margin: var(--space-3) 0;
}

.dossier-facts {
  display: grid;
  margin: 0 0 var(--space-2);
  border-top: 1px solid var(--line);
}

.dossier-facts div {
  display: grid;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--space-2);
}

.dossier-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.dossier-facts dd {
  margin: 0;
  color: #39474b;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dossier-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.processing-body,
.roast-body {
  min-width: 0;
}

.processing-summary {
  margin: 0 0 var(--space-3);
  color: #39474b;
  font-size: 17px;
  line-height: 1.75;
}

.process-badge,
.roast-badge,
.gallery-badge {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-badge {
  margin: 0 8px 0 0;
  padding: 1px 6px;
  font-size: 10px;
  vertical-align: 1px;
}

.process-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.process-step {
  display: grid;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: start;
}

.process-step-index {
  padding-top: 3px;
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.process-step-body h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.process-step-body p {
  margin: 0;
  color: #39474b;
  font-size: 15px;
  line-height: 1.65;
}

.process-step-duration {
  padding-top: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.process-impact {
  margin: var(--space-3) 0 var(--space-2);
  padding-left: var(--space-2);
  border-left: 3px solid var(--primary);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.roast-curve {
  margin: 0 0 var(--space-3);
}

.roast-curve svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 320;
}

.roast-grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.roast-axis {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.roast-axis-label {
  fill: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
}

.roast-area {
  fill: var(--primary);
  opacity: 0.08;
}

.roast-path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linejoin: round;
}

.roast-milestone line {
  stroke: var(--blue-text);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.55;
}

.roast-milestone circle {
  fill: var(--white);
  stroke: var(--blue-text);
  stroke-width: 2;
}

.roast-milestone text {
  fill: var(--blue-text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.roast-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.roast-badge.is-measured {
  border-color: var(--blue-text);
  color: var(--blue-text);
}

.roast-meta {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--ink);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roast-meta div {
  min-width: 0;
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}

.roast-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.roast-meta dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.brew-extra {
  display: grid;
  min-width: 0;
  grid-column: 2;
  gap: var(--space-4);
}

.brew-extra h3 {
  margin: 0 0 var(--space-2);
  font-size: 22px;
}

.brew-recipe,
.dial-in,
.pour-stepper {
  min-width: 0;
}

.recipe-facts {
  display: grid;
  margin: 0 0 var(--space-3);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recipe-facts div {
  min-width: 0;
  padding: 10px var(--space-2) 10px 0;
  border-bottom: 1px solid var(--line);
}

.recipe-facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.recipe-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.recipe-step-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.recipe-step {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 56px 64px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
}

.recipe-step-time,
.recipe-step-water {
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.recipe-step-body {
  color: #39474b;
  font-size: 15px;
  line-height: 1.6;
}

.recipe-step-body strong {
  color: var(--ink);
}

.dial-in-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.dial-in-row {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-2);
}

.dial-in-row dt {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.dial-in-row dd {
  margin: 0;
  color: #39474b;
  font-size: 15px;
  line-height: 1.6;
}

.pour-stepper {
  --pour-accent: #006a9f;

  display: grid;
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  background: var(--soft);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-4);
}

.pour-stage-wrap {
  min-width: 0;
}

.pour-stage {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  contain: layout paint;
}

.pour-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pour-kettle,
.pour-dripper,
.pour-carafe {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
}

.pour-kettle-handle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.pour-fill {
  fill: var(--secondary);
}

.pour-stream,
.pour-drip {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
}

.pour-stream {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pour-drop {
  fill: var(--primary);
  opacity: 0;
}

.pour-stage.is-pouring .pour-stream {
  opacity: 1;
}

.pour-stage.is-pouring .pour-drop {
  opacity: 1;
  animation: pour-drop 0.7s linear infinite;
}

@keyframes pour-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

.pour-controls {
  display: flex;
  min-height: 50px;
  margin-top: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pour-controls.is-pending {
  visibility: hidden;
}

.pour-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blue-text);
  background: var(--blue-text);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pour-button-ghost {
  background: transparent;
  color: var(--pour-accent);
}

.pour-button[hidden] {
  display: none;
}

.pour-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.pour-clock {
  margin-left: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.pour-progress {
  height: 4px;
  background: var(--line);
}

.pour-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
}

.pour-steps {
  min-width: 0;
}

.pour-steps h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.pour-step-list {
  margin: var(--space-2) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.pour-step {
  display: grid;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 48px 60px auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  font-size: 14px;
}

.pour-step-time,
.pour-step-water {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
}

.pour-step-label {
  color: var(--ink);
}

.pour-step-note {
  line-height: 1.5;
}

.pour-step[data-active] {
  background: rgba(23, 171, 221, 0.08);
}

.pour-step[data-active] .pour-step-time,
.pour-step[data-active] .pour-step-water {
  color: var(--pour-accent);
}

.pour-step[data-done] {
  color: #7a878b;
}

.share-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
}

.share-caption {
  margin: 0 0 var(--space-2);
  color: #39474b;
  font-size: 16px;
  line-height: 1.7;
}

.share-url {
  display: inline-block;
  max-width: 100%;
  color: var(--blue-text);
  font-family: var(--font-display);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.share-qr {
  line-height: 0;
}

.share-qr svg {
  width: 168px;
  height: 168px;
}

@media (max-width: 1000px) {
  .brew-extra {
    grid-column: auto;
  }

  .pour-stepper {
    grid-template-columns: 1fr;
  }

  .roast-meta,
  .recipe-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .process-step-duration {
    grid-column: 2;
    padding-top: 0;
  }

  .recipe-step {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .recipe-step-water {
    text-align: right;
  }

  .recipe-step-body {
    grid-column: 1 / -1;
  }

  .pour-step {
    grid-template-columns: 44px 52px minmax(0, 1fr);
  }

  .pour-step-note {
    grid-column: 1 / -1;
  }

  .dial-in-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .share-body {
    grid-template-columns: 1fr;
  }

  .share-qr svg {
    width: 140px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pour-stream {
    transition: none;
  }

  .pour-stage.is-pouring .pour-drop {
    animation: none;
    opacity: 1;
  }
}

@media print {
  .pour-controls,
  .pour-progress {
    display: none;
  }

  .process-step,
  .roast-curve,
  .brew-recipe,
  .pour-stepper,
  .share-body {
    break-inside: avoid;
  }
}
