/* ═══════════════════════════════════════════════════════════════════════
   스텝블룸 — 여성 구두 스토어
   위쪽 절반은 공통 뼈대 키트(kit.css) — 동작에 딸린 규칙. 손대지 않는다.
   아래쪽이 이 벌의 생김새 — 00-디자인보드.png 에서 가져온 색·활자·배치.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 기본 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }
img { -webkit-user-drag: none; user-select: none; }

.frame { display: block; }

/* ── 초점 ─────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: Canvas; color: CanvasText;
}
.skip-link:focus { left: 0; }

/* ── 터치 영역 ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-header a, .site-header button,
  .drawer a, .drawer button,
  .dots button, .pager button, .tab {
    min-width: 44px; min-height: 44px;
  }
}

/* ── 가로 넘침 ─────────────────────────────────────────────────────── */
.scroll-x { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }
.clip { overflow: clip; }

/* ── 무JS 완성본 ───────────────────────────────────────────────────── */
.acc-item .acc-panel { display: block; }
.js .acc-item .acc-panel { display: none; }
.js .acc-item.open .acc-panel { display: block; }

.js [role="tabpanel"][hidden] { display: none; }
[role="tabpanel"][hidden] { display: block; }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* revert 로 되살리면 UA 기본값(block)이 벌의 display 규칙을 덮어쓴다 —
   하단 구매 Dock 이 데스크톱에도 뜨고 flex 배치가 풀렸다.
   숨기는 쪽에만 규칙을 두면 JS 가 있을 때는 그 요소의 본래 display 가 그대로 산다. */
html:not(.js) .js-only { display: none !important; }
/* JS 가 없을 때만 나오는 대체 문구 — 조작기를 숨긴 자리에 같은 정보를 글로 남긴다 */
.js-off { display: none; }
html:not(.js) .js-off { display: block; }

:where([hidden]):not([role="tabpanel"]) { display: none !important; }

/* ── 모션 끔 ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 모바일 서랍 ───────────────────────────────────────────────────── */
.menu-btn { display: none; }
@media (max-width: 767px) { .menu-btn { display: inline-flex; } }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 60; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgb(17 17 17 / .45);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) { .drawer, .scrim { display: none; } }

/* ── 토스트 ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0;
  z-index: 80; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* ── 폼 ───────────────────────────────────────────────────────────── */
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree input:focus-visible + label .box { outline: 2px solid currentColor; outline-offset: 2px; }

.spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: kit-spin .7s linear infinite;
}
@keyframes kit-spin { to { rotate: 360deg; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── 구획 리듬 ─────────────────────────────────────────────────────── */
.section { padding-block: calc(var(--section, 96px) / 2); }
.section-lead { padding-top: var(--section, 96px); }
.section-last { padding-bottom: var(--section, 96px); }

/* ═══════════════════════════════════════════════════════════════════════
   여기부터 스텝블룸의 생김새
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* 00-디자인보드.png COLOR PALETTE 에 적힌 네 가지가 정본이다 */
  --cream: #F7F4EF;
  --black: #111111;
  --raspberry: #C21B5B;
  --rose: #F6DADC;

  /* 위 넷에서 파생한 중립·의미색 */
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-2: #4A4441;
  --ink-3: #7C7370;
  --line: #E3DCD2;
  --line-2: #D3C9BC;
  --raspberry-deep: #9A1246;
  --sand: #EFE9E0;

  --ok: #1E6B47;      /* 재고 있음·주문 성공 */
  --warn: #9A6A12;    /* 재입고 대기·배송 지연 */
  --err: #B3261E;     /* 옵션·쿠폰 오류 */

  --section: 104px;
  --wrap: 1200px;
  --r: 3px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
}

@media (max-width: 767px) { :root { --section: 68px; } }

/* 면 전환은 CSS 만으로 — 미지원 브라우저는 그냥 일반 이동이 된다 */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) { body { padding-bottom: 58px; } }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.24; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (max-width: 767px) { .wrap { width: calc(100% - 32px); } }

.clip { overflow: clip; }

