:root {
  --bg: #F7F5E9;
  --bg-soft: #F1EFE2;
  --surface: #FCFBF7;
  --surface-pure: #FFFFFF;
  --ink: #30372C;
  --ink-strong: #1F251C;
  --muted: #6C7365;
  --muted-light: #8D9485;
  --line: #E3DFCD;
  --line-soft: #ECE9DA;
  --olive: #4A5E37;
  --olive-mid: #536740;
  --olive-tint: #EAF0E0;
  --gold: #B59A6A;
  --gold-soft: #EFE6D5;
  --amber: #8C5C24;
  --amber-bg: #FDF5E6;
  --amber-line: #E7CFA5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Helvetica Neue", sans-serif;
  --shadow-soft: 0 10px 28px rgba(48, 55, 44, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 28px;
  }
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

/* Announcement & Header */
.top-marquee {
  background: var(--ink);
  color: #F5F3EC;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 233, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-pure);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark strong {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

.brand-wordmark span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 4px;
  white-space: nowrap;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--ink-strong);
}

.nav-bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #F7F5E9;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.bag-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1F251C;
  font-size: 11px;
  font-weight: 700;
}

.bag-pill-count.is-empty {
  background: rgba(255, 255, 255, 0.18);
  color: #F7F5E9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #F7F5E9;
}

.btn-primary:hover {
  background: #232920;
}

.btn-olive {
  background: var(--olive);
  color: #FFFFFF;
}

.btn-olive:hover {
  background: #3B4C2B;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(48, 55, 44, 0.06);
}

.btn-soft {
  background: var(--olive-tint);
  color: var(--olive);
}

.btn-full {
  width: 100%;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero Section */
.hero {
  padding: 20px 0 24px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 820px) {
  .hero-card {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
}

.hero-media {
  position: relative;
  background: #F4EFE4;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vol-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(31, 37, 28, 0.84);
  color: #F7F5E9;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero-body {
  padding: 6px 20px 24px;
}

@media (min-width: 820px) {
  .hero-body {
    padding: 28px 34px;
  }
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 5.6vw, 42px);
  line-height: 1.12;
  color: var(--ink-strong);
}

.hero-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta-strip strong {
  display: block;
  color: var(--ink-strong);
  font-size: 12.5px;
}

/* Threshold / Concierge Status Strip */
.rule-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.rule-banner-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rule-banner-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
}

.rule-banner-sub {
  font-size: 12px;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--olive);
  transition: width 0.25s ease;
}

/* Filter Chips */
.section {
  padding: 18px 0 32px;
}

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

.section-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.4vw, 32px);
  line-height: 1.18;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #F7F5E9;
}

/* Product Grid - Mobile 2-column magazine grid matching miniprogram */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.product-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #F8F6EE;
  overflow: hidden;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.025);
}

