:root {
  --product-ink: #191815;
  --product-muted: #6c6257;
  --product-paper: #f4f0e8;
  --product-white: #fffdf9;
  --product-accent: #7a4f35;
}

.product-page {
  color: var(--product-ink);
  background: var(--product-paper);
}

.product-page [hidden] {
  display: none !important;
}

.product-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 80px;
  align-items: center;
  padding: 12px clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(27, 26, 24, 0.12);
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(18px);
  gap: 28px;
}

.product-topbar .brand__mark {
  color: var(--product-ink);
  background: transparent;
  border-color: var(--product-ink);
}

.product-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}

.product-nav a {
  color: var(--product-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.product-nav a:hover {
  color: var(--product-ink);
}

.product-topbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-mobile-menu {
  position: relative;
  display: none;
}

.product-mobile-menu > summary {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--product-ink);
  border: 1px solid rgba(27, 26, 24, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  list-style: none;
}

.product-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.product-mobile-menu > summary::marker {
  content: "";
}

.product-mobile-menu > summary span,
.product-mobile-menu > summary span::before,
.product-mobile-menu > summary span::after {
  display: block;
  width: 17px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: transform 320ms ease, opacity 220ms ease;
}

.product-mobile-menu > summary span::before { transform: translateY(-5px); }
.product-mobile-menu > summary span::after { transform: translateY(4px); }
.product-mobile-menu[open] > summary span { background: transparent; }
.product-mobile-menu[open] > summary span::before { transform: translateY(1px) rotate(45deg); }
.product-mobile-menu[open] > summary span::after { transform: rotate(-45deg); }

.product-mobile-menu__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: -54px;
  display: grid;
  width: min(320px, calc(100vw - 24px));
  overflow: hidden;
  padding: 10px 14px;
  color: var(--product-ink);
  border: 1px solid rgba(27, 26, 24, 0.14);
  border-radius: 20px;
  background: rgba(250, 247, 240, 0.98);
  box-shadow: 0 26px 70px rgba(27, 22, 18, 0.2);
  backdrop-filter: blur(22px) saturate(120%);
  animation: productMenuIn 300ms cubic-bezier(.22, 1, .36, 1) both;
}

.product-mobile-menu__panel a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 10px;
  color: rgba(25, 24, 21, 0.72);
  border-bottom: 1px solid rgba(27, 26, 24, 0.09);
  font-size: 0.82rem;
}

.product-mobile-menu__panel a:last-child {
  margin-top: 8px;
  color: var(--product-white);
  border: 0;
  border-radius: 999px;
  background: var(--product-ink);
}

@keyframes productMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

.product-topbar .language-switch {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(27, 26, 24, 0.15);
}

.product-topbar .lang-button.is-active {
  color: var(--product-white);
  background: var(--product-ink);
}

.product-bag {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 6px 0 15px;
  border: 1px solid var(--product-ink);
  border-radius: 999px;
  gap: 9px;
  font-size: 0.76rem;
}

.product-bag strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--product-white);
  background: var(--product-accent);
  font-size: 0.68rem;
}

.product-loading,
.product-not-found {
  display: grid;
  min-height: 70vh;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.product-not-found h1 {
  margin: 12px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 500;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  width: min(1440px, 100%);
  min-height: min(820px, calc(100svh - 80px));
  margin: 0 auto;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  height: auto;
  min-height: 760px;
  padding: clamp(20px, 3vw, 46px);
  background: #e9e2d7;
  gap: 14px;
}

.detail-thumbnails {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 10px;
  scrollbar-width: thin;
}

.detail-thumbnail {
  flex: 0 0 auto;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.detail-thumbnail.is-active {
  border-color: var(--product-accent);
}

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

.detail-main-image {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #ddd2c2;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.detail-main-image[data-long="true"] img {
  object-fit: contain;
}

.detail-image-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--product-white);
  background: rgba(25, 24, 21, 0.74);
  font-size: 0.65rem;
}

.detail-summary {
  display: grid;
  align-content: center;
  padding: clamp(42px, 6vw, 100px) clamp(28px, 5vw, 82px);
  background: var(--product-white);
}

