/* ═══════════════════════════════════════════════════════════════════════
   벨로시티랩 (VELOCITY LAB) — 자전거·라이딩 장비
   위쪽 절반은 공통 뼈대 키트(kit.css)의 동작용 CSS, 아래가 이 벌의 생김새.
   색·활자·배치는 00-디자인보드.png / 01-home.png / 02-페이지시안.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: #fff; color: #0b0b0d;
}
.skip-link:focus { left: 0; }

/* ── 터치 영역 ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-header a, .site-header button,
  .drawer a, .drawer button,
  .dots button, .pager button, .tab,
  button, a.btn, .btn { 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; }
.js-only { display: none; }
.js .js-only { display: revert; }
/* `.btn{display:inline-flex}` 처럼 뒤에 선언된 같은 등급 규칙이 `.js-only` 의 none 을 이겨
   JS 를 끈 화면에 「눌러도 반응 없는 단추」가 그대로 남았다. JS 없을 때만 못 박는다. */
html:not(.js) .js-only { display: none !important; }
/* display:revert 는 span 을 inline, button 을 inline-block 으로 되돌린다 — 필요한 곳만 되살린다 */
.js .js-only.suggest, .js .js-only.pdp-thumbs, .js .js-only.coupon,
.js .js-only.cart-ctrl, .js .js-only.swatches { display: flex; }
.js .js-only.btn { display: inline-flex; }
/* display:revert 가 UA 의 [hidden] 을 이겨 「되돌리기」 같은 단추가 처음부터 보였다 */
.js .js-only[hidden] { display: none; }
/* 무JS 에서 탭 패널이 전부 펼쳐질 때도 격자를 유지한다 */
html:not(.js) [role="tabpanel"][hidden].prod-grid { display: grid; }

/* ── 모션 끔 ───────────────────────────────────────────────────────── */
@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; }
  .step-fill { width: 100% !important; animation: 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(0 0 0 / .55);
  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 {
  --blue: #0052ff;          /* RACING BLUE  — 디자인보드 */
  --blue-d: #0040c8;
  --blue-soft: #eaf0ff;
  --yellow: #e5ff00;        /* ACID YELLOW  — 디자인보드 */
  --ink: #0b0b0d;           /* CARBON BLACK — 디자인보드 */
  --ink-2: #15151b;
  --ink-3: #1e1e26;
  --line-d: #2b2b35;
  --gray: #a1a7b3;          /* COOL GRAY    — 디자인보드 */
  --gray-2: #6d7480;

  --paper: #f3f5f8;
  --card: #ffffff;
  --line: #dee2ea;
  --line-2: #eef1f5;
  --text: #14161c;
  --text-2: #545c6a;

  --ok: #0a8f4d;
  --warn: #a86200;
  --bad: #cf1f27;

  --r-s: 4px;
  --r: 10px;
  --r-l: 16px;
  --shadow: 0 12px 34px rgb(11 11 13 / .10);
  --shadow-s: 0 2px 10px rgb(11 11 13 / .06);

  --wrap: 1260px;
  --section: 104px;
  --hdr: 68px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tech: "Saira", "Pretendard Variable", Pretendard, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.01em;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 18px; } }

.num { font-family: var(--tech); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--tech); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.dark .eyebrow { color: var(--yellow); }
.lead { color: var(--text-2); font-size: 17px; margin-top: 14px; max-width: 62ch; }
.dark .lead { color: var(--gray); }

.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }

