@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@600;700;900&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap");

:root {
  --paper: rgba(255, 252, 246, 0.92);
  --paper-2: rgba(255, 249, 238, 0.94);
  --primary-dark: #4c2d18;
  --brown: #6f4d37;
  --muted: #8c7562;
  --line: rgba(198, 147, 88, 0.44);
  --danger: #b75c45;
  --shadow: 0 18px 40px rgba(83, 48, 21, 0.12);
  --font-title: "Noto Serif TC", "Zen Maru Gothic", serif;
  --font-body: "Zen Maru Gothic", "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--primary-dark);
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(255, 246, 223, 0.68), rgba(255, 242, 208, 0.68)),
    url("./assets/page-bg.webp") center top / cover no-repeat fixed;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(880px, calc(100% - 20px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.hero-card,
.card,
.quick-menu {
  border: 4px solid rgba(198, 147, 88, 0.56);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.98fr);
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto 18px 18px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(246, 222, 182, 0.34);
  filter: blur(4px);
  z-index: 0;
}

.hero-copy, .hero-visual { position: relative; z-index: 1; }

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #b38a62;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-shell {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(111, 77, 55, 0.10));
}

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--primary-dark);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.16;
  letter-spacing: 0.05em;
}

.store-name {
  margin: 10px 0 0;
  font-size: clamp(1.08rem, 2.8vw, 1.35rem);
  color: var(--brown);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.85;
}

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

.hero-link,
.ghost-link,
.primary-button,
.secondary-button,
.footer-contact {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.hero-link:hover,
.ghost-link:hover,
.primary-button:hover,
.secondary-button:hover,
.footer-contact:hover {
  transform: translateY(-1px);
}

.hero-link,
.primary-button,
.footer-contact {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #cf9657, #bb7840);
  box-shadow: 0 12px 24px rgba(118, 70, 31, 0.16);
}

.ghost-link,
.secondary-button {
  color: var(--brown);
  border: 2px solid rgba(198, 147, 88, 0.65);
  background: rgba(255, 252, 246, 0.78);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: min(100%, 360px);
  display: block;
  filter: drop-shadow(0 16px 24px rgba(111, 77, 55, 0.14));
}

.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
  border-radius: 30px;
  overflow: hidden;
}

.quick-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px 18px;
  color: var(--primary-dark);
  text-align: center;
  text-decoration: none;
  border-right: 3px solid rgba(198, 147, 88, 0.30);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.58), rgba(255, 248, 236, 0.92));
}

.quick-card:last-child { border-right: 0; }

.quick-illustration {
  width: min(100%, 92px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(111, 77, 55, 0.08));
}

.quick-card strong {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: 0.10em;
}

.quick-card small {
  color: var(--muted);
  font-weight: 900;
}

.decor-divider {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
  opacity: 0.94;
}


.card {
  margin: 18px 0;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 32px;
}

.section-title { margin-bottom: 16px; }

.section-title h2,
.quantity-row h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  letter-spacing: 0.06em;
}

.section-title p,
.helper-text {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 800;
}

.variant-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.variant-button,
.flavor-card {
  border: 2px solid rgba(198, 147, 88, 0.34);
  background: #fffdf8;
  color: var(--primary-dark);
  transition: 0.16s ease;
}

.variant-button {
  min-height: 96px;
  padding: 16px;
  border-radius: 22px;
  text-align: left;
}

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

.variant-button strong {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.variant-button span {
  color: var(--muted);
  font-weight: 800;
}

.variant-button.active,
.flavor-card.selected,
.method-row label:has(input:checked) {
  border-color: rgba(177, 117, 58, 0.75);
  background: linear-gradient(135deg, #cf9657, #bb7840);
  color: #fff;
  box-shadow: 0 12px 24px rgba(108, 62, 24, 0.12);
}

.variant-button.active span,
.flavor-card.selected strong { color: #fff; }

.flavor-sections {
  display: grid;
  gap: 18px;
}

.flavor-section {
  display: grid;
  gap: 10px;
}

.flavor-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brown);
}

.flavor-section-title strong {
  font-family: var(--font-title);
  font-size: 1.18rem;
}

.flavor-section-title span,
.flavor-selection-counter {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.96);
  border: 1px solid rgba(198, 147, 88, 0.30);
  color: var(--brown);
  font-weight: 900;
}

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

