/* ==========================================================================
   메종 누아 (Maison Noire) — DREXLY 템플릿
   시안 4장(00 디자인보드 · 01 home · 02 페이지시안 · 06 mobile)의 색·활자·조판을 옮겼다.
   색 HEX·글꼴·UI 상태는 00-디자인보드가 정본, 각 면의 내용은 02-페이지시안이 정본.
   ========================================================================== */

:root {
  /* 색 — 00-디자인보드 COLOR 패널 */
  --ivory: #f7f4ef;
  --paper: #ffffff;
  --wash: #efeae2;
  --wine: #4b0f1a;
  --wine-press: #390a13;
  --wine-soft: rgba(75, 15, 26, 0.07);
  --ink: #111111;
  --ink2: #4b4441;
  --muted: #8b837b;
  --stone: #cdc8c0;
  --line: rgba(17, 17, 17, 0.15);
  --line-soft: rgba(17, 17, 17, 0.075);

  /* 의미 색 — 상태는 색만으로 전하지 않는다(글자·아이콘 병기) */
  --ok: #2e5b3a;
  --warn: #8a5510;
  --bad: #9c231e;
  --ok-bg: rgba(46, 91, 58, 0.08);
  --warn-bg: rgba(138, 85, 16, 0.09);
  --bad-bg: rgba(156, 35, 30, 0.08);

  /* 글꼴 — 디자인보드 TYPOGRAPHY(Playfair Display / 한글 세리프 「가」) */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-kr: "Noto Serif KR", "Playfair Display", Georgia, serif;

  /* 조판 */
  --wrap: 1240px;
  --gutter: 40px;
  --section: 116px;
  --r: 2px;
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 30px rgba(17, 17, 17, 0.06);
}