/* ── 활자 등급 ─────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--raspberry);
  display: block; margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--rose); }

.h-xl { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.14; letter-spacing: -.045em; }
.h-lg { font-size: clamp(28px, 3.6vw, 42px); }
.h-md { font-size: clamp(21px, 2.2vw, 27px); }
.h-sm { font-size: 17px; letter-spacing: -.025em; }

.lead { font-size: 17px; color: var(--ink-2); line-height: 1.78; }
.small { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.tiny { font-size: 12px; color: var(--ink-3); line-height: 1.62; }

.wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: .08em; }

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

.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head .lead { margin-top: 16px; }

/* ── 단추 ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: -.02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: none; font-family: inherit;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2c2724; }
.btn-brand { background: var(--raspberry); color: #fff; }
.btn-brand:hover { background: var(--raspberry-deep); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--black); }
.btn-ghost { color: var(--ink); border-color: transparent; padding: 0 8px; }
.btn-ghost:hover { color: var(--raspberry); }
.btn-block { width: 100%; }
/* 44px 아래로 내리지 않는다 — 검사기가 화면 좌표로 ±22px 을 찍어 확인한다 */
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .62; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
}
.link-arrow:hover { border-color: var(--raspberry); color: var(--raspberry); }
.link-arrow svg { width: 16px; height: 16px; }

/* ── 아이콘 ────────────────────────────────────────────────────────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ic {
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
/* 크기를 안 주면 svg 는 300x150 으로 눕는다 — 320px 화면이 그대로 밀린다.
   :where() 로 특이도를 0 으로 두어 아래 개별 규칙이 언제나 이긴다. */
svg:where(.ic) { width: 16px; height: 16px; flex: none; vertical-align: -.18em; }

/* ── 헤더 ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgb(247 244 239 / .96); backdrop-filter: blur(8px); }

.header-inner {
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 22px;
  min-height: 74px;
}
@media (max-width: 767px) { .header-inner { width: calc(100% - 24px); min-height: 60px; gap: 8px; } }

.brand {
  font-size: 21px; font-weight: 800; letter-spacing: -.05em;
  text-decoration: none; white-space: nowrap;
  view-transition-name: sb-brand;
}
.brand .en { display: block; font-family: var(--serif); font-size: 9px; font-weight: 500; letter-spacing: .3em; color: var(--ink-3); margin-top: -4px; }

.nav { display: flex; gap: 26px; margin-left: 26px; }
.nav a {
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--raspberry); }
@media (max-width: 1023px) { .nav { display: none; } }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: none;
  border-radius: var(--r); position: relative; padding: 0;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 21px; height: 21px; }

.bag-count {
  position: absolute; top: 6px; right: 5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--raspberry); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  border-radius: 9px;
}

.header-cta { margin-left: 6px; }
@media (max-width: 1023px) { .header-cta { display: none; } }

.menu-btn {
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0;
}
.menu-btn svg { width: 22px; height: 22px; }

/* 검색 패널 — 데스크톱·모바일 공통, JS 전용 */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-block: 1px solid var(--line);
  padding: 22px 0 26px; z-index: 45;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.search-panel.open { visibility: visible; opacity: 1; transform: none; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* min-width:0 이 없으면 input 의 기본 최소 너비가 320px 화면을 가로로 밀어낸다 */
.search-row input {
  flex: 1 1 160px; min-width: 0; min-height: 48px; padding: 0 16px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--cream); color: var(--ink);
}
.search-hits { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-hits a {
  font-size: 13.5px; text-decoration: none; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--cream);
}
.search-hits a:hover { border-color: var(--black); }
.search-empty { margin-top: 14px; font-size: 13.5px; color: var(--err); }

