/* ── 토큰 ─────────────────────────────────────────────────── */
:root {
  --paper:  #ffffff;
  --wash:   #f7f5f2;
  --ink:    #1a1613;
  --ink-2:  #5f574f;
  --ink-3:  #948b81;
  --rule:   #e5e0d9;
  --tan:    #6b4632;   /* 가죽 갈색 — 브랜드 색 */
  --tan-d:  #4a3226;
  --ok:     #1f7a4d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── 머리말 ───────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 22px; height: 30px; border-radius: 7px;
  background: linear-gradient(160deg, var(--tan), var(--tan-d));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.22);
}
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.top-nav { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── 상품 ─────────────────────────────────────────────────── */
.product {
  max-width: 1080px; margin: 0 auto; padding: 34px 24px 72px;
  display: grid; gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: start;
}
@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; gap: 28px; padding-top: 22px; }
}

.shot {
  background: var(--wash); border: 1px solid var(--rule); border-radius: 14px;
  overflow: hidden; aspect-ratio: 1 / 1;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button {
  width: 74px; aspect-ratio: 1 / 1; padding: 0; cursor: pointer;
  background: var(--wash); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
}
.thumbs button[aria-current="true"] { border-color: var(--tan); box-shadow: 0 0 0 1px var(--tan); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.sub { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

.price { margin: 18px 0 22px; font-size: 24px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.was { font-size: 16px; font-weight: 500; color: var(--ink-3); text-decoration: line-through; }

.opt { margin-bottom: 18px; }
.opt-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-vals button {
  font: inherit; font-size: 14px; cursor: pointer;
  padding: 9px 14px; border-radius: 9px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink);
}
.opt-vals button:hover { border-color: var(--ink-3); }
.opt-vals button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-row > label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 9px; overflow: hidden; }
.qty button {
  font: inherit; font-size: 17px; line-height: 1; cursor: pointer;
  width: 38px; height: 40px; border: 0; background: #fff; color: var(--ink);
}
.qty button:hover { background: var(--wash); }
.qty input {
  font: inherit; width: 46px; height: 40px; text-align: center;
  border: 0; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#payArea { min-height: 52px; }
.pay-note {
  margin: 12px 0 0; font-size: 13px; line-height: 1.6;
  color: var(--ink-2); background: var(--wash);
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px;
}
.pay-note:empty { display: none; }

.assure { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.assure li { padding-left: 20px; position: relative; }
.assure li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--tan);
}

.desc { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.desc p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.desc ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 5px; }

/* ── 완료 화면 ────────────────────────────────────────────── */
.done {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(26,22,19,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
}
.done[hidden] { display: none; }
.done-card {
  background: #fff; border-radius: 16px; padding: 34px 30px;
  max-width: 440px; width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.tick {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 27px; line-height: 52px; font-weight: 700;
}
.done-card h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.01em; }
.done-line { margin: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.done-note { margin: 16px 0 22px; font-size: 13.5px; color: var(--ink-3); }
.btn-ghost {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 9px; border: 1px solid var(--ink); color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ── 꼬리말 ───────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); background: var(--wash); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 26px 24px 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; margin-bottom: 16px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.biz { font-size: 12px; line-height: 1.85; color: var(--ink-3); }
.biz strong { color: var(--ink-2); font-weight: 600; }

/* ── 정책 문서 페이지 ─────────────────────────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 24px 72px; }
.doc h1 { font-size: 26px; margin: 0 0 8px; }
.doc .updated { color: var(--ink-3); font-size: 13px; margin: 0 0 26px; }
.doc h2 { font-size: 16px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 14.5px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
