/* NOCTURNE — mobile-first storefront */

:root {
  --bg: #0a0a0c;
  --bg-deep: #060608;
  --surface: #111114;
  --surface-2: #16161a;
  --surface-3: #1c1c21;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #ece8e1;
  --muted: #9b968e;
  --dim: #6e6a64;
  --gold: #c3a67b;
  --gold-soft: rgba(195, 166, 123, .16);
  --wine: #8d4a53;
  --ok: #8aa88c;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .7, .26, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 520px) {
  body { box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 0 90px rgba(0,0,0,.8); }
}
body.sheet-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--gold); color: #0a0a0c; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, .84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .2em;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--dim);
  margin-top: 3px;
}
.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  border-radius: 50%;
  transition: background .2s;
}
.icon-btn:active { background: var(--surface-3); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-btn {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  margin-right: 4px;
  transition: color .2s, border-color .2s;
}
.lang-btn:active { color: var(--gold); border-color: var(--gold); }
.cart-badge {
  position: absolute;
  top: 6px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0c;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.cart-badge.show { transform: scale(1); }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  background: rgba(10, 10, 12, .93);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar-inner {
  display: flex;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 0 3px;
  color: var(--dim);
  transition: color .2s;
}
.tab.active { color: var(--gold); }
.tab-ico { position: relative; display: block; width: 22px; height: 22px; }
.tab-ico svg { width: 22px; height: 22px; }
.tab-label { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.tab-badge {
  position: absolute;
  top: -5px; right: -8px;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0c;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  transform: scale(0);
}
.tab-badge.show { transform: scale(1); }

/* ---------- shared type ---------- */
.eyebrow {
  display: block;
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section { padding: 38px 18px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: .01em;
}
.more {
  flex: none;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  margin-bottom: 3px;
}
.more:active { color: var(--gold); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: .38; pointer-events: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #12100c; font-weight: 600; }
.btn.gold:active { background: #d3b78c; }
.btn.ghost { border-color: var(--line-strong); color: var(--text); }
.btn.ghost:active { border-color: var(--gold); color: var(--gold); }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 9.5px; }
.btn.danger { color: #d99aa0; border-color: rgba(217,154,160,.28); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: #0d0d0f; }
.hero-img {
  width: 100%;
  height: min(86dvh, 700px);
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(.92);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,8,.5) 0%, rgba(6,6,8,0) 30%, rgba(6,6,8,.25) 58%, rgba(6,6,8,.94) 100%);
}
.hero-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 96px;
}
.hero-body .eyebrow { margin-bottom: 14px; }
.hero-body h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(33px, 9vw, 42px);
  line-height: 1.14;
  letter-spacing: .005em;
}
.hero-body h1 em { font-style: italic; color: var(--gold); }
.hero-body .lede {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(236, 232, 225, .68);
  max-width: 34em;
}
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.hero-actions .btn { flex: 1; padding: 0 12px; height: 44px; }
.hero-meta {
  position: absolute;
  left: 20px; right: 20px; bottom: 26px;
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .04em; }
.hero-meta span { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- categories ---------- */
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -18px;
  padding: 0 18px 6px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 136px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
}
.cat-card img { width: 136px; height: 178px; object-fit: cover; }
.cat-card .cat-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(6,6,8,.9));
}
.cat-card .cat-en { display: block; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.cat-card h3 { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1.2; }
.cat-card .cat-count { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }

/* ---------- product grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 11px;
}
.product-card { position: relative; }
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:active .product-media img { transform: scale(1.03); }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.tag {
  display: inline-block;
  padding: 3px 6px;
  font-size: 7.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(10,10,12,.66);
  backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
}
.tag.gold { color: var(--gold); border-color: rgba(195,166,123,.35); }
.tag.muted { color: var(--muted); }
.quick-add {
  position: absolute;
  right: 8px;
  bottom: 104px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .2s, color .2s;
}
.quick-add svg { width: 14px; height: 14px; }
.quick-add:active { background: var(--gold); color: #0a0a0c; }
.product-info { display: block; margin-top: 9px; }
.product-name { display: block; font-size: 12.5px; line-height: 1.4; letter-spacing: .01em; }
.product-sub {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; font-size: 12.5px; color: var(--text); }
.product-price del { font-size: 10px; color: var(--dim); }

/* ---------- editorial / services / values ---------- */
.editorial { margin: 8px 18px 0; border: 1px solid var(--line); background: var(--surface); }
.editorial img { width: 100%; height: 230px; object-fit: cover; opacity: .9; }
.editorial-body { padding: 24px 20px 26px; }
.editorial blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: .01em;
}
.editorial p { margin-top: 16px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.editorial .btn { margin-top: 20px; }

.services { padding: 38px 18px 8px; }
.services h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 18px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  background: var(--bg);
  padding: 20px 16px 22px;
}
.service svg { width: 19px; height: 19px; color: var(--gold); margin-bottom: 12px; }
.service h4 { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; margin-bottom: 6px; }
.service p { font-size: 10px; line-height: 1.7; color: var(--dim); }