.flavor-card {
  min-height: 58px;
  padding: 10px 8px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
}

.flavor-card strong {
  color: var(--primary-dark);
  font-size: 0.96rem;
  line-height: 1.25;
}

.quantity-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 48px 54px 48px;
  align-items: center;
  overflow: hidden;
  border: 2px solid rgba(198, 147, 88, 0.34);
  border-radius: 999px;
  background: #fffaf0;
}

.stepper button {
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-weight: 900;
  font-size: 1.25rem;
}

.stepper strong { text-align: center; }

.primary-button {
  width: 100%;
  margin-top: 18px;
  font-size: 1.02rem;
}

.error-text,
.status-text {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 900;
}

.status-text { color: var(--brown); }

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-list.empty {
  padding: 18px;
  border-radius: 20px;
  background: #fff8eb;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(198, 147, 88, 0.24);
  border-radius: 18px;
  background: #fffdf8;
}

.cart-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.cart-item button {
  align-self: center;
  min-width: 62px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(243, 223, 195, 0.95);
  color: var(--brown);
  font-weight: 900;
}

.total-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed rgba(198, 147, 88, 0.38);
  font-weight: 900;
}

.total-row strong,
.summary-total strong {
  font-size: 1.35rem;
  color: var(--brown);
}

.method-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.method-row label {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border: 2px solid rgba(198, 147, 88, 0.34);
  border-radius: 20px;
  background: #fffdf8;
  color: var(--brown);
  font-weight: 900;
  text-align: center;
  transition: 0.16s ease;
}

.method-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.method-row label span {
  display: block;
  width: 100%;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-weight: 900;
}

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

input,
textarea {
  width: 100%;
  border: 2px solid rgba(198, 147, 88, 0.34);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffef9;
  color: var(--primary-dark);
  outline: none;
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
  border-color: rgba(177, 117, 58, 0.84);
  box-shadow: 0 0 0 4px rgba(199, 151, 90, 0.12);
}

.hidden { display: none !important; }

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.notice-box,
.summary-alert {
  padding: 14px;
  border-radius: 18px;
  background: #fff7e6;
  border: 1px solid rgba(198, 147, 88, 0.28);
}

.notice-box strong,
.summary-alert strong {
  color: var(--brown);
  font-family: var(--font-title);
}

.notice-box p,
.summary-alert p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 800;
}

.footer {
  padding: 40px 0 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  scroll-margin-top: 22px;
}

.footer p {
  margin: 7px 0;
  line-height: 1.6;
}

.footer-contact {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 18px;
  font-size: 0.94rem;
  box-shadow: none;
}

.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 34, 18, 0.42);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 24px;
  border: 4px solid rgba(198, 147, 88, 0.64);
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(54, 31, 14, 0.30);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2ddbd;
  color: var(--brown);
  font-size: 1.5rem;
  font-weight: 900;
}

.modal-panel h2 {
  margin: 0;
  padding-right: 36px;
}

.modal-note {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 800;
}

.order-summary {
  display: grid;
  gap: 12px;
}

.summary-block {
  padding: 14px;
  border-radius: 20px;
  background: #fff8eb;
  border: 1px solid rgba(198, 147, 88, 0.25);
}

.summary-block h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.summary-block p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 800;
}

.summary-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(198, 147, 88, 0.26);
}

.summary-item:last-child { border-bottom: 0; }

.modal-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 16px;
}

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

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

  .hero-visual {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }
}