/* ── 서랍 ─────────────────────────────────────────────────────────── */
.drawer { background: var(--paper); padding: 20px 24px 40px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head .brand { font-size: 18px; }
.drawer-close { border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: 15px 0; font-size: 17px; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
}
.drawer-nav a[aria-current="page"] { color: var(--raspberry); }
.drawer-cta { margin-top: 22px; width: 100%; }
.drawer-tel { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.drawer-tel a { text-decoration: none; font-weight: 700; }

/* ── 하단 탭바 (모바일 전용) ───────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; background: var(--paper); border-top: 1px solid var(--line);
}
@media (max-width: 767px) { .tabbar { display: flex; } }
.tabbar a {
  flex: 1; min-height: 58px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font-size: 10.5px; font-weight: 600; color: var(--ink-3);
}
.tabbar svg { width: 20px; height: 20px; }
.tabbar a[aria-current="page"] { color: var(--raspberry); }

/* ── 히어로 (Sculptural Hero) ──────────────────────────────────────── */
.hero { position: relative; padding-top: 52px; padding-bottom: 96px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.06fr);
  gap: 48px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 1.1; letter-spacing: -.05em; }
.hero h1 .brk { display: block; }
.hero .lead { margin-top: 26px; max-width: 30ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note li { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.hero-note svg { width: 14px; height: 14px; color: var(--raspberry); }

.hero-art { position: relative; }
.hero-stone {
  position: absolute; z-index: 0; border-radius: 50%;
  background: var(--rose); opacity: .55;
}
.hero-stone.s1 { width: 46%; aspect-ratio: 1; left: -14%; top: 8%; }
.hero-stone.s2 { width: 24%; aspect-ratio: 1; right: 4%; bottom: -6%; background: var(--sand); opacity: 1; }
.hero-photo { position: relative; z-index: 1; display: block; }
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-inset {
  position: absolute; z-index: 2; left: -46px; bottom: -44px; width: 58%;
  background: var(--paper); padding: 10px 10px 12px;
  box-shadow: 0 18px 44px rgb(17 17 17 / .1);
}
.hero-inset img { display: block; width: 100%; height: auto; view-transition-name: sb-bloom; }
.hero-inset figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; letter-spacing: .02em; }
.hero-inset .price { color: var(--ink); font-weight: 700; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 64px; padding-top: 34px; }
  .hero-inset { left: auto; right: 0; bottom: -34px; width: 62%; }
  .hero-stone.s1 { left: -8%; }
}
@media (max-width: 767px) {
  .hero-inset { width: 68%; left: -8px; right: auto; bottom: -30px; padding: 8px 8px 10px; }
  .hero .lead { max-width: none; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ── 3분할 타일 ────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; display: block; text-decoration: none;
  background: var(--sand); overflow: clip;
}
.tile img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; transition: scale .5s ease; }
.tile:hover img { scale: 1.035; }
.tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgb(17 17 17 / .58), transparent);
}
.tile figcaption {
  position: absolute; left: 20px; bottom: 18px; right: 20px; color: #fff; z-index: 1;
}
.tile .en { font-family: var(--serif); font-size: 18px; letter-spacing: .16em; display: block; }
.tile .ko { font-size: 14.5px; font-weight: 600; }
@media (max-width: 767px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile img { aspect-ratio: 16 / 9; }
}

