:root {
  --paper: #f3efe8;
  --paper-2: #e7e1d6;
  --ink: #1c1714;
  --muted: #6f675f;
  --line: rgba(28, 23, 20, 0.12);
  --oxblood: #7a2433;
  --brass: #8d6e45;
  --white: #fffcf8;
  --serif: "Palatino Linotype", Palatino, "Songti SC", "PMingLiU", "Yu Mincho", Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Microsoft JhengHei", "Yu Gothic UI", "Malgun Gothic", sans-serif;
  --shadow: 0 24px 60px rgba(28, 23, 20, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
::selection { background: var(--oxblood); color: white; }

.wrap { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.wrap-l { width: min(1440px, calc(100% - 36px)); margin-inline: auto; }

.promo {
  background: var(--ink);
  color: #f3efe8;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
}
html[lang^="zh"] .promo, html[lang="ja"] .promo, html[lang="ko"] .promo, html[lang="ar"] .promo {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 16px;
}
.word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.28em;
  font-weight: 500;
}
.primary-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.primary-nav a, .text-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
html[lang^="zh"] .primary-nav a, html[lang="ja"] .primary-nav a, html[lang="ko"] .primary-nav a,
html[lang="ar"] .primary-nav a { letter-spacing: 0.02em; text-transform: none; font-size: 14px; }
.primary-nav a.is-on { box-shadow: inset 0 -1px 0 var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn, .locale-btn {
  background: transparent;
  border: 0;
  min-height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.icon-btn svg { width: 20px; height: 20px; }
.locale-btn { font-size: 12px; letter-spacing: 0.06em; }
.sell-link {
  background: var(--ink);
  color: var(--paper);
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
html[lang^="zh"] .sell-link, html[lang="ja"] .sell-link, html[lang="ko"] .sell-link { letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.sell-link:hover { background: var(--oxblood); }
.burger { display: none; }
.bag-count {
  font-size: 11px;
  min-width: 16px;
}

.pop { position: relative; }
.menu, .search-pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 40;
}
.locale-menu { width: min(320px, 80vw); max-height: 70vh; overflow: auto; padding: 6px; }
.locale-item, .hit {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.locale-item small, .hit small { color: var(--muted); }
.locale-item.is-on, .locale-item:hover, .hit:hover { background: var(--paper); }
.search-pop { width: min(420px, 86vw); padding: 12px; }
.search-pop input, .field input, .field select, .stack input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  border-radius: 0;
}
.hits { display: grid; margin-top: 8px; }
.hit { align-items: center; }
.hit b { font-weight: 500; }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 0 18px;
  background: var(--paper);
}
.mobile-panel a, .mobile-panel button.navish {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-family: var(--serif);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 120px);
  background: var(--paper);
}
.hero-copy { padding: clamp(36px, 6vw, 88px) 0; display: flex; flex-direction: column; justify-content: center; }
.hero-copy-inner { width: min(640px, calc(100% - 40px)); margin-inline: auto; }
.kicker, .eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brass);
  margin: 0 0 14px;
}
html[lang^="zh"] .kicker, html[lang="ja"] .kicker, html[lang="ko"] .kicker,
html[lang^="zh"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="ko"] .eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 13px;
}
.hero-title, .page-title, .band-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
}
.hero-title { font-size: clamp(46px, 6vw, 84px); }
html[lang^="zh"] .hero-title, html[lang="ja"] .hero-title, html[lang="ko"] .hero-title { letter-spacing: 0; line-height: 1.18; }
.lead { font-size: 18px; max-width: 46ch; color: var(--muted); }
.hero-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  gap: 8px;
}
html[lang^="zh"] .btn, html[lang="ja"] .btn, html[lang="ko"] .btn { letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover, .btn.line:hover { background: var(--oxblood); border-color: var(--oxblood); color: white; }
.stats { display: flex; gap: 22px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.stats span { color: var(--muted); font-size: 13px; }
.hero-stage { background: #e7e0d4; min-height: 520px; display: grid; place-items: center; position: relative; }
.hero-stage svg { width: min(560px, 92%); height: auto; }
.float-card {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 24px;
  background: var(--white);
  padding: 14px 16px;
  width: min(260px, calc(100% - 48px));
  box-shadow: var(--shadow);
}
.float-card strong { font-family: var(--serif); font-size: 22px; font-weight: 500; display: block; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.trust article { padding: 28px 22px; border-inline-end: 1px solid var(--line); }
.trust article:last-child { border-inline-end: 0; }
.trust h3, .step h3, .auth-grid h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 8px; }
.trust p, .step p, .muted { color: var(--muted); margin: 0; }

.section { padding: 72px 0; }
.section-head, .shop-head, .split {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2, .shop-head h1, .page-title { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 500; margin: 0; letter-spacing: -0.03em; }
html[lang^="zh"] .section-head h2, html[lang="ja"] .section-head h2, html[lang="ko"] .section-head h2,
html[lang^="zh"] .page-title, html[lang="ja"] .page-title, html[lang="ko"] .page-title { letter-spacing: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { background: var(--white); min-height: 220px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid transparent; }
.cat-tile:hover { border-color: var(--ink); }
.cat-tile span { font-family: var(--serif); font-size: 28px; }
.cat-tile svg { width: 100%; height: auto; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.card { position: relative; }
.card-media { background: var(--white); display: block; aspect-ratio: 4/5; overflow: hidden; }
.card-media svg { width: 100%; height: 100%; transition: transform 0.5s ease; }
.card:hover .card-media svg { transform: scale(1.04); }
.wish {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,252,248,.9);
  display: grid; place-items: center;
}
.wish svg { width: 16px; height: 16px; }
.wish.is-on svg { fill: var(--oxblood); stroke: var(--oxblood); }
.card-body { padding: 12px 2px 0; }
.brand { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.pname { margin: 4px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.meta { color: var(--muted); font-size: 13px; margin: 0; }
.price { margin: 6px 0 0; font-size: 15px; }
.was { color: var(--muted); text-decoration: line-through; margin-inline-start: 8px; }
.off { color: var(--oxblood); margin-inline-start: 8px; font-size: 13px; }
.badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.sell-band { display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--ink); color: var(--paper); }
.sell-band .copy, .sell-band .stage { padding: clamp(32px, 5vw, 72px); }
.sell-band .lead, .sell-band .kicker { color: #d9cfc3; }
.band-title { font-size: clamp(40px, 5vw, 68px); }
.sell-band .stage { background: #2a2420; display: grid; place-items: center; }
.sell-band .btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sell-band .btn.line { color: var(--paper); border-color: var(--paper); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.num { font-family: var(--serif); font-size: 42px; color: var(--brass); display: block; }

.des-list { display: grid; }
.des-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
}
.des-link small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.des-link:hover { color: var(--oxblood); }

.site-footer { background: var(--ink); color: #f3efe8; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 12px; }
.site-footer a, .site-footer p { color: #d9cfc3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal { margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(243,239,232,.15); color: #b7ada3; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page { padding: 36px 0 80px; }
.toolbar, .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips { margin: 8px 0 22px; }
.chip, .choice, .pay {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 40px;
  padding: 8px 12px;
}
.chip.is-on, .choice.is-on, .pay.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
select.chip { background: var(--white); }
.note { color: var(--muted); font-size: 13px; }

.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.pdp-media { background: var(--white); }
.pdp-media svg { width: 100%; height: auto; }
.spec-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 22px 0; font-size: 15px; }
.spec-list span { color: var(--muted); }
.auth-grid, .atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auth-grid article, .atelier, .quote-row, .bag-line, .account-card, .estimate-card, .success {
  background: var(--white);
  padding: 18px;
  border: 1px solid var(--line);
}
.atelier-grid { grid-template-columns: repeat(3, 1fr); }
.atelier h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; font-weight: 500; }

.wizard { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 18px 0; }
.progress li {
  flex: 1;
  height: 3px;
  background: var(--line);
}
.progress li.is-on, .progress li.is-done { background: var(--ink); }
.choices, .pays { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-width: 120px; font-family: var(--serif); font-size: 20px; }
.fields { display: grid; gap: 8px; margin-top: 8px; }
.field label, .check { display: block; font-size: 13px; color: var(--muted); }
.alert { color: var(--oxblood); min-height: 1.2em; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs figure { margin: 0; width: 84px; position: relative; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; }
.thumbs button { position: absolute; top: 2px; inset-inline-end: 2px; border: 0; background: var(--ink); color: white; width: 20px; height: 20px; }
.estimate-card { position: sticky; top: 96px; }
.estimate-card strong { font-family: var(--serif); font-size: 36px; font-weight: 500; display: block; line-height: 1.1; }
.summary { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; }

.backdrop {
  position: fixed; inset: 0;
  background: rgba(28,23,20,.35);
  z-index: 50;
}
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer header, .drawer footer { padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.drawer h2 { font-family: var(--serif); font-weight: 500; margin: 0; }
.drawer .lines { padding: 0 18px; overflow: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
.bag-line svg { width: 72px; height: 90px; background: var(--paper); }
.stack { display: grid; gap: 8px; }

#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
}
#toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
[dir="rtl"] #toast { transform: translateX(50%) translateY(20px); }
[dir="rtl"] #toast.is-on { transform: translateX(50%) translateY(0); }

.prose { max-width: 68ch; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); }
.account-card { max-width: 480px; display: grid; gap: 8px; }
.quote-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.success h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; margin: 0 0 8px; }

@media (max-width: 1100px) {
  .product-grid, .trust, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust article { border-bottom: 1px solid var(--line); }
  .foot-grid, .atelier-grid, .auth-grid, .pdp, .wizard, .sell-band, .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .primary-nav, .locale-btn span.long { display: none; }
  .burger { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .mobile-panel.is-open { display: block; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap-l, .hero-copy-inner { width: calc(100% - 28px); }
  .cat-grid, .product-grid, .stats { grid-template-columns: 1fr 1fr; }
  .stats { display: grid; }
  .hero-title { font-size: 42px; }
  .spec-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