@media (max-width: 680px) {
  .page-shell { width: min(100% - 18px, 620px); }

  .hero-card,
  .card {
    border-radius: 28px;
  }

  .brand-shell {
    width: 58px;
    height: 58px;
  }

  .quick-menu,
  .variant-buttons,
  .form-grid,
  .notice-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 178px;
    border-right: 0;
    border-bottom: 3px solid rgba(198, 147, 88, 0.30);
  }

  .quick-card:last-child { border-bottom: 0; }

  .quick-illustration {
    width: min(100%, 116px);
  }

  .quantity-row,
  .cart-item {
    align-items: stretch;
    flex-direction: column;
  }

  .stepper { width: fit-content; }
}


/* v0.12 stability fixes */
.hero-card {
  gap: 12px;
}

.hero-visual img {
  max-height: 380px;
  object-fit: contain;
}

.quick-card {
  padding: 18px 14px 16px;
}

.quick-card strong {
  line-height: 1.2;
}

.variant-button,
.flavor-card,
.method-row label {
  overflow: hidden;
}

.variant-button.active,
.flavor-card.selected,
.method-row label:has(input:checked) {
  background-image: linear-gradient(135deg, #cf9657, #bb7840);
  background-size: auto;
}

.primary-button,
.hero-link,
.footer-contact {
  background-size: 100% 100%;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px 18px 18px;
  }

  .hero-note {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-visual {
    justify-content: center;
    padding-top: 4px;
  }

  .hero-visual img {
    width: min(100%, 270px);
    max-height: 270px;
  }

  .quick-menu {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 124px;
    grid-template-columns: 76px 1fr;
    align-items: center;
    align-content: center;
    justify-items: start;
    text-align: left;
    gap: 6px 14px;
    border-right: 0;
    border-bottom: 3px solid rgba(198, 147, 88, 0.30);
  }

  .quick-card:last-child {
    border-bottom: 0;
  }

  .quick-illustration {
    width: 72px;
    grid-row: 1 / span 2;
  }

  .quick-card strong,
  .quick-card small {
    align-self: center;
  }

  .quick-card strong {
    font-size: 1.4rem;
    letter-spacing: 0.06em;
  }

  .quick-card small {
    font-size: 0.9rem;
  }

  .decor-divider img {
    width: min(100%, 220px);
  }

  .method-row,
  .variant-buttons,
  .form-grid,
  .notice-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 14px);
  }

  .hero-card,
  .card {
    border-radius: 24px;
  }

  .brand-line {
    gap: 12px;
  }

  .brand-shell {
    width: 50px;
    height: 50px;
  }

  h1 {
    font-size: 2rem;
  }

  .store-name {
    font-size: 1rem;
  }

  .hero-link,
  .ghost-link,
  .primary-button,
  .secondary-button,
  .footer-contact {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .quick-card {
    min-height: 112px;
    padding: 14px 12px;
    grid-template-columns: 62px 1fr;
    gap: 4px 10px;
  }

  .quick-illustration {
    width: 58px;
  }

  .quick-card strong {
    font-size: 1.2rem;
  }

  .flavor-card {
    min-height: 54px;
    padding: 8px 6px;
  }

  .flavor-card strong {
    font-size: 0.9rem;
  }

  .modal-panel {
    padding: 18px 16px;
  }
}


/* v0.13 image integration refinements */
.hero-visual {
  padding: 8px 0 4px;
}

.hero-visual img {
  width: min(100%, 330px);
  max-height: 340px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.98;
  filter: drop-shadow(0 10px 18px rgba(111, 77, 55, 0.08));
}

.quick-illustration {
  width: min(100%, 78px);
  mix-blend-mode: multiply;
  opacity: 0.96;
  filter: none;
}

.quick-card {
  min-height: 162px;
}

.decor-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 8px;
  opacity: 0.95;
}

.divider-line {
  width: min(34vw, 150px);
  height: 2px;
  border-radius: 999px;
  background: rgba(178, 139, 95, 0.9);
  position: relative;
}

.divider-line::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(178, 139, 95, 0.9);
}