.detail-breadcrumb {
  margin-bottom: 30px;
  color: var(--product-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.detail-breadcrumb a {
  border-bottom: 1px solid currentColor;
}

.detail-badge {
  width: max-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(122, 79, 53, 0.32);
  border-radius: 999px;
  color: var(--product-accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.detail-summary h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.02;
}

.detail-subtitle {
  margin-top: 13px;
  color: var(--product-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.detail-copy {
  max-width: 530px;
  margin-top: 24px;
  color: var(--product-muted);
  line-height: 1.9;
}

.detail-flavor {
  margin-top: 22px;
  padding: 13px 0;
  border-top: 1px solid rgba(27, 26, 24, 0.12);
  border-bottom: 1px solid rgba(27, 26, 24, 0.12);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.detail-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: #315f48;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.detail-market {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-sales {
  margin: 14px 0 0;
  color: var(--product-muted);
  font-size: .78rem;
  font-weight: 650;
}

.detail-restock {
  text-decoration: none;
}

.product-bag-toast {
  position: fixed;
  z-index: 96;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: .78rem .85rem .78rem 1rem;
  color: #f7f1e6;
  background: rgba(10, 22, 15, .94);
  border: 1px solid rgba(209, 168, 108, .42);
  border-radius: 999px;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px) saturate(125%);
  opacity: 0;
  transform: translateY(1rem) scale(.97);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}

.product-bag-toast.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.product-bag-toast span {
  font-size: .84rem;
}

.product-bag-toast a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .58rem .75rem;
  color: #20180f;
  background: #d8b47d;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.product-bag-toast b {
  font-weight: 500;
  transition: transform .25s ease;
}

.product-bag-toast a:hover b {
  transform: translateX(3px);
}

.detail-stock span {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(49, 95, 72, .09);
}

.detail-stock[data-stock="out"] {
  color: #8f4c3c;
}

.detail-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  gap: 9px;
}

.detail-variant {
  position: relative;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid rgba(27, 26, 24, 0.18);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.detail-variant.is-active {
  border-color: var(--product-ink);
  box-shadow: inset 0 0 0 1px var(--product-ink);
}

.detail-variant span,
.detail-variant strong {
  display: block;
}

.detail-variant span {
  font-size: 0.72rem;
}

.detail-variant strong {
  margin-top: 3px;
  color: var(--product-accent);
  font-size: 0.92rem;
}

.detail-variant em {
  position: absolute;
  top: -9px;
  right: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--product-white);
  background: var(--product-accent);
  font-size: 0.55rem;
  font-style: normal;
}

.detail-purchase-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 22px;
  gap: 18px;
}

.detail-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.detail-price del {
  display: block;
  margin-top: 5px;
  color: var(--product-muted);
  font-size: 0.75rem;
}

.detail-price small {
  display: block;
  margin-top: 4px;
  color: var(--product-accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-add {
  min-width: 190px;
}

.detail-add:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.detail-purchase-actions {
  display: grid;
  min-width: 190px;
  gap: 8px;
}

.detail-restock-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  width: 100%;
}

.detail-restock-form label { display: grid; gap: 0.35rem; }
.detail-restock-form label span { font-size: 0.8rem; color: var(--muted, #74685e); }
.detail-restock-form input {
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(102, 75, 52, 0.24);
  border-radius: 0.65rem;
  background: rgba(255, 253, 247, 0.9);
  font: inherit;
}
.detail-restock-form small { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .detail-restock-form { grid-template-columns: 1fr; }
}

.detail-purchase-actions .detail-add {
  width: 100%;
}

.product-account {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--product-muted);
  border: 1px solid rgba(27, 26, 24, 0.14);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.product-account:hover {
  color: #fff;
  background: var(--product-accent);
  border-color: var(--product-accent);
}

.detail-note {
  margin-top: 12px;
  color: var(--product-muted);
  font-size: 0.68rem;
}

.detail-anchor-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid rgba(27, 26, 24, 0.13);
  border-bottom: 1px solid rgba(27, 26, 24, 0.13);
}

.detail-anchor-nav a {
  padding: 15px 8px;
  color: var(--product-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.detail-anchor-nav a + a {
  border-left: 1px solid rgba(27, 26, 24, 0.13);
}

.detail-anchor-nav a:hover {
  color: var(--product-accent);
}

.detail-section {
  width: min(1280px, calc(100% - clamp(40px, 8vw, 150px)));
  margin: 0 auto;
  padding: clamp(84px, 10vw, 150px) 0;
}

.detail-section__heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  margin-bottom: 46px;
  gap: 44px;
}

.detail-section__heading h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: 1.05;
}

.detail-section__heading p:last-child {
  align-self: end;
  color: var(--product-muted);
  line-height: 1.9;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(27, 26, 24, 0.15);
  border-left: 1px solid rgba(27, 26, 24, 0.15);
}

.spec-grid div {
  min-height: 146px;
  padding: 24px;
  border-right: 1px solid rgba(27, 26, 24, 0.15);
  border-bottom: 1px solid rgba(27, 26, 24, 0.15);
}

.spec-grid dt {
  color: var(--product-muted);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
}

.spec-grid dd {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brewing-section {
  width: 100%;
  padding-inline: clamp(20px, 5vw, 80px);
  background: #1e1c19;
}

.brewing-section .detail-section {
  color: var(--product-white);
}

.brewing-section .eyebrow {
  color: #d8c1ad;
}

.brewing-section .detail-section__heading p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.brew-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brew-step {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brew-step span {
  color: #d8c1ad;
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

.brew-step h3 {
  margin: 24px 0 14px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.brew-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.8;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(42px, 8vw, 130px);
}

.story-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.story-grid__copy p:not(.eyebrow) {
  margin-top: 26px;
  color: var(--product-muted);
  font-size: 1.02rem;
  line-height: 2;
}

.detail-markdown h3,
.detail-markdown h4 {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
}

.detail-markdown h3 { font-size: 1.35rem; }
.detail-markdown h4 { font-size: 1.1rem; }

.story-origin {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 13px;
  border-top: 1px solid rgba(27, 26, 24, 0.2);
  border-bottom: 1px solid rgba(27, 26, 24, 0.2);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.detail-long-image {
  display: block;
  width: min(1056px, 100%);
  height: auto;
  margin: 0 auto;
  background: #eee8de;
}

.related-section {
  width: 100%;
  padding-inline: clamp(20px, 5vw, 80px);
  background: #ebe4d8;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: block;
  color: var(--product-ink);
  background: var(--product-white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(20, 18, 16, 0.12);
}

.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.related-card__copy {
  padding: 20px;
}

.related-card__copy span {
  color: var(--product-muted);
  font-size: 0.66rem;
}

.related-card__copy p {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--product-muted);
  font-size: 0.76rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card__copy .related-availability {
  display: block;
  min-height: 0;
  margin: -2px 0 10px;
  color: #315f48;
  font-weight: 700;
  -webkit-line-clamp: initial;
}

.related-card__copy .related-availability[data-stock="out"] {
  color: #8f4c3c;
}

.related-card__copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 26, 24, 0.1);
}

.related-card__copy b {
  color: var(--product-accent);
  font-size: 1.1rem;
  font-weight: 400;
}

.related-card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.related-card strong {
  color: var(--product-accent);
  font-size: 0.88rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  padding: 36px clamp(20px, 5vw, 80px);
  color: var(--product-white);
  background: #151412;
}

.product-footer > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.product-footer .brand__mark {
  color: var(--product-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.product-footer p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .detail-hero,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-gallery {
    min-height: 680px;
  }

  .detail-main-image img {
    max-height: none;
  }

  .detail-summary {
    padding: 54px clamp(22px, 7vw, 74px) 66px;
  }

  .detail-section__heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-section__heading p:last-child {
    max-width: 680px;
  }

  .spec-grid,
  .brew-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .product-bag-toast {
    right: .75rem;
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-bag-toast,
  .product-bag-toast * {
    transition-duration: .01ms !important;
  }
}

/* WeChat Store product channel */
.detail-purchase-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.detail-purchase-actions {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  width: 100%;
  min-width: 0;
}

.detail-purchase-actions .button { width: 100%; min-height: 52px; }

.button--wechat-product {
  color: #2d6d4b;
  background: transparent;
  border: 1px solid #2d6d4b;
}

.button--wechat-product:hover,
.button--wechat-product:focus-visible {
  color: #fff;
  background: #2d6d4b;
  border-color: #2d6d4b;
}

.product-wechat-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  color: #34281e;
  background: #faf7f1;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 34px 110px rgba(27, 20, 15, .4);
  overflow: auto;
}

.product-wechat-dialog::backdrop {
  background: rgba(25, 20, 16, .68);
  backdrop-filter: blur(8px);
}

.product-wechat-dialog__shell { position: relative; padding: clamp(24px, 5vw, 40px); }
.product-wechat-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #4b3829;
  background: #eee5d8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
}
.product-wechat-dialog h2 { margin: 5px 45px 8px 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.product-wechat-dialog .eyebrow { margin: 0; color: #2d6d4b; }
.product-wechat-dialog__name { margin: 0; color: #73563f; font-weight: 750; }
.product-wechat-dialog__qr {
  display: grid;
  width: min(280px, 80%);
  margin: 20px auto 12px;
  padding: 12px;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(73, 52, 33, .14);
  border-radius: 16px;
}
.product-wechat-dialog__qr img { display: block; width: 100%; max-height: 410px; object-fit: contain; }
.product-wechat-dialog__instruction,
.product-wechat-dialog__tip { margin: 8px auto; text-align: center; }
.product-wechat-dialog__instruction { font-weight: 800; }
.product-wechat-dialog__tip { color: rgba(52, 40, 30, .65); font-size: .78rem; }
.product-wechat-dialog__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.product-wechat-copy { color: #4b3829; background: transparent; border: 1px solid rgba(75, 56, 41, .24); }
.product-wechat-dialog__separation {
  margin-top: 22px;
  padding: 15px;
  background: #eee5d8;
  border-radius: 12px;
}
.product-wechat-dialog__separation strong { display: block; margin-bottom: 5px; }
.product-wechat-dialog__separation p { margin: 0; color: rgba(52, 40, 30, .68); font-size: .76rem; line-height: 1.65; }
.product-wechat-dialog__support {
  display: inline-flex;
  margin-top: 11px;
  color: #24593e;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.product-wechat-dialog__status { min-height: 1.2em; margin: 10px 0 0; color: #2d6d4b; text-align: center; font-size: .76rem; }

@media (max-width: 680px) {
  .detail-purchase-actions { grid-template-columns: 1fr; }
  .product-wechat-dialog { width: calc(100% - 14px); max-height: calc(100svh - 14px); border-radius: 18px; }
  .product-wechat-dialog__shell { padding: 22px 16px; }
  .product-wechat-dialog__actions { display: grid; }
  .product-wechat-dialog__actions .button { width: 100%; }
}

@media (max-width: 680px) {
  .product-topbar {
    grid-template-columns: auto auto;
    padding-inline: 14px;
  }

  .product-topbar .brand__descriptor,
  .product-nav {
    display: none;
  }

  .product-topbar .language-switch {
    display: inline-flex;
    padding: 3px;
  }

  .product-topbar .lang-button {
    min-width: 38px;
    height: 38px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .product-account {
    display: none;
  }

  .product-mobile-menu {
    display: block;
  }

  .product-bag > span {
    display: none;
  }

  .product-topbar__tools {
    justify-self: end;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    padding: 12px;
  }

  .detail-main-image {
    height: auto;
    aspect-ratio: 1;
  }

  .detail-thumbnails {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .detail-thumbnail {
    width: 62px;
  }

  .detail-variants,
  .spec-grid,
  .brew-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-anchor-nav a + a {
    border-top: 1px solid rgba(27, 26, 24, 0.13);
    border-left: 0;
  }

  .detail-add {
    width: 100%;
  }

  .detail-section {
    width: min(calc(100% - 40px), 1280px);
  }

  .brewing-section,
  .related-section {
    padding-inline: 0;
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

/* Responsive purchase refinement */
.detail-mobile-buybar {
  display: none;
}

@media (min-width: 981px) and (max-width: 1240px) {
  .detail-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  }

  .detail-summary {
    padding-inline: clamp(34px, 4vw, 58px);
  }

  .detail-summary h1 {
    font-size: clamp(3rem, 4.5vw, 4.4rem);
  }
}

@media (max-width: 980px) {
  .product-page main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .detail-gallery {
    min-height: 0;
  }

  .detail-summary {
    padding-top: clamp(38px, 6vw, 54px);
  }

  .detail-mobile-buybar {
    position: fixed;
    z-index: 65;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 10px max(22px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    background: rgba(250, 247, 240, .94);
    border-top: 1px solid rgba(75, 57, 42, .14);
    box-shadow: 0 -16px 44px rgba(32, 27, 22, .12);
    backdrop-filter: blur(22px) saturate(120%);
  }

  .detail-mobile-buybar > span {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .detail-mobile-buybar small {
    overflow: hidden;
    color: var(--product-muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-mobile-buybar strong {
    color: var(--product-accent);
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 500;
  }

  .detail-mobile-buybar .button {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
  }
}

@media (max-width: 680px) {
  .product-topbar {
    min-height: 72px;
    padding: 10px 12px;
    gap: 10px;
  }

  .product-topbar .brand {
    gap: 8px;
  }

  .product-topbar .brand__mark {
    width: 36px;
    height: 36px;
  }

  .product-topbar .brand__text {
    font-size: .92rem;
    letter-spacing: .08em;
  }

  .product-topbar .language-switch {
    padding: 2px;
  }

  .product-topbar .lang-button {
    min-width: 44px;
    height: 44px;
    padding-inline: 5px;
    font-size: .69rem;
  }

  .product-bag {
    min-width: 44px;
    min-height: 44px;
    padding: 0 5px;
  }

  .product-bag strong {
    width: 30px;
    height: 30px;
  }

  .detail-gallery {
    padding: 10px;
    gap: 10px;
  }

  .detail-thumbnails {
    gap: 8px;
    padding-bottom: 2px;
  }

  .detail-thumbnail {
    width: 64px;
    min-height: 64px;
    border-radius: 8px;
  }

  .detail-summary {
    padding: 34px 20px 54px;
  }

  .detail-breadcrumb {
    margin-bottom: 24px;
  }

  .detail-summary h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.35rem, 11.2vw, 3.05rem);
    letter-spacing: .01em;
    line-height: 1.08;
  }

  .detail-copy {
    margin-top: 19px;
  }

  .detail-market {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .detail-sales {
    margin-top: 0;
  }

  .detail-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-variant {
    min-height: 72px;
  }

  .detail-mobile-buybar {
    grid-template-columns: minmax(0, .72fr) minmax(160px, 1.28fr);
    min-height: 74px;
    gap: 12px;
    padding-inline: 14px;
  }

  .detail-mobile-buybar .button {
    min-height: 50px;
    padding-inline: 14px;
  }

  .detail-section {
    width: min(calc(100% - 32px), 1280px);
  }
}

@media (max-width: 430px) {
  .product-topbar .brand__lockup {
    display: none;
  }
}

@media (max-width: 360px) {
  .product-topbar .brand__lockup {
    display: none;
  }

  .product-topbar {
    padding-inline: 8px;
  }

  .product-topbar__tools {
    gap: 4px;
  }

  .detail-mobile-buybar {
    grid-template-columns: minmax(0, .65fr) minmax(148px, 1.35fr);
    padding-inline: 10px;
  }
}

/* Product system v2: SKU-aware, accessible detail layout */
.product-page {
  --product-accent: #82543a;
  --product-accent-dark: #5f3a28;
  --product-line: rgba(75, 57, 42, .14);
  --product-muted: rgba(41, 34, 29, .65);
}

.product-page .product-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.product-page .product-nav {
  justify-content: center;
}

.product-currency-switch {
  display: inline-flex;
}

.product-mobile-locales {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--product-line);
}

.product-mobile-locales label {
  display: grid;
  gap: 6px;
  color: var(--product-muted);
  font-size: .7rem;
}

.product-mobile-locales select {
  min-height: 44px;
  padding-inline: 12px;
  background: #fffdf9;
  border: 1px solid var(--product-line);
}

.product-currency-switch select {
  min-width: 82px;
  min-height: 42px;
  padding: 0 24px 0 9px;
  color: #3e332c;
  background: rgba(255, 253, 249, .86);
  border: 1px solid var(--product-line);
  border-radius: 999px;
  font-size: .7rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  width: min(1480px, 100%);
  min-height: 0;
  margin: 0 auto;
  background: #f8f5ee;
  border-bottom: 1px solid var(--product-line);
}

.detail-gallery {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 4vw, 62px);
  background: #efeae1;
}

.detail-main-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f9f7f2;
  border: 1px solid rgba(75, 57, 42, .08);
}

.detail-main-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  order: 2;
  width: 100%;
}

.detail-thumbnail {
  overflow: hidden;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  background: #f9f7f2;
  border: 1px solid transparent;
  border-radius: 0;
}

.detail-thumbnail.is-active {
  border-color: var(--product-accent);
  box-shadow: 0 0 0 1px var(--product-accent);
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumbnail:focus-visible,
.detail-variant:focus-visible,
.quantity-stepper button:focus-visible,
.quantity-stepper input:focus-visible,
.product-currency-switch select:focus-visible {
  outline: 2px solid var(--product-accent);
  outline-offset: 3px;
}

.detail-summary {
  align-self: start;
  min-width: 0;
  padding: clamp(42px, 5vw, 78px) clamp(30px, 5vw, 74px);
}

.detail-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  color: var(--product-muted);
  font-size: .75rem;
}

.detail-breadcrumb a {
  color: inherit;
}

.detail-summary h1 {
  max-width: 11ch;
  margin: 12px 0 0;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  line-height: 1.03;
}

.detail-subtitle {
  margin-top: 17px;
  color: var(--product-muted);
}

.detail-copy {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(41, 34, 29, .78);
  line-height: 1.85;
}

.detail-taste-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.detail-taste-tags li {
  padding: 7px 10px;
  color: #735039;
  background: rgba(130, 84, 58, .07);
  border: 1px solid rgba(130, 84, 58, .15);
  border-radius: 999px;
  font-size: .74rem;
}

.detail-stock {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 23px 0 0;
  color: #31533d;
  font-size: .8rem;
  font-weight: 700;
}

.detail-stock > span {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.detail-stock[data-stock="low"] {
  color: #936128;
}

.detail-stock[data-stock="out"] {
  color: #766f68;
}

fieldset.detail-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

.detail-variants legend {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 3px;
  color: rgba(41, 34, 29, .72);
  font-size: .78rem;
  font-weight: 700;
}

.detail-variant {
  position: relative;
  display: grid;
  min-height: 94px;
  align-content: start;
  gap: 6px;
  padding: 14px;
  color: #342b25;
  text-align: left;
  background: rgba(255, 253, 249, .66);
  border: 1px solid var(--product-line);
  border-radius: 10px;
}

.detail-variant.is-active {
  background: #fffdf9;
  border-color: var(--product-accent);
  box-shadow: inset 0 0 0 1px var(--product-accent);
}

.detail-variant[data-sold-out="true"] {
  color: #77716b;
  background: rgba(238, 234, 226, .6);
}

.detail-variant span,
.detail-variant strong {
  padding-right: 42px;
}

.detail-variant strong {
  color: var(--product-accent-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.detail-variant small {
  color: var(--product-muted);
  font-size: .66rem;
}

.detail-variant em {
  position: absolute;
  top: 10px;
  right: 9px;
  padding: 4px 6px;
  color: #fff;
  background: var(--product-accent);
  border-radius: 999px;
  font-size: .58rem;
  font-style: normal;
}

.detail-purchase {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--product-line);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price > strong {
  color: var(--product-accent-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
}

.detail-price del {
  color: var(--product-muted);
}

.detail-quantity {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 7px 14px;
}

.detail-quantity > span {
  color: rgba(41, 34, 29, .72);
  font-size: .78rem;
  font-weight: 700;
}

.detail-quantity > small {
  grid-column: 1 / -1;
  color: var(--product-muted);
  font-size: .68rem;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 42px 54px 42px;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(75, 57, 42, .22);
  border-radius: 10px;
}

.quantity-stepper button,
.quantity-stepper input {
  min-width: 0;
  color: #342b25;
  text-align: center;
  background: #fffdf9;
  border: 0;
}

.quantity-stepper input {
  width: 54px;
  border-right: 1px solid rgba(75, 57, 42, .14);
  border-left: 1px solid rgba(75, 57, 42, .14);
  appearance: textfield;
}

.quantity-stepper button:disabled {
  color: rgba(41, 34, 29, .3);
}

.detail-purchase-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-purchase-actions .button {
  width: 100%;
  min-height: 54px;
}

.detail-purchase-actions .button--wechat-product,
.detail-purchase-actions .detail-restock {
  grid-column: 1 / -1;
}

.detail-note {
  margin-top: 15px;
  color: var(--product-muted);
  font-size: .72rem;
}

.detail-anchor-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 26px;
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
}

.detail-anchor-nav a {
  flex: 1 1 33.33%;
  min-width: 140px;
  padding: 13px 9px;
  color: rgba(41, 34, 29, .72);
  text-align: center;
  text-decoration: none;
  border: 0;
}

.detail-section {
  width: min(1280px, calc(100% - clamp(32px, 7vw, 112px)));
  padding-block: clamp(76px, 8vw, 128px);
}

.detail-section + .detail-section {
  border-top: 1px solid rgba(75, 57, 42, .09);
}

.quick-facts-grid,
.selling-points-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-facts-grid article,
.selling-points-grid article {
  min-height: 190px;
  padding: clamp(22px, 2.5vw, 34px);
  background: rgba(250, 247, 240, .72);
  border: 1px solid var(--product-line);
}

.quick-facts-grid h3,
.selling-points-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
}

.quick-facts-grid p,
.selling-points-grid p {
  margin: 14px 0 0;
  color: var(--product-muted);
  line-height: 1.75;
}

.selling-points-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selling-points-grid article > span {
  display: block;
  margin-bottom: 36px;
  color: #9a775e;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.story-grid {
  align-items: stretch;
}

.story-grid > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #f1ece4;
}

.flavor-profile-grid {
  display: grid;
  gap: 16px;
}

.flavor-profile-grid > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 18px;
}

.flavor-profile-grid meter {
  width: 100%;
  height: 10px;
}

.spec-grid {
  align-items: stretch;
}

.detail-visual-section {
  width: min(1100px, calc(100% - clamp(24px, 7vw, 112px)));
}

.detail-long-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

.related-section .detail-section {
  width: min(1480px, calc(100% - clamp(32px, 6vw, 96px)));
}

.related-grid.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
}

@media (max-width: 1180px) {
  .product-page .product-topbar {
    grid-template-columns: auto auto;
  }

  .product-page .product-nav {
    display: none;
  }

  .product-page .product-mobile-menu {
    display: block;
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  }

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

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

@media (max-width: 820px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    padding: 18px;
  }

  .detail-summary {
    padding: 38px 24px 54px;
  }

  .detail-summary h1 {
    font-size: clamp(2.7rem, 11vw, 4.3rem);
  }

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

  .story-grid > img {
    min-height: 0;
    aspect-ratio: 1;
  }

  .selling-points-grid,
  .related-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-topbar__tools {
    gap: 5px;
  }

  .product-currency-switch select {
    min-width: 72px;
    width: 72px;
  }

  .product-topbar__tools > .language-switch,
  .product-topbar__tools > .product-currency-switch {
    display: none;
  }

  .detail-thumbnails {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  fieldset.detail-variants,
  .detail-purchase-actions,
  .quick-facts-grid,
  .selling-points-grid,
  .related-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .detail-purchase-actions .button--wechat-product,
  .detail-purchase-actions .detail-restock {
    grid-column: auto;
  }

  .detail-section,
  .related-section .detail-section {
    width: min(100% - 28px, 1280px);
  }

  .quick-facts-grid article,
  .selling-points-grid article {
    min-height: 0;
  }

  .flavor-profile-grid > div {
    grid-template-columns: 92px minmax(0, 1fr) 30px;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .detail-summary {
    padding-inline: 18px;
  }

  .detail-mobile-buybar {
    grid-template-columns: minmax(0, .8fr) minmax(136px, 1.2fr);
  }
}

/* 2026-07-30 editorial product polish */
.product-page .product-topbar {
  min-height: 68px;
  padding-block: 8px;
  background: rgba(247, 243, 235, .94);
}

.product-page .product-topbar .brand__text,
.product-page .product-topbar .product-nav a,
.product-page .product-topbar .lang-button {
  color: rgba(31, 27, 23, .72);
}

.product-page .product-topbar .brand__descriptor {
  color: rgba(31, 27, 23, .46);
}

.product-page .product-topbar .lang-button.is-active {
  color: #fffdf9;
}

@media (min-width: 1181px) {
  .product-page .product-nav .nav-secondary {
    display: none !important;
  }

  .product-page .product-nav {
    flex-wrap: nowrap;
    gap: clamp(22px, 2.2vw, 34px);
  }

  .product-page .product-nav a {
    padding: 9px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
  }
}

.product-page .product-bag {
  min-height: 40px;
  padding-left: 12px;
  border-color: rgba(36, 30, 25, .32);
  background: transparent;
}

.detail-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
  width: min(1500px, 100%);
  background: #f7f3eb;
}

.detail-gallery {
  align-self: start;
  min-height: 0;
  padding: clamp(24px, 3.4vw, 50px);
  background: #e9e3d9;
}

.detail-main-image {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 1;
  background: #f2eee7;
}

.detail-main-image > img {
  object-position: center;
}

.detail-thumbnails {
  gap: 8px;
}

.detail-thumbnail {
  opacity: .62;
  transition: opacity .2s ease, border-color .2s ease;
}

.detail-thumbnail:hover,
.detail-thumbnail.is-active {
  opacity: 1;
}

.detail-thumbnail.is-active {
  border-color: rgba(82, 52, 35, .68);
  box-shadow: none;
}

.detail-summary {
  align-content: start;
  padding: clamp(30px, 3.6vw, 54px) clamp(32px, 4.8vw, 68px);
  background: #fbf8f2;
}

.detail-breadcrumb {
  margin-bottom: 14px;
  font-size: .69rem;
  letter-spacing: .045em;
}

.detail-badge {
  margin: 0 0 10px;
  padding: 0 0 7px;
  color: #775039;
  border: 0;
  border-bottom: 1px solid rgba(119, 80, 57, .32);
  border-radius: 0;
  font-size: .65rem;
}

.detail-summary h1 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(3.15rem, 4.55vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: .015em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.detail-subtitle {
  margin-top: 14px;
  color: rgba(45, 37, 31, .58);
  font-size: .77rem;
  letter-spacing: .055em;
}

.detail-copy {
  margin-top: 16px;
  color: rgba(41, 34, 29, .7);
  font-size: .9rem;
  line-height: 1.8;
}

.detail-taste-tags {
  align-items: center;
  gap: 0;
  margin-top: 12px;
}

.detail-taste-tags li {
  padding: 0;
  color: rgba(92, 59, 40, .72);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .72rem;
}

.detail-taste-tags li + li::before {
  margin: 0 9px;
  color: rgba(92, 59, 40, .3);
  content: "·";
}

.detail-authoritative-price {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--product-line);
}

.detail-authoritative-price > strong {
  font-size: clamp(2.25rem, 3.1vw, 2.9rem);
}

fieldset.detail-variants {
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(73, 55, 43, .15);
}

.detail-variants legend {
  padding: 14px 0 8px;
  font-size: .73rem;
  letter-spacing: .045em;
}

.detail-variant {
  min-height: 66px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(73, 55, 43, .15);
  border-radius: 0;
  background: transparent;
}

.detail-variant:nth-of-type(odd) {
  border-right: 1px solid rgba(73, 55, 43, .15);
}

.detail-variant.is-active {
  color: #35261d;
  border-color: rgba(73, 55, 43, .32);
  background: rgba(130, 84, 58, .055);
  box-shadow: inset 3px 0 #82543a;
}

.detail-variant[data-sold-out="true"] {
  background: transparent;
  opacity: .58;
}

.detail-variant span,
.detail-variant strong {
  padding-right: 35px;
}

.detail-variant em {
  top: 12px;
  padding: 2px 5px;
  border-radius: 2px;
}

.detail-stock {
  margin-top: 12px;
  font-size: .72rem;
  font-weight: 650;
}

.detail-stock > span {
  width: 6px;
  height: 6px;
}

.detail-purchase {
  gap: 18px;
  margin-top: 12px;
  padding-top: 14px;
}

.detail-quantity {
  gap: 7px 16px;
}

.quantity-stepper {
  grid-template-columns: 40px 52px 40px;
  min-height: 42px;
  border-radius: 0;
}

.detail-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
}

.detail-purchase-actions .detail-add {
  min-height: 56px;
  border-radius: 0;
  background: #2e4938;
  border-color: #2e4938;
}

.detail-buy-now {
  min-height: 44px;
  padding: 0;
  color: #66432f;
  border: 0;
  border-bottom: 1px solid rgba(102, 67, 47, .4);
  background: transparent;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 650;
}

.detail-buy-now span {
  margin-left: 8px;
}

.detail-purchase-actions .button--wechat-product {
  grid-column: 1 / -1;
  min-height: 44px;
  color: #2d6d4b;
  border: 0;
  border-bottom: 1px solid rgba(45, 109, 75, .34);
  border-radius: 0;
  text-align: left;
}

.detail-note {
  max-width: 480px;
  margin-top: 13px;
  line-height: 1.65;
}

.detail-anchor-nav {
  margin-top: 28px;
}

.detail-anchor-nav a {
  padding-block: 12px;
  font-size: .66rem;
}

.detail-section {
  padding-block: clamp(72px, 7vw, 112px);
}

.detail-section__heading {
  margin-bottom: 40px;
}

.detail-section__heading h2 {
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  text-wrap: balance;
}

.quick-facts-grid,
.selling-points-grid {
  gap: 0;
  border-top: 1px solid rgba(73, 55, 43, .16);
}

.quick-facts-grid article,
.selling-points-grid article {
  min-height: 154px;
  padding: 25px clamp(18px, 2vw, 30px);
  border: 0;
  border-right: 1px solid rgba(73, 55, 43, .12);
  border-bottom: 1px solid rgba(73, 55, 43, .16);
  background: transparent;
}

.quick-facts-grid article:last-child,
.selling-points-grid article:last-child {
  border-right: 0;
}

.quick-facts-grid h3,
.selling-points-grid h3 {
  font-size: 1.12rem;
}

.selling-points-grid article > span {
  margin-bottom: 24px;
  color: rgba(120, 83, 58, .62);
  font-size: 1.15rem;
}

.story-grid {
  gap: clamp(38px, 7vw, 108px);
}

.story-grid > img {
  background: #ebe5db;
}

.brewing-section {
  background: #16271d;
}

.brew-step {
  min-height: 230px;
  border-color: rgba(255, 255, 255, .14);
}

.detail-mobile-buybar {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: opacity .3s ease, transform .38s cubic-bezier(.2,.8,.2,1);
}

.show-mobile-buybar .detail-mobile-buybar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .product-page .product-account {
    display: none;
  }

  .product-page .product-bag > span {
    display: none;
  }

  .product-page .product-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .product-page .product-mobile-menu {
    display: block;
  }

  .product-page .product-topbar__tools {
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    padding: 16px;
  }

  .detail-summary {
    padding: 40px clamp(22px, 6vw, 48px) 58px;
  }

  .detail-summary h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 9.8vw, 4.1rem);
  }

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

@media (max-width: 600px) {
  .product-page .product-topbar {
    min-height: 66px;
    padding: 8px 10px;
  }

  .product-page .product-topbar__tools > .language-switch {
    display: inline-flex;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .product-page .product-topbar .lang-button {
    min-width: 31px;
    height: 38px;
    padding: 0 5px;
    border-radius: 0;
    font-size: .65rem;
  }

  .product-page .product-topbar .lang-button.is-active {
    color: #684630;
    background: transparent;
    box-shadow: inset 0 -1px #684630;
  }

  .product-mobile-menu > summary,
  .product-bag {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .product-bag strong {
    width: 27px;
    height: 27px;
  }

  .detail-gallery {
    padding: 10px 10px 14px;
  }

  .detail-summary {
    padding: 36px 18px 54px;
  }

  .detail-breadcrumb {
    margin-bottom: 20px;
  }

  .detail-summary h1 {
    max-width: 8ch;
    font-size: clamp(2.65rem, 12.6vw, 3.3rem);
    line-height: 1.08;
    text-wrap: balance;
    word-break: keep-all;
  }

  .detail-authoritative-price {
    margin-top: 22px;
  }

  fieldset.detail-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-purchase-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .detail-purchase-actions .button--wechat-product {
    grid-column: 1 / -1;
  }

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

  .quick-facts-grid article,
  .selling-points-grid article {
    min-height: 0;
    padding: 20px 14px;
  }

  .quick-facts-grid article:nth-child(2n) {
    border-right: 0;
  }

  .selling-points-grid {
    grid-template-columns: 1fr;
  }

  .selling-points-grid article {
    border-right: 0;
  }

  .detail-mobile-buybar {
    grid-template-columns: minmax(0, .72fr) minmax(150px, 1.28fr);
    min-height: 70px;
    padding-block: 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .detail-mobile-buybar .button {
    min-height: 48px;
    border-radius: 0;
  }
}

@media (max-width: 350px) {
  .product-page .product-topbar .lang-button {
    min-width: 28px;
    padding-inline: 3px;
  }

  .product-page .product-topbar__tools {
    gap: 2px;
  }

  .detail-summary h1 {
    font-size: 2.48rem;
  }
}
