@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap");

:root {
  --bg: #f4efe6;
  --bg-elev: #faf7f1;
  --ink: #1a1714;
  --muted: #7a736a;
  --line: #e4ddd2;
  --card: #fffcf7;
  --accent: #c45c26; /* warm copper, Hermès-adjacent warmth without copying brand orange lockups */
  --shadow: 0 24px 60px rgba(26, 23, 20, 0.06);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.wrap { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; }
.wrap-narrow { width: min(720px, calc(100% - 3rem)); margin: 0 auto; }

/* —— Top bar: quiet, centered brand —— */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-right { justify-content: flex-end; }
.nav-link {
  border: 0; background: transparent; cursor: pointer;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); padding: 0;
}
.nav-link:hover { color: var(--ink); }
.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 0.2rem;
  font-weight: 400;
}
.cart-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 0; background: transparent; cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); padding: 0;
}
.cart-count {
  min-width: 1.35rem; height: 1.35rem; border-radius: 999px;
  border: 1px solid var(--ink); display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 500;
}

/* —— Hero: editorial —— */
.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: min(78vh, 760px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  background: var(--bg);
}
.eyebrow {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.5rem; font-weight: 500;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
}
.hero-lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 28rem;
  margin: 0 0 2.2rem;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn {
  border: 0; border-radius: 0; padding: 1rem 1.75rem; cursor: pointer;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-left: 0; padding-right: 0;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.hero-visual {
  position: relative; overflow: hidden; background: #e8e2d8; min-height: 420px;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.02);
}
.hero-caption {
  position: absolute; left: 1.5rem; bottom: 1.5rem; right: 1.5rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-caption .label {
  font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.9;
}
.hero-caption .title {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 500; margin: 0.25rem 0;
}
.hero-caption .price { font-size: 0.85rem; letter-spacing: 0.08em; font-weight: 400; }

/* —— Collection toolbar —— */
.section-head {
  padding: 3.5rem 0 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--line); margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: 2rem;
  margin: 0; letter-spacing: 0.04em;
}
.section-head p {
  margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; max-width: 26rem;
  text-wrap: pretty;
  overflow-wrap: normal;
  hyphens: none;
}
.section-head-tools {
  display: flex; flex-direction: column; gap: 0.85rem;
  align-items: flex-end; min-width: 0; max-width: 100%;
}
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 0; border-bottom: 1px solid transparent; background: transparent;
  padding: 0.55rem 0.9rem; cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.chip.active, .chip:hover {
  color: var(--ink); border-bottom-color: var(--ink);
}
.search {
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 0.65rem 0; min-width: min(220px, 100%);
  font-size: 0.85rem; color: var(--ink); outline: none;
}
.search:focus { border-bottom-color: var(--ink); }
.search::placeholder { color: var(--muted); letter-spacing: 0.06em; }

/* —— Product grid: gallery —— */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.5rem;
  padding-bottom: 4.5rem;
}
.card {
  background: transparent; border: 0; display: flex; flex-direction: column; gap: 0.9rem;
  cursor: default;
}
.thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ebe5db;
  position: relative;
}
.thumb img, .thumb {
  background-size: cover; background-position: center;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.card:hover .thumb img, .card:hover .thumb { transform: none; }
.card:hover .thumb { }
.card:hover .thumb[style*="background-image"],
.card:hover img { transform: scale(1.04); }
.thumb { transition: none; }
.thumb.with-bg { transition: transform 0.7s ease; }
.card:hover .thumb.with-bg { transform: scale(1.03); }
.badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,252,247,0.92);
  padding: 0.35rem 0.65rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0.15rem; }
.card-body h3 {
  margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  letter-spacing: 0.02em;
}
.card-body p {
  margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-top: 0.45rem;
}
.price {
  font-size: 0.78rem; letter-spacing: 0.1em; font-weight: 400;
}
.add {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding: 0.15rem 0;
}
.add:hover { color: var(--accent); border-bottom-color: var(--accent); }