.decor-divider .divider-line:first-child::after {
  right: auto;
  left: -12px;
}

.divider-shell {
  width: 34px;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.96;
}

@media (min-width: 761px) {
  .hero-card {
    align-items: center;
  }

  .hero-visual img {
    width: min(100%, 350px);
    max-height: 360px;
  }

  .quick-illustration {
    width: min(100%, 88px);
  }
}

@media (max-width: 760px) {
  .hero-visual img {
    width: min(100%, 240px);
    max-height: 240px;
  }

  .quick-card {
    min-height: 108px;
  }

  .quick-illustration {
    width: 60px;
  }

  .decor-divider {
    gap: 10px;
    margin: 8px 0 6px;
  }

  .divider-line {
    width: min(26vw, 96px);
  }

  .divider-shell {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 420px) {
  .hero-visual img {
    width: min(100%, 220px);
    max-height: 220px;
  }

  .quick-illustration {
    width: 54px;
  }

  .divider-line {
    width: min(22vw, 70px);
  }

  .divider-shell {
    width: 24px;
    height: 24px;
  }
}


/* v0.14 stable button system: images are for atmosphere, CSS is for controls */
.hero-link,
.primary-button,
.footer-contact {
  border: 0 !important;
  color: #fff !important;
  background-image: none !important;
  background: linear-gradient(135deg, #cf9657, #bb7840) !important;
  box-shadow: 0 12px 24px rgba(118, 70, 31, 0.16);
}

.ghost-link,
.secondary-button {
  color: var(--brown) !important;
  border: 2px solid rgba(198, 147, 88, 0.65) !important;
  background-image: none !important;
  background: rgba(255, 252, 246, 0.78) !important;
  box-shadow: none !important;
}

.variant-button.active,
.flavor-card.selected,
.method-row label:has(input:checked) {
  border-color: rgba(177, 117, 58, 0.75) !important;
  background-image: none !important;
  background: linear-gradient(135deg, #cf9657, #bb7840) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(108, 62, 24, 0.12);
}

.hero-link,
.ghost-link,
.primary-button,
.secondary-button,
.footer-contact,
.variant-button,
.flavor-card,
.method-row label {
  -webkit-tap-highlight-color: transparent;
}


/* v0.15 transparent shell icon fix */
.brand-shell,
.divider-shell {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.brand-shell {
  object-fit: contain;
}


/* v0.16 hero layout revisions */
.brand-shell {
  margin-left: -10px;
  margin-right: 2px;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  justify-content: flex-end;
  align-items: flex-end;
  padding-left: 8px;
}

.hero-visual img {
  margin-left: auto;
  object-position: 55% center;
}

.hero-quick-menu {
  margin-top: 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}

.hero-quick-menu .quick-card {
  min-height: 126px;
  border: 2px solid rgba(198, 147, 88, 0.42);
  border-right: 2px solid rgba(198, 147, 88, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.78), rgba(255, 248, 236, 0.96));
}

@media (min-width: 761px) {
  .hero-card {
    grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
  }

  .hero-quick-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .hero-quick-menu .quick-card {
    min-height: 118px;
    padding: 16px 12px 14px;
  }

  .hero-quick-menu .quick-illustration {
    width: 56px;
  }

  .hero-visual img {
    width: min(100%, 375px);
    max-height: 385px;
  }
}

@media (max-width: 760px) {
  .hero-card {
    gap: 10px;
  }

  .hero-quick-menu {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .hero-quick-menu .quick-card {
    min-height: 96px;
    grid-template-columns: 56px 1fr;
    align-items: center;
    align-content: center;
    justify-items: start;
    text-align: left;
    gap: 4px 10px;
    padding: 12px 12px;
    border-bottom: 2px solid rgba(198, 147, 88, 0.42);
  }

  .hero-quick-menu .quick-card:last-child {
    border-bottom: 2px solid rgba(198, 147, 88, 0.42);
  }

  .hero-quick-menu .quick-illustration {
    width: 48px;
    grid-row: 1 / span 2;
  }

  .hero-quick-menu .quick-card strong {
    font-size: 1.08rem;
  }

  .hero-quick-menu .quick-card small {
    font-size: 0.84rem;
  }

  .hero-visual {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 4px;
  }

  .hero-visual img {
    width: min(100%, 235px);
    max-height: 235px;
    object-position: 60% center;
  }
}

@media (max-width: 420px) {
  .brand-shell {
    margin-left: -8px;
  }

  .hero-quick-menu .quick-card {
    min-height: 92px;
    grid-template-columns: 52px 1fr;
  }

  .hero-quick-menu .quick-illustration {
    width: 44px;
  }

  .hero-visual img {
    width: min(100%, 228px);
    max-height: 228px;
    object-position: 62% center;
  }
}


/* v0.17 hero function buttons: compact, same bottom line as image */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(170px, 1.08fr);
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}

.hero-bottom .hero-quick-menu {
  align-self: end;
}

.hero-bottom .hero-visual {
  align-self: end;
  justify-content: flex-end;
  padding: 0;
}

.hero-bottom .hero-visual img {
  width: min(100%, 260px);
  max-height: 260px;
  object-fit: contain;
  object-position: 62% center;
}

.hero-bottom .hero-quick-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.hero-bottom .hero-quick-menu .quick-card {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  align-content: center;
  justify-items: start;
  text-align: left;
  gap: 2px 10px;
  padding: 8px 10px;
  border: 2px solid rgba(198, 147, 88, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.78), rgba(255, 248, 236, 0.96));
}

.hero-bottom .hero-quick-menu .quick-illustration {
  width: 38px;
  grid-row: 1 / span 2;
}

.hero-bottom .hero-quick-menu .quick-card strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.hero-bottom .hero-quick-menu .quick-card small {
  font-size: 0.78rem;
  line-height: 1.2;
}

.brand-shell {
  object-fit: contain;
  object-position: center;
  margin-left: -14px;
  width: 72px;
  height: 72px;
}

/* Make sure older quick-menu mobile rules do not over-enlarge hero buttons */
@media (max-width: 760px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 0.94fr) minmax(150px, 1.06fr);
    gap: 10px;
    margin-top: 12px;
    align-items: end;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 210px);
    max-height: 210px;
    object-position: 64% center;
  }

  .hero-bottom .hero-quick-menu {
    gap: 7px;
  }

  .hero-bottom .hero-quick-menu .quick-card {
    min-height: 62px;
    grid-template-columns: 36px 1fr;
    gap: 1px 8px;
    padding: 7px 8px;
    border-radius: 16px;
  }

  .hero-bottom .hero-quick-menu .quick-illustration {
    width: 32px;
  }

  .hero-bottom .hero-quick-menu .quick-card strong {
    font-size: 0.9rem;
  }

  .hero-bottom .hero-quick-menu .quick-card small {
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .brand-shell {
    margin-left: -12px;
    width: 62px;
    height: 62px;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 0.9fr) minmax(136px, 1.1fr);
    gap: 8px;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 198px);
    max-height: 198px;
    object-position: 66% center;
  }

  .hero-bottom .hero-quick-menu .quick-card {
    min-height: 58px;
    grid-template-columns: 32px 1fr;
    padding: 6px 7px;
  }

  .hero-bottom .hero-quick-menu .quick-illustration {
    width: 29px;
  }

  .hero-bottom .hero-quick-menu .quick-card strong {
    font-size: 0.84rem;
  }

  .hero-bottom .hero-quick-menu .quick-card small {
    font-size: 0.68rem;
  }
}


