:root {
  --bg: #f4f1eb;
  --paper: #fffcf8;
  --ink: #161412;
  --muted: #7a736b;
  --line: #e7e1d8;
  --gold: #8d6e3d;
  --gold-soft: #f3eadb;
  --sale: #9c1c28;
  --good: #1f6b45;
  --shadow: 0 10px 30px rgba(40, 32, 22, 0.06);
  --nav-h: calc(58px + env(safe-area-inset-bottom));
  --buy-h: calc(64px + env(safe-area-inset-bottom));
  font-family: "Manrope", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 500px at 50% -10%, #fff 0%, transparent 50%),
    #e6e0d6;
  color: var(--ink);
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { -webkit-tap-highlight-color: transparent; }

.phone {
  width: min(440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(40, 30, 20, 0.05);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 225, 216, 0.9);
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.22em;
}
.logo b {
  font-family: "Cormorant Garamond", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.logo span {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.header h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
}
.icon-btn svg { width: 22px; height: 22px; }
.bag-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.spacer { width: 36px; }

main {
  padding-bottom: var(--nav-h);
}
main.with-buy { padding-bottom: calc(var(--buy-h) + 12px); }

.ticker {
  overflow: hidden;
  background: #171512;
  color: #f3eadb;
  font-size: 12px;
  letter-spacing: 0.08em;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker-track {
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  position: relative;
  margin: 12px 14px 0;
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1816;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.slide.on { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.slide .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,10,8,0.78) 0%, rgba(12,10,8,0.15) 70%);
}
.slide .copy {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 70px;
  color: #fff;
}
.slide .kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #e6d3ae;
}
.slide h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.slide p { margin: 8px 0 0; font-size: 12px; color: rgba(255,255,255,0.8); }
.dots {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.4);
}
.dot.on { width: 16px; background: #fff; }

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 4px;
  padding: 16px 10px 6px;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3c3834;
  text-decoration: none;
}
.cat i,
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-style: normal;
  color: var(--gold);
  box-shadow: 0 4px 12px rgba(40, 32, 22, 0.04);
}
.cat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.cat span {
  line-height: 1.2;
  text-align: center;
  max-width: 74px;
}

.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 16px 10px;
}
.sec h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.sec a, .sec button.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sale);
  background: #fdecee;
  border-radius: 99px;
  padding: 4px 8px;
}