.card-actions {
  display: flex; align-items: baseline; gap: 0.85rem;
}
.buy {
  border: 0; background: transparent; color: var(--accent); cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding: 0.15rem 0;
}
.buy:hover { opacity: 0.75; }
.drawer .btn-ghost:disabled {
  opacity: 0.55;
  border-bottom-style: dashed;
}
.cart-item .link-pay {
  display: inline-block; margin-top: 0.35rem;
  border: 0; background: transparent; color: var(--accent); cursor: pointer;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0; border-bottom: 1px solid var(--accent);
}


/* —— Care band —— */
.care-band {
  background: var(--ink); color: #f4efe6;
  padding: 4rem 0;
}
.care-band .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.care-band h2 {
  font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: 0 0 1rem;
  letter-spacing: 0.04em;
}
.care-band p { margin: 0 0 0.75rem; color: rgba(244,239,230,0.72); font-size: 0.95rem; max-width: 28rem; }
.care-band strong { color: #fff; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; display: block; margin-bottom: 0.75rem; }


/* —— FAQ —— */
.faq-section { padding: 3.5rem 0 4rem; }
.faq-list { max-width: 40rem; }
.faq-list h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem; letter-spacing: 0.03em;
}
.faq-list h3:first-child { margin-top: 0; }
.faq-list p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.faq-list a { color: var(--ink); text-underline-offset: 0.15em; }
.hero-zh { margin-top: 0.75rem; opacity: 0.9; }

.site-footer {
  padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; border-top: 1px solid var(--line);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* —— Drawer —— */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(26,23,20,0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 50;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%);
  background: var(--bg-elev); transform: translateX(100%);
  transition: transform 0.3s ease; z-index: 60;
  display: flex; flex-direction: column; border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }
.drawer header, .drawer footer { padding: 1.4rem 1.5rem; }
.drawer header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer footer {
  border-top: 1px solid var(--line); margin-top: auto; display: grid; gap: 0.75rem;
}
.drawer h2 {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: 0.06em;
}
.close { border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--ink); }
.cart-items { padding: 1.25rem 1.5rem; overflow: auto; display: grid; gap: 1.15rem; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.9rem; align-items: start; }
.cart-item .mini {
  width: 72px; height: 90px; background: #ebe5db; background-size: cover; background-position: center;
}
.cart-item strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; display: block; }
.qty { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.45rem; }
.qty button {
  width: 1.5rem; height: 1.5rem; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.empty { color: var(--muted); padding: 3rem 0; text-align: center; letter-spacing: 0.08em; font-size: 0.85rem; }
.total-row {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}
.note { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.drawer .btn { width: 100%; text-align: center; }
.drawer .btn-ghost {
  border: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 1.75rem;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 52vw; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .care-band .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 1.5rem, 1280px); }
  .grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.2rem; letter-spacing: 0.16em; }
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .section-head p { max-width: none; }
  .section-head-tools {
    align-items: stretch;
    width: 100%;
  }
  .filters {
    margin: 0 -0.25rem;
    padding: 0 0.25rem 0.15rem;
  }
  .chip { padding: 0.55rem 0.75rem; letter-spacing: 0.14em; }
  .search { min-width: 0; width: 100%; }
}

/* Payment success return */
.paid-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(40, 32, 24, 0.45);
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.paid-modal.is-open {
  display: grid;
}
.paid-modal[hidden] { display: none !important; }
.paid-card {
  width: min(100%, 420px);
  background: var(--cream, #f4efe6);
  border: 1px solid var(--line, #ddd4c4);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(40, 32, 24, 0.18);
}
.paid-card h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
}
.paid-lead { margin: 0; color: var(--ink); }
.paid-zh { margin: 0.35rem 0 1.25rem; color: var(--muted); font-size: 0.92rem; }
.paid-bill {
  background: #fffdf8;
  border: 1px solid var(--line, #ddd4c4);
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1rem;
}
.paid-bill .label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.paid-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.45;
  color: var(--ink);
}
.paid-shot {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}
.paid-card .btn { width: 100%; }


.member-promo-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.member-promo-tip { margin-top: 0.55rem; }