/* ── 굽 높이 스펙트럼 (시그니처 스크롤 연출) ───────────────────────── */
/* 절취본의 바닥색(#FBF7F4)에 구획 바탕을 맞춘다 — 안 맞추면 사진마다 네모가 드러난다 */
.spectrum { background: #FBF7F4; border-block: 1px solid var(--line); }
.spectrum-rail { position: relative; margin-top: 8px; }
.spectrum-list {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  align-items: end; padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}
.heel {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; text-decoration: none;
}
.heel-fig { display: block; margin: 0 0 14px; }
.heel-fig img { display: block; width: 100%; height: auto; }
.heel .cm { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.heel .ko { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.heel .tick { display: block; width: 1px; height: 14px; background: var(--line-2); margin: 12px auto 0; }
.heel:hover .cm { color: var(--raspberry); }
.heel:hover .heel-fig { transform: translateY(-4px); }
.heel-fig { transition: transform .22s ease; }

.spectrum-axis {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.spectrum-when { margin-top: 30px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.spectrum-when li { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.spectrum-when b { display: block; font-size: 13.5px; color: var(--ink); }

/* 좁은 폭에서만 가로로 밀어 본다.
   이 상자에 overflow 를 상시로 걸면 스크롤 컨테이너가 생겨
   안쪽 view() 연출이 0 에서 얼어붙는다(§4-C 13). 그래서 767px 이하 전용이고,
   그 폭에서는 아래 연출도 아예 걸지 않는다. */
.spectrum-scroll { position: relative; }
@media (max-width: 767px) {
  .spectrum-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; }
  .spectrum-list { grid-template-columns: repeat(5, 128px); gap: 14px; }
  .spectrum-when { display: none; }
  .spectrum-axis { font-size: 11px; }
}

/* 시그니처 연출 — 스크롤 진행에 맞춰 굽이 차례로 올라온다.
   지원 브라우저·모션 허용·넓은 폭일 때만 걸고, 그 밖에는 처음부터 최종 상태다. */
@supports (animation-timeline: view()) {
  @media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .heel-fig {
      animation: heel-rise linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 42%;
    }
    .spectrum-fill {
      animation: rail-fill linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
  }
}
@keyframes heel-rise {
  from { transform: translateY(26px); opacity: .28; }
  to   { transform: none; opacity: 1; }
}
@keyframes rail-fill { from { scale: 0 1; } to { scale: 1 1; } }

.spectrum-fill {
  display: block; height: 2px; background: var(--raspberry);
  transform-origin: left center; margin-top: -1px;
}

/* ── 자리 지도 (Occasion Map) ──────────────────────────────────────── */
.occasion { position: relative; }
.occ-map { position: relative; margin-top: 34px; }
.occ-arcs { display: grid; grid-template-columns: repeat(4, 1fr); }
.occ {
  position: relative; text-decoration: none; display: block;
  padding: 42px 22px 30px; text-align: center;
  border-radius: 999px 999px 0 0;
  transition: background-color .2s ease;
}
.occ:nth-child(1) { background: #EFEAE2; }
.occ:nth-child(2) { background: #EDE4E2; }
.occ:nth-child(3) { background: #F7E2E5; }
.occ:nth-child(4) { background: var(--rose); }
.occ:hover { filter: brightness(.97); }
.occ .en { font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--ink-2); display: block; }
.occ .ko { font-size: 20px; font-weight: 700; letter-spacing: -.03em; display: block; margin-top: 2px; }
.occ .sub { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 8px; }
.occ .heel-tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--raspberry); }

.occ-axis {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--black); padding-top: 12px; margin-top: 0;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.occ-axis .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--raspberry); }
.occ-axis .track { flex: 1; display: flex; justify-content: flex-end; }

@media (max-width: 767px) {
  .occ-arcs { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .occ { padding: 30px 14px 22px; }
  .occ .ko { font-size: 17px; }
}

/* ── 검은 서비스 띠 ────────────────────────────────────────────────── */
.service { background: var(--black); color: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-block: 34px; }
.service-item { display: flex; gap: 14px; align-items: flex-start; }
.service-item svg { width: 24px; height: 24px; flex: none; color: var(--rose); margin-top: 3px; }
.service-item .en { font-family: var(--serif); font-size: 13px; letter-spacing: .18em; display: block; }
.service-item .ko { font-size: 13.5px; color: #CFC7C2; display: block; }
@media (max-width: 767px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; } }

/* ── 라즈베리 인용 띠 ──────────────────────────────────────────────── */
.quote { background: var(--raspberry); color: #fff; text-align: center; }
.quote-inner { padding-block: 54px; position: relative; }
.quote p { font-size: clamp(19px, 2.5vw, 28px); font-weight: 600; letter-spacing: -.035em; }
.quote .mark { font-family: var(--serif); font-size: 40px; line-height: 0; opacity: .55; }

/* ── 페이지 머리 ───────────────────────────────────────────────────── */
.page-head { padding-top: 44px; }
.page-head h1 { margin-top: 10px; }
.page-head .lead { margin-top: 18px; max-width: 56ch; }
.crumb { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--raspberry); }

/* ── 컬렉션: 배너 ──────────────────────────────────────────────────── */
.coll-banner { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0; background: var(--sand); align-items: stretch; }
.coll-banner img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.coll-banner-copy { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767px) {
  .coll-banner { grid-template-columns: 1fr; }
  .coll-banner-copy { padding: 28px 22px 34px; }
}

/* ── 컬렉션: 2단 master-detail ─────────────────────────────────────── */
.coll-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 1023px) { .coll-layout { grid-template-columns: 1fr; gap: 26px; } }

.filter-rail { position: sticky; top: 96px; }
@media (max-width: 1023px) { .filter-rail { position: static; } }
.filter-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.filter-head h2 { font-size: 15px; letter-spacing: -.02em; }
.filter-reset { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink-3); cursor: pointer; text-decoration: underline; padding: 6px 0; min-height: 44px; }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0; background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--ink); cursor: pointer; text-align: left;
}
.acc-trigger svg { width: 17px; height: 17px; color: var(--ink-3); transition: rotate .2s ease; flex: none; }
.acc-item.open .acc-trigger svg { rotate: 180deg; }
.acc-panel { padding-bottom: 18px; }
.acc-panel .lead, .acc-panel p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); font-family: inherit;
}
.opt:hover { border-color: var(--black); }
.opt[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.opt .sw { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgb(17 17 17 / .18); flex: none; }

.filter-static { font-size: 13.5px; color: var(--ink-2); }
.filter-static li { padding: 5px 0; }

.grid-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.grid-count { font-size: 13.5px; color: var(--ink-3); }
.grid-count b { color: var(--ink); }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.sort-wrap select {
  min-height: 40px; padding: 0 32px 0 12px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper) ; color: var(--ink);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

/* ── 상품 카드 ─────────────────────────────────────────────────────── */
/* 카드 폭을 자산 화소(약 215px)에 맞춰 잡는다 — 크게 늘리면 시안 축소본이 뭉갠다 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 18px; }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } }

.card { container-type: inline-size; position: relative; }
.card-media { display: block; position: relative; background: var(--sand); overflow: clip; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: scale .5s ease; }
.card:hover .card-media img { scale: 1.04; }
.card-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 2px; background: var(--black); color: #fff;
}
.card-badge.brand { background: var(--raspberry); }
.card-badge.warn { background: var(--warn); }
.card-soldout {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: rgb(247 244 239 / .38);
}
.card-soldout b {
  background: rgb(17 17 17 / .8); color: #fff; padding: 7px 16px; border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
}

.card-wish {
  position: absolute; right: 4px; top: 4px; z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-2);
}
.card-wish svg { width: 18px; height: 18px; }
.card-wish::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgb(255 255 255 / .86); z-index: -1;
}
.card-wish[aria-pressed="true"] { color: var(--raspberry); }
.card-wish[aria-pressed="true"] svg { fill: var(--raspberry); }
.card-body { padding-top: 13px; }
.card-name { font-size: 15px; font-weight: 700; letter-spacing: -.03em; }
.card-name a { text-decoration: none; }
.card-name a:hover { color: var(--raspberry); }
.card-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.card-price { font-size: 15px; font-weight: 700; margin-top: 7px; }
.card-price .vat { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.card-tags span { font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: 2px 7px; }
@container (max-width: 200px) { .card-tags span:nth-child(n+3) { display: none; } }

.state-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 8px; }
.state-line svg { width: 14px; height: 14px; flex: none; }
.state-ok { color: var(--ok); }
.state-warn { color: var(--warn); }
.state-err { color: var(--err); }

.empty-note {
  border: 1px dashed var(--line-2); padding: 40px 24px; text-align: center;
  font-size: 14.5px; color: var(--ink-2); border-radius: var(--r);
}

/* ── 사이즈 찾기 ───────────────────────────────────────────────────── */
.fit-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 1023px) { .fit-layout { grid-template-columns: 1fr; gap: 34px; } }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab {
  border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600;
  padding: 12px 16px; cursor: pointer; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--raspberry); }