/* ------------------------------------------------------------------ 기본 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.006em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.36; letter-spacing: -0.025em; }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--wine); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 1.45; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.05; }

/* 사진 액자 — 인라인 요소엔 aspect-ratio 가 먹지 않는다 */
.frame { display: block; overflow: hidden; background: var(--wash); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* 넘치는 표는 제 상자 안에서만 구른다 — position:relative 가 없으면
   320·390px 에서 문서 전체가 가로로 밀린다 */
.tscroll { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------- 활자 계층 */
.display {
  font-family: var(--serif-kr); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.3; letter-spacing: -0.035em;
}
.display-en {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.16; letter-spacing: -0.012em;
}
.eyebrow {
  display: block; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.62); }
.section-title {
  font-family: var(--serif-kr); font-weight: 400;
  font-size: clamp(25px, 2.7vw, 36px); line-height: 1.44; letter-spacing: -0.035em;
}
.lead { color: var(--ink2); font-size: 16.5px; line-height: 1.9; }
.muted { color: var(--muted); }
.caption { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.num { font-family: var(--serif); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; }

.section { padding-block: calc(var(--section) / 2); }
.section-lead { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-wash { background: linear-gradient(180deg, #f2ede6 0%, var(--ivory) 100%); }
.section-tint { background: var(--wash); }

.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 14px; color: var(--ink2); font-size: 15.5px; }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.head-row .section-head { margin-bottom: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 28px;
  border: 1px solid var(--bd); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.16s var(--ease);
}
.btn span[aria-hidden] { transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn-primary { --bg: var(--wine); --fg: #fff; --bd: var(--wine); }
.btn-primary:hover { --bg: var(--wine-press); --bd: var(--wine-press); }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: rgba(17, 17, 17, 0.3); }
.btn-line:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-quiet { --bg: var(--paper); --fg: var(--ink2); --bd: var(--line); }
.btn-quiet:hover { --fg: var(--wine); --bd: var(--wine); }
.btn-onwine { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.55); }
.btn-onwine:hover { --bg: #fff; --fg: var(--wine); --bd: #fff; }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--wine);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.btn-text:hover { border-bottom-color: var(--wine); gap: 12px; }
.btn-text.on-wine { color: #fff; }
.btn-text.on-wine:hover { border-bottom-color: rgba(255, 255, 255, 0.7); }

/* 상태 알갱이 — 색 + 글자를 반드시 함께 쓴다 */
.state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em;
  padding: 3px 9px; border-radius: var(--r); white-space: nowrap;
}
.state-ok { color: var(--ok); background: var(--ok-bg); }
.state-warn { color: var(--warn); background: var(--warn-bg); }
.state-bad { color: var(--bad); background: var(--bad-bg); }
.state .ico-sm { width: 13px; height: 13px; }

.tagline {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--wine);
  border: 1px solid rgba(75, 15, 26, 0.3); padding: 4px 10px; border-radius: var(--r);
}

/* --------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 244, 239, 0.9);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(247, 244, 239, 0.97);
  -webkit-backdrop-filter: saturate(1.2) blur(9px);
  backdrop-filter: saturate(1.2) blur(9px);
  box-shadow: 0 1px 18px rgba(17, 17, 17, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand {
  display: block; font-family: var(--serif-kr); font-size: 25px; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.04em; color: var(--wine); flex: none;
}
.brand small {
  display: block; font-family: var(--serif); font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.3em; color: var(--muted); margin-top: 4px;
}
.navlinks { display: flex; align-items: center; gap: 34px; }
.navlinks a {
  position: relative; font-size: 14.5px; color: var(--ink2); padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--wine); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--wine); }
.navlinks a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-link {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--ink2); border-radius: var(--r); transition: color 0.3s var(--ease);
}
.icon-link:hover { color: var(--wine); }
.cart-count {
  position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px;
  padding: 0 4px; display: grid; place-items: center;
  background: var(--wine); color: #fff; border-radius: 9px;
  font-size: 10px; font-weight: 600; line-height: 1;
}
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}

/* 모바일 서랍 */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 90;
  background: var(--ivory); border-left: 1px solid var(--line);
  padding: 22px 24px 40px; transform: translateX(100%);
  transition: transform 0.42s var(--ease); overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--serif-kr); font-size: 19px; padding: 15px 0;
  border-bottom: 1px solid var(--line-soft); transition: color 0.3s var(--ease);
}
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--wine); }
.drawer-extra { margin-top: 24px; display: grid; gap: 9px; }
.drawer-extra .btn { justify-content: flex-start; }
.drawer-note { margin-top: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(17, 17, 17, 0.42);
  opacity: 0; visibility: hidden; transition: opacity 0.42s var(--ease), visibility 0.42s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------- 홈 히어로 */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 566px; background: var(--ivory); overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 500px; padding: 84px 0; }
.hero-copy .tagline { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { max-width: 430px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 40px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink2);
}
.hero-facts b { font-weight: 500; color: var(--ink); }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 53%; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 44% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(247, 244, 239, 0.5) 20%, rgba(247, 244, 239, 0) 54%);
  pointer-events: none;
}

/* 내부 면 머리 */
.page-head { padding: 74px 0 52px; border-bottom: 1px solid var(--line-soft); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { margin-bottom: 16px; }
.page-head p { color: var(--ink2); font-size: 16px; max-width: 640px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.crumb a:hover { color: var(--wine); }
.crumb .ico-sm { width: 12px; height: 12px; }

/* ----------------------------------------------------- 버건디 브랜드 밴드 */
.wine-band { position: relative; background: var(--wine); color: #fff; overflow: hidden; }
.wine-band > .wrap { position: relative; z-index: 2; }
.wine-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 270px;
  gap: 46px; align-items: center;
  padding-block: 64px; padding-right: min(320px, 26vw);
}
.wine-copy .eyebrow { margin-bottom: 14px; }
.wine-copy .display-en { margin-bottom: 18px; }
.wine-copy p { color: rgba(255, 255, 255, 0.76); font-size: 15px; line-height: 1.95; margin-bottom: 24px; }
.wine-shot { margin: 0; }
.wine-shot .frame { background: rgba(255, 255, 255, 0.08); }
.wine-still { position: absolute; inset: 0 0 0 auto; width: min(300px, 24vw); z-index: 1; }
.wine-still img { width: 100%; height: 100%; object-fit: cover; }
.wine-still::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--wine) 0%, rgba(75, 15, 26, 0.35) 40%, rgba(75, 15, 26, 0) 78%);
  pointer-events: none;
}