.brand-row, .hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.brand-row::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.brand-chip {
  flex: 0 0 auto;
  width: 92px;
  scroll-snap-align: start;
  text-align: center;
}
.seal {
  height: 92px;
  width: 92px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  overflow: hidden;
  line-height: 1.05;
}
.seal.has-photo {
  padding: 6px;
  background: #fff;
}
.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-chip small {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.brand-chip b {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 18px;
}
.pcard {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(231, 225, 216, 0.8);
  box-shadow: var(--shadow);
  min-width: 0;
}
.pcard.wide {
  flex: 0 0 168px;
  scroll-snap-align: start;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--ink);
  color: #f6efe4;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 99px;
}
.meta { padding: 10px 10px 12px; }
.pbrand {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.meta h3 {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
}
.prow { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prow b { font-size: 15px; color: var(--sale); font-weight: 700; }
.prow s { color: var(--muted); font-size: 11px; }

.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 14px 24px;
}
.promise div {
  background: var(--paper);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}
.promise strong { display: block; font-size: 13px; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 11px; line-height: 1.4; }

.toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 14px 8px;
  position: sticky;
  top: calc(56px + env(safe-area-inset-top));
  background: var(--bg);
  z-index: 15;
}
.toolbar select, .ghost, .searchbox input, .field input {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  height: 36px;
  padding: 0 12px;
}
.toolbar select { flex: 1; }
.list-toolbar { padding-top: 8px; }
.filter-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.chips.active-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0;
  padding: 0 14px 4px;
  scrollbar-width: none;
}
.chips.active-filters::-webkit-scrollbar { display: none; }
.sheet-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ghost {
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.searchbox { padding: 12px 14px 0; }
.searchbox form, .searchbox input { width: 100%; }
.searchbox input { border-radius: 12px; height: 42px; padding: 0 14px; outline: none; }
.hint { color: var(--muted); font-size: 12px; padding: 0 16px 8px; }
.empty {
  margin: 28px 16px;
  padding: 36px 16px;
  text-align: center;
  background: var(--paper);
  border-radius: 18px;
  border: 1px dashed var(--line);
}
.empty h3 { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-size: 28px; font-weight: 500; }
.empty p { margin: 0; color: var(--muted); font-size: 13px; }

.gallery { background: transparent; }
.gallery .stage {
  margin: 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.gallery .main {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  display: block;
  background: #fff;
}
.thumbs { display: flex; gap: 8px; padding: 10px 14px; background: transparent; }
.thumbs a, .thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}
.thumbs a.on, .thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.detail { padding: 4px 16px 12px; }
.detail .pbrand { letter-spacing: 0.2em; }
.detail h2 {
  margin: 6px 0;
  font-family: "Cormorant Garamond", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}
.series { margin: 0; color: var(--muted); font-size: 13px; }
.rate { margin: 8px 0 0; font-size: 12px; color: #5c564f; }
.pricebox {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbf6ee 100%);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.pricebox .now { font-size: 26px; color: var(--sale); font-weight: 700; }
.pricebox .was { color: var(--muted); font-size: 12px; margin-top: 2px; }
.save {
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  text-align: right;
}
.blurb { font-size: 14px; line-height: 1.7; color: #3f3a35; }
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.specs div {
  background: var(--paper);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--line);
}
.specs em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.specs strong { font-size: 13px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.qtyline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.buybar, .tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(440px, 100%);
  z-index: 35;
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.buybar {
  display: grid;
  grid-template-columns: minmax(0, auto) 52px 1fr 1.15fr;
  gap: 6px;
  align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.buybar .mini {
  min-width: 0;
  padding-right: 2px;
}
.buybar .mini b {
  display: block;
  color: var(--sale);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.buybar .mini span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.buybar .fav-form { margin: 0; min-width: 0; }
.buybar .btn {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.buybar .btn.fav {
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--line);
  color: #5c564f;
}
.buybar .btn.fav.on {
  color: var(--sale);
  border-color: #e8c4c0;
  background: #fff7f6;
}
.buybar .btn.cart { background: #efeae3; color: var(--ink); }
.buybar .btn.buy { letter-spacing: 0.04em; }
.btn {
  border: 0;
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  background: #efeae3;
  font: inherit;
  cursor: pointer;
}
.btn.dark { background: #171512; color: #f6efe4; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.45; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--nav-h);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8a837b;
}
.tabbar a.on { color: var(--ink); }
.tabbar svg { width: 20px; height: 20px; }

.cart-list { padding: 8px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.cline {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  background: var(--paper);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid var(--line);
}
.cline img { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; background: #efeae3; }
.cline h3 { margin: 2px 0 4px; font-size: 14px; }
.cline .sub { margin: 0; color: var(--muted); font-size: 12px; }
.cline .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.summary {
  margin: 12px 14px 16px;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--line);
}
.summary div { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.summary .total b { font-size: 18px; }

.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.tile {
  position: relative;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: #222 center/cover no-repeat;
}
.tile span { position: relative; z-index: 1; font-size: 16px; letter-spacing: 0.08em; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 14px calc(14px + var(--nav-h));
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.brand-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}
.brand-card.has-cover {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}
.brand-card.has-cover img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.brand-card.has-cover > div {
  min-width: 0;
  overflow: hidden;
}
.brand-card b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.me, .me-page, .orders-page { padding: 14px; }
.orders-page { padding-top: 0; }
.profile {
  background: #171512;
  color: #f6efe4;
  border-radius: 18px;
  padding: 18px;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile em { font-style: normal; letter-spacing: 0.18em; font-size: 11px; color: #e6d3ae; }
.profile h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
}
.profile-sub { margin: 8px 0 0; color: #d9d0c4; font-size: 13px; }
.panel {
  margin-top: 12px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.panel-head strong { font-size: 15px; }
.panel-head a { color: var(--gold); font-size: 12px; }
.ostat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ostat-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  background: #f7f2ea;
}
.ostat-grid i {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ostat-grid span { font-size: 11px; color: var(--muted); }
.menu { padding: 0; overflow: hidden; }
.menu form { margin: 0; }
.menu button, .menu a {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.menu em { font-style: normal; color: var(--muted); }
.menu :last-child { border-bottom: 0; }
.ocards { display: flex; flex-direction: column; gap: 10px; }
.ocards .ocard:first-child { margin-top: 0; }
.ocard {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.panel .ocards .ocard {
  background: #fbf8f3;
}
.ocard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ocard-id {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ostatus {
  flex: 0 0 auto;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #efeae3;
  color: #5c564f;
}
.ostatus.s-pending_pay { background: #fdecee; color: var(--sale); }
.ostatus.s-paid { background: #fff4df; color: #8d6e3d; }
.ostatus.s-shipped, .ostatus.s-delivered { background: #e8f5ee; color: var(--good); }
.ostatus.s-done { background: #efeae3; color: #5c564f; }
.ostatus.s-cancelled { background: #f3f3f3; color: #888; }
.ocard-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
}
.ocard-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}
.ocard-thumb.empty { background: linear-gradient(135deg, #efeae3, #e7e1d8); }
.ocard-info { min-width: 0; }
.ocard-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ocard-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.ocard-pay { margin-top: 8px; font-size: 13px; }
.ocard-pay b { color: var(--sale); font-size: 15px; }
.ocard-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.ghost-link {
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
}
.order {
  display: block;
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.order .row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.order p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.order li { margin: 8px 0 0; font-size: 14px; }

.mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.46);
  z-index: 50;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(440px, 100%);
  max-height: 86dvh;
  overflow: auto;
  background: #fffcf8;
  border-radius: 20px 20px 0 0;
  z-index: 51;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.grab {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #ddd6cc;
  margin: 6px auto 12px;
}
.sheet h3 { margin: 0 0 12px; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips.filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 12px 0 4px;
  scrollbar-width: none;
}
.chips.filters .chip { flex: 0 0 auto; }
.chips.filters::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}
.chip.on { background: #171512; color: #f6efe4; border-color: #171512; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.field input, .field select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  height: 42px;
  width: 100%;
  padding: 0 12px;
}
.phone-row {
  display: grid;
  grid-template-columns: minmax(112px, 38%) 1fr;
  gap: 8px;
}
.phone-row select {
  padding: 0 8px;
  font-size: 12px;
}
.sheet-actions { display: flex; gap: 8px; margin-top: 8px; }
.sheet-actions .btn { flex: 1; }
.order-confirm { padding-top: 4px; }
.order-confirm h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.confirm-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
.confirm-point {
  background: #f7f2ea;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.confirm-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.confirm-point p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 12px);
  transform: translateX(-50%) translateY(12px);
  background: #171512;
  color: #f6efe4;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
  width: max-content;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.note { font-size: 12px; color: var(--good); margin: 0 0 8px; }
.block-title { margin: 16px 0 8px; font-size: 15px; }
.addr-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}
.addr-card input { margin-top: 3px; }
.addr-card span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.addr-card strong { font-size: 14px; font-weight: 600; }
.addr-card em { font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.4; }
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
}
.checkline input { width: auto; height: auto; }
.thumb img, .ocard-thumb, .gallery .main, .seal img {
  background: #fff;
}
.mask[hidden], .sheet[hidden] { display: none !important; }
.sheet-actions .btn {
  height: 42px;
  border-radius: 999px;
}
.pcard { position: relative; }
.pcard > a { color: inherit; }
.heart-form { position: absolute; right: 8px; top: 8px; z-index: 2; }
.heart {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,252,248,.92); color: #b9b2a8;
}
.heart.on { color: var(--sale); background: #fff; }
a.chip { display: inline-flex; align-items: center; }
.track { list-style: none; margin: 12px 0; padding: 0; }
.track li { padding: 0 0 14px 14px; border-left: 2px solid #e6d3ae; }
.track li b { display: block; font-size: 14px; }
.track li span, .track li p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.stepper form, .cline .row form { display: inline; }
.link { border: 0; background: none; color: #8a837b; padding: 0; }
.field input[type="checkbox"] { width: auto; height: auto; }