.values { padding: 38px 18px 10px; }
.value { padding: 20px 0; border-top: 1px solid var(--line); }
.value .num { font-family: var(--serif); font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 8px 0 8px; }
.value p { font-size: 11px; line-height: 1.8; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding: 44px 18px calc(108px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 36px; }
.footer-logo { font-family: var(--serif); font-size: 19px; letter-spacing: .22em; }
.footer-brand p { margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--muted); max-width: 31em; }
.age-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--gold);
  border: 1px solid rgba(195,166,123,.35);
  border-radius: 999px;
  padding: 3px 9px;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.footer-cols h4, .sub-form h4 { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 11.5px; color: var(--muted); padding: 4px 0; }
.footer-cols a:active { color: var(--gold); }
.sub-form { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.sub-form p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.sub-row { display: flex; margin-top: 14px; border-bottom: 1px solid var(--line-strong); }
.sub-row input { flex: 1; background: transparent; border: 0; height: 40px; font-size: 12px; outline: none; }
.sub-row button { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 0 4px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 8.5px; letter-spacing: .04em; color: var(--dim); }

/* ---------- page head / subpage ---------- */
.subhead { padding: 22px 18px 6px; }
.subhead .eyebrow { margin-bottom: 8px; }
.subhead h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .01em; }
.subhead p { margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ---------- search screen ---------- */
.search-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s;
  overflow-y: auto;
}
.search-screen.open { opacity: 1; visibility: visible; }
.search-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(10,10,12,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.search-head input {
  flex: 1;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}
.search-head input:focus { border-color: rgba(195,166,123,.5); }
.search-body { padding: 16px 18px 40px; }
.search-tip { font-size: 11px; color: var(--dim); letter-spacing: .04em; padding: 20px 0; }
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.search-row img { width: 52px; height: 64px; object-fit: cover; background: var(--surface-2); }
.sr-main { flex: 1; min-width: 0; }
.sr-main strong { display: block; font-size: 12.5px; font-weight: 400; }
.sr-main small { display: block; margin-top: 3px; font-size: 10px; color: var(--dim); }
.sr-price { font-size: 11.5px; color: var(--muted); }

/* ---------- shop ---------- */
.shop-toolbar { padding: 12px 18px 0; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 12px; height: 44px; }
.searchbar svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.searchbar input { flex: 1; border: 0; background: transparent; outline: none; font-size: 12.5px; height: 100%; }
.shop-tools { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.result { flex: 1; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 32px;
  padding: 0 24px 0 10px;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 12px) 14px, calc(100% - 8px) 14px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 10px; letter-spacing: .06em; color: var(--muted);
}
.filter-btn svg { width: 13px; height: 13px; }
.cat-chips {
  display: flex; gap: 7px; overflow-x: auto;
  padding: 14px 18px 4px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.chip.active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px 0; }
.active-filters:empty { display: none; }
.active-filters .chip { display: inline-flex; align-items: center; gap: 5px; }
.shop-grid { padding: 18px 18px 30px; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 4px 18px 34px; }
.pagination button {
  min-width: 34px; height: 34px;
  border: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.pagination button.active { border-color: var(--gold); color: var(--gold); }

/* ---------- pdp ---------- */
.pdp-gallery { position: relative; background: var(--surface); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.gallery-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.gallery-dots i.active { background: var(--gold); width: 14px; border-radius: 2px; }
.pdp-body { padding: 22px 18px 30px; }
.pdp-cat { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pdp-body h1 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.22; margin-top: 10px; }
.pdp-en { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 10px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.price-row .now { font-size: 22px; letter-spacing: .02em; }
.price-row del { font-size: 12px; color: var(--dim); }
.price-row .save { font-size: 9.5px; letter-spacing: .08em; color: var(--gold); border: 1px solid rgba(195,166,123,.3); padding: 2px 7px; }
.pdp-desc { margin-top: 18px; font-size: 12px; line-height: 1.9; color: rgba(236,232,225,.72); }
.stock-line { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 10.5px; color: var(--muted); }
.stock-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.stock-line .dot.low { background: var(--gold); }
.stock-line .dot.out { background: var(--wine); }
.pdp-extras { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-extras span { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .04em; color: var(--dim); }
.pdp-extras svg { width: 14px; height: 14px; color: var(--gold); }
.accordion { margin-top: 6px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 17px 0; font-size: 11.5px; letter-spacing: .04em; text-align: left; }
.acc-head .plus { font-size: 15px; color: var(--muted); transition: transform .25s; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 0 18px; font-size: 11px; line-height: 1.85; color: var(--muted); }
.acc-item.open .acc-body { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11px; vertical-align: top; }
.spec-table td:first-child { width: 38%; color: var(--dim); }
.spec-table tr:last-child td { border-bottom: 0; }

/* sticky buy bar */
.buybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,12,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  height: 46px;
}
.qty button { width: 34px; height: 100%; font-size: 15px; color: var(--muted); }
.qty span { min-width: 22px; text-align: center; font-size: 12px; }
.buybar .btn { flex: 1; height: 46px; padding: 0 10px; }
.related { padding: 34px 18px calc(120px + env(safe-area-inset-bottom)); }
.related .section-head { margin-bottom: 16px; }

/* ---------- cart ---------- */
.cart-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.cart-list { padding: 6px 18px 0; }
.cart-row { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { flex: none; width: 76px; height: 95px; overflow: hidden; background: var(--surface-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-main .name { font-size: 12.5px; line-height: 1.4; }
.cart-main .meta { margin-top: 3px; font-size: 10px; color: var(--dim); }
.cart-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.qty.sm { height: 30px; }
.qty.sm button { width: 28px; font-size: 13px; }
.qty.sm span { min-width: 20px; font-size: 11px; }
.link-btn { font-size: 9.5px; letter-spacing: .08em; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: #c98b91; }
.cart-price { flex: none; font-size: 12px; text-align: right; }
.summary-card { margin: 20px 18px 0; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.summary-card h3 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 11.5px; color: var(--muted); }
.summary-line.gold { color: var(--gold); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-total .label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.summary-total .value { font-size: 19px; }
.checkout-bar {
  position: fixed;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  z-index: 55;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,12,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.checkout-bar .sum { flex: none; display: flex; flex-direction: column; }
.checkout-bar .sum small { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.checkout-bar .sum strong { font-size: 16px; font-weight: 400; }
.checkout-bar .btn { flex: 1; }
.cart-note { padding: 14px 18px 0; font-size: 9.5px; line-height: 1.7; color: var(--dim); }

/* ---------- checkout ---------- */
.checkout-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.block { padding: 20px 18px; border-bottom: 1px solid var(--line); }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.addr-card {
  display: flex; gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s;
}
.addr-card.selected { border-color: var(--gold); }
.addr-card .radio { flex: none; width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 50%; margin-top: 2px; position: relative; }
.addr-card.selected .radio { border-color: var(--gold); }
.addr-card.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.addr-main { flex: 1; min-width: 0; }
.addr-main strong { display: block; font-size: 12px; font-weight: 500; }
.addr-main .addr-line { margin-top: 4px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.addr-main .addr-phone { font-size: 10px; color: var(--dim); margin-top: 3px; }
.pay-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--line);
  margin-bottom: 8px;
  cursor: pointer;
}
.pay-card.selected { border-color: var(--gold); }
.pay-card.disabled { opacity: .45; cursor: default; }
.pay-card .pay-logo {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: 13px; color: var(--gold);
}
.pay-main { flex: 1; }
.pay-main strong { display: block; font-size: 12px; font-weight: 500; }
.pay-main small { display: block; font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.radio-dot { width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.pay-card.selected .radio-dot { border-color: var(--gold); }
.pay-card.selected .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.input, textarea.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 12px;
  font-size: 12.5px;
  outline: none;
  transition: border-color .2s;
}
.input:focus { border-color: rgba(195,166,123,.55); }
textarea.input { resize: vertical; min-height: 72px; }
.checkout-items { border-top: 1px solid var(--line); }
.co-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-item img { width: 44px; height: 55px; object-fit: cover; background: var(--surface-2); }
.co-main { flex: 1; min-width: 0; }
.co-main span { display: block; font-size: 11.5px; }
.co-main small { display: block; font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.co-price { font-size: 11.5px; }
.sandbox-note { display: flex; gap: 8px; padding: 12px 14px; background: var(--gold-soft); border: 1px solid rgba(195,166,123,.22); font-size: 10px; line-height: 1.6; color: var(--gold); margin: 16px 18px 0; }
.sandbox-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* ---------- pay ---------- */
.pay-page { padding: 22px 18px calc(40px + env(safe-area-inset-bottom)); }
.pay-card-main { border: 1px solid var(--line); background: var(--surface); padding: 22px 20px; }
.pay-order-no { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .06em; color: var(--dim); }
.pay-amount { margin-top: 22px; text-align: center; }
.pay-amount small { display: block; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.pay-amount strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 42px; letter-spacing: .01em; margin-top: 6px; }
.pay-timer { margin-top: 14px; text-align: center; font-size: 11px; color: var(--muted); }
.pay-timer b { color: var(--gold); font-weight: 400; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pay-method { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.pay-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pay-hint { margin-top: 16px; font-size: 9.5px; line-height: 1.7; color: var(--dim); text-align: center; }
.pay-result { text-align: center; padding: 36px 20px; border: 1px solid var(--line); background: var(--surface); }
.result-icon { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid rgba(138,168,140,.4); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.result-icon.wine { border-color: rgba(141,74,83,.5); color: #c98b91; }
.result-icon svg { width: 24px; height: 24px; }
.pay-result h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; }
.pay-result p { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.75; }
.pay-detail { margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.pay-detail div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 10.5px; color: var(--muted); }
.pay-detail b { font-weight: 400; color: var(--text); text-align: right; word-break: break-all; }

/* ---------- auth ---------- */
.auth-page { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-visual { position: relative; height: 32dvh; min-height: 200px; overflow: hidden; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,8,.2), var(--bg)); }
.auth-quote { position: absolute; left: 20px; bottom: 22px; right: 20px; }
.auth-quote blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.auth-quote .sig { margin-top: 8px; font-size: 8px; letter-spacing: .2em; color: var(--gold); }
.auth-panel { flex: 1; padding: 26px 22px 40px; }
.auth-panel h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 6px; }
.auth-panel .sub { margin-top: 8px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.auth-form { margin-top: 24px; }
.auth-switch { margin-top: 18px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.auth-switch button { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.demo-hint { margin-top: 26px; padding: 14px; border: 1px solid var(--line); font-size: 10px; line-height: 1.9; color: var(--dim); }
.demo-hint strong { color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.demo-hint .fill { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.auth-back { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,.35); }

/* ---------- account ---------- */
.account-page { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.profile { padding: 26px 18px 22px; border-bottom: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(195,166,123,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; color: var(--gold);
  margin-bottom: 14px;
}
.profile h1 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.profile p { margin-top: 4px; font-size: 10.5px; color: var(--dim); }
.seg-tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 56px; background: rgba(10,10,12,.94); backdrop-filter: blur(14px); z-index: 20; }
.seg-tabs button { flex: 1; padding: 13px 4px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.seg-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }
.account-body { padding: 18px; }
.status-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.status-filter::-webkit-scrollbar { display: none; }
.order-card { border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.order-card-head .no { font-size: 9.5px; letter-spacing: .06em; color: var(--dim); }
.order-items { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.oi-row { display: flex; gap: 10px; align-items: center; }
.oi-row img { width: 44px; height: 55px; object-fit: cover; background: var(--surface-2); }
.oi-row .oi-main { flex: 1; min-width: 0; }
.oi-row .oi-main span { display: block; font-size: 11.5px; }
.oi-row .oi-main small { display: block; margin-top: 2px; font-size: 9.5px; color: var(--dim); }
.oi-row .oi-price { font-size: 10.5px; color: var(--muted); }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.order-total { font-size: 10.5px; color: var(--muted); }
.order-total b { font-weight: 400; color: var(--text); font-size: 13px; margin-left: 4px; }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.address-card { border: 1px solid var(--line); background: var(--surface); padding: 14px; margin-bottom: 9px; }
.address-card .ac-head { display: flex; align-items: center; gap: 8px; }
.address-card strong { font-size: 12px; font-weight: 500; }
.address-card .default-pill { font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(195,166,123,.35); padding: 1px 6px; }
.address-card p { margin-top: 6px; font-size: 10.5px; line-height: 1.65; color: var(--muted); }
.address-card .ac-actions { display: flex; gap: 14px; margin-top: 10px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.settings-row span { color: var(--muted); }
.settings-row b { font-weight: 400; }
.settings-row button { font-size: 10.5px; color: var(--gold); }
.login-prompt { padding: 50px 22px; text-align: center; }
.login-prompt h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.login-prompt p { margin-top: 10px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.login-prompt .btns { margin-top: 22px; display: flex; gap: 8px; justify-content: center; }
.login-prompt .btn { flex: 1; max-width: 160px; }

/* order detail sheet */
.sheet { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.62); opacity: 0; transition: opacity .3s; }
.sheet.open .sheet-mask { opacity: 1; }
.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  background: #101013;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--line-strong);
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  transition: transform .34s var(--ease);
}
.sheet.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #101013; border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-head h3 { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.sheet-body { padding: 18px; }
.sheet-body .field:last-child { margin-bottom: 0; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
.section-label { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 20px 0 10px; }
.section-label:first-child { margin-top: 0; }
.detail-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-item img { width: 46px; height: 58px; object-fit: cover; background: var(--surface-2); }
.detail-item .di-main { flex: 1; }
.detail-item span { display: block; font-size: 11.5px; }
.detail-item small { display: block; font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-row { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); margin-top: 5px; flex: none; }
.tl-row.done .tl-dot { background: var(--gold); border-color: var(--gold); }
.tl-row .tl-text { flex: 1; }
.tl-row .tl-text span { display: block; font-size: 11px; }
.tl-row .tl-text small { display: block; font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 11px; color: var(--muted); }
.kv b { font-weight: 400; color: var(--text); text-align: right; }

/* ---------- shared states ---------- */
.empty-box { padding: 60px 24px; text-align: center; }
.empty-box h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.empty-box p { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.75; }
.empty-box .btn { margin-top: 20px; }
.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.status-pill {
  display: inline-block;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill.paid, .status-pill.completed { color: var(--ok); border-color: rgba(138,168,140,.3); }
.status-pill.shipped { color: var(--gold); border-color: rgba(195,166,123,.3); }
.status-pill.pending_payment { color: #d8b27e; border-color: rgba(216,178,126,.3); }
.status-pill.cancelled { color: #a88085; border-color: rgba(168,128,133,.28); }

/* toast */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 360px;
  pointer-events: none;
}
.toast {
  padding: 11px 18px;
  background: rgba(28,28,33,.97);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .02em;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  animation: toast-in .3s var(--ease);
}
.toast.ok { border-color: rgba(138,168,140,.4); }
.toast.err { border-color: rgba(201,139,145,.45); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; }
}

/* utility */
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.hidden { display: none !important; }

/* language picker */
.lang-list { display: flex; flex-direction: column; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); font-size: 14px; letter-spacing: .04em;
  font-family: var(--sans); cursor: pointer;
}
.lang-option:last-child { border-bottom: 0; }
.lang-option span { font-size: 14px; }
.lang-option i { font-style: normal; color: var(--gold); font-size: 13px; }
.lang-option.active { color: var(--gold); }
.lang-option.active span { font-weight: 500; }