.foot-card { background: var(--paper); border: 1px solid var(--line); padding: 26px; border-radius: var(--r); }
.foot-figure { display: flex; gap: 24px; align-items: center; }
.foot-figure svg.foot { width: 116px; height: auto; flex: none; }
.foot-figure .caption { font-size: 12.5px; color: var(--ink-3); }

.range-row { margin-top: 22px; }
.range-row label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.range-row output { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.range-row input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--raspberry); height: 24px; }
.range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }

.choice-row { margin-top: 22px; }
.choice-row > span { font-size: 14px; font-weight: 600; display: block; margin-bottom: 10px; }

.result {
  margin-top: 26px; background: var(--cream); border: 1px solid var(--line);
  padding: 24px; border-radius: var(--r); text-align: center;
}
.result .label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--raspberry); font-weight: 700; }
.result .size { font-size: 62px; font-weight: 300; letter-spacing: -.05em; line-height: 1.1; }
.result .verdict { font-size: 14.5px; font-weight: 600; }
.result .why { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.result-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.size-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.size-table th, .size-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { font-size: 12px; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; background: var(--sand); }
.size-table tbody th { font-weight: 700; }
.size-table caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 10px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.compare-table th, .compare-table td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--black); color: #fff; font-size: 13px; }
.compare-table thead th:first-child { background: var(--black); }
.compare-table tbody th { font-weight: 700; white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.compare-table td b { display: block; font-size: 14px; }
.meter { display: flex; gap: 3px; margin-top: 6px; }
.meter i { width: 16px; height: 5px; background: var(--line-2); border-radius: 2px; }
.meter i.on { background: var(--raspberry); }

.store-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 767px) { .store-list { grid-template-columns: 1fr; } }
.store {
  background: var(--paper); border: 1px solid var(--line); padding: 22px; border-radius: var(--r);
}
.store h3 { font-size: 16px; }
.store dl { margin: 12px 0 0; display: grid; grid-template-columns: 62px 1fr; gap: 6px 10px; font-size: 13.5px; }
.store dt { color: var(--ink-3); }
.store dd { margin: 0; color: var(--ink-2); }