/* v0.18 hero block reorder refinement */
.hero-card {
  display: flex;
  flex-direction: column;
}

.hero-bottom {
  order: 1;
  margin-top: 0;
  margin-bottom: 18px;
}

.hero-copy {
  order: 2;
}

.brand-shell {
  margin-left: -6px !important;
  margin-right: 4px;
}

@media (min-width: 761px) {
  .hero-bottom {
    grid-template-columns: minmax(0, 1.02fr) minmax(180px, 0.98fr);
    gap: 16px;
    margin-bottom: 20px;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 270px);
    max-height: 270px;
    object-position: 58% center;
  }
}

@media (max-width: 760px) {
  .hero-card {
    padding-top: 18px;
  }

  .hero-bottom {
    margin-bottom: 14px;
  }

  .hero-bottom .hero-visual img {
    object-position: 60% center;
  }
}

@media (max-width: 420px) {
  .brand-shell {
    margin-left: -4px !important;
  }
}


/* v0.19 fix: title on top, quick functions + hero visual below */
.hero-card {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  order: 1;
}

.hero-bottom {
  order: 2;
  margin-top: 12px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(170px, 1.1fr);
  gap: 14px;
  align-items: end;
}

.hero-bottom .hero-quick-menu {
  align-self: end;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-bottom .hero-quick-menu .quick-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  justify-items: start;
  text-align: left;
  gap: 2px 10px;
  padding: 8px 10px;
  border: 2px solid rgba(198, 147, 88, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.78), rgba(255, 248, 236, 0.96));
}