.sec-head { margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-more {
  font-family: var(--tech); font-size: 14px; font-weight: 600; color: var(--text-2);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.sec-more:hover { color: var(--blue); }
.dark .sec-more { color: var(--gray); }
.dark .sec-more:hover { color: var(--yellow); }

/* ── 아이콘 ───────────────────────────────────────────────────────── */
.sprite { display: none; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-s { width: 17px; height: 17px; }
.ico-l { width: 30px; height: 30px; }

/* ── 단추 ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-s);
  font-weight: 700; font-size: 15px; letter-spacing: -.02em;
  border: 1.5px solid transparent; background: none; cursor: pointer;
  text-decoration: none; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-buy { background: var(--yellow); color: var(--ink); }
.btn-buy:hover { background: #d3ec00; }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgb(0 0 0 / .05); }
.dark .btn-line:hover { background: rgb(255 255 255 / .1); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #2a2a33; }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: 14px; }
.btn-full { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── 헤더 ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 45;
  background: rgb(11 11 13 / .94); color: #fff;
  border-bottom: 1px solid var(--line-d);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header.is-stuck { box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.hdr {
  display: flex; align-items: center; gap: 26px;
  height: var(--hdr);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; flex: none; }
.brand-mark { width: 26px; height: 26px; fill: var(--blue); stroke: none; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.navlinks { display: flex; gap: 26px; margin-left: 8px; }
.navlinks a {
  position: relative; text-decoration: none; color: var(--gray);
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; height: var(--hdr);
}
.navlinks a:hover { color: #fff; }
.navlinks a[aria-current="page"] { color: #fff; }
.navlinks a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--yellow);
}
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--gray); border-radius: var(--r-s); cursor: pointer; position: relative;
}
.icon-btn:hover { color: #fff; background: rgb(255 255 255 / .08); }
.cart-count {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--yellow); color: var(--ink); border-radius: 9px;
  font-family: var(--tech); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}
.hdr-cta { margin-left: 8px; }
@media (max-width: 1080px) { .navlinks { gap: 18px; } .hdr { gap: 16px; } }
@media (max-width: 900px) { .navlinks, .hdr-cta { display: none; } }
.menu-btn {
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: none; color: #fff; cursor: pointer;
}
/* 좁은 화면에서는 검색·찜을 접는다 — 검색은 카테고리 면에, 찜은 상품 카드에 있다 */
@media (max-width: 520px) {
  .hdr-actions .icon-btn:nth-child(1), .hdr-actions .icon-btn:nth-child(3) { display: none; }
}

/* ── 모바일 서랍 ───────────────────────────────────────────────────── */
@media (max-width: 900px) { .menu-btn { display: inline-flex; } }
@media (max-width: 900px) and (min-width: 768px) { .drawer, .scrim { display: block; } }
.drawer { background: var(--ink-2); color: #fff; padding: 20px; border-left: 1px solid var(--line-d); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.drawer-close { background: none; border: 0; color: var(--gray); font-size: 14px; font-weight: 600; cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; margin: 10px 0 20px; }
.drawer-nav a {
  text-decoration: none; color: #fff; font-size: 17px; font-weight: 700;
  padding: 13px 0; border-bottom: 1px solid var(--line-d); display: flex; align-items: center;
}
.drawer-nav a[aria-current="page"] { color: var(--yellow); }
.drawer-cta { display: flex; }
.drawer-tel { margin-top: 16px; color: var(--gray); font-size: 14px; }
.drawer-tel a { color: #fff; font-weight: 700; text-decoration: none; }
.drawer-note { margin-top: 10px; color: var(--gray-2); font-size: 12.5px; line-height: 1.6; }

/* ── 장바구니 서랍 ─────────────────────────────────────────────────── */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 400px);
  background: #fff; color: var(--text); z-index: 62;
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgb(0 0 0 / .2);
}
.cart-drawer.open { transform: none; visibility: visible; }
.cart-scrim {
  position: fixed; inset: 0; z-index: 61; background: rgb(0 0 0 / .5);
  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 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 18px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cart-line img { width: 64px; height: 48px; object-fit: contain; background: var(--paper); border-radius: var(--r-s); flex: none; }
.cart-line-name { font-size: 14px; font-weight: 700; }
.cart-line-opt { font-size: 12.5px; color: var(--text-2); }
.cart-line-price { font-family: var(--tech); font-size: 14px; font-weight: 700; margin-top: 3px; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--paper); }
.cart-sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 14px; }
.cart-total b { font-family: var(--tech); font-size: 21px; }
.cart-note { font-size: 12px; color: var(--text-2); margin-top: 10px; line-height: 1.55; }

/* ── 히어로 ───────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink); color: #fff; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; min-height: 560px; }
.hero-copy { padding: 76px 0 84px; position: relative; z-index: 2; max-width: 620px; }
.hero h1 { font-size: clamp(32px, 5.1vw, 60px); line-height: 1.14; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; display: block; }
.hero-sub { margin-top: 22px; color: var(--gray); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-media { position: absolute; inset: 0 0 0 44%; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgb(11 11 13 / .82) 22%, rgb(11 11 13 / .1) 62%, rgb(11 11 13 / .35) 100%);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 40px 0 36px; }
  .hero-media { position: relative; inset: auto; margin: 0 -24px; aspect-ratio: 16 / 10; }
  .hero-media::after { background: linear-gradient(180deg, rgb(11 11 13 / .55) 0%, rgb(11 11 13 / 0) 45%); }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
}
@media (max-width: 640px) { .hero-media { margin: 0 -18px; } }

/* ── 3단계 진행 (스크롤 연동 시그니처) ──────────────────────────────── */
.steps { background: var(--ink); color: #fff; padding-block: 30px 42px; border-top: 1px solid var(--line-d); }
.step-track { position: relative; height: 3px; background: var(--line-d); margin-bottom: 22px; }
.step-fill { position: absolute; inset: 0 auto 0 0; width: 8%; background: var(--yellow); }
.js .step-fill { transition: width .22s linear; }
@supports (animation-timeline: view()) {
  .js .step-fill {
    width: 8%; animation: step-grow linear both;
    animation-timeline: view(); animation-range: entry 88% cover 62%;
  }
}
@keyframes step-grow { from { width: 8%; } to { width: 100%; } }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
.step-no { font-family: var(--tech); font-size: 13px; font-weight: 700; color: var(--yellow); letter-spacing: .1em; padding-top: 3px; }
.step-key { font-family: var(--tech); font-size: 12px; letter-spacing: .2em; color: var(--gray-2); text-transform: uppercase; }
.step-item h3 { font-size: 17px; margin-top: 2px; }
.step-item p { color: var(--gray); font-size: 14px; margin-top: 5px; }
.step-item:hover h3 { color: var(--yellow); }
@media (max-width: 760px) { .step-list { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ── 도구 카드 3장 ─────────────────────────────────────────────────── */
.tools { background: var(--ink); color: #fff; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r-l);
  padding: 24px 24px 26px; display: flex; flex-direction: column; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.tool-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.tool-card h3 { font-size: 20px; }
.tool-card p { color: var(--gray); font-size: 14.5px; margin-top: 8px; }
.tool-visual {
  margin-top: 20px; background: #000; border-radius: var(--r); overflow: clip;
  display: flex; align-items: center; justify-content: center; min-height: 118px; padding: 10px;
}
.tool-visual img { width: 100%; height: auto; object-fit: contain; }
.tool-modes { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.tool-mode { text-align: center; flex: 1; min-width: 64px; }
.tool-mode span { display: block; font-size: 12px; color: var(--gray); margin-top: 6px; }
.tool-mode .dot {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: rgb(0 82 255 / .16);
  display: flex; align-items: center; justify-content: center; color: #4d8bff;
}
.tool-go { margin-top: auto; padding-top: 20px; font-family: var(--tech); font-size: 13px; font-weight: 600; color: var(--yellow); letter-spacing: .06em; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── 상품 카드 ─────────────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prod-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .prod-grid, .prod-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .prod-grid, .prod-grid.g3 { grid-template-columns: minmax(0, 1fr); } }

.prod {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: clip; display: flex; flex-direction: column; position: relative;
}
.prod-media { display: block; background: #fff; aspect-ratio: 16 / 10; position: relative; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.prod-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.prod-body { padding: 15px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-family: var(--tech); font-size: 11.5px; letter-spacing: .12em; color: var(--gray-2); text-transform: uppercase; }
.prod-name { font-size: 15.5px; font-weight: 700; margin-top: 5px; line-height: 1.4; }
.prod-name a { text-decoration: none; }
.prod-name a:hover { color: var(--blue); }
.prod-spec { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.55; }
.prod-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.prod-price { font-family: var(--tech); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.prod-price small { font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--gray-2); display: block; letter-spacing: 0; }
.prod-wish {
  width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-s);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gray-2); cursor: pointer; flex: none;
}
.prod-wish:hover { color: var(--bad); border-color: var(--bad); }
.prod-wish[aria-pressed="true"] { color: var(--bad); border-color: var(--bad); background: #fff5f5; }
.prod-wish[aria-pressed="true"] .ico { fill: currentColor; }

/* 배지 / 상태 */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: -.01em;
}
.tag-new { background: var(--yellow); color: var(--ink); }
.tag-best { background: var(--blue); color: #fff; }
.tag-sale { background: var(--bad); color: #fff; }
.stk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.stk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stk-in { color: var(--ok); }
.stk-low { color: var(--warn); }
.stk-out { color: var(--gray-2); }
.stk-out::before { border-radius: 1px; }

/* ── 탭 ───────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab:hover { border-color: var(--ink); }

/* ── 코스 카드 ─────────────────────────────────────────────────────── */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .course-grid { grid-template-columns: minmax(0, 1fr); } }
.course {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 22px;
}
.course h3 { font-size: 18px; }
.course-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.course-meta b { font-family: var(--tech); color: var(--text); }
.course-elev { display: block; width: 100%; height: 62px; margin-top: 14px; }
.course-elev .elev-fill { fill: rgb(0 82 255 / .10); }
.course-elev .elev-line { fill: none; stroke: var(--blue); stroke-width: 2; }
.course-tip { margin-top: 12px; font-size: 13.5px; color: var(--text-2); border-top: 1px dashed var(--line); padding-top: 12px; }
.course-tip b { color: var(--text); }

/* ── 안전 고지 띠 ─────────────────────────────────────────────────── */
.safety { background: var(--ink-2); color: #fff; border-top: 3px solid var(--yellow); }
.safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.safety-item { display: flex; gap: 12px; }
.safety-item .ico { color: var(--yellow); flex: none; }
.safety-item h3 { font-size: 15px; }
.safety-item p { color: var(--gray); font-size: 13.5px; margin-top: 5px; line-height: 1.6; }
@media (max-width: 900px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── 지원 3열 ─────────────────────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
.support {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.support .ico { color: var(--blue); }
.support h3 { font-size: 17px; margin-top: 6px; }
.support p { font-size: 14px; color: var(--text-2); }
.support a { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: none; }

/* ── 페이지 머리 ──────────────────────────────────────────────────── */
.phead { background: var(--ink); color: #fff; padding-block: 52px 56px; }
@media (max-width: 640px) { .phead { padding-block: 28px 32px; } }
.phead h1 { font-size: clamp(26px, 4vw, 42px); }
.phead .lead { color: var(--gray); }
.crumb { font-family: var(--tech); font-size: 12.5px; color: var(--gray-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.crumb a { color: var(--gray); text-decoration: none; }
.crumb a:hover { color: #fff; }

/* ── 핏 대시보드 ──────────────────────────────────────────────────── */
.fit-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .fit-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 20px; }
.panel-head h3 { font-size: 18px; }
.panel-note { font-size: 12.5px; color: var(--gray-2); }

.field { margin-bottom: 15px; }
.field > label, .field-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.control {
  width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: #fff; font-size: 15px;
}
select.control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6270' stroke-width='1.8'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.control { height: auto; padding: 12px 13px; line-height: 1.6; resize: vertical; }
.control:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field .err { display: none; color: var(--bad); font-size: 12.5px; margin-top: 5px; font-weight: 600; }
.field.invalid .control { border-color: var(--bad); background: #fff6f6; }
.field.invalid .err { display: block; }
.field-help { font-size: 12.5px; color: var(--gray-2); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row .control { min-width: 0; }
@media (max-width: 380px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.gauge-row { display: flex; align-items: center; gap: 18px; padding: 18px 0 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.gauge { width: 108px; height: 108px; flex: none; position: relative; }
.gauge svg { transform: rotate(-90deg); }
.gauge .g-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.gauge .g-fg { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.gauge-num {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-num b { font-family: var(--tech); font-size: 32px; line-height: 1; }
.gauge-num span { font-family: var(--tech); font-size: 9.5px; letter-spacing: .14em; color: var(--gray-2); margin-top: 3px; }
.gauge-txt h3 { font-size: 16px; }
.gauge-txt p { font-size: 13.5px; color: var(--text-2); margin-top: 5px; }

.geo-stage { background: var(--paper); border-radius: var(--r); padding: 14px; position: relative; }
.geo-stage svg { display: block; width: 100%; height: auto; }
.geo-frame { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.geo-wheel { fill: none; stroke: var(--gray); stroke-width: 5; }
.geo-guide { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 5 4; fill: none; }
.geo-label { font-family: var(--tech); font-size: 15px; fill: var(--blue); font-weight: 600; }
.posture {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center;
  margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.posture img { width: 100%; height: auto; }
.posture b { font-size: 15px; }
.posture p { font-size: 13.5px; color: var(--text-2); margin-top: 5px; line-height: 1.65; }
@media (max-width: 520px) { .posture { grid-template-columns: minmax(0, 1fr); } }

.size-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.size-btn {
  min-width: 50px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-s); font-family: var(--tech); font-weight: 600; font-size: 15px; cursor: pointer;
}
.size-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.size-btn:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.res-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .res-list { grid-template-columns: minmax(0, 1fr); } }
.res {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: #fff;
}
.res dt { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.res dd { margin: 4px 0 0; font-family: var(--tech); font-size: 21px; font-weight: 700; }
.res dd small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--text-2); display: block; letter-spacing: 0; line-height: 1.5; margin-top: 3px; }

/* 필요 탐색기 칩 */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 860px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .chips { grid-template-columns: minmax(0, 1fr); } }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  cursor: pointer; background: #fff; min-height: 76px;
}
.chip label b { display: block; font-size: 15.5px; }
.chip label span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.chip input:checked + label { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.chip input:checked + label b::after { content: " ✓"; color: var(--blue); }
.chip input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.rec { border: 1px solid var(--blue); border-radius: var(--r); background: var(--blue-soft); padding: 18px 20px; margin-top: 18px; }
.rec h3 { font-size: 16px; color: var(--blue); }
.rec ul { margin-top: 10px; display: grid; gap: 8px; }
.rec li { font-size: 14px; display: flex; gap: 8px; }
.rec li b { flex: none; min-width: 82px; }

/* ── 아코디언 ─────────────────────────────────────────────────────── */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; min-height: 58px; padding: 16px 4px; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 16px; font-weight: 700; text-align: left; letter-spacing: -.02em;
}
.acc-trigger .ico { flex: none; color: var(--gray-2); transition: rotate .2s ease; }
.acc-item.open .acc-trigger .ico { rotate: 180deg; }
.acc-panel { padding: 0 4px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.acc-panel p + p { margin-top: 10px; }
.acc-panel ul { margin-top: 8px; display: grid; gap: 6px; }
.acc-panel li { padding-left: 14px; position: relative; }
.acc-panel li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ── 상점 ─────────────────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: minmax(0, 1fr); } }
html:not(.js) .shop-layout { grid-template-columns: minmax(0, 1fr); }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px 18px; position: sticky; top: calc(var(--hdr) + 14px); }
.filters fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.filters legend { font-size: 13.5px; font-weight: 700; padding: 0; margin-bottom: 9px; }
.fchip { display: flex; align-items: center; gap: 9px; min-height: 34px; }
.fchip input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.fchip label { font-size: 14px; cursor: pointer; }
.fchip small { margin-left: auto; font-family: var(--tech); font-size: 12px; color: var(--gray-2); }
.filters .acc-trigger { display: none; }
@media (max-width: 900px) {
  .filters { position: static; padding-top: 0; }
  .filters .acc-trigger { display: flex; }
  .js .filters .acc-panel { display: none; }
  .js .filters .acc-item.open .acc-panel { display: block; }
}
@media (min-width: 901px) { .js .filters .acc-panel { display: block; } }
.filter-reset { margin-top: 18px; }

.shop-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.shop-count { font-size: 14px; color: var(--text-2); }
.shop-count b { font-family: var(--tech); color: var(--text); font-size: 16px; }
.searchbox { display: flex; gap: 8px; margin-bottom: 18px; }
.searchbox .control { flex: 1; min-width: 0; }
.suggest { margin-top: -8px; margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-2); }
.suggest button {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; cursor: pointer;
}
.suggest button:hover { border-color: var(--blue); color: var(--blue); }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 24px; text-align: center; background: #fff; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--text-2); font-size: 14px; margin-top: 8px; }

/* ── 상품 상세 ────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 34px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.pdp-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.pdp-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; }
.pdp-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdp-thumb {
  width: 78px; height: 62px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff;
  padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pdp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-thumb[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.buy h1 { font-size: clamp(24px, 3vw, 34px); }
.buy-en { font-family: var(--tech); font-size: 13px; letter-spacing: .12em; color: var(--gray-2); text-transform: uppercase; }
.buy-price { font-family: var(--tech); font-size: 34px; font-weight: 700; margin-top: 14px; }
.buy-price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: 8px; letter-spacing: 0; }
.buy-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.buy-field { margin-top: 18px; }
.buy-field .field-label { display: flex; align-items: center; justify-content: space-between; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.swatch i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .12); }
.swatch[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.opt-msg { font-size: 13px; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.opt-msg.is-err { color: var(--bad); }
.opt-msg.is-ok { color: var(--ok); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); overflow: clip; }
.qty button { width: 44px; height: 44px; border: 0; background: #fff; cursor: pointer; font-size: 18px; color: var(--text-2); }
.qty button:hover { background: var(--paper); }
.qty input {
  width: 54px; height: 44px; border: 0; border-inline: 1px solid var(--line); text-align: center;
  font-family: var(--tech); font-weight: 700; font-size: 16px;
}
.buy-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.buy-total b { font-family: var(--tech); font-size: 26px; }
.buy-actions { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
/* 찜 단추는 `.btn` 의 좌우 여백(24px)이 40px 폭을 먹어 아이콘이 잘려 나갔다 */
.buy-actions .prod-wish { width: 100%; height: auto; min-height: 50px; padding: 0; }
@media (max-width: 420px) { .buy-actions { grid-template-columns: 56px minmax(0, 1fr); } }
.buy-info { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 16px 18px; }
.buy-info li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); padding: 6px 0; }
.buy-info li b { flex: none; min-width: 74px; color: var(--text); }

/* 구성 빌더 */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 20px; align-items: start; }
@media (max-width: 860px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.build-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 116px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.build-row:last-child { border-bottom: 0; }
.build-row .field-label { margin: 0; }
.build-delta { font-family: var(--tech); font-size: 14px; text-align: right; color: var(--text-2); }
.build-delta.up { color: var(--bad); }
.build-delta.down { color: var(--ok); }
@media (max-width: 520px) { .build-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .build-delta { text-align: left; } }
.build-sum { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 22px; }
.build-sum h3 { font-size: 16px; }
.build-sum dl { margin: 14px 0 0; display: grid; gap: 8px; }
.build-sum .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--gray); }
.build-sum .row b { font-family: var(--tech); color: #fff; font-weight: 600; }
.build-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-d); margin-top: 14px; padding-top: 14px; }
.build-total b { font-family: var(--tech); font-size: 25px; color: var(--yellow); }
.flip { transition: transform .3s cubic-bezier(.2, .7, .3, 1); }

/* 비교표 */
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cmp-count { font-family: var(--tech); font-size: 14px; color: var(--text-2); }
.ctable { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ctable table { min-width: 620px; }
.ctable th, .ctable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: top; }
.ctable thead th { background: var(--paper); font-size: 13px; letter-spacing: -.01em; }
.ctable thead th b { display: block; font-size: 15px; }
.ctable thead th span { display: block; font-family: var(--tech); font-size: 11.5px; color: var(--gray-2); letter-spacing: .1em; text-transform: uppercase; }
.ctable tbody th { width: 132px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.ctable .num { font-weight: 700; }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.lvl { display: flex; align-items: center; gap: 3px; }
.lvl i { width: 12px; height: 8px; background: var(--line); border-radius: 1px; display: block; }
.lvl i.on { background: var(--blue); }
.lvl span { margin-left: 6px; font-size: 12.5px; color: var(--text-2); }
.is-off { display: none; }

/* 호환 판정 */
.compat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .compat { grid-template-columns: minmax(0, 1fr); } }
.verdict { border-radius: var(--r); padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.verdict-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; }
.verdict.ok { border-color: var(--ok); background: #f1faf4; }
.verdict.ok .verdict-tag { color: var(--ok); }
.verdict.warn { border-color: var(--warn); background: #fdf7ec; }
.verdict.warn .verdict-tag { color: var(--warn); }
.verdict.bad { border-color: var(--bad); background: #fdf3f3; }
.verdict.bad .verdict-tag { color: var(--bad); }
.verdict ul { margin-top: 10px; display: grid; gap: 7px; }
.verdict li { font-size: 13.5px; color: var(--text-2); padding-left: 14px; position: relative; }
.verdict li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* 스펙 표 */
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; text-align: left; }
.spec-table th { width: 168px; color: var(--text-2); font-weight: 600; }
.spec-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: clip; }

/* 하단 구매 Dock (모바일) */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 58px; z-index: 44;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px; align-items: center; box-shadow: 0 -6px 20px rgb(11 11 13 / .08);
  }
  .dock-price { flex: none; }
  .dock-price b { font-family: var(--tech); font-size: 17px; display: block; line-height: 1.2; }
  .dock-price span { font-size: 11px; color: var(--text-2); }
  .dock .btn { flex: 1; min-height: 46px; padding: 0 12px; white-space: nowrap; }
  body.has-dock { padding-bottom: 132px; }
}
@media (max-width: 430px) {
  .dock { padding-inline: 10px; gap: 8px; }
  .dock .btn { padding: 0 8px; font-size: 13.5px; }
  .dock-price b { font-size: 15px; }
}

/* ── 장바구니·주문 ────────────────────────────────────────────────── */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: start; }
@media (max-width: 980px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }
.cart-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.cart-row { display: grid; grid-template-columns: 26px 92px minmax(0, 1fr) auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-row:last-child { border-bottom: 0; }
.cart-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); }
.cart-row img { width: 92px; height: 66px; object-fit: contain; background: var(--paper); border-radius: var(--r-s); }
.cart-name { font-size: 15px; font-weight: 700; }
.cart-opt { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.cart-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cart-price { font-family: var(--tech); font-size: 17px; font-weight: 700; text-align: right; white-space: nowrap; }
.cart-del { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-s); cursor: pointer; color: var(--gray-2); }
.cart-del:hover { color: var(--bad); border-color: var(--bad); }
@media (max-width: 620px) {
  .cart-row { grid-template-columns: 22px 64px minmax(0, 1fr); gap: 10px; padding: 14px 12px; }
  .cart-row img { width: 64px; height: 48px; }
  .cart-price { grid-column: 3 / -1; text-align: left; margin-top: 4px; }
}
.cart-head-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-head-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cart-head-row input { width: 20px; height: 20px; accent-color: var(--blue); }
.cart-head-row .btn { margin-left: auto; }

.sumbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: calc(var(--hdr) + 14px); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); padding: 6px 0; }
.sum-row b { font-family: var(--tech); color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.sum-total b { font-family: var(--tech); font-size: 25px; }
.coupon { display: flex; gap: 8px; margin: 14px 0 4px; }
.coupon .control { flex: 1; min-width: 0; }
.coupon-msg { font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 20px; }
.coupon-msg.is-err { color: var(--bad); }
.coupon-msg.is-ok { color: var(--ok); }

/* 주문 단계 */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-2); font-weight: 600; }
.stepper li + li::before { content: ""; width: 24px; height: 1px; background: var(--line); }
.stepper .no { font-family: var(--tech); font-size: 12px; }
.stepper li[aria-current="step"] { color: var(--blue); }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay { position: relative; }
.pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay label { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 13px; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; min-height: 50px; }
.pay input:checked + label { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pay input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.order-done { border: 1px solid var(--ok); background: #f1faf4; border-radius: var(--r); padding: 20px; }
.order-done h3 { color: var(--ok); font-size: 18px; }
.order-no { font-family: var(--tech); font-size: 15px; font-weight: 700; margin-top: 8px; }

.tracker { display: grid; gap: 0; }
.track-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; position: relative; }
.track-step::before { content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.track-step:last-child { padding-bottom: 0; }
.track-step:last-child::before { display: none; }
.track-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.track-step.done .track-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.track-step.done::before { background: var(--blue); }
.track-step h3 { font-size: 15px; }
.track-step p { font-size: 13px; color: var(--text-2); margin-top: 3px; }

.agree { position: relative; margin: 16px 0 6px; }
.agree label { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; }
.agree .box { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 3px; flex: none; margin-top: 2px; background: #fff; }
.agree input:checked + label .box { background: var(--blue); border-color: var(--blue); position: relative; }
.agree input:checked + label .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: 2px solid #fff; border-top: 0; border-left: 0; rotate: 45deg; }
.agree .err { display: none; color: var(--bad); font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.agree.invalid .err { display: block; }
.agree.invalid .box { border-color: var(--bad); }
.counter { font-size: 12px; color: var(--gray-2); text-align: right; margin-top: 4px; font-family: var(--tech); }
.form-submit { width: 100%; margin-top: 8px; }

.notice { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.notice h3 { font-size: 15px; }
.notice p, .notice li { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.notice ul { margin-top: 8px; display: grid; gap: 5px; }
.notice li { padding-left: 13px; position: relative; }
.notice li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gray); }

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--gray); padding-top: 56px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 34px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }
.foot-brand .brand-name { color: #fff; }
.foot-tag { margin-top: 10px; font-size: 13.5px; }
.foot-sns { display: flex; gap: 8px; margin-top: 14px; }
.foot-sns a { width: 40px; height: 40px; border: 1px solid var(--line-d); border-radius: var(--r-s); display: inline-flex; align-items: center; justify-content: center; color: var(--gray); }
.foot-sns a:hover { color: #fff; border-color: var(--gray-2); }
.foot-col h2 { font-size: 14px; color: #fff; margin-bottom: 12px; }
.foot-col a { display: block; color: var(--gray); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.foot-col p { font-size: 13.5px; line-height: 1.75; margin-top: 6px; }
.foot-tel a { font-family: var(--tech); font-size: 21px; font-weight: 700; color: #fff; padding: 0; }
.foot-legal { border-top: 1px solid var(--line-d); padding: 22px 0 30px; font-size: 12.5px; line-height: 1.85; color: var(--gray-2); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.foot-links a { color: var(--gray); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-copy { margin-top: 10px; }

/* 모바일 하단 탭 (06-mobile.png) */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
    background: var(--ink); border-top: 1px solid var(--line-d);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 58px; color: var(--gray); text-decoration: none; font-size: 11px; font-weight: 600;
  }
  .tabbar a[aria-current="page"] { color: #fff; }
  .tabbar a[aria-current="page"] .ico { color: var(--yellow); }
  body { padding-bottom: 58px; }
  .site-footer { padding-bottom: 0; }
  .toast { bottom: 74px; }
}

/* ── 토스트 모양 ──────────────────────────────────────────────────── */
.toast {
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgb(0 0 0 / .3);
  max-width: min(92vw, 460px); text-align: center; border: 1px solid var(--line-d);
}

/* ── 맨 위로 ──────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: var(--shadow-s);
}
.js .to-top.show { display: flex; }
@media (max-width: 900px) { .to-top { bottom: 70px; right: 14px; } }

/* ── 표 안내 ──────────────────────────────────────────────────────── */
.tbl-hint { font-size: 12.5px; color: var(--gray-2); margin-top: 8px; }
.divider { height: 1px; background: var(--line); margin: 34px 0; }
.mini-note { font-size: 12.5px; color: var(--gray-2); margin-top: 12px; line-height: 1.65; }
.dark .mini-note { color: var(--gray-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700;
}
.dark .pill { background: rgb(229 255 0 / .14); color: var(--yellow); }

/* ── 터치 영역 최종 보정 ───────────────────────────────────────────
   `.btn-sm`(40px) 처럼 뒤에 선언된 규칙이 위쪽 키트의 44px 규칙을 덮어쓴다.
   맨 끝에서 한 번 더, 더 높은 선택자로 못 박는다(검사기가 ±22px 을 실제로 찍는다). */
@media (max-width: 767px) {
  button.btn, a.btn, .btn.btn-sm, button, .tab, .icon-btn { min-height: 44px; }
}