/* ── 폼 ───────────────────────────────────────────────────────────── */
.form-card { background: var(--paper); border: 1px solid var(--line); padding: 28px; border-radius: var(--r); }
.field { margin-bottom: 18px; }
.field label, .field > span.lab { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.control {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--cream); color: var(--ink);
}
textarea.control { min-height: 104px; resize: vertical; }
select.control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field .err, .agree .err { display: none; font-size: 12.5px; color: var(--err); margin-top: 6px; }
.field.invalid .control { border-color: var(--err); background: #FDF3F2; }
.field.invalid .err, .agree.invalid .err { display: flex; align-items: center; gap: 5px; }
.counter { font-size: 12px; color: var(--ink-3); text-align: right; margin-top: 6px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 559px) { .form-2 { grid-template-columns: 1fr; } }

.agree { position: relative; margin: 4px 0 20px; }
.agree label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.agree .box {
  width: 20px; height: 20px; flex: none; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--paper); margin-top: 1px; position: relative;
}
.agree input:checked + label .box { background: var(--raspberry); border-color: var(--raspberry); }
.agree input:checked + label .box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg;
}
.agree.invalid .box { border-color: var(--err); }

/* ── 상품 상세 ─────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 440px); gap: 64px; align-items: start; justify-content: center; }
/* 한 칸으로 접을 때도 minmax(0,·) 로 둔다 — 1fr 은 min-width:auto 라 긴 단추가 폭을 밀어낸다 */
@media (max-width: 1023px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

.pdp-gallery { position: relative; }
.pdp-main {
  display: block; background: var(--paper); perspective: 900px; overflow: clip;
}
.pdp-main img {
  display: block; width: 100%; height: auto; view-transition-name: sb-bloom;
  transition: transform .18s ease;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(var(--tz, 1));
  transform-style: preserve-3d;
}
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumb {
  width: 78px; padding: 0; border: 1px solid var(--line); background: var(--paper); cursor: pointer; border-radius: 2px;
}
.pdp-thumb img { display: block; width: 100%; height: 78px; object-fit: cover; }
.pdp-thumb[aria-pressed="true"] { border-color: var(--black); }
.tilt-note { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

.pdp-title { font-size: clamp(25px, 3vw, 34px); }
.pdp-sub { font-size: 14.5px; color: var(--ink-3); margin-top: 6px; }
.pdp-price { font-size: 27px; font-weight: 700; letter-spacing: -.035em; margin-top: 18px; }
.pdp-price .vat { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }
.pdp-fitline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pdp-fitline span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 2px; padding: 4px 9px; color: var(--ink-2); background: var(--paper); }

.opt-block { margin-top: 26px; }
.opt-block > .lab { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.opt-block .lab a { font-size: 12.5px; font-weight: 600; }

.colors { display: flex; gap: 12px; }
.color {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  cursor: pointer; padding: 0; position: relative; background-clip: padding-box;
}
.color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--black); }
.color .sr-only { color: var(--ink); }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  min-width: 52px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2);
  background: var(--paper); border-radius: 2px; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; color: var(--ink);
}
.size-chip[aria-pressed="true"] { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.size-chip[disabled] { color: var(--ink-3); background: var(--sand); cursor: not-allowed; text-decoration: line-through; }
.opt-error { display: none; margin-top: 10px; }
.opt-error.show { display: flex; }

.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.buy-row .btn { flex: 1 1 140px; min-width: 0; }
.buy-row .btn:last-child { flex: 1 1 100%; }
@media (max-width: 559px) { .buy-row .btn { flex: 1 1 100%; } }
.pdp-notes { margin-top: 20px; display: grid; gap: 8px; }
.pdp-notes li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.pdp-notes svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--ink-3); }

