/* ==========================================================
   한얼 HANEOL — Official Site
   Palette: 한지(paper) · 먹(ink) · 단청 적(red) · 청(teal) · 황(gold)
   ========================================================== */
:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --ink: #1c1a17;
  --ink-2: #4a453d;
  --muted: #7a7266;
  --red: #a8352a;
  --teal: #1f4e5a;
  --gold: #b8913f;
  --green: #3e6b4f;
  --line: rgba(28, 26, 23, .14);
  --card: #fbf8f2;
  --radius: 4px;
  --max: 1200px;
  --serif: "Noto Serif KR", "Cormorant Garamond", serif;
  --sans: "Noto Sans KR", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] body { font-family: "Inter", var(--sans); }
html[data-lang="en"] .serif, html[data-lang="en"] h1, html[data-lang="en"] h2, html[data-lang="en"] h3 {
  font-family: "Cormorant Garamond", var(--serif);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- language toggle ---------- */
html[data-lang="ko"] .en { display: none !important; }
html[data-lang="en"] .ko { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 24px; width: auto; display: block; }
.footer-logo { height: 24px; width: auto; filter: invert(1); opacity: .92; }
.logo-mark { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.logo-sub { font-family: "Cormorant Garamond", serif; font-size: 13px; letter-spacing: .32em; color: var(--muted); }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { color: var(--ink-2); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--red); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 12px;
}
.lang button { background: none; border: 0; padding: 5px 12px; color: var(--muted); letter-spacing: .08em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; width: 36px; height: 36px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: .25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: .02em; border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--red); border-color: var(--red); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- hero (video) ---------- */
.hero { position: relative; overflow: hidden; color: var(--paper); padding: 0; background: #111; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,14,.74) 0%, rgba(20,17,14,.42) 45%, rgba(20,17,14,.08) 100%); }
.hero .wrap { position: relative; display: flex; align-items: center; min-height: calc(100vh - 64px); max-height: 900px; padding-top: 80px; padding-bottom: 80px; }
.hero-copy { max-width: 620px; }
.eyebrow { font-size: 12px; letter-spacing: .3em; color: #e2c57f; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.22; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: #e8745f; }
.hero p.lead { margin-top: 24px; font-size: 17px; color: #e6ddcc; max-width: 540px; }
.hero .cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { color: var(--paper); border-color: rgba(246,241,231,.6); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.hero-vertical {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 13px; letter-spacing: .5em; color: rgba(246,241,231,.7);
}

/* ---------- section ---------- */
section { padding: 112px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.3; }
.sec-head p { color: var(--ink-2); max-width: 460px; }
.num { font-family: "Cormorant Garamond", serif; font-size: 14px; color: var(--gold); letter-spacing: .2em; display: block; margin-bottom: 12px; }

/* ---------- brand ---------- */
.brand { background: var(--ink); color: var(--paper); }
.brand .num { color: var(--gold); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.brand-name { display: flex; align-items: center; gap: 28px; font-family: var(--serif); }
.brand-name .ch { text-align: center; }
.brand-name .big { font-size: clamp(72px, 10vw, 128px); line-height: 1; font-weight: 700; }
.brand-name .gloss { font-size: 13px; letter-spacing: .12em; color: #bfb6a6; margin-top: 12px; }
.brand-name .plus { font-size: 36px; color: var(--gold); }
.brand h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.4; margin-bottom: 24px; font-weight: 600; }
.brand p { color: #d8cfbf; margin-bottom: 16px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(246,241,231,.15); margin-top: 72px; border: 1px solid rgba(246,241,231,.15); }
.value { background: var(--ink); padding: 32px 28px; }
.value h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; color: var(--paper); font-weight: 600; }
.value p { font-size: 14px; color: #bfb6a6; margin: 0; }
.value .ico { width: 36px; height: 36px; margin-bottom: 18px; color: var(--gold); }

.brand-logo { text-align: center; }
.brand-logo img { width: min(300px, 70%); height: auto; margin: 0 auto; filter: invert(1); }
.brand-logo .gloss { font-size: 13px; letter-spacing: .12em; color: #bfb6a6; margin-top: 24px; }

/* ---------- swatches ---------- */
.swatches { display: flex; gap: 8px; margin-bottom: 12px; }
.swatches button { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.2); padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.media img.swap { transition: opacity .25s; }

/* ---------- film ---------- */
.film { background: var(--ink); color: var(--paper); }
.film .sec-head p { color: #bfb6a6; }
.film-frame { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.film-frame video { width: 100%; height: 100%; display: block; }

/* ---------- collection filter ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--ink-2);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- products ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,26,23,.35); }
.card.hidden { display: none; }
.media { aspect-ratio: 4 / 3.4; background: var(--paper-2); position: relative; display: grid; place-items: center; overflow: hidden; }
.media svg { width: 78%; height: 78%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .1em;
  padding: 4px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.badge.red { background: var(--red); color: #fff; border-color: var(--red); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-bottom: 6px; }
.card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.35; }
.card .en-name { font-family: "Cormorant Garamond", serif; font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.card p.desc { color: var(--ink-2); font-size: 14.5px; margin-top: 12px; flex: 1; }
.card .links { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- milestones ---------- */
.milestones { background: var(--paper-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 28px; }
.stat .big small { font-size: .45em; margin-left: 4px; color: var(--ink-2); }
.stat .big { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; color: var(--red); line-height: 1.1; }
.stat h3 { font-size: 16px; margin-top: 12px; font-weight: 600; }
.stat p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ---------- coming soon ---------- */
.soon { background: var(--teal); color: var(--paper); position: relative; overflow: hidden; }
.soon .sec-head p { color: #cfdcd9; }
.soon .num { color: #e2c57f; }
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.soon-card { border: 1px solid rgba(246,241,231,.22); border-radius: var(--radius); overflow: hidden; background: rgba(0,0,0,.08); }
.soon-card .media { background: rgba(246,241,231,.06); aspect-ratio: 4/3; }
.soon-card .media svg { opacity: .95; }
.soon-card .card-body h3 { color: var(--paper); font-family: var(--serif); font-size: 20px; }
.soon-card .cat { color: #e2c57f; font-size: 12px; letter-spacing: .12em; margin-bottom: 6px; }
.soon-card p.desc { color: #cfdcd9; font-size: 14px; margin-top: 10px; }
.lock { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(15,40,46,.55)); }
.lock span { position: absolute; bottom: 14px; left: 14px; font-size: 11px; letter-spacing: .2em; border: 1px solid rgba(246,241,231,.5); padding: 4px 10px; border-radius: 999px; }

.notify { margin-top: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border-top: 1px solid rgba(246,241,231,.22); padding-top: 40px; }
.notify h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.notify p { color: #cfdcd9; font-size: 14px; margin-top: 4px; }
.notify form { display: flex; gap: 8px; }
.notify input {
  width: 300px; max-width: 100%; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid rgba(246,241,231,.4); background: transparent; color: var(--paper); font: inherit; font-size: 14px;
}
.notify input::placeholder { color: rgba(246,241,231,.55); }
.notify .btn { border-color: var(--paper); background: var(--paper); color: var(--teal); }
.notify .btn:hover { background: #e2c57f; border-color: #e2c57f; }
.notify .msg { font-size: 13px; margin-top: 10px; color: #e2c57f; min-height: 1em; }
.soon-card .media { position: relative; overflow: hidden; }
.soon-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; }
.soon-card .thumbs { display: flex; gap: 6px; padding: 10px 12px 0; }
.soon-card .thumbs button { flex: 0 0 44px; height: 44px; padding: 0; border: 1px solid rgba(246,241,231,.25); border-radius: 4px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.soon-card .thumbs button.on, .soon-card .thumbs button:hover { opacity: 1; border-color: #e2c57f; }
.soon-card .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.soon-card .spec { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: #e2c57f; }
.soon-note { margin-top: 20px; font-size: 12px; color: #cfdcd9; opacity: .85; }
.notify form { flex-wrap: wrap; max-width: 460px; }
.notify input[type=checkbox] { width: auto; padding: 0; margin: 3px 0 0; flex: none; accent-color: #e2c57f; }
.notify-agree { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.55; color: #cfdcd9; cursor: pointer; }
.notify-agree a { color: #e2c57f; text-decoration: underline; }

/* ---------- shop / contact ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.channel { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--card); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.channel:hover { border-color: var(--ink); }
.channel .tag { font-size: 12px; color: var(--muted); letter-spacing: .15em; }
.channel h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.channel p { font-size: 14px; color: var(--ink-2); flex: 1; }
.channel .arrow { font-size: 13px; color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #bfb6a6; padding: 64px 0 40px; font-size: 13px; }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(246,241,231,.12); }
.footer .logo-mark { color: var(--paper); }
.footer .slogan { margin-top: 10px; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer h4 { color: var(--paper); font-size: 13px; letter-spacing: .1em; margin-bottom: 12px; font-weight: 500; }
.footer li { list-style: none; margin-bottom: 6px; }
.footer a:hover { color: var(--paper); }
.footer .biz { margin-top: 28px; line-height: 1.9; }
.footer .copy { margin-top: 16px; color: #8a8276; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid, .soon-grid, .channels { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-vertical { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,17,14,.85) 20%, rgba(20,17,14,.35) 100%); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--paper); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav.open { transform: none; }
  .menu-btn { display: block; }
  .header .btn { display: none; }
  .grid, .soon-grid, .channels, .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .notify { grid-template-columns: 1fr; }
  .notify form { flex-direction: column; }
  .notify input { width: 100%; }
  .hero .wrap { min-height: 88vh; align-items: flex-end; }
  .logo-img { height: 20px; }
}

/* ==========================================================
   STORE
   ========================================================== */
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.link { color: var(--red); font-size: 14px; display: inline-block; margin-top: 12px; }
.form-msg { color: var(--red); font-size: 13.5px; min-height: 1.2em; margin-top: 10px; }
.load-error { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; }

/* header cart */
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.cart-btn:hover { background: var(--paper-2); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}
.cart-count[hidden] { display: none; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 99px; font-size: 14px; z-index: 100;
  transition: opacity .25s, transform .25s; white-space: nowrap; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #e2c57f; margin-left: 8px; }

/* product cards */
.card .media { display: grid; }
.card h3 a:hover { color: var(--red); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.info-tile { background: var(--ink); color: var(--paper); justify-content: center; }
.info-tile .card-body { justify-content: center; gap: 14px; }
.info-tile h3 { font-size: 26px; }
.perks { list-style: none; font-size: 14px; color: #d8cfbf; }
.perks li { padding: 8px 0; border-bottom: 1px solid rgba(246,241,231,.12); }
.perks li::before { content: "—  "; color: var(--gold); }

/* sub pages */
.page .header { background: rgba(246,241,231,.96); }
.page-main { padding-top: 48px; padding-bottom: 112px; min-height: 60vh; }
.page-main.narrow { max-width: 760px; }
.page-title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; margin-bottom: 32px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.empty-state { text-align: center; padding: 64px 0; display: grid; gap: 20px; justify-items: center; color: var(--ink-2); }

/* product detail */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.pdp-media { position: sticky; top: 88px; }
.pdp-media > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: none; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .cat { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.pdp-info h1 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.3; margin: 8px 0 12px; }
.pdp-price { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--red); }
.pdp-desc { margin: 24px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.pdp-desc p + p { margin-top: 10px; }
.field { margin-bottom: 20px; }
.field .label { font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 14px; }
.opt i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qty button { width: 40px; height: 40px; background: none; border: 0; font-size: 18px; }
.qty input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font: inherit; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 32px; height: 32px; font-size: 15px; }
.qty.sm input { width: 40px; }
.pdp-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.pdp-total b { font-family: var(--serif); font-size: 24px; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-actions .btn { padding: 15px; font-size: 15px; }
.pdp-notes { list-style: none; margin-top: 24px; font-size: 13px; color: var(--muted); }
.pdp-notes li { padding: 4px 0; }
.pdp-notes a { text-decoration: underline; }

/* cart / checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.lines { border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.line-name { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.line-info .qty { margin-top: 10px; }
.line-right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; display: grid; gap: 10px; }
.summary h2, .box h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 4px 0; }
.row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 600; font-size: 16px; }
.row.total span:last-child { font-family: var(--serif); font-size: 22px; color: var(--red); }
.summary .btn { margin-top: 6px; }
.s-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.s-line img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.checkout-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.checkout-form input:not([type="checkbox"]) {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.checkout-form input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.checkout-form input[readonly] { background: var(--paper); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-row { display: flex; gap: 8px; }
.addr-row input { max-width: 160px; }
.postcode-layer { height: 420px; border: 1px solid var(--line); margin-bottom: 14px; }
.checkout-form label.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.check a { text-decoration: underline; margin-left: 4px; }
.test-banner { background: #fff4d6; border: 1px solid #e6c56b; color: #6b4e00; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 24px; }
.test-banner b { margin-right: 6px; }

/* result */
.result { text-align: center; padding: 24px 0 32px; display: grid; gap: 12px; justify-items: center; }
.result h1 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
.result-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 30px; }
.result-mark.bad { background: var(--red); }

/* policy */
.policy .box { margin-bottom: 28px; }
.policy h3 { font-size: 15px; margin: 18px 0 6px; }
.policy ul { padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.policy li { margin-bottom: 4px; }
.policy p { color: var(--ink-2); font-size: 14.5px; }

@media (max-width: 980px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .pdp-media { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .page-main { padding-top: 32px; padding-bottom: 72px; }
  .line { grid-template-columns: 72px 1fr; }
  .line-img img { width: 72px; height: 72px; }
  .line-right { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; }
  .grid2 { grid-template-columns: 1fr; }
  .box, .summary { padding: 18px; }
}

/* product gallery / details */
.pdp-media > img { object-fit: contain; background: var(--card); }
.thumbs { flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; }
.pdp-section { margin-top: 80px; }
.pdp-section h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.spec th { width: 160px; font-weight: 500; color: var(--muted); background: var(--paper-2); }
.detail-stack { max-width: 860px; margin: 0 auto; }
.detail-stack img { width: 100%; display: block; }
@media (max-width: 760px) {
  .spec th { width: 96px; }
  .pdp-section { margin-top: 56px; }
}

/* static product page (HTML detail) */
.pdp-lead { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin: 20px 0 24px; padding: 16px 0 16px 16px; border-left: 3px solid var(--red); border-top: 0; }
.pdp-intro { max-width: 760px; margin-bottom: 40px; }
.pdp-intro p { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.pdp-intro p + p { margin-top: 12px; }
.feat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feat.rev .feat-img { order: 2; }
.feat-img { margin: 0; }
.feat-img img { width: 100%; border-radius: var(--radius); background: var(--paper-2); }
.feat-kicker { font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: .2em; color: var(--gold); display: block; margin-bottom: 8px; }
.feat-text h3 { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; line-height: 1.35; margin-bottom: 14px; }
.feat-text p { color: var(--ink-2); line-height: 1.85; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); line-height: 1.8; max-width: 820px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: grid; gap: 6px; font-size: 14px; }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); margin-bottom: 8px; }
.related-card .cat { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.related-card b { font-family: var(--serif); font-size: 16px; }
.related-card:hover b { color: var(--red); }
@media (max-width: 760px) {
  .feat { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .feat.rev .feat-img { order: 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* preview (static sample) */
.demo-bar { background: var(--teal); color: var(--paper); text-align: center; font-size: 12.5px; padding: 7px 16px; letter-spacing: .02em; }
.demo-bar a { color: #e2c57f; text-decoration: underline; text-underline-offset: 2px; }
.demo-note { background: var(--paper-2); border: 1px dashed var(--muted); border-radius: var(--radius); padding: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* 지원 기관 로고 (푸터) */
.footer .partners { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 18px 22px; background: var(--paper); border-radius: var(--radius); color: var(--ink-2); }
.footer .partners p { font-size: 13px; margin: 0; }
.footer .partner-logos { display: flex; align-items: center; gap: 28px; }
.footer .partner-logos img { height: 34px; width: auto; display: block; }
.footer .partner-logos img.joyful { filter: brightness(0); opacity: .85; }
@media (max-width: 760px) { .footer .partners { flex-direction: column; align-items: flex-start; } }

/* 사업자 정보 (푸터) */
.footer .biz-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-top: 32px; }
.footer .biz-grid .biz { margin-top: 0; line-height: 1.85; font-size: 12.5px; }
.footer .biz-grid h4 { color: var(--paper); font-size: 13px; letter-spacing: .06em; margin-bottom: 8px; font-weight: 500; }
.footer .biz-tel { display: block; color: var(--paper); font-size: 20px; font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
.footer .biz-link { color: #e2c57f; text-decoration: underline; }
@media (max-width: 900px) { .footer .biz-grid { grid-template-columns: 1fr; gap: 22px; } }

/* 무통장입금 · 주문 조회 */
.bank-box { display: grid; gap: 12px; }
.bank-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bank-acc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 16px; background: var(--paper-2); border-radius: var(--radius); }
.bank-acc b { font-size: 20px; letter-spacing: .02em; font-family: var(--serif); }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: -.01em; }
.st-chip { display: inline-block; color: #fff; font-size: 12.5px; padding: 3px 10px; border-radius: 99px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; counter-reset: s; }
.steps li { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 26px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: #fff; font-size: 11px; line-height: 20px; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on::before { background: var(--teal); }
.notice { background: #eef4f1; border: 1px solid #c7ddd1; color: #2d5a40; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.order-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* 개인정보 수집 고지 */
.consent-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; background: var(--paper); }
.consent-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.consent-tbl th { text-align: left; width: 76px; color: var(--muted); font-weight: 500; padding: 4px 8px 4px 0; vertical-align: top; }
.consent-tbl td { padding: 4px 0; color: var(--ink-2); }
.consent-box .muted { margin-top: 6px; font-size: 12px; }
.check a { text-decoration: underline; }

/* ---------- 터치 영역 보강 (모바일 최소 40px 권장) ---------- */
.swatches button { position: relative; }
.swatches button::after { content: ""; position: absolute; inset: -10px; }
.consent-box input[type=checkbox], .checkout-form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.notify input[type=checkbox] { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .footer li { margin-bottom: 0; }
  .footer li a { display: inline-block; padding: 8px 0; }
  .crumbs a, .breadcrumb a { display: inline-block; padding: 8px 0; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 96px; padding-bottom: 120px; }
.notfound .num { font-family: var(--serif); font-size: 56px; color: var(--red); margin-bottom: 8px; }
.notfound-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 저널 ---------- */
.j-index-head { margin-bottom: 36px; }
.j-index-head .page-title { margin-bottom: 8px; }
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.j-card { display: grid; gap: 8px; align-content: start; color: inherit; }
.j-card .j-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.j-card .j-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.j-card:hover .j-cover img { transform: scale(1.03); }
.j-card b { font-family: var(--serif); font-size: 19px; line-height: 1.45; font-weight: 600; }
.j-card:hover b { color: var(--red); }
.j-desc { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.j-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.j-article { max-width: 760px; margin: 0 auto; }
.j-head { display: grid; gap: 12px; margin: 12px 0 28px; }
.j-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.3; font-weight: 600; text-wrap: balance; }
.j-summary { font-size: 17px; line-height: 1.8; color: var(--ink-2); border-left: 3px solid var(--red); padding-left: 16px; }
.j-hero { margin: 0 0 32px; }
.j-hero img { width: 100%; height: auto; border-radius: var(--radius); }
.j-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; font-size: 14.5px; }
.j-toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.j-toc a:hover { color: var(--red); }
.j-body { font-size: 17px; line-height: 1.95; color: var(--ink); }
.j-body > * + * { margin-top: 1.1em; }
.j-body h2 { font-family: var(--serif); font-size: 25px; line-height: 1.4; margin-top: 2em; padding-top: .4em; font-weight: 600; scroll-margin-top: 90px; }
.j-body h3 { font-size: 18.5px; margin-top: 1.6em; font-weight: 700; scroll-margin-top: 90px; }
.j-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.j-body ul, .j-body ol { padding-left: 1.3em; display: grid; gap: .35em; }
.j-body blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; color: var(--ink-2); font-family: var(--serif); }
.j-body figure { margin: 1.8em 0; }
.j-body figure img { width: 100%; height: auto; border-radius: var(--radius); }
.j-body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.j-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.j-author { max-width: 760px; margin: 40px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .j-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .j-grid { grid-template-columns: 1fr; } .j-body { font-size: 16.5px; } }

/* ---------- 가이드(키워드 랜딩) ---------- */
.g-answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 18px 20px; margin: 4px 0 32px; display: grid; gap: 6px; }
.g-answer b { font-size: 13px; letter-spacing: .08em; color: var(--teal); }
.g-answer p { font-size: 16.5px; line-height: 1.85; color: var(--ink); }
.g-table { margin-bottom: 36px; padding: 0; }
.g-table h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.g-tw { overflow-x: auto; }
.g-tw .spec { min-width: 560px; font-size: 14px; }
.g-tw .spec thead th { background: var(--paper-2); color: var(--ink-2); font-weight: 600; }
.g-tw .spec tbody th { width: auto; background: none; font-weight: 600; color: var(--ink); }
.g-tw .spec tbody th a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.g-tw .spec td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.small { font-size: 12.5px; margin-top: 8px; }
.g-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.g-links a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.g-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 820px; }
.g-index a { display: grid; gap: 4px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.g-index a:hover b { color: var(--red); }
.g-index b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.g-index span { font-size: 14px; color: var(--ink-2); }