.badge-vol {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(252, 251, 247, 0.92);
  border: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-tier {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-tier.tier-1 {
  background: rgba(234, 240, 224, 0.94);
  color: var(--olive);
  border: 1px solid rgba(74, 94, 55, 0.25);
}

.badge-tier.tier-2 {
  background: rgba(253, 245, 230, 0.96);
  color: var(--amber);
  border: 1px solid var(--amber-line);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 12px 13px;
}

@media (min-width: 720px) {
  .product-card-body {
    padding: 14px 16px 16px;
  }
}

.card-cat {
  font-size: 11px;
  color: var(--muted-light);
  margin-bottom: 3px;
}

.card-title {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink-strong);
}

.card-title-cn {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-spec {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
}

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

.btn-quick-add {
  border: 1px solid var(--ink);
  background: var(--surface-pure);
  color: var(--ink-strong);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-quick-add.in-bag {
  background: var(--olive);
  border-color: var(--olive);
  color: #FFFFFF;
}

/* Signature Tin Section */
.tin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 680px) {
  .tin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.tin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.tin-no {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.tin-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
}

.tin-title-cn {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tin-detail {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Steps Band */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.step-card {
  background: var(--ink);
  color: #F7F5E9;
  border-radius: var(--radius-md);
  padding: 18px;
}

.step-card span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 6px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(247, 245, 233, 0.8);
  line-height: 1.55;
}

/* Product Detail Page */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 0 110px;
}

@media (min-width: 860px) {
  .detail-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 36px;
    padding-bottom: 56px;
  }
}

.gallery-main {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #F8F6EE;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(31, 37, 28, 0.72);
  color: #fff;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F8F6EE;
  aspect-ratio: 3 / 4;
}

.thumb-btn.is-active {
  border-color: var(--olive);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-price {
  font-size: 30px;
  font-weight: 700;
  color: var(--olive);
}

.detail-per-cup {
  font-size: 13px;
  color: var(--muted);
}

.customs-callout {
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 12px 0;
}

.customs-callout.tier-1 {
  background: var(--olive-tint);
  color: var(--olive);
}

.customs-callout.tier-2 {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber);
}

.fact-kv {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.fact-kv:last-child {
  border-bottom: 0;
}

.fact-kv dt {
  color: var(--muted);
}

.fact-kv dd {
  margin: 0;
  color: var(--ink-strong);
}

.ritual-card {
  border: 1px solid var(--line-soft);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ritual-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.ritual-ratio {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 4px;
}

.ritual-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Nutrition Table (1:1 port of miniprogram nutrition UI) */
.nutrition-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.basis-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 3px;
  border-radius: 999px;
}

.basis-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.basis-tab.is-active {
  background: var(--olive);
  color: #FFFFFF;
}

.nutrient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.nutrient-name {
  width: 148px;
  flex: none;
  color: var(--ink-strong);
}

.nutrient-name small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.nutrient-bar {
  flex: 1;
  min-width: 20px;
}

.nutrient-track {
  height: 6px;
  background: var(--olive-tint);
  border-radius: 999px;
  overflow: hidden;
}

.nutrient-fill {
  height: 100%;
  background: #819961;
  border-radius: 999px;
}

.nutrient-amount {
  width: 78px;
  flex: none;
  text-align: right;
  font-weight: 600;
}

.nutrient-nrv {
  width: 46px;
  flex: none;
  text-align: right;
  font-size: 12px;
  color: var(--olive);
}

/* Sticky Mobile Action Bar */
.sticky-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(252, 251, 247, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

@media (min-width: 860px) {
  .sticky-action-bar {
    position: static;
    background: transparent;
    border-top: 0;
    padding: 8px 0 0;
  }
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-pure);
  overflow: hidden;
}

.qty-stepper button {
  width: 34px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
}

.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* Bag & Concierge Checkout Page */
.bag-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0 48px;
}

@media (min-width: 860px) {
  .bag-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.route-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.route-btn {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.route-btn.is-active {
  border-color: var(--olive);
  background: var(--olive-tint);
}

.route-btn strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-strong);
  margin-bottom: 3px;
}

.route-btn span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.bag-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.bag-item-img {
  width: 72px;
  height: 96px;
  flex: none;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.bag-item-main {
  flex: 1;
  min-width: 0;
}

.bag-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.bag-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-strong);
}

.form-control {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-pure);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
}

.order-preview-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.concierge-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp {
  background: #1F5B3C;
  color: #FFFFFF;
}

.btn-ig {
  background: var(--ink);
  color: #F7F5E9;
}

.btn-wecom {
  background: var(--olive-tint);
  color: var(--olive);
  border: 1px solid rgba(74, 94, 55, 0.3);
}

/* Guides & Tables */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 580px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table th {
  background: var(--bg-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(31, 37, 28, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 20px;
  line-height: 1;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.modal-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-qr-wrap {
  width: 210px;
  height: 210px;
  margin: 0 auto 16px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.modal-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  background: rgba(31, 37, 28, 0.94);
  color: #F7F5E9;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px 0 40px;
  margin-top: 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 780px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px 36px;
  }
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.footer-sub {
  font-size: 12px;
  color: var(--muted);
}

.footer-statement {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-links-grid h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.footer-links-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links-grid li {
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
