/* Atelier Yi — 东方禅意 × 法式工坊 × 当代 wellness */

:root {
  --paper: #f7f4ee;
  --paper-2: #f0ebe1;
  --ink: #23201c;
  --ink-soft: #5c564e;
  --cinnabar: #b8382f;
  --gold: #a8875a;
  --line: #e3dccd;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --sans: "Jost", "Helvetica Neue", "PingFang SC", sans-serif;
  --serif-sc: "Noto Serif SC", "Songti SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Kill horizontal panning on mobile: clip stops layout overflow from
   widening the page, pan-y blocks sideways viewport drags (iOS quirks). */
html, body { overflow-x: hidden; overflow-x: clip; touch-action: pan-y pinch-zoom; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2.2rem; }
.section-head .zh {
  font-family: var(--serif-sc);
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-transform: none;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* ---------- header ---------- */

.topbar {
  background: var(--ink);
  color: #d8d2c6;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  text-transform: uppercase;
}
.topbar .dot { color: var(--cinnabar); }

/* The whole header sticks (sticky on .nav-wrap alone can't work: it
   would be scoped to the short #site-header box and scroll away). */
#site-header { position: sticky; top: 0; z-index: 50; }
.nav-wrap {
  background: rgba(247, 244, 238, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 42px; height: 42px;
  background: var(--cinnabar);
  color: #fdf9f2;
  font-family: var(--serif-sc);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.04em; }
.brand-zh { font-family: var(--serif-sc); font-size: 0.7rem; letter-spacing: 0.5em; color: var(--ink-soft); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--cinnabar); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: none;
  border: none;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
  min-width: 38px;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.active { background: var(--ink); color: var(--paper); }
.lang-switch-mobile { display: none; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); }

.cart-btn {
  background: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; flex-shrink: 0; }
.cart-count {
  background: var(--cinnabar);
  color: #fff;
  border-radius: 999px;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #efe9dd 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 { font-size: 3.4rem; margin-bottom: 8px; }
.hero .hero-zh {
  font-family: var(--serif-sc);
  color: var(--ink-soft);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  margin-bottom: 22px;
}
.hero p.lead { color: var(--ink-soft); max-width: 460px; margin-bottom: 32px; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--cinnabar); border-color: var(--cinnabar); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; text-align: center; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-seal-note {
  position: absolute;
  right: 8px; top: 8px;
  writing-mode: vertical-rl;
  font-family: var(--serif-sc);
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(35, 32, 28, 0.1); }
.card-art { position: relative; background: #f2ede4; }
.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.card-body { padding: 18px 18px 22px; text-align: center; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.card-zh { font-family: var(--serif-sc); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.2em; margin-bottom: 10px; }
.card-price { color: var(--cinnabar); font-size: 0.95rem; letter-spacing: 0.05em; }

/* ---------- collections split ---------- */

.collections { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.collection-tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  padding: 56px 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
}
.collection-tile.tools { background: linear-gradient(135deg, #efe6d6, #e2d3ba); }
.collection-tile.scents { background: linear-gradient(135deg, #e6e4da, #ccd0c2); }
.collection-tile .zh-vert {
  position: absolute;
  top: 32px; right: 32px;
  writing-mode: vertical-rl;
  font-family: var(--serif-sc);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  color: rgba(35, 32, 28, 0.55);
}
.collection-tile h3 { font-size: 1.9rem; margin-bottom: 10px; }
.collection-tile p { color: var(--ink-soft); max-width: 420px; margin-bottom: 24px; }
.collection-tile .btn { align-self: flex-start; }

/* ---------- story / values ---------- */

.story { background: var(--ink); color: #e8e2d6; }
.story .section-head h2 { color: #f4efe6; }
.story .section-head p { color: #b3aa9a; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { text-align: center; padding: 0 12px; }
.value .value-zh {
  font-family: var(--serif-sc);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.value h3 { font-size: 1.25rem; color: #f4efe6; margin-bottom: 10px; }
.value p { color: #b3aa9a; font-size: 0.95rem; }

/* ---------- ritual band ---------- */

.ritual-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ritual-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ritual-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
}
.ritual-card .step {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--cinnabar);
  margin-bottom: 10px;
}
.ritual-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ritual-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- footer ---------- */

footer { background: #1d1b18; color: #b8b1a3; }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
}
.footer-col h4 {
  color: #f0eade;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a { display: block; padding: 4px 0; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand-seal { margin-bottom: 16px; }
.footer-slogan { font-family: var(--serif); font-size: 1.15rem; color: #e8e2d6; margin-bottom: 6px; }
.footer-slogan span { font-family: var(--serif-sc); font-size: 0.8rem; letter-spacing: 0.3em; color: #8f8878; }
.footer-tag { font-style: italic; font-family: var(--serif); font-size: 0.95rem; }
.footer-news p { font-size: 0.9rem; margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1;
  background: #2a2723;
  border: 1px solid #3d3931;
  color: #e8e2d6;
  padding: 10px 14px;
  border-radius: 2px;
  font-family: var(--sans);
}
.news-form button {
  background: var(--cinnabar);
  color: #fff;
  border: none;
  padding: 10px 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 2px;
}
.news-thanks { color: #e8e2d6; font-style: italic; }
.footer-legal {
  border-top: 1px solid #322e28;
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---------- cart drawer ---------- */

#cart-overlay {
  position: fixed; inset: 0;
  background: rgba(24, 21, 17, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
#cart-overlay.open { opacity: 1; pointer-events: auto; }
#cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  z-index: 100;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(0,0,0,0.2);
}
#cart-drawer.open { transform: translateX(0); visibility: visible; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.4rem; }
.cart-head button { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { color: var(--ink-soft); font-style: italic; font-family: var(--serif); }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.cart-info { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.cart-info span { color: var(--ink-soft); }
.cart-remove {
  background: none; border: none;
  color: var(--cinnabar);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  padding: 0;
  text-decoration: underline;
}
.cart-line-total { font-size: 0.95rem; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total {
  display: flex; justify-content: space-between;
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* ---------- product detail ---------- */

.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 64px 0; }
.pd-art { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #f2ede4; position: sticky; top: 100px; }
.pd-info .crumbs { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.pd-info .crumbs a:hover { color: var(--cinnabar); }
.pd-info h1 { font-size: 2.4rem; margin-bottom: 6px; }
.pd-zh { font-family: var(--serif-sc); letter-spacing: 0.3em; color: var(--ink-soft); margin-bottom: 16px; }
.pd-price { font-size: 1.5rem; color: var(--cinnabar); font-family: var(--serif); margin-bottom: 6px; }
.pd-material { color: var(--ink-soft); font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 24px; }
.pd-desc { margin-bottom: 28px; color: var(--ink-soft); }
.pd-ritual {
  background: var(--paper-2);
  border-left: 3px solid var(--cinnabar);
  padding: 18px 22px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.pd-ritual .rl { font-style: normal; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.pd-actions { display: flex; gap: 14px; align-items: stretch; margin-bottom: 34px; }
.qty {
  display: flex; align-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.qty button { background: none; border: none; width: 40px; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 34px; text-align: center; }
.pd-notes { border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.88rem; color: var(--ink-soft); }
.pd-notes li { margin: 6px 0 6px 18px; }
.related h2 { text-align: center; font-size: 1.8rem; margin-bottom: 34px; }

/* ---------- shop page ---------- */

.shop-head { text-align: center; padding: 64px 24px 8px; }
.shop-head h1 { font-size: 2.6rem; margin-bottom: 8px; }
.shop-head .zh { font-family: var(--serif-sc); letter-spacing: 0.4em; color: var(--gold); margin-bottom: 12px; }
.shop-head p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.filters { display: flex; gap: 12px; justify-content: center; padding: 30px 0 10px; }
.filters button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 22px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--ink-soft);
}
.filters button.active, .filters button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- about ---------- */

.about-hero { text-align: center; padding: 80px 24px 60px; background: linear-gradient(180deg, #efe9dd, var(--paper)); }
.about-hero h1 { font-size: 3rem; margin-bottom: 10px; }
.about-hero .zh { font-family: var(--serif-sc); letter-spacing: 0.5em; color: var(--gold); margin-bottom: 20px; }
.about-hero p { max-width: 620px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }
.about-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.about-body h2 { font-size: 1.8rem; margin: 44px 0 14px; }
.about-body p { color: var(--ink-soft); margin-bottom: 16px; }
.about-body .pull {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  border-left: 3px solid var(--cinnabar);
  padding-left: 22px;
  margin: 30px 0;
  color: var(--ink);
}

/* ---------- product images & tables ---------- */

.card-art img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pd-art img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-extra { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 8px; }
.pd-extra h2 { font-size: 1.25rem; margin: 24px 0 10px; }
.pd-extra p { color: var(--ink-soft); font-size: 0.95rem; }
.pd-extra a { color: var(--cinnabar); text-decoration: underline; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pd-specs tr { border-bottom: 1px solid var(--line); }
.pd-specs th {
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 16px 9px 0;
  width: 40%;
  vertical-align: top;
}
.pd-specs td { padding: 9px 0; }

.table-scroll { overflow-x: auto; margin: 18px 0; }
.about-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.about-body th, .about-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.about-body th { background: var(--paper-2); font-family: var(--sans); font-weight: 500; letter-spacing: 0.05em; }
.about-body h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.about-body a { color: var(--cinnabar); }
.about-body section { margin-bottom: 12px; }

/* ---------- checkout & orders ---------- */

.co-wrap { padding: 48px 24px 72px; }
.co-title { font-size: 2.4rem; margin-bottom: 28px; }
.co-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.co-form h2, .sum-card h2, .or-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.or-card h2 { margin-top: 24px; }
.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf8;
  font-family: var(--sans);
  font-size: 16px; /* ≥16px prevents iOS focus zoom */
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-error { color: var(--cinnabar); margin: 10px 0; }
.co-demo-note { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 12px; }

/* centered confirm modal */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 21, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal {
  background: var(--paper);
  border-radius: 6px;
  max-width: 440px;
  width: 100%;
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-seal {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  background: var(--cinnabar);
  color: #fdf9f2;
  font-family: var(--serif-sc);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
}
.modal h3 { font-size: 1.45rem; margin-bottom: 10px; }
.modal p { color: var(--ink-soft); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn { min-width: 120px; }
.co-empty { text-align: center; padding: 40px 0 20px; }
.co-empty p { color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: 20px; }

.sum-card, .or-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
}
.sum-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.sum-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.sum-item-info { flex: 1; display: flex; flex-direction: column; }
.sum-item-info span { color: var(--ink-soft); font-size: 0.85rem; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-soft); font-size: 0.95rem; }
.sum-line:first-of-type { margin-top: 10px; }
.sum-total { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }

.or-lookup-form { max-width: 420px; }
.or-lookup-p { color: var(--ink-soft); margin-bottom: 20px; }
.or-card { max-width: 640px; }
.or-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.or-no { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; }
.or-date { color: var(--ink-soft); font-size: 0.85rem; }
.status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.st-pending { background: #f3e3c3; color: #8a6414; }
.st-paid { background: #dcead9; color: #3d6b3a; }
.or-msg { color: var(--ink-soft); margin: 14px 0 6px; }
.or-addr { color: var(--ink-soft); }
.or-card .btn { margin-top: 20px; }

/* ---------- language-specific typography ---------- */

html[lang="zh-Hant"] {
  --serif-sc: "Noto Serif TC", "Songti TC", "Songti SC", serif;
}
html[lang="zh-Hans"] body { font-family: "Jost", "PingFang SC", "Hiragino Sans GB", sans-serif; }
html[lang="zh-Hant"] body { font-family: "Jost", "PingFang TC", "PingFang SC", sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 {
  font-family: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
}
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3 {
  font-family: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
}
/* In Chinese modes the hero subtitle carries the English line */
html[lang^="zh"] .hero-zh {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}
html[lang^="zh"] .hero h1 { line-height: 1.35; }
html[lang^="zh"] .section-head p,
html[lang^="zh"] .footer-tag,
html[lang^="zh"] .pd-ritual { font-style: normal; }

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(20, 60, 30, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 60, 30, 0.4); }
.wa-float svg { width: 24px; height: 24px; }
.wa-label { font-size: 0.88rem; letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- responsive / mobile-first polish ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; gap: 32px; }
  .hero h1 { font-size: 2.3rem; }
  .hero p.lead { font-size: 1rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .collections { grid-template-columns: 1fr; }
  .collection-tile { min-height: 240px; padding: 40px 28px; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .ritual-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 48px 20px 32px; }
  .pd { grid-template-columns: 1fr; gap: 30px; padding: 28px 0 48px; }
  .co-grid { grid-template-columns: 1fr; }
  .pd-art { position: static; }
  .pd-info h1 { font-size: 1.9rem; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 1.8rem; }

  /* collapsible mobile menu */
  .nav { gap: 14px; padding: 12px 16px; position: relative; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(35, 32, 28, 0.12);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-right { margin-left: auto; }
  .nav-right .lang-switch { display: none; }
  .lang-switch-mobile { display: flex; margin: 14px 24px 0; align-self: flex-start; }
  .cart-btn { padding: 8px 14px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }

  /* header */
  .topbar { font-size: 0.66rem; padding: 7px 12px; letter-spacing: 0.09em; }
  .nav { padding: 10px 12px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 1.1rem; }
  .brand-zh { font-size: 0.62rem; letter-spacing: 0.4em; }
  .brand-seal { width: 34px; height: 34px; font-size: 1.2rem; border-radius: 3px; }
  .cart-btn .cart-label { display: none; }
  .cart-btn { border-radius: 999px; padding: 9px 13px; gap: 6px; }
  .cart-ic { width: 19px; height: 19px; }
  .cart-count { min-width: 18px; height: 18px; font-size: 0.68rem; }

  /* hero */
  .hero-inner { padding: 36px 20px 44px; gap: 26px; }
  .hero-kicker { font-size: 0.7rem; letter-spacing: 0.24em; margin-bottom: 12px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .hero-zh { font-size: 0.92rem; letter-spacing: 0.22em; margin-bottom: 16px; }
  .hero p.lead { margin-bottom: 24px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; text-align: center; padding: 15px 20px; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .hero-seal-note { display: none; }

  /* sections */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; padding: 0 4px; }
  .section-head h2 { font-size: 1.6rem; }
  .section-head p { font-size: 0.98rem; }
  .section-head .zh { font-size: 0.78rem; letter-spacing: 0.32em; }

  /* product cards */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 10px 14px; }
  .card-body h3 { font-size: 0.92rem; line-height: 1.3; margin-bottom: 3px; }
  .card-zh { font-size: 0.68rem; letter-spacing: 0.1em; margin-bottom: 7px; }
  .card-price { font-size: 0.88rem; }
  .card-tag { font-size: 0.58rem; padding: 3px 8px; top: 8px; left: 8px; letter-spacing: 0.1em; }
  .card:hover { transform: none; box-shadow: none; }

  /* collections / story / ritual */
  .collection-tile { min-height: 200px; padding: 30px 22px; }
  .collection-tile h3 { font-size: 1.5rem; }
  .collection-tile .zh-vert { top: 22px; right: 22px; font-size: 0.95rem; }
  .collection-tile .btn { padding: 12px 22px; font-size: 0.8rem; }
  .values { gap: 22px; }
  .value .value-zh { font-size: 1.6rem; margin-bottom: 10px; }
  .value h3 { font-size: 1.12rem; }
  .ritual-card { padding: 22px 20px; }
  .ritual-card .step { font-size: 1.6rem; margin-bottom: 6px; }
  .ritual-cols { gap: 14px; }

  /* shop */
  .filters { flex-wrap: wrap; padding: 18px 12px 2px; gap: 8px; }
  .filters button { padding: 10px 18px; font-size: 0.82rem; }
  .shop-head { padding: 36px 20px 2px; }
  .shop-head h1 { font-size: 1.9rem; }
  .shop-head .zh { font-size: 0.78rem; }

  /* product detail */
  .pd { gap: 22px; padding: 18px 0 40px; }
  .pd-info h1 { font-size: 1.65rem; }
  .pd-price { font-size: 1.3rem; }
  .pd-ritual { padding: 15px 18px; font-size: 0.98rem; }
  .pd-actions { flex-wrap: wrap; gap: 10px; }
  .pd-actions .qty { width: 100%; justify-content: space-between; }
  .pd-actions .btn { width: 100%; padding: 15px 20px; }
  .qty button { width: 52px; height: 48px; font-size: 1.2rem; }
  .pd-extra h2 { font-size: 1.15rem; }
  .pd-specs th { width: 45%; padding-right: 10px; }
  .related h2 { font-size: 1.5rem; margin-bottom: 22px; }

  /* checkout & orders */
  .co-wrap { padding: 32px 18px 56px; }
  .co-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .co-title { font-size: 1.8rem; margin-bottom: 20px; }
  .sum-card, .or-card { padding: 20px 18px; }
  .or-no { font-size: 1.1rem; word-break: break-all; }
  .modal { padding: 28px 20px 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }

  /* info pages */
  .about-hero { padding: 42px 20px 30px; }
  .about-hero h1 { font-size: 1.9rem; }
  .about-hero p { font-size: 1rem; }
  .about-body { padding: 14px 20px 48px; }
  .about-body h2 { font-size: 1.45rem; margin-top: 34px; }
  .about-body .pull { font-size: 1.15rem; padding-left: 16px; }

  /* footer & floats */
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 20px 28px; }
  .footer-col a { padding: 7px 0; }
  .news-form input { font-size: 16px; }
  .wa-float { right: 14px; bottom: 14px; padding: 12px; }
  .wa-label { display: none; }
  .wa-float svg { width: 26px; height: 26px; }

  /* cart drawer */
  #cart-drawer { width: 100vw; }
  .cart-head { padding: 16px 18px; }
  .cart-items { padding: 14px 18px; }
  .cart-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
}