/* -------------------------------------------------------- 룩 편집(공통) */
.look-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.look {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 46px; align-items: start;
  padding: 46px 0; border-bottom: 1px solid var(--line);
}
.look.flip { grid-template-columns: minmax(0, 1fr) auto; }
.look.flip .look-figure { order: 2; }
.look-figure { width: min(100%, var(--fw, 240px)); }
.look-figure .frame { border-radius: var(--r); }
.look-figure figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.look-body { container-type: inline-size; }
.look-index {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px;
}
.look-index .no { font-family: var(--serif); font-size: 27px; color: var(--wine); line-height: 1; }
.look-index .tag { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.look h2, .look h3 { font-family: var(--serif-kr); font-size: 25px; font-weight: 400; letter-spacing: -0.035em; }
.look-desc { margin: 12px 0 24px; color: var(--ink2); font-size: 14.5px; line-height: 1.9; max-width: 620px; }

/* 룩 구성 — 카드 반복이 아니라 선(line) 목록이다 */
.pieces { border-top: 1px solid var(--line-soft); }
.piece {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 132px 122px;
  align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.piece-kind { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.piece-name { font-size: 15px; font-weight: 500; }
.piece-name a:hover { color: var(--wine); }
.piece-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.piece-price { font-family: var(--serif); font-size: 16px; text-align: right; white-space: nowrap; }
.piece-act { display: flex; justify-content: flex-end; }
.look-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 20px;
}
.look-sum { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--ink2); }
.look-sum b { font-family: var(--serif); font-size: 23px; font-weight: 400; color: var(--ink); }
.look-cta { display: flex; gap: 10px; flex-wrap: wrap; }

@container (max-width: 560px) {
  .piece { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .piece-kind { grid-column: 1 / -1; }
  .piece-price { text-align: left; }
  .piece-act { grid-column: 2; grid-row: 2 / span 2; justify-content: flex-end; align-self: center; }
}

/* --------------------------------------------------------- 홈 · 룩 3선 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 34px; flex-wrap: wrap; }
.tab {
  min-height: 46px; padding: 0 16px; background: none; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 14.5px; color: var(--muted); cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--wine); border-bottom-color: var(--wine); font-weight: 500; }
.js .tabpanel[hidden] { display: none; }
.tabpanel + .tabpanel { margin-top: 46px; }
html:not(.js) .tabpanel { display: block !important; }
html:not(.js) .tabs { display: none; }

.pick-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.pick-side { display: grid; gap: 24px; }
.pick {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--line-soft);
}
.pick:last-child { border-bottom: 0; padding-bottom: 0; }
.pick-figure { width: var(--fw, 168px); }
.pick-lead { display: grid; gap: 20px; }
.pick-lead .pick-figure { width: 100%; }
.pick h3 { font-family: var(--serif-kr); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.pick p { font-size: 13.5px; color: var(--ink2); line-height: 1.8; }
.pick-price { margin-top: 12px; font-family: var(--serif); font-size: 18px; }
.pick-price small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 8px; }

/* ------------------------------------------------------- 컬렉션 · 필터 */
.coll-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 54px; align-items: start; }
.filter-rail, .look-body, .pdp-info, .sum-card, .spec-block { min-width: 0; }
.filter-rail { position: sticky; top: 108px; }
.find { display: flex; gap: 8px; margin-bottom: 26px; }
.find input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 14px; color: var(--ink);
}
.find input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.find button { flex: none; width: 48px; min-height: 48px; padding: 0; }
.find-hint { margin: -18px 0 26px; font-size: 12.5px; color: var(--muted); }