.pdp-acc { margin-top: 34px; }

.styled-with { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 767px) { .styled-with { grid-template-columns: 1fr; } }
.styled-with figure { margin: 0; background: var(--paper); }
.styled-with img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.styled-with figcaption { padding: 14px 16px 18px; }
.styled-with h3 { font-size: 15px; }
.styled-with p { font-size: 13px; color: var(--ink-2); margin-top: 5px; }

/* 하단 구매 Dock — 모바일 전용 */
.buy-dock {
  position: fixed; left: 0; right: 0; bottom: 58px; z-index: 54;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 10px; align-items: center;
}
@media (max-width: 767px) { .buy-dock { display: flex; } }
.buy-dock .p { font-size: 15px; font-weight: 700; white-space: nowrap; }
.buy-dock .btn { flex: 1; }

/* ── 룩북 ─────────────────────────────────────────────────────────── */
.look-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 0; background: var(--sand); }
.look-hero img { display: block; width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.look-hero-copy { padding: 48px 44px; display: flex; flex-direction: column; justify-content: flex-end; }
.look-hero .en { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: .14em; line-height: 1.3; }
@media (max-width: 1023px) { .look-hero { grid-template-columns: 1fr; } .look-hero-copy { padding: 30px 24px 36px; } }

.looks { display: grid; gap: 66px; }
.look { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; }
/* 짝수 줄은 사진을 오른쪽으로 보낸다. order 만 바꾸면 사진이 넓은 칸(1fr)으로 들어가
   두 배로 커지므로, 칸 자체를 뒤집어야 한다. */
.look:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.look:nth-child(even) .look-media { order: 2; }
.look-media { background: var(--sand); position: relative; }
.look-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.look-no { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--line-2); }
.look h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 8px; }
.look .lead { margin-top: 14px; }
.look-spec { margin-top: 22px; display: grid; grid-template-columns: 86px 1fr; gap: 8px 14px; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 18px; }
.look-spec dt { color: var(--ink-3); }
.look-spec dd { margin: 0; color: var(--ink-2); }
.look-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 899px) {
  .look, .look:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .look:nth-child(even) .look-media { order: 0; }
  .look-media img { aspect-ratio: 4 / 3; }
  .looks { gap: 46px; }
}