.hero-bottom .hero-quick-menu .quick-illustration {
  width: 38px;
  grid-row: 1 / span 2;
}

.hero-bottom .hero-quick-menu .quick-card strong {
  font-size: 0.98rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-bottom .hero-quick-menu .quick-card small {
  font-size: 0.78rem;
  line-height: 1.2;
}

.hero-bottom .hero-visual {
  align-self: end;
  justify-content: flex-end;
  padding: 0;
}

.hero-bottom .hero-visual img {
  width: min(100%, 250px);
  max-height: 250px;
  object-fit: contain;
  object-position: 57% center;
}

.brand-shell {
  width: 66px;
  height: 66px;
  margin-left: -2px !important;
  margin-right: 6px;
  object-fit: contain;
  object-position: center;
}

.divider-shell {
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 760px) {
  .hero-bottom {
    grid-template-columns: minmax(0, 0.9fr) minmax(145px, 1.1fr);
    gap: 10px;
    margin-top: 10px;
  }

  .hero-bottom .hero-quick-menu .quick-card {
    min-height: 60px;
    grid-template-columns: 34px 1fr;
    gap: 1px 8px;
    padding: 7px 8px;
    border-radius: 16px;
  }

  .hero-bottom .hero-quick-menu .quick-illustration {
    width: 30px;
  }

  .hero-bottom .hero-quick-menu .quick-card strong {
    font-size: 0.88rem;
  }

  .hero-bottom .hero-quick-menu .quick-card small {
    font-size: 0.70rem;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 205px);
    max-height: 205px;
    object-position: 56% center;
  }
}

@media (max-width: 420px) {
  .brand-shell {
    width: 58px;
    height: 58px;
    margin-left: 0 !important;
    margin-right: 5px;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 0.9fr) minmax(132px, 1.1fr);
    gap: 8px;
  }

  .hero-bottom .hero-quick-menu .quick-card {
    min-height: 56px;
    grid-template-columns: 30px 1fr;
    padding: 6px 7px;
  }

  .hero-bottom .hero-quick-menu .quick-illustration {
    width: 27px;
  }

  .hero-bottom .hero-quick-menu .quick-card strong {
    font-size: 0.82rem;
  }

  .hero-bottom .hero-quick-menu .quick-card small {
    font-size: 0.67rem;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 192px);
    max-height: 192px;
    object-position: 55% center;
  }

  .divider-shell {
    width: 22px;
    height: 22px;
  }
}


/* v0.20 clean-asset integration */
.brand-shell,
.divider-shell,
.quick-illustration,
.hero-visual img {
  mix-blend-mode: normal !important;
  background: transparent !important;
}