.filter-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--serif-kr); font-size: 17px; font-weight: 500;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.filter-title span { font-size: 12px; color: var(--muted); font-family: var(--sans); }
.acc { border-bottom: 1px solid var(--line-soft); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 54px; padding: 12px 2px; background: none; border: 0; text-align: left;
  font-size: 14.5px; cursor: pointer; transition: color 0.3s var(--ease);
}
.acc-trigger:hover { color: var(--wine); }
.acc-trigger .sign { position: relative; width: 13px; height: 13px; flex: none; }
.acc-trigger .sign::before, .acc-trigger .sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.acc-trigger .sign::before { width: 13px; height: 1px; }
.acc-trigger .sign::after { width: 1px; height: 13px; }
.acc-trigger[aria-expanded="true"] { color: var(--wine); font-weight: 500; }
.acc-trigger[aria-expanded="true"] .sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc.open .acc-panel { grid-template-rows: 1fr; }
html:not(.js) .acc-panel { grid-template-rows: 1fr; }
.acc-body { padding: 2px 2px 18px; }
.acc-body p { font-size: 14px; color: var(--ink2); line-height: 1.9; }

.checks { display: grid; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check label {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 14px; color: var(--ink2); cursor: pointer; flex: 1;
}
.check .box {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  color: transparent; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.check .box .ico-sm { width: 12px; height: 12px; stroke-width: 2.2; }
.check input:checked + label .box { background: var(--wine); border-color: var(--wine); color: #fff; }
.check input:checked + label { color: var(--ink); font-weight: 500; }
.check input:focus-visible + label .box { outline: 2px solid var(--wine); outline-offset: 2px; }
.check .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }

.filter-foot { margin-top: 20px; display: grid; gap: 10px; }
.filter-state { font-size: 13px; color: var(--ink2); }
.filter-state b { color: var(--wine); font-weight: 600; }

.coll-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 8px;
}
.coll-head .display-en { margin-bottom: 6px; }
.coll-count { font-size: 13.5px; color: var(--ink2); }
.empty {
  padding: 56px 30px; text-align: center; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--r);
}
.empty .ico-lg { color: var(--muted); margin: 0 auto 16px; }
.empty h3 { font-family: var(--serif-kr); font-size: 19px; margin-bottom: 10px; }
.empty p { font-size: 14px; color: var(--ink2); margin-bottom: 22px; }

/* ------------------------------------------------- 믹스 앤 매치 캔버스 */
.panel, .mix { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 32px 30px; }
.panel-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; }
.mix-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.mix-head h3 { font-family: var(--serif-kr); font-size: 21px; font-weight: 400; margin-bottom: 8px; }
.mix-head p { font-size: 13.5px; color: var(--ink2); }
.mix-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mix-slot {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--ivory);
  padding: 16px 16px 14px; min-height: 128px; display: flex; flex-direction: column; gap: 8px;
}
.mix-kind { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mix-picked { display: flex; }
.mix-rails { margin-top: 22px; display: grid; gap: 14px; }
.mix-rail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mix-rail > .rail-label { font-size: 12px; color: var(--muted); width: 62px; flex: none; }
.mix-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 46px; padding: 6px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: 13.5px; text-align: left; cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.chip small { font-size: 11.5px; color: var(--muted); }
.chip:hover { border-color: var(--wine); }
.mix-picked .chip {
  background: var(--wine); border-color: var(--wine); color: #fff; cursor: default;
  width: 100%; min-height: 62px; justify-content: center;
}
.mix-picked .chip small { color: rgba(255, 255, 255, 0.7); }
.mix-total {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink2);
}
.mix-total b { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }
.mix-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: right; }