.story-panel { background: var(--raspberry); color: #fff; text-align: center; position: relative; overflow: clip; }
.story-inner { padding-block: 72px; position: relative; z-index: 1; }
.story-panel .en { font-family: var(--serif); font-size: 34px; letter-spacing: .2em; display: block; margin-top: 4px; }
.story-panel h2 { font-size: clamp(24px, 3vw, 34px); }
.story-panel .lead { color: rgb(255 255 255 / .84); margin: 22px auto 0; max-width: 52ch; }
.story-panel .btn-line { background: transparent; border-color: rgb(255 255 255 / .5); color: #fff; margin-top: 28px; }
.story-panel .btn-line:hover { border-color: #fff; background: rgb(255 255 255 / .1); }
.story-shape {
  position: absolute; left: 50%; bottom: -48%; translate: -50% 0;
  width: min(560px, 78%); aspect-ratio: 1; background: #D4276B;
  clip-path: polygon(50% 0%, 100% 62%, 78% 100%, 22% 100%, 0% 62%);
  opacity: .35;
}
.story-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 767px) { .story-body { grid-template-columns: 1fr; gap: 22px; } }
.story-body h3 { font-size: 16px; }
.story-body p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* ── 장바구니 패널 (CartDrawer) ────────────────────────────────────── */
.cart-panel {
  position: fixed; inset: 0 0 0 auto; width: min(92vw, 420px); z-index: 70;
  background: var(--paper); transform: translateX(100%); transition: transform .3s ease;
  visibility: hidden; overflow-y: auto; display: flex; flex-direction: column;
}
.cart-panel.open { transform: none; visibility: visible; }
.cart-scrim {
  position: fixed; inset: 0; z-index: 65; background: rgb(17 17 17 / .42);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cart-scrim.open { opacity: 1; pointer-events: auto; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 17px; }
.cart-body { padding: 22px; flex: 1; }
.cart-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; }
.cart-item img { display: block; width: 78px; height: 90px; object-fit: cover; background: var(--sand); }
.cart-item .nm { font-size: 14px; font-weight: 700; }
.cart-item .op { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; margin-top: 10px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item .pr { font-size: 14px; font-weight: 700; margin-top: 10px; text-align: right; }
.cart-sum { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.cart-sum div { display: flex; justify-content: space-between; padding: 5px 0; }
.cart-sum .tot { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.coupon { display: flex; gap: 8px; margin-top: 16px; }
.coupon input { flex: 1; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--cream); color: var(--ink); }
.cart-msg { margin-top: 10px; display: none; }
.cart-msg.show { display: flex; }
.cart-foot { padding: 18px 22px 26px; border-top: 1px solid var(--line); background: var(--cream); }
.stepper { margin-top: 18px; display: grid; gap: 0; }
.stepper li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-3); position: relative; padding-bottom: 14px; }
.stepper li:last-child { padding-bottom: 0; }
.stepper .no {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--paper);
}
.stepper li::before {
  content: ""; position: absolute; left: 9.5px; top: 20px; bottom: 0; width: 1px; background: var(--line);
}
.stepper li:last-child::before { display: none; }
.stepper li.done { color: var(--ok); }
.stepper li.done .no { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.now { color: var(--ink); font-weight: 600; }
.stepper li.now .no { border-color: var(--raspberry); color: var(--raspberry); }

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--black); color: #CFC7C2; margin-top: 0; }
.footer-inner { width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding-block: 52px 44px; }
@media (max-width: 767px) { .footer-inner { width: calc(100% - 32px); padding-block: 40px 32px; } }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
@media (max-width: 767px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.05em; }
.footer-brand .en { display: block; font-family: var(--serif); font-size: 10px; letter-spacing: .3em; color: #8C8481; margin-top: 2px; }
.footer-desc { font-size: 13px; margin-top: 14px; max-width: 34ch; line-height: 1.75; }
.footer-col h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8C8481; margin-bottom: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 13.5px; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-biz { font-style: normal; font-size: 12.5px; line-height: 1.85; color: #9A918D; margin-top: 26px; border-top: 1px solid #2A2523; padding-top: 22px; }
.footer-biz a { text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12.5px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #6E6663; margin-top: 16px; }

/* ── 토스트 생김새 ─────────────────────────────────────────────────── */
.toast {
  background: var(--black); color: #fff; padding: 13px 20px; border-radius: var(--r);
  font-size: 14px; box-shadow: 0 14px 34px rgb(17 17 17 / .24); max-width: min(92vw, 460px);
}
@media (max-width: 767px) { .toast { bottom: 74px; } }

/* ── 도움 상자 ─────────────────────────────────────────────────────── */
.note {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--raspberry);
  padding: 18px 20px; border-radius: var(--r); font-size: 13.5px; color: var(--ink-2); line-height: 1.75;
}
.note b { color: var(--ink); }

.kv { display: grid; grid-template-columns: 104px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); }