.brand-shell {
  width: 64px !important;
  height: 64px !important;
  margin-left: 0 !important;
  margin-right: 6px !important;
  filter: drop-shadow(0 6px 14px rgba(111, 77, 55, 0.10));
}

.divider-shell {
  width: 24px !important;
  height: 24px !important;
  opacity: 0.96;
}

.hero-bottom .hero-visual {
  align-self: end;
  justify-content: flex-end;
  padding: 0;
  position: relative;
  isolation: isolate;
}

.hero-bottom .hero-visual::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 228, 193, 0.48) 0%, rgba(246, 228, 193, 0.18) 42%, rgba(246, 228, 193, 0.0) 72%);
  filter: blur(6px);
  z-index: 0;
}

.hero-bottom .hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 255px) !important;
  max-height: 255px !important;
  object-fit: contain;
  object-position: center center !important;
  filter: drop-shadow(0 12px 22px rgba(111, 77, 55, 0.10));
}

.hero-bottom .hero-quick-menu .quick-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.80), rgba(255, 249, 239, 0.97)) !important;
}

.hero-bottom .hero-quick-menu .quick-illustration {
  width: 32px !important;
}

@media (max-width: 760px) {
  .brand-shell {
    width: 56px !important;
    height: 56px !important;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 205px) !important;
    max-height: 205px !important;
  }

  .hero-bottom .hero-quick-menu .quick-illustration {
    width: 28px !important;
  }
}

@media (max-width: 420px) {
  .brand-shell {
    width: 52px !important;
    height: 52px !important;
  }

  .hero-bottom .hero-visual img {
    width: min(100%, 192px) !important;
    max-height: 192px !important;
  }

  .hero-bottom .hero-quick-menu .quick-illustration {
    width: 25px !important;
  }
}


/* v0.21 web-only hero visual blending fix
   不重生圖片，只調整網頁顯示方式，降低主視覺底色雜訊與方框感 */
.hero-bottom .hero-visual {
  isolation: auto !important;
  background: transparent !important;
}

.hero-bottom .hero-visual::before {
  right: 4px !important;
  bottom: 4px !important;
  width: 92% !important;
  height: 86% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(248, 232, 201, 0.30) 0%,
    rgba(248, 232, 201, 0.13) 44%,
    rgba(248, 232, 201, 0) 72%
  ) !important;
  filter: blur(10px) !important;
}

.hero-bottom .hero-visual img {
  mix-blend-mode: multiply !important;
  opacity: 0.96 !important;
  filter:
    brightness(1.045)
    contrast(0.965)
    saturate(0.94)
    drop-shadow(0 10px 18px rgba(111, 77, 55, 0.08)) !important;
}

/* 避免整張圖的淡色底被看成矩形，邊緣做視覺淡出 */
.hero-bottom .hero-visual img {
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.82) 70%,
    rgba(0, 0, 0, 0.38) 82%,
    rgba(0, 0, 0, 0) 96%
  );
  mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.82) 70%,
    rgba(0, 0, 0, 0.38) 82%,
    rgba(0, 0, 0, 0) 96%
  );
}

@media (max-width: 760px) {
  .hero-bottom .hero-visual::before {
    width: 96% !important;
    height: 90% !important;
    filter: blur(8px) !important;
  }

  .hero-bottom .hero-visual img {
    opacity: 0.965 !important;
    filter:
      brightness(1.05)
      contrast(0.96)
      saturate(0.93)
      drop-shadow(0 8px 14px rgba(111, 77, 55, 0.07)) !important;
  }
}


/* v0.22 true-transparent hero asset fix
   主視覺圖已清掉假透明棋盤格，網頁端不再用 multiply / mask 硬救。 */
.hero-bottom .hero-visual {
  isolation: isolate !important;
  background: transparent !important;
}