/* ---------------------------------------------------------- 사이즈 찾기 */
.fit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.fit-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px 30px;
}
.fit-form h2 { font-family: var(--serif-kr); font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.fit-form > p { font-size: 14px; color: var(--ink2); margin-bottom: 24px; }
.field-rows { border-top: 1px solid var(--line); }
.field {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.field > label, .field .flabel { font-size: 14px; color: var(--ink2); font-weight: 500; }
.field .req { color: var(--wine); }
.control {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 15px; color: var(--ink); text-align: right;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.control::placeholder { color: var(--muted); }
.control:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.field.invalid .control { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.field .err { display: none; grid-column: 2; font-size: 12.5px; color: var(--bad); padding-bottom: 8px; }
.field.invalid .err { display: block; }
select.control {
  appearance: none; text-align: left; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b837b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.unit { position: relative; }
.unit .control { padding-right: 46px; }
.unit .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13.5px; color: var(--muted); pointer-events: none; }
.fit-form .btn { margin-top: 22px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.fit-result { margin-top: 24px; background: var(--wash); border-radius: var(--r); padding: 26px 26px 24px; }
.fit-result .eyebrow { margin-bottom: 12px; }
.fit-sizes { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.fit-size b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; }
.fit-size span { font-size: 12.5px; color: var(--muted); }
.fit-why { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; color: var(--ink2); line-height: 1.85; }
.fit-why b { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 4px; letter-spacing: 0.02em; }
.fit-figure { display: flex; gap: 22px; align-items: flex-start; }
.fit-figure .ico { color: var(--wine); }

/* 표 */
.dtable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.dtable caption { caption-side: top; text-align: left; font-size: 12.5px; color: var(--muted); padding-bottom: 10px; }
.dtable th, .dtable td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.dtable thead th { background: var(--wash); font-size: 12.5px; font-weight: 600; color: var(--ink2); letter-spacing: 0.02em; white-space: nowrap; }
.dtable tbody th { font-weight: 500; white-space: nowrap; }
.dtable td.n { font-family: var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable tbody tr:last-child th, .dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr.hi { background: var(--wine-soft); }
.table-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--ink); }
.step .no { font-family: var(--serif); font-size: 13px; color: var(--wine); letter-spacing: 0.08em; }
.step b { display: block; font-size: 15px; font-weight: 500; margin: 8px 0 7px; }
.step p { font-size: 13.5px; color: var(--ink2); line-height: 1.8; }

.notice { display: grid; gap: 12px; }
.notice li { display: flex; gap: 12px; font-size: 14px; color: var(--ink2); line-height: 1.8; }
.notice .ico-sm { color: var(--wine); margin-top: 5px; flex: none; }

/* ---------------------------------------------------------- 상품 상세 */
.pdp { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 52px; align-items: start; }
.pdp-gallery { position: sticky; top: 108px; }
.pdp-main { border-radius: var(--r); aspect-ratio: 286 / 200; view-transition-name: pdp-shot; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp-thumb {
  width: 88px; padding: 0; background: none; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; cursor: pointer; min-height: 44px;
  transition: border-color 0.25s var(--ease);
}
.pdp-thumb .frame { aspect-ratio: 88 / 62; }
.pdp-thumb:hover { border-color: var(--wine); }
.pdp-thumb[aria-pressed="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.pdp-thumb img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.pdp-gallery figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.pdp-info .tagline { margin-bottom: 16px; }
.pdp-info h1 { font-family: var(--serif-kr); font-size: clamp(27px, 3vw, 38px); font-weight: 400; margin-bottom: 12px; }
.pdp-sub { font-size: 14.5px; color: var(--ink2); margin-bottom: 20px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-row .amt { font-family: var(--serif); font-size: 33px; font-weight: 400; }
.price-row small { font-size: 12.5px; color: var(--muted); }

.opt { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.opt-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.opt-label b { font-size: 13.5px; font-weight: 500; }
.opt-label .now { font-size: 13px; color: var(--ink2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px 0 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 13.5px; cursor: pointer; transition: border-color 0.25s var(--ease);
}
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(17, 17, 17, 0.18); flex: none; }
.swatch:hover { border-color: var(--wine); }
.swatch[aria-pressed="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); font-weight: 500; }
.swatch[data-stock="out"] { color: var(--muted); }
.swatch[data-stock="out"] i { opacity: 0.4; }

.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 84px; min-height: 56px; padding: 6px 12px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 15px; transition: border-color 0.25s var(--ease);
}
.size-btn small { font-size: 11px; color: var(--muted); }
.size-btn:hover { border-color: var(--wine); }
.size-btn[aria-pressed="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); font-weight: 500; }
.size-btn[data-stock="out"] { background: var(--wash); color: var(--muted); text-decoration: line-through; }
.size-btn[data-stock="out"] small { text-decoration: none; color: var(--bad); }
.size-btn[data-stock="low"] small { color: var(--warn); }
.opt-help { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); flex-wrap: wrap; }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.qty button { width: 46px; min-height: 46px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink2); }
.qty button:hover { color: var(--wine); }
.qty input {
  width: 54px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-size: 15px; background: none; color: var(--ink);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; gap: 10px; margin: 24px 0 16px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 190px; }
.icon-btn {
  width: 52px; min-height: 50px; display: grid; place-items: center; flex: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink2); cursor: pointer; transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--wine); border-color: var(--wine); }
.icon-btn[aria-pressed="true"] { color: var(--wine); border-color: var(--wine); }

.ship-box { background: var(--wash); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 9px; }
.ship-box div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; font-size: 13.5px; }
.ship-box b { font-weight: 500; color: var(--ink); }
.ship-box span { color: var(--ink2); }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; align-items: start; }
.spec-block h3 { font-family: var(--serif-kr); font-size: 19px; font-weight: 400; margin-bottom: 16px; }
.model-row { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 30px; align-items: center; }
.model-facts { display: grid; gap: 10px; }
.model-facts div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.model-facts b { font-weight: 500; }
.model-facts span { color: var(--ink2); }

.reviews { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review { padding: 22px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 26px; }
.review-who b { display: block; font-size: 14px; font-weight: 500; }
.review-who span { font-size: 12.5px; color: var(--muted); }
.review-fit { margin-top: 8px; display: inline-flex; }
.review p { font-size: 14px; color: var(--ink2); line-height: 1.9; }
.review .stars { color: var(--wine); font-size: 12px; letter-spacing: 2px; margin-bottom: 6px; }

.buy-dock { display: none; }

/* ------------------------------------------------------------ 장바구니 */
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.stepper li .dot {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); font-family: var(--serif); font-size: 11.5px; color: var(--muted);
}
.stepper li[aria-current="step"] { color: var(--wine); font-weight: 500; }
.stepper li[aria-current="step"] .dot { border-color: var(--wine); background: var(--wine); color: #fff; }
.stepper li::after { content: ""; width: 26px; height: 1px; background: var(--line); }
.stepper li:last-child::after { display: none; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.cart-list { border-top: 1px solid var(--ink); }
.cart-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.cart-row .frame { width: 74px; aspect-ratio: 74 / 100; border-radius: var(--r); }
.cart-from { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cart-name { font-size: 16px; font-weight: 500; }
.cart-name a:hover { color: var(--wine); }
.cart-opt { margin-top: 4px; font-size: 13px; color: var(--ink2); }
.cart-tools { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.cart-right { text-align: right; display: grid; gap: 12px; justify-items: end; }
.cart-amt { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.link-btn {
  background: none; border: 0; padding: 6px 2px; min-height: 46px; cursor: pointer;
  font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent;
}
.link-btn:hover { color: var(--bad); border-bottom-color: var(--bad); }

.sum-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; position: sticky; top: 108px; }
.sum-card h2 { font-family: var(--serif-kr); font-size: 19px; font-weight: 400; margin-bottom: 18px; }
.sum-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink2); padding: 8px 0; }
.sum-line span:last-child { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.sum-total { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sum-total b { font-size: 14px; font-weight: 500; }
.sum-total .amt { font-family: var(--serif); font-size: 27px; }
.sum-card .btn { margin-top: 20px; }
.sum-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.coupon { margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 14px; background: var(--paper); }
.coupon-row input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.coupon-msg { margin-top: 9px; font-size: 12.5px; color: var(--muted); min-height: 1.4em; }
.coupon-msg.bad { color: var(--bad); }
.coupon-msg.ok { color: var(--ok); }

.order-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 28px; }
.order-form h2 { font-family: var(--serif-kr); font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.order-form > p { font-size: 13.5px; color: var(--ink2); margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fgrid .fcell { display: grid; gap: 7px; align-content: start; }
.fgrid .fcell.full { grid-column: 1 / -1; }
.fcell label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.fcell .control { text-align: left; }
.fcell .err { display: none; font-size: 12.5px; color: var(--bad); }
.fcell.invalid .control { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.fcell.invalid .err { display: block; }
.addr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pays { display: flex; gap: 8px; flex-wrap: wrap; }
.pay { position: relative; }
.pay input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-size: 14px; color: var(--ink2); cursor: pointer; transition: border-color 0.25s var(--ease);
}
.pay input:checked + label { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); color: var(--ink); font-weight: 500; }
.pay input:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 2px; }
.agree { margin: 20px 0 6px; }
.agree .check label { font-size: 13.5px; }
.agree.invalid .check .box { border-color: var(--bad); }
.agree .err { display: none; font-size: 12.5px; color: var(--bad); }
.agree.invalid .err { display: block; }

.order-done { display: none; background: var(--wash); border-radius: var(--r); padding: 34px 30px; }
.order-done.show { display: block; }
.order-done .ico-lg { color: var(--wine); margin-bottom: 14px; }
.order-done h2 { font-family: var(--serif-kr); font-size: 23px; font-weight: 400; margin-bottom: 12px; }
.order-done p { font-size: 14px; color: var(--ink2); line-height: 1.9; margin-bottom: 20px; }
.order-facts { display: grid; gap: 10px; }
.order-facts div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-facts b { font-weight: 500; }

/* -------------------------------------------------------------- 푸터 */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line-soft); }
.benefit-band {
  background-color: #1d0a0d;
  background-image: linear-gradient(rgba(18, 6, 8, 0.62), rgba(18, 6, 8, 0.74)), url("assets/fabric.webp");
  background-size: cover; background-position: center;
  color: #fff;
}
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-block: 42px; }
.benefit { display: flex; align-items: center; gap: 15px; }
.benefit .ico { color: rgba(255, 255, 255, 0.9); }
.benefit b { display: block; font-size: 14.5px; font-weight: 500; }
.benefit span { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }

.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 44px; padding-block: 62px 46px; }
.footer-brand p { margin-top: 18px; font-size: 13.5px; color: var(--ink2); line-height: 1.9; }
.footer-col h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: var(--ink2); }
.footer-col a:hover { color: var(--wine); }
.footer-cs { display: grid; gap: 8px; }
.footer-cs .tel { font-family: var(--serif); font-size: 25px; color: var(--ink); }
.footer-cs p { font-size: 13px; color: var(--ink2); line-height: 1.8; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social a:hover { color: var(--wine); border-color: var(--wine); }

.legal { padding-block: 24px 30px; border-top: 1px solid var(--line-soft); }
.legal p { font-size: 12px; color: var(--muted); line-height: 1.95; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
.legal-links a { color: var(--ink2); }
.legal-links a:hover { color: var(--wine); }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 55;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink2); cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, color 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--wine); border-color: var(--wine); }

