/* ==========================================================================
   포지션 맨 (POSITION MEN) — DREXLY 템플릿
   시안 4장(00 디자인보드 · 01 home · 02 페이지시안 · 06 mobile)에서 옮겼다.
   색 HEX·활자는 00-디자인보드가 정본, 각 면의 내용은 02-페이지시안이 정본.
   앞부분은 공통 뼈대 키트(kit.css) — 동작에 딸린 CSS. 그 아래가 이 벌의 생김새.
   ========================================================================== */

/* ══════════════════ 공통 뼈대 (kit.css) ══════════════════ */
*, *::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: 900px) {
  .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; }

.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; }

.js-only { display: none; }
.js .js-only { display: revert; }

@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: 900px) { .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(9 10 9 / .5);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 901px) { .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-디자인보드 CHARCOAL · STONE · ACID LIME 스와치에서 뽑았다 */
  --charcoal: #111212;
  --ink: #0b0b0b;
  --ink-2: #3c3c39;
  --muted: #76736e;
  --stone: #d9d6d1;
  --stone-2: #e4e2de;
  --paper: #efedea;
  --paper-2: #f7f6f4;
  --white: #ffffff;
  --lime: #cade4e;
  --lime-press: #b8cc3b;
  --lime-ink: #3a4409;          /* 라임 위에 얹는 글자 */
  --lime-text: #5c6a12;         /* 밝은 바탕 위 라임 계열 글자(대비 확보) */

  --line: rgb(11 11 11 / .16);
  --line-2: rgb(11 11 11 / .08);
  --line-3: rgb(11 11 11 / .3);

  /* 의미 색 — 상태는 색만으로 전하지 않는다. 글자·아이콘을 늘 병기한다. */
  --ok: #35622c;
  --ok-bg: rgb(53 98 44 / .1);
  --warn: #8a5713;
  --warn-bg: rgb(138 87 19 / .1);
  --bad: #9d2a20;
  --bad-bg: rgb(157 42 32 / .09);

  /* 활자 — 디자인보드 TYPOGRAPHY 패널: Pretendard Variable 한 가족 */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* 조판 */
  --wrap: 1180px;
  --wrap-tool: 1010px;
  --gutter: 28px;
  --section: 104px;
  --r: 2px;
  --ease: cubic-bezier(.22,.68,.28,1);
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -.028em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-tool { width: 100%; max-width: var(--wrap-tool); margin: 0 auto; padding-inline: var(--gutter); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── 활자 층 ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .19em;
  text-transform: uppercase; color: var(--ink);
}
.eyebrow-muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.85; }
.small { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ── 단추 ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
  text-align: center;
}
.btn-dark { background: var(--charcoal); color: var(--paper-2); }
.btn-dark:hover { background: #000; }
.btn-dark:active { background: #000; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn-line:hover { border-color: var(--ink); background: rgb(11 11 11 / .04); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: var(--lime-press); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn[aria-disabled="true"] { opacity: .62; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.link-arrow .ico { width: 15px; height: 15px; transition: translate .18s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--ink); }
.link-arrow:hover .ico { translate: 4px 0; }

/* ── 아이콘 ──────────────────────────────────────────────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 20px; height: 20px; display: inline-block; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 15px; height: 15px; }
.ico-lg { width: 26px; height: 26px; stroke-width: 1.35; }

/* ── 헤더 ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--stone-2);
  border-bottom: 1px solid var(--line-2);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-stuck { background: rgb(228 226 222 / .94); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.header-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 20px; min-height: 68px;
}
.brand {
  font-size: 19px; font-weight: 700; letter-spacing: -.045em;
  font-variation-settings: "wght" 750;
}
.nav { display: flex; align-items: center; gap: 30px; margin-left: 42px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 22px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1.5px;
  background: var(--ink); scale: 0 1; transform-origin: left; transition: scale .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { scale: 1 1; }
.nav a[aria-current] { color: var(--ink); font-weight: 700; }
.nav a[aria-current]::after { scale: 1 1; background: var(--lime-press); height: 2.5px; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; background: none; cursor: pointer;
  color: var(--ink); border-radius: var(--r); position: relative;
}
.icon-btn:hover { background: rgb(11 11 11 / .06); }
.bag-count {
  position: absolute; top: 5px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 10.5px; font-weight: 700; line-height: 1;
}
.menu-btn {
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; color: var(--ink);
  margin-right: -8px;
}
.menu-bar, .menu-bar::before, .menu-bar::after {
  display: block; width: 20px; height: 1.6px; background: currentColor; content: "";
}
.menu-bar { position: relative; }
.menu-bar::before { position: absolute; top: -6px; }
.menu-bar::after { position: absolute; top: 6px; }

/* ── 모바일 서랍 ─────────────────────────────────────────── */
.drawer { background: var(--charcoal); color: var(--paper); padding: 20px 24px 32px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.drawer-head .brand { color: var(--lime); }
.drawer-close { background: none; border: 0; color: var(--paper); font-size: 13.5px; cursor: pointer; padding: 8px 4px; }
.drawer-nav { display: flex; flex-direction: column; margin-top: 22px; border-top: 1px solid rgb(239 237 234 / .16); }
.drawer-nav a {
  display: flex; align-items: center; padding: 15px 0; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid rgb(239 237 234 / .16);
}
.drawer-cta { display: flex; align-items: center; justify-content: center; margin-top: 24px; min-height: 50px; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 15px; border-radius: var(--r); }
.drawer-tel { margin-top: 16px; font-size: 13.5px; color: rgb(239 237 234 / .72); }
.drawer-tel a { font-weight: 600; color: var(--paper); }

/* ── 토스트 ──────────────────────────────────────────────── */
.toast .toast-msg {
  display: inline-block; max-width: min(92vw, 460px);
  background: var(--charcoal); color: var(--paper-2);
  padding: 13px 20px; border-radius: var(--r);
  font-size: 13.5px; line-height: 1.6; box-shadow: 0 12px 34px rgb(11 11 11 / .26);
}

/* ── 구획 머리 ───────────────────────────────────────────── */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px;
}
.sec-head h2 { font-size: clamp(23px, 2.6vw, 30px); margin-top: 9px; }
.sec-head .lead { margin-top: 10px; max-width: 46ch; }
.sec-title-kr { font-size: 15px; color: var(--ink-2); margin-top: 8px; font-weight: 500; }

/* 장 번호 — 지면의 쪽번호. 장식이라 aria-hidden 으로 둔다. */
.chapter { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.chapter-now { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.chapter-bar { width: 26px; height: 1px; background: var(--line-3); }
.chapter-all { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── 히어로 (Magazine Hero) ──────────────────────────────── */
.hero {
  position: relative; background: var(--stone);
  overflow: clip;      /* hidden 이 아니다 — 조상 스크롤 컨테이너를 만들면 view() 가 언다 */
}
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 736px; }
.hero-photo img { display: block; width: 736px; height: 522px; object-fit: cover; object-position: 42% 50%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 168px; z-index: 1;
  background: linear-gradient(90deg, var(--stone) 12%, rgb(217 214 209 / 0));
}
.hero-inner { position: relative; z-index: 2; min-height: 522px; display: flex; align-items: center; }
.hero-copy { max-width: 460px; padding-block: 56px; }
.hero-title {
  font-size: clamp(36px, 5.2vw, 62px); line-height: 1.12; margin-top: 20px;
  font-variation-settings: "wght" 780; letter-spacing: -.042em;
}
.hero-sub { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero-copy .btn { margin-top: 30px; min-width: 168px; }
.hero-vtext {
  position: absolute; top: 42px; right: 26px; z-index: 3;
  writing-mode: vertical-rl; font-size: 10px; font-weight: 700;
  letter-spacing: .34em; color: rgb(247 246 244 / .82);
}
.hero .chapter { position: absolute; right: 26px; bottom: 34px; z-index: 3; flex-direction: column; gap: 8px; }
.hero .chapter-now { color: var(--paper-2); font-size: 26px; }
.hero .chapter-bar { width: 1px; height: 22px; background: rgb(247 246 244 / .5); }
.hero .chapter-all { color: rgb(247 246 244 / .7); }

/* 시그니처 연출 ① — 스크롤에 따라 제목의 굵기·자간이 변한다(가변 폰트).
   지원하지 않는 브라우저는 최종 상태(굵은 제목)를 그대로 본다. 모션 끔이면 아예 걸지 않는다. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-title {
      animation: pm-wght linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 420px;
    }
    /* 첫 화면은 시안대로 굵게 서 있다가, 지면을 내리면 가늘어지며 자간이 열린다.
       지원하지 않는 브라우저·모션 끔에서는 최종이 아니라 「처음」 상태(굵은 제목)로 남는다. */
    @keyframes pm-wght {
      from { font-variation-settings: "wght" 800; letter-spacing: -.042em; }
      to   { font-variation-settings: "wght" 360; letter-spacing: .012em; }
    }
  }
}

/* JS 가 없을 때만 보이는 대체 문구 */
.no-js { display: none; }
html:not(.js) .no-js { display: block; }

/* ── 룩 레일 ─────────────────────────────────────────────── */
.rail-sec { background: var(--paper); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 10px; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-3);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.rail-btn:hover { background: var(--charcoal); color: var(--paper-2); border-color: var(--charcoal); }
.rail-btn[aria-disabled="true"] { opacity: .34; pointer-events: none; }

.rail-outer { position: relative; margin-top: 26px; }
.rail {
  display: flex; gap: 18px; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scroll-padding-left: 0;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-3); }
.look {
  flex: none; width: 211px; scroll-snap-align: start;
  container-type: inline-size;
}
.look-media { display: block; position: relative; background: var(--stone); overflow: clip; }
.look-media img { display: block; width: 100%; height: 293px; object-fit: cover; }
.look-media::after {
  content: ""; position: absolute; inset: 0; background: rgb(11 11 11 / 0);
  transition: background .22s var(--ease);
}
.look:hover .look-media::after { background: rgb(11 11 11 / .07); }
.look-tag {
  background: var(--stone); padding: 9px 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
}
.look-body { padding: 14px 2px 0; }
.look-name { font-size: 15.5px; font-weight: 700; }
.look-items { margin-top: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.look-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.look-price { font-size: 14px; font-weight: 700; }
.look-add { min-height: 38px; padding: 0 12px; font-size: 12.5px; }
@container (max-width: 190px) {
  .look-foot { flex-direction: column; align-items: stretch; }
  .look-add { width: 100%; }
}
.look-tail-media {
  display: grid; place-items: center; align-content: center; gap: 12px;
  height: 293px; background: var(--stone-2); border: 1px dashed var(--line-3);
}
.look-tail-media:hover { background: var(--stone); }
.look-tail-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-3); }
.look-tail-text { font-size: 13.5px; font-weight: 700; }
.look-tail .look-tag { background: var(--stone-2); }

.rail-dots { display: flex; gap: 7px; margin-top: 20px; }
.dots button {
  width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button::after {
  content: ""; width: 22px; height: 2px; background: var(--line-3); transition: background .18s var(--ease);
}
.dots button[aria-current]::after { background: var(--ink); }
.rail-progress { height: 2px; background: var(--line-2); margin-top: 18px; position: relative; }
.rail-progress span { position: absolute; inset: 0 auto 0 0; background: var(--lime-press); width: 22%; transition: width .12s linear, left .12s linear; }

/* ── 핏 비교(홈) ─────────────────────────────────────────── */
.fit-sec { background: var(--stone-2); }
.fitrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
.fitcard { background: var(--paper-2); border: 1px solid var(--line-2); padding: 18px 18px 22px; }
.fitcard-media { display: block; background: var(--stone); overflow: clip; }
.fitcard-media img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: 50% 22%; }
.fitcard h3 { font-size: 17px; margin-top: 16px; }
.fitcard .small { margin-top: 8px; }
.fitcard dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 0 0; font-size: 12.5px; }
.fitcard dt { color: var(--muted); }
.fitcard dd { margin: 0; font-weight: 600; text-align: right; }
.fit-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ── 안내 밴드 ───────────────────────────────────────────── */
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.svc > div { background: var(--paper); padding: 24px 22px 26px; }
.svc h3 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.svc p { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.svc .ico { color: var(--lime-text); }

/* ── 상태 표시 ───────────────────────────────────────────── */
.state {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: var(--r); font-size: 11.5px; font-weight: 700;
  border: 1px solid transparent; line-height: 1.5;
}
.state .ico { width: 13px; height: 13px; }
.state-ok { color: var(--ok); background: var(--ok-bg); border-color: rgb(53 98 44 / .24); }
.state-warn { color: var(--warn); background: var(--warn-bg); border-color: rgb(138 87 19 / .24); }
.state-bad { color: var(--bad); background: var(--bad-bg); border-color: rgb(157 42 32 / .22); }
.state-lime { color: var(--lime-ink); background: rgb(202 222 78 / .45); border-color: rgb(168 189 44 / .5); }

/* ── 상품 카드 ───────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(3, 202px); gap: 40px 50px; justify-content: start; }
.pcard { container-type: inline-size; position: relative; }
.pcard-media { display: block; position: relative; background: var(--stone); overflow: clip; }
.pcard-media img { display: block; width: 100%; height: auto; aspect-ratio: 202 / 259; object-fit: cover; }
.pcard-media .state { position: absolute; left: 8px; top: 8px; background: var(--paper-2); box-shadow: 0 1px 4px rgb(11 11 11 / .14); }
.pcard-name { display: block; font-size: 14.5px; font-weight: 600; margin-top: 13px; }
.pcard-price { font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.pcard-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pcard-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pcard-foot .btn { flex: 1; }
@container (max-width: 175px) {
  .pcard-foot { flex-direction: column; align-items: stretch; }
}

/* 견본색 · 크기 고르개 */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border: 0; background: none; padding: 0;
  cursor: pointer; display: grid; place-items: center; --sw: var(--stone);
}
.swatch::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--sw);
  transition: box-shadow .16s var(--ease);
}
.swatch[aria-pressed="true"]::after { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 4px var(--ink); }
.swatch-black { --sw: #0b0b0b; }
.swatch-stone { --sw: #b6afa4; }
.swatch-light { --sw: #dbd8d2; }
.swatch-lime { --sw: var(--lime); }
.swatches { margin-left: -6px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size {
  min-width: 52px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--charcoal); color: var(--paper-2); border-color: var(--charcoal); }
.size[data-sold="1"] {
  color: var(--muted); background: repeating-linear-gradient(135deg, var(--paper-2) 0 6px, var(--stone-2) 6px 7px);
  cursor: not-allowed;
}

/* ── 상품 찾기 ───────────────────────────────────────────── */
.page-head { padding-top: 46px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-head .lead { margin-top: 14px; max-width: 52ch; }
.crumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

.shop-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 0 60px; margin-top: 34px; }
/* 격자 칸의 자동 최소폭은 「안에 든 사진의 본래 폭」이다. 0 으로 눌러 두지 않으면
   1fr 칸이 사진 폭까지 부풀어 320·390px 에서 문서 전체가 가로로 밀린다. */
.shop-layout > * { min-width: 0; }
.pdp > * { min-width: 0; }
.filters { border-top: 1px solid var(--ink); padding-top: 4px; }
.fgroup { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.fgroup > h2, .fgroup > h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fgroup .ficon { margin-top: 14px; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: none; border: 0; padding: 11px 0; cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.acc-trigger:hover { color: var(--ink); }
.acc-trigger .ico { transition: rotate .2s var(--ease); color: var(--muted); }
.acc-item.open > .acc-trigger { color: var(--ink); font-weight: 700; }
.acc-item.open > .acc-trigger .ico { rotate: 180deg; }
.acc-panel { padding: 2px 0 12px; }
.fcheck { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.fcheck input { width: 16px; height: 16px; accent-color: #6f7f16; }
.fcount { margin-left: auto; font-size: 12px; color: var(--muted); }

.price-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 12px; }
input[type="range"] { width: 100%; accent-color: #6f7f16; height: 24px; }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.shop-count { font-size: 13.5px; color: var(--ink-2); }
.shop-count b { font-weight: 700; color: var(--ink); }
select.control, .select {
  min-height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line-3); border-radius: var(--r);
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 15px;
  font-size: 13.5px; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.pgrid-wrap { margin-top: 30px; }
.chiprow { display: flex; gap: 8px; overflow-x: auto; position: relative; padding-bottom: 4px; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line);
  background: var(--paper-2); border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime-press); color: var(--lime-ink); }
.empty {
  border: 1px dashed var(--line-3); padding: 44px 24px; text-align: center; margin-top: 30px;
}
.empty h3 { font-size: 17px; }
.empty p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.empty .btn { margin-top: 20px; }

/* ── 상품 상세 ───────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 56px; margin-top: 26px; }
.pdp-media img { display: block; background: var(--stone); }
.pdp-main { width: 390px; height: 753px; object-fit: cover; }
.pdp-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pdp-detail figure { margin: 0; }
.pdp-detail img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.pdp-detail figcaption { margin-top: 7px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumb { width: 84px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; display: block; }
.pdp-thumb[aria-pressed="true"] { border-color: var(--ink); }
.pdp-thumb img { display: block; width: 100%; height: 112px; object-fit: cover; }
.pdp-info h1 { font-size: clamp(26px, 3vw, 34px); }
.pdp-price { font-size: 25px; font-weight: 700; margin-top: 16px; letter-spacing: -.03em; }
.pdp-price small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.opt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.opt > h2, .opt > h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.opt-val { font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.sizeguide-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.err-msg { display: none; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; color: var(--bad); font-weight: 600; }
.err-msg.show { display: flex; }
.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.buy-row .btn { flex: 1; min-height: 54px; font-size: 15px; }
.wish {
  width: 54px; min-height: 54px; border: 1px solid var(--line-3); background: var(--paper-2);
  border-radius: var(--r); cursor: pointer; display: grid; place-items: center;
}
.wish[aria-pressed="true"] { background: var(--lime); border-color: var(--lime-press); color: var(--lime-ink); }
.wish[aria-pressed="true"] .ico { fill: currentColor; }
.ship-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.ship-note b { font-weight: 700; }

.acc { border-top: 1px solid var(--ink); margin-top: 34px; }
.acc .acc-item { border-bottom: 1px solid var(--line-2); }
.acc .acc-trigger { padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.acc .acc-panel { padding: 0 0 22px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.acc .acc-panel p + p { margin-top: 10px; }
.acc .acc-panel ul { display: grid; gap: 8px; }
.acc .acc-panel li { padding-left: 14px; position: relative; }
.acc .acc-panel li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 1.5px; background: var(--line-3); }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
table.data th, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
table.data thead th { background: var(--stone-2); font-weight: 700; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
table.data tbody th { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
table.data td { font-variant-numeric: tabular-nums; }
.table-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

.buydock {
  position: fixed; inset: auto 0 0 0; z-index: 45; display: none;
  background: var(--paper-2); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; align-items: center;
}
.buydock .btn { flex: 1; min-height: 50px; }
.buydock .wish { width: 50px; min-height: 50px; }

/* ── 비교하기 ────────────────────────────────────────────── */
.cmp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.cmp-actions .btn { min-width: 190px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp-table th, .cmp-table td { border-bottom: 1px solid var(--line-2); padding: 14px 16px; text-align: left; vertical-align: top; font-size: 13.5px; }
.cmp-table thead td, .cmp-table thead th { border-bottom: 1px solid var(--ink); vertical-align: top; }
.cmp-table tbody th {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); width: 132px;
  background: var(--paper); border-right: 1px solid var(--line-2);
}
.cmp-col { width: 196px; }
.cmp-head { position: relative; }
.cmp-head img { display: block; width: 186px; max-width: 100%; height: 213px; object-fit: cover; background: var(--stone); }
.cmp-head .pcard-name { margin-top: 12px; }
.cmp-remove {
  position: absolute; right: 6px; top: 6px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: rgb(247 246 244 / .9); cursor: pointer;
}
.cmp-remove:hover { background: var(--charcoal); color: var(--paper-2); }
.cmp-best { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--lime-ink); background: rgb(202 222 78 / .5); padding: 3px 8px; margin-top: 8px; }

/* ── 핏 가이드 (이 벌의 축) ──────────────────────────────── */
.fitstage { background: var(--paper-2); border: 1px solid var(--line-2); padding: 30px 30px 34px; margin-top: 30px; }
.figrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fig { text-align: center; }
.fig-media { display: block; background: var(--stone-2); overflow: clip; position: relative; }
.fig-media img { display: block; width: 100%; height: auto; aspect-ratio: 238 / 440; object-fit: cover; }
.fig[data-on="1"] .fig-media { outline: 2px solid var(--ink); outline-offset: -2px; }
.fig[data-on="0"] .fig-media img { opacity: .88; }
.fig[data-on="0"] .fig-name, .fig[data-on="0"] .fig-sub { color: var(--muted); }
.fig-name { margin-top: 14px; font-size: 15.5px; font-weight: 700; }
.fig[data-on="1"] .fig-name::after {
  content: "선택됨"; display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 10.5px; font-weight: 700; color: var(--lime-ink);
  background: var(--lime); padding: 2px 7px; border-radius: var(--r);
}
.fig-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.scale { margin-top: 34px; }
.scale-track { position: relative; height: 44px; display: flex; align-items: center; }
.scale-track::before { content: ""; position: absolute; left: 4%; right: 4%; height: 2px; background: var(--line); }
.scale-stops { position: relative; display: flex; justify-content: space-between; width: 100%; padding: 0 4%; }
.scale-dot {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.scale-dot::after {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  background: var(--muted); border: 2px solid var(--paper-2); box-shadow: 0 0 0 1px var(--muted);
  transition: background .18s var(--ease), box-shadow .18s var(--ease), scale .18s var(--ease);
}
.scale-dot[aria-checked="true"]::after { background: var(--lime); box-shadow: 0 0 0 2px var(--ink); scale: 1.25; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.scale-read { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; }
.scale-read h3 { font-size: 19px; }
.scale-read .lead { margin-top: 12px; font-size: 15px; }
.scale-read dl { display: grid; grid-template-columns: 1fr auto; gap: 0; align-self: start; }
.scale-read dt, .scale-read dd { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; margin: 0; }
.scale-read dt { color: var(--ink-2); }
.scale-read dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* 치수 → 핏 추천 */
.calc { background: var(--charcoal); color: var(--paper); padding: 34px; margin-top: 30px; }
.calc h2 { color: var(--paper-2); font-size: clamp(21px, 2.4vw, 27px); }
.calc .lead { color: rgb(239 237 234 / .74); margin-top: 12px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: rgb(239 237 234 / .72); font-weight: 700; }
.calc select.control { width: 100%; background-color: #1b1c1b; color: var(--paper); border-color: rgb(239 237 234 / .28); }
.calc .btn-lime { margin-top: 22px; min-width: 210px; }
.calc-out { margin-top: 26px; border-top: 1px solid rgb(239 237 234 / .2); padding-top: 24px; display: none; }
.calc-out.show { display: block; }
.calc-out-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.calc-fit { font-size: 30px; font-weight: 700; color: var(--lime); letter-spacing: -.03em; }
.calc-size { font-size: 17px; font-weight: 700; color: var(--paper-2); }
.calc-why { margin-top: 12px; font-size: 14px; color: rgb(239 237 234 / .82); line-height: 1.8; max-width: 62ch; }
.calc-links { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.calc .btn-line { color: var(--paper); border-color: rgb(239 237 234 / .4); }
.calc .btn-line:hover { background: rgb(239 237 234 / .1); border-color: var(--paper); }

.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
.tip { border-top: 2px solid var(--ink); padding-top: 16px; }
.tip h3 { font-size: 15.5px; }
.tip p { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ── 폼 ──────────────────────────────────────────────────── */
.restock { background: var(--paper-2); border: 1px solid var(--line-2); padding: 28px; margin-top: 34px; }
.restock h2 { font-size: 19px; }
.restock .small { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.field .control {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-3);
  border-radius: var(--r); background: var(--white); font: inherit; font-size: 14px;
}
.restock .field label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.field .err { display: none; margin-top: 7px; font-size: 12.5px; color: var(--bad); font-weight: 600; }
.field.invalid .control { border-color: var(--bad); background: var(--bad-bg); }
.field.invalid .err { display: block; }
.agree { position: relative; margin-top: 18px; }
.agree label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.agree .box {
  width: 20px; height: 20px; flex: none; border: 1px solid var(--line-3); background: var(--white);
  border-radius: var(--r); margin-top: 1px; position: relative;
}
.agree input:checked + label .box { background: var(--lime); border-color: var(--lime-press); }
.agree input:checked + label .box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--lime-ink); border-width: 0 2px 2px 0; rotate: 45deg;
}
.agree .err { display: none; margin-top: 7px; font-size: 12.5px; color: var(--bad); font-weight: 600; }
.agree.invalid .err { display: block; }
.agree.invalid .box { border-color: var(--bad); }
.form-submit {
  margin-top: 20px; min-height: 50px; padding: 0 30px; border: 0; border-radius: var(--r);
  background: var(--charcoal); color: var(--paper-2); font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.form-submit:hover { background: #000; }

/* ── 장바구니 서랍 ───────────────────────────────────────── */
.bag-scrim {
  position: fixed; inset: 0; z-index: 55; background: rgb(9 10 9 / .5);
  opacity: 0; pointer-events: none; transition: opacity .26s var(--ease);
}
.bag-scrim.open { opacity: 1; pointer-events: auto; }
.bag-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(94vw, 408px); z-index: 65;
  background: var(--paper-2); display: flex; flex-direction: column;
  transform: translateX(101%); visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
  box-shadow: -18px 0 46px rgb(11 11 11 / .18);
}
.bag-drawer.open { transform: none; visibility: visible; }
.bag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.bag-head h2 { font-size: 19px; }
.bag-head .small { margin-top: 2px; }
.bag-close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.bag-close:hover { background: rgb(11 11 11 / .06); }
.bag-list { flex: 1; overflow-y: auto; padding: 6px 20px; }
.bag-item { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.bag-item img { display: block; width: 66px; height: 91px; object-fit: cover; background: var(--stone); }
.bag-name { font-size: 14px; font-weight: 600; }
.bag-opt { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bag-price { font-size: 14px; font-weight: 700; margin-top: 8px; }
.bag-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: rgb(11 11 11 / .06); }
.qty output { min-width: 34px; text-align: center; font-size: 13.5px; font-weight: 700; }
.bag-del { border: 0; background: none; cursor: pointer; font-size: 12.5px; color: var(--muted); text-decoration: underline; padding: 12px 4px; }
.bag-del:hover { color: var(--bad); }
.bag-empty { padding: 40px 4px; text-align: center; display: none; }
.bag-empty h3 { font-size: 16px; }
.bag-empty p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.bag-empty .btn { margin-top: 18px; }
.bag-foot { border-top: 1px solid var(--line); padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); }
.coupon { display: flex; gap: 8px; }
.coupon input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-3);
  border-radius: var(--r); background: var(--white); font: inherit; font-size: 13.5px;
}
.coupon .btn { min-height: 44px; padding: 0 16px; }
.coupon-msg { margin-top: 8px; font-size: 12.5px; font-weight: 600; display: none; align-items: center; gap: 6px; }
.coupon-msg.show { display: flex; }
.coupon-msg.bad { color: var(--bad); }
.coupon-msg.ok { color: var(--ok); }
.sums { margin-top: 16px; display: grid; gap: 8px; }
.sums div { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.sums .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 16px; color: var(--ink); font-weight: 700; }
.sums .total b { font-size: 20px; letter-spacing: -.03em; }
.bag-foot .btn-lime { margin-top: 16px; min-height: 52px; font-size: 15px; }
.bag-foot .tiny { margin-top: 10px; text-align: center; }

/* ── 푸터 ────────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgb(239 237 234 / .74); margin-top: 0; }
.footer-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 62px var(--gutter) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand { font-size: 20px; font-weight: 700; color: var(--lime); letter-spacing: -.04em; }
.footer-about { margin-top: 14px; font-size: 13px; line-height: 1.85; max-width: 34ch; }
.footer-col h3 { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgb(239 237 234 / .5); margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; }
.footer-cs .tel { font-size: 21px; font-weight: 700; color: var(--paper); letter-spacing: -.02em; }
.footer-cs p { margin-top: 10px; font-size: 12.5px; line-height: 1.8; }
.footer-pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.footer-pay span { font-size: 11px; border: 1px solid rgb(239 237 234 / .26); padding: 3px 8px; border-radius: var(--r); }
.footer-biz {
  margin-top: 46px; padding-top: 26px; border-top: 1px solid rgb(239 237 234 / .18);
  font-style: normal; font-size: 12px; line-height: 1.9; color: rgb(239 237 234 / .56);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; }
.footer-legal a { color: rgb(239 237 234 / .82); }
.footer-legal a:hover { color: var(--paper); text-decoration: underline; }
.footer-copy { margin-top: 16px; font-size: 12px; color: rgb(239 237 234 / .44); }

/* ── 공유 요소 전환(shared-element PDP) ──────────────────── */
@view-transition { navigation: auto; }
.vt-pdp { view-transition-name: pdp-hero; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── 무JS 대비 ───────────────────────────────────────────
   JS 로만 동작하는 조작기는 JS 가 없을 때 아예 감춘다. kit 의 .js-only 는
   display:revert 라 .icon-btn 의 inline-flex 까지 되돌려 버려서, 이 벌은
   「JS 없을 때만 끄는」 방향으로 뒤집어 쓴다(작성한 display 값이 그대로 산다). */
html:not(.js) .needs-js { display: none !important; }
.pgrid[hidden] { display: none; }

.shop-tools { display: flex; align-items: center; gap: 10px; }
.f-reset {
  background: none; border: 0; cursor: pointer; font-size: 12.5px; color: var(--muted);
  text-decoration: underline; padding: 10px 2px;
}
.f-reset:hover { color: var(--ink); }
.f-toggle { display: none; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters-head h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cmp-empty { margin-top: 30px; }

/* ══════════════════ 반응형 ══════════════════ */
@media (max-width: 1100px) {
  :root { --section: 88px; }
  .hero-photo { width: 58%; }
  .hero-photo img { width: 100%; height: 522px; }
  .nav { gap: 20px; margin-left: 26px; }
  .pdp { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
  .pdp-main { width: 340px; height: 656px; }
}

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .shop-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 0 34px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 26px; }
  .pcard-media img { aspect-ratio: 202 / 259; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-read { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  .nav { display: none; }

  .hero-photo { position: static; width: 100%; }
  .hero-photo::before { display: none; }
  .hero-photo img { width: 100%; height: 380px; object-position: 46% 40%; }
  .hero-inner { min-height: 0; display: block; }
  .hero-copy { max-width: none; padding-block: 34px 44px; }
  .hero-vtext { display: none; }
  .hero .chapter { position: static; flex-direction: row; margin-top: 26px; padding: 0 var(--gutter) 26px; }
  .hero .chapter-now { color: var(--ink); font-size: 20px; }
  .hero .chapter-bar { width: 22px; height: 1px; background: var(--line-3); }
  .hero .chapter-all { color: var(--muted); }

  .fitrow { grid-template-columns: 1fr; gap: 16px; }
  .fitcard { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
  .fitcard-media img { height: 200px; }
  .fitcard h3 { margin-top: 0; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips { grid-template-columns: 1fr; gap: 16px; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp-media { margin-inline: calc(var(--gutter) * -1); }
  .pdp-main { width: 100%; height: auto; aspect-ratio: 390 / 560; }
  /* 큰 사진만 화면 끝까지 내보내고, 그 아래 글은 다시 여백 안으로 들여놓는다 */
  .pdp-detail, .pdp-thumbs, .pdp-media > .tiny { padding-inline: var(--gutter); }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --section: 68px; }
  .header-inner { min-height: 60px; gap: 8px; }
  .brand { font-size: 17px; }
  .header-tools { gap: 0; }
  .icon-btn { width: 44px; height: 44px; }

  .hero-photo img { height: 340px; }
  .hero-title { margin-top: 14px; }
  .hero-copy .btn { width: 100%; }

  /* 누르는 면 44px — 검사기가 화면 좌표로 ±22px 을 찍는다.
     서랍이 닫힌 채 화면 밖에 있어도 상자 높이는 재므로 안쪽 단추까지 모두 넓힌다. */
  .btn-sm { min-height: 44px; }
  .chip { min-height: 44px; }
  .look-add { min-height: 44px; }
  .qty button { width: 44px; height: 44px; }
  .bag-del { min-height: 44px; padding-inline: 8px; }
  .f-reset { min-height: 44px; }
  .pdp-thumb { min-height: 44px; }

  .rail-outer { margin-inline: calc(var(--gutter) * -1); }
  .rail { padding-inline: var(--gutter); }
  .rail-dots, .rail-progress { margin-inline: var(--gutter); }
  .rail-nav { display: none; }

  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .filters { display: none; }
  .filters.open { display: block; border-top: 0; margin-bottom: 22px; }
  .f-toggle { display: inline-flex; }
  .shop-bar { flex-wrap: wrap; gap: 10px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .pcard-foot .btn { font-size: 12px; padding: 0 8px; }

  .fitcard { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .fitcard-media img { height: 158px; }
  .svc { grid-template-columns: 1fr; }

  .figrow { grid-template-columns: 1fr; gap: 0; }
  .fig { display: none; }
  .fig[data-on="1"] { display: block; }
  .fitstage { padding: 20px 18px 26px; }
  .fig-media img { aspect-ratio: 238 / 380; }
  .calc { padding: 24px 20px; margin-inline: calc(var(--gutter) * -1); }
  .calc-grid { grid-template-columns: 1fr; gap: 14px; }
  .calc .btn-lime { width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .cmp-actions .btn { flex: 1; min-width: 0; }

  .buydock { display: flex; }
  body.has-dock { padding-bottom: 78px; }

  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { padding-top: 46px; }
  .toast { bottom: 92px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 33px; }
  .pgrid { gap: 22px 12px; }
  .pcard-name { font-size: 13.5px; }
  .look { width: 176px; }
  .look-media img { height: 244px; }
}