.hero-bottom .hero-visual::before {
  right: 8px !important;
  bottom: 6px !important;
  width: 82% !important;
  height: 76% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(246, 228, 193, 0.34) 0%,
    rgba(246, 228, 193, 0.12) 44%,
    rgba(246, 228, 193, 0) 74%
  ) !important;
  filter: blur(8px) !important;
}

.hero-bottom .hero-visual img {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: drop-shadow(0 12px 22px rgba(111, 77, 55, 0.10)) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}


/* v0.23 final hero asset replacement
   換成無棋盤格來源重新去背的透明主視覺，不再用舊棋盤格素材。 */
.hero-bottom .hero-visual {
  isolation: isolate !important;
  background: transparent !important;
}

.hero-bottom .hero-visual::before {
  right: 6px !important;
  bottom: 6px !important;
  width: 82% !important;
  height: 76% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(246, 228, 193, 0.30) 0%,
    rgba(246, 228, 193, 0.11) 44%,
    rgba(246, 228, 193, 0) 74%
  ) !important;
  filter: blur(8px) !important;
}

.hero-bottom .hero-visual img {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: drop-shadow(0 12px 22px rgba(111, 77, 55, 0.10)) !important;
}


/* v0.26 footer version label */
.version-label {
  margin-top: 14px !important;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(111, 77, 55, 0.56);
  font-weight: 800;
}


/* v0.27 bottom cart flow */
.page-shell {
  padding-bottom: 110px;
}

.bottom-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 14px;
}

.bottom-cart-button {
  pointer-events: auto;
  width: min(720px, 100%);
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #cf9657, #bb7840);
  box-shadow: 0 18px 38px rgba(83, 48, 21, 0.25);
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  font-weight: 900;
}

.cart-count-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bottom-cart-title {
  text-align: left;
  letter-spacing: 0.08em;
}

.bottom-cart-button[disabled] {
  opacity: 0.55;
  filter: saturate(0.55);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(58, 34, 18, 0.42);
  backdrop-filter: blur(5px);
}

.cart-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 91;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  border: 4px solid rgba(198, 147, 88, 0.64);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 -22px 60px rgba(54, 31, 14, 0.24);
}

.sheet-handle {
  width: 120px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: transparent;
  color: rgba(111, 77, 55, 0.62);
  display: grid;
  justify-items: center;
  gap: 3px;
  font-weight: 900;
  touch-action: none;
  cursor: grab;
}

.sheet-handle span {
  display: block;
  width: 58px;
  height: 6px;
  border-radius: 999px;
  background: rgba(111, 77, 55, 0.25);
}

.sheet-handle small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.sheet-handle:active {
  cursor: grabbing;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.sheet-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2ddbd;
  color: var(--brown);
  font-size: 1.6rem;
  font-weight: 900;
}

.checkout-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed rgba(198, 147, 88, 0.34);
}

.compact-title {
  margin-bottom: 14px;
}

.cart-sheet .primary-button {
  margin-top: 16px;
}

.cart-sheet-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .bottom-cart-button {
    min-height: 58px;
    padding-right: 16px;
  }

  .cart-sheet {
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 26px 26px 0 0;
  }
}


/* v0.28 cart behavior fix */
.cart-sheet.dragging {
  transition: none !important;
}

.cart-sheet {
  transition: transform 0.22s ease;
}

.bottom-cart-button.cart-added {
  animation: cartAddedPulse 0.75s ease;
}

@keyframes cartAddedPulse {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-4px) scale(1.018); }
  100% { transform: translateY(0) scale(1); }
}


/* v0.29 full sheet pull-down support */
.cart-sheet {
  overscroll-behavior: contain;
}

.cart-sheet.can-pull-down {
  cursor: grab;
}

.cart-sheet.can-pull-down:active {
  cursor: grabbing;
}


/* v0.30 mobile touch pull-down fix */
.cart-sheet {
  will-change: transform;
  touch-action: pan-y;
}

.cart-sheet.dragging {
  transition: none !important;
  touch-action: none;
}

.cart-sheet.snap-back {
  transition: transform 0.2s ease;
}