/* -------------------------------------------------------------- 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 120;
  transform: translate(-50%, 18px);
  min-width: 260px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 11px;
  padding: 15px 22px; background: var(--ink); color: #fff;
  border-radius: var(--r); font-size: 14px; line-height: 1.6;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.28);
  opacity: 0; visibility: hidden;
  /* 알림일 뿐이므로 아래 버튼의 클릭을 삼키지 않는다 */
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico-sm { color: var(--stone); flex: none; }
.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------- 등장 · 커튼(clip-path) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* 시그니처 연출 — 사진이 아래에서 위로 걷히며 드러난다.
   Scroll-driven Animation 을 쓰되(§06), 미지원 브라우저는 위치 계산 방식으로 같은 결과를 준다. */
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.js:not(.vt) .curtain img { clip-path: inset(0 0 100% 0); transition: clip-path 0.95s var(--ease); }
.js:not(.vt) .curtain.in img { clip-path: inset(0 0 0 0); }
@supports (animation-timeline: view()) {
  .js.vt .curtain img {
    animation: unveil linear both;
    animation-timeline: view();
    animation-range: entry 14% entry 96%;
  }
}

/* ============================================================== 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --section: 100px; }
  .navlinks { gap: 24px; }
  .coll-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
  .pdp { gap: 36px; }
  .wine-grid { grid-template-columns: minmax(0, 1fr) 220px 260px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 32px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 30px; --section: 92px; }
  .nav { height: 74px; }
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { display: block; min-height: 0; }
  .hero-copy { max-width: none; padding: 32px 0 56px; }
  .hero-copy .lead { max-width: none; }
  .hero-media { position: relative; width: auto; height: 380px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(247, 244, 239, 0) 60%, rgba(247, 244, 239, 0.82) 90%, var(--ivory) 100%); }
  .wine-inner { grid-template-columns: minmax(0, 1fr) 230px; padding-right: 0; padding-block: 50px; }
  .wine-still { display: none; }
  .panel-split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .coll-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .filter-rail { position: static; }
  .fit-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pdp-gallery { position: static; max-width: 420px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sum-card { position: static; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .model-row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .pick-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .mix-slots { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-block: 34px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; padding-block: 48px 36px; }
  .look, .look.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .look.flip .look-figure { order: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --section: 68px; }
  body { font-size: 15.5px; }

  .nav { height: 64px; }
  .brand { font-size: 21px; }
  .brand small { font-size: 8.5px; letter-spacing: 0.24em; }
  .nav-actions { gap: 0; }

  .hero-media { height: 316px; }
  .hero-copy { padding: 26px 0 44px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
  .hero-actions .btn { width: 100%; padding: 0 12px; }
  .hero-facts { gap: 6px 18px; font-size: 12.5px; }

  .page-head { padding: 42px 0 34px; }
  .section-head { margin-bottom: 30px; }

  .wine-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; }
  .wine-shot { width: min(100%, 270px); }
  .panel, .mix { padding: 24px 18px 22px; }

  .look { padding: 32px 0; }
  .look-figure { width: min(100%, var(--fw, 240px)); }
  .look-desc { margin-bottom: 18px; }
  .piece { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: 14px 0; }
  .piece-kind { grid-column: 1 / -1; }
  .piece-price { text-align: left; font-size: 15px; }
  .piece-act { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .look-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .look-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }

  .pick { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pick-figure { width: min(100%, 240px); }
  .tabs { gap: 0; }
  .tab { flex: 1; min-height: 48px; padding: 0 6px; font-size: 13.5px; }

  .mix { padding: 24px 18px 22px; }
  .mix-rail { flex-direction: column; align-items: stretch; gap: 8px; }
  .mix-rail > .rail-label { width: auto; }
  .mix-total { justify-content: space-between; }
  .mix-note { text-align: left; }

  .fit-form { padding: 24px 18px 22px; }
  .field { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; }
  .field > label, .field .flabel { font-size: 13px; }
  .field .err { grid-column: 1; }
  .control { text-align: left; }
  .fit-result { padding: 22px 18px; }
  .fit-figure { gap: 14px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dtable th, .dtable td { padding: 11px 12px; font-size: 13.5px; }

  .pdp-gallery { max-width: none; }
  .pdp-main { aspect-ratio: 286 / 210; }
  .buy-row { gap: 8px; }
  .buy-row .btn { flex: 1 1 100%; }
  .model-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .model-row .frame { width: min(100%, 246px); }
  .review { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  /* 모바일 하단 구매 Dock — 한 화면 한 과업 */
  .has-dock { padding-bottom: 88px; }
  .buy-dock {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 244, 239, 0.97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .buy-dock .dock-price { flex: none; }
  .buy-dock .dock-price b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
  .buy-dock .dock-price span { font-size: 11.5px; color: var(--muted); }
  .buy-dock .btn { flex: 1; min-height: 50px; }

  .cart-row { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }
  .cart-right { grid-column: 2; justify-items: start; text-align: left; }
  .stepper li::after { width: 14px; }
  .stepper { font-size: 12px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .order-form { padding: 22px 18px; }
  .sum-card { padding: 22px 18px; }

  .benefits { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 28px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 40px 30px; }
  .to-top { right: 14px; bottom: 96px; }
}

@media (max-width: 380px) {
  .hero-actions { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 19px; }
  .icon-link { width: 40px; }
  .size-btn { min-width: 74px; }
  .pdp-thumb { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .curtain img, .js.vt .curtain img { clip-path: none !important; animation: none !important; }
}

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .buy-dock, .benefit-band { display: none !important; }
  body { background: #fff; }
}
