/* 쇼핑집사 v9 — 시안 V10H(홈)·V10P(상품) 기준. 모바일 390px 기준, 데스크톱은 가운데 480px 기둥.
   글꼴은 Pretendard 하나. 숫자(.n)는 같은 글꼴에 탭 숫자(tabular-nums)만 켠다(Outfit 파일은 public/fonts/outfit에 남겨 두고 안 불러온다).
   상단바 변형은 html[data-hdr="N"] 로 덮어쓴다(기본 1 리퀴드 글래스 바). */

/* ── 토큰 ─────────────────────────────────────────────── */
:root {
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --col: 480px;
  --white: #ffffff;
  --logo-ink: #17171c;
  --red-chip-bg: #ffeeea;
  --red-chip-fg: #c2261c;
  --blue-chip-bg: #e8efff;
  --blue-chip-fg: #2e5fd8;
  --verdict-accent: #3d7bff;
  --search-line: #dce2ea;
  --search-ink: #111826;
  --search-ph: #5a6372;
  --paste-bg: #f0f3f7;
  --paste-fg: #2a3140;
  --rank: #111114;

  /* 홈·일반 페이지 */
  --ink: #1a1925;
  --ink-2: #3e3d4e;
  --muted: #6e6d82;
  --surface: #f1f1f7;
  --hover: #e6e6f0;
  --line: #e1e6ed;
  --up: #d42a24;
  --down: #2e5fd8;
  --page-bg: #ffffff;
  --desk-bg: #eceef2;

  /* 상단바 높이 (모든 변형 56px 고정 — 앵커 이동 여백 계산용) */
  --hdr-h: 56px;
}

.pg-product {
  --ink: #0e0f12;
  --ink-2: #33363d;
  --muted: #5f6470;
  --line: #ebeced;
  --up: #e5302a;
  --page-bg: #f0f1f2;
  --desk-bg: #e2e4e8;
  --soft: #f1f4f8;
  --soft-2: #f3f4f5;
  --chev: #a3a8b0;
}

/* ── 기본 ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--page-bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button {
  cursor: pointer;
}
ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
s {
  text-decoration-thickness: 1px;
}
img {
  max-width: 100%;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
label:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.n {
  /* 숫자도 Pretendard: 굵기·자간은 감싼 글자('원' 등)를 그대로 물려받고 자릿수만 고정폭.
     혼자 서는 숫자(순위 칩·하락률)는 각 규칙에서 굵기를 준다 */
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  left: 12px;
}
.e1 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l2,
.two {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.th {
  position: relative;
}
.th::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 28, 0.04);
  pointer-events: none;
}
.hv {
  transition: background-color 0.15s ease;
}
.hv:hover {
  background: var(--hover);
}
.won {
  white-space: nowrap;
}
.pct {
  white-space: nowrap;
}

/* 페이지 기둥 */
.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page-bg);
  overflow-x: clip;
}
@media (min-width: 520px) {
  body {
    background: var(--desk-bg);
  }
  .page {
    box-shadow: 0 0 0 1px rgba(14, 15, 18, 0.04), 0 24px 64px rgba(14, 15, 18, 0.07);
  }
}
/* ── 상단바 — 스크롤 변형 10종 (docs/header-scroll.md, 실험실 header-lab 이식) ──────────
   html[data-hdr="1".."10"][data-page="home"|"product"|"page"] — 서버가 렌더(기본 1, ?hdr=로 미리보기).
   상태(v9.js가 html에 붙임): [data-scrolled] 맨 위 8px 지남 · [data-past-dock] 도킹 대상(홈 히어로 검색창 / 상품 정보 카드)이
   헤더 밑으로 지나감(03·04) · [data-down] 아래로 스크롤 중(06) · [data-sec] 지금 보는 섹션(04·05).
   원칙: sticky 56px 고정(흐름 안) → CLS 0. 상태 전환은 opacity·transform만. 스크롤 리스너 없음.
   함정: .hdr 안에 mix-blend-mode 요소를 두거나 .hdr·조상에 filter·opacity<1·mask를 걸면 .hdr가 독립 합성면이 되어
   .hdr-bg 블러가 빈 배경만 샘플링한다(블러가 조용히 꺼짐). 헤더 안 이미지는 multiply 금지. */
@property --lw {
  syntax: '<color>';
  inherits: true;
  initial-value: #fff;
}
html {
  --gl: 250 250 253;
  --pb: 255 255 255;
  --tone: 236 236 246;
}
html[data-page='product'] {
  --gl: 240 241 242;
  --pb: 240 241 242;
  --tone: 221 227 231;
}
body {
  position: relative;
}
.hdr-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  visibility: hidden;
  pointer-events: none;
}
/* 06·07(폴백) 스크롤 방향 눈금자: v9.js가 만든다 */
.hdr-ruler {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.hdr-ruler i {
  display: block;
  height: 120px;
}

/* 로고 02 '민트 각 매듭': 배지 24 · 간격 5.6 · 워드마크(Spoqa 700 윤곽선 SVG) 높이 24.13, 0.71px 아래로 — 로고 보드 타일 02의 24px 줄
   + V16Logos 01 부제(.logo-tag: 구분선 · 'AI 쇼핑비서') */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4.48px;
  color: var(--logo-ink);
}
/* J 요청(2026-11-29): 상단 로고 20% 축소 — 비율은 그대로 0.8배 */
.logo .badge-svg {
  display: block;
  flex: none;
  width: 19.2px;
  height: 19.2px;
}
.logo-word {
  display: block;
  flex: none;
  width: 69.01px;
  height: 19.3px;
  position: relative;
  top: 0.57px;
}
/* V16Logos 01 '인라인 · 헤어라인' (J 2026-11-29): 글자 끝 → 7px → 구분선 1×11 → 7px → 'AI 쇼핑비서'(Pretendard 600 · 11px · 회색).
   19px 헤더 그대로 전체 폭 약 157px — 상품 화면 좌우 버튼 사이(390폭 290px · 360폭 260px) 안. 글꼴은 사이트 기본 Pretendard라 추가 웹폰트 없음.
   색: 밝은 바탕 #6B6B74 · 선 rgba(23,23,28,.2) / 어두운 바탕(09 스모크 다크) #A1A1AA · 선 rgba(255,255,255,.26) */
.logo-tag {
  display: flex;
  align-items: center;
  flex: none;
  gap: 7px;
  /* .logo의 간격 4.48px + 2.52px = 7px */
  margin-left: 2.52px;
}
.logo-hl {
  display: block;
  flex: none;
  width: 1px;
  height: 11px;
  background: var(--logo-hl, rgba(23, 23, 28, 0.2));
}
.logo-sub {
  display: block;
  flex: none;
  position: relative;
  top: 0.4px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--logo-sub, #6b6b74);
}

/* 공통 뼈대 */
.hdr {
  --fg: #17171c;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  color: var(--fg);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, --lw 0.2s, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hdr :is(a, button, form) {
  pointer-events: auto;
}
.hdr:focus-within {
  transform: none !important;
}
.hdr-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hdr-row {
  position: relative;
  height: 56px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hdr-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: none;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hdr-icon[hidden] {
  display: none;
}
.hdr-back {
  position: absolute;
  left: 6px;
  top: 6px;
}
.hdr-end {
  position: absolute;
  right: 6px;
  top: 6px;
  display: flex;
}
.hdr .logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: 44px;
  display: flex;
  color: inherit;
  transition: opacity 0.2s, visibility 0.2s;
}
.hdr .badge-svg .lb {
  fill: currentColor;
}
.hdr .badge-svg .lw {
  fill: var(--lw);
}
.hdr .logo-word,
.hdr .logo-tag {
  transition: opacity 0.2s;
}
.hdr a:focus-visible,
.hdr button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.hdr-search,
.hdr-ctx,
.hdr-sec,
.hdr-tabs,
.hdr-prog {
  display: none;
}
html:not([data-page='product']) .hdr-end {
  display: none;
}
/* 왼쪽 로고 + 검색 아이콘(홈·일반) */
:is([data-hdr='2'], [data-hdr='3'], [data-hdr='4'], [data-hdr='6'], [data-hdr='8'], [data-hdr='10']):not([data-page='product']) .hdr .logo {
  inset: 0 auto 0 16px;
  margin: auto 0;
}
:is([data-hdr='2'], [data-hdr='4'], [data-hdr='6'], [data-hdr='8'], [data-hdr='10']):not([data-page='product']) .hdr-end {
  display: flex;
}
/* 나타났다 사라지는 조각 공통 */
.hdr-search,
.hdr-ctx,
.hdr-sec > span,
.hdr-tabs {
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.26s;
}

/* 01 리퀴드 글래스 바(기본): 센티널 → 전체 폭 유리 */
[data-hdr='1'] .hdr-bg {
  background: rgb(var(--gl) / 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.55), 0 0.5px 0 rgba(20, 20, 30, 0.12);
}
[data-hdr='1'][data-scrolled] .hdr-bg {
  opacity: 1;
}

/* 02 플로팅 캡슐: 가장자리에서 떨어진 유리 알약 */
[data-hdr='2'] .hdr-bg {
  inset: 6px 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgb(var(--gl) / 0.6));
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  backdrop-filter: blur(18px) saturate(190%);
  box-shadow: 0 0 0 0.5px rgba(20, 24, 40, 0.1), 0 12px 28px -14px rgba(20, 24, 40, 0.34), inset 0 1px 0 #fff;
  transform: scale(1.045, 1.3);
}
[data-hdr='2'][data-scrolled] .hdr-bg {
  opacity: 1;
  transform: none;
}
[data-hdr='2'][data-scrolled] .hdr-row {
  transform: scale(0.955);
}
[data-hdr='2']:not([data-page='product']) .hdr .logo {
  left: 20px;
}

/* 03 검색 도킹: 홈은 히어로 검색창이 지나가면 같은 AI 검색창이 헤더에 붙고, 상품·일반 페이지는 늘 떠 있다 */
[data-hdr='3'] .hdr-bg {
  background: rgb(var(--gl) / 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 0.5px 0 rgba(20, 20, 30, 0.1);
}
[data-hdr='3'][data-scrolled] .hdr-bg {
  opacity: 1;
}
[data-hdr='3'] .hdr-search {
  display: flex;
}
.hdr-search {
  position: absolute;
  top: 8px;
  left: 52px;
  right: 16px;
  height: 40px;
  margin: 0;
  padding: 0 12px 0 5px;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--search-line);
  box-shadow: 0 6px 16px -10px rgba(30, 52, 96, 0.38);
}
.hdr-search:focus-within {
  border-color: #17171c;
}
.hdr-ai {
  /* 재질 = .ai-orb (V11AIIcon 01), 28px */
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hdr-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: 0;
  background: none;
  padding: 0;
  font: 600 16px/1 var(--font);
  letter-spacing: -0.03em;
  color: #17171c;
  -webkit-appearance: none;
  appearance: none;
}
.hdr-search input::placeholder {
  color: #6b7280;
  font-weight: 500;
}
.hdr-search input::-webkit-search-cancel-button {
  display: none;
}
[data-hdr='3'][data-page='home'] .hdr-search {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
[data-hdr='3'][data-page='home'][data-past-dock] .hdr-search {
  opacity: 1;
  visibility: visible;
  transform: none;
}
[data-hdr='3'][data-past-dock] .hdr :is(.logo-word, .logo-tag),
[data-hdr='3'][data-page='page'] .hdr-q :is(.logo-word, .logo-tag) {
  opacity: 0;
}
[data-hdr='3'][data-page='product'] .hdr .logo {
  inset: 0 auto 0 50px;
  margin: auto 0;
}
[data-hdr='3'][data-page='product'] .hdr :is(.logo-word, .logo-tag) {
  display: none;
}
[data-hdr='3'][data-page='product'] .hdr-search {
  left: 84px;
  right: 52px;
}

/* 04 상품 요약 바: 상품 정보 카드가 지나가면 썸네일·할인율·가격·판정 칩(누르면 맨 위로). 홈은 지금 섹션 제목 */
[data-hdr='4'] .hdr-bg {
  background: rgb(var(--gl) / 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 0.5px 0 rgba(20, 20, 30, 0.12), 0 10px 22px -18px rgba(20, 20, 30, 0.45);
}
[data-hdr='4'][data-scrolled] .hdr-bg {
  opacity: 1;
}
[data-hdr='4'][data-page='product'] .hdr-ctx {
  display: flex;
}
[data-hdr='4'][data-page='home'] .hdr-sec {
  display: block;
}
.hdr-ctx {
  position: absolute;
  left: 52px;
  right: 52px;
  top: 6px;
  height: 44px;
  align-items: center;
  gap: 9px;
  color: #0e0f12;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
/* 썸네일은 multiply 없이 cover (위 '함정' 참고) */
.hdr-ctx-thumb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #d3d4d4;
}
.hdr-ctx-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hdr-ctx-pr {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hdr-ctx-pr .n {
  font-weight: 700;
}
.hdr-ctx-pct {
  color: #e5302a;
  font-size: 15px;
}
.hdr-ctx-price {
  font-size: 17px;
}
.hdr-ctx-chip {
  flex: none;
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: #eaf0ff;
  color: #2852c9;
  font-size: 12.5px;
  font-weight: 750;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.hdr-ctx-chip.v-lowest {
  background: var(--ink);
  color: #fff;
}
.hdr-ctx-chip.v-near {
  background: var(--red-chip-bg);
  color: var(--red-chip-fg);
}
[data-hdr='4'][data-past-dock] .hdr-ctx {
  opacity: 1;
  visibility: visible;
  transform: none;
}
[data-hdr='4'][data-page='product'][data-past-dock] .hdr .logo,
[data-hdr='4'][data-page='product'][data-past-dock] .hdr-share {
  opacity: 0;
  visibility: hidden;
}
[data-hdr='4'] .hdr-find {
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* 검색 아이콘이 공유 자리로 (공유 버튼이 보일 때만) */
[data-hdr='4'][data-page='product'][data-past-dock] .hdr-end:has(.hdr-share:not([hidden])) .hdr-find {
  transform: translateX(44px);
}
.hdr-sec {
  position: absolute;
  left: 52px;
  right: 60px;
  top: 0;
  height: 56px;
}
.hdr-sec > span {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 100%;
  line-height: 56px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
[data-hdr='4'][data-past-dock][data-sec='rising'] [data-s='rising'],
[data-hdr='4'][data-past-dock][data-sec='drops'] [data-s='drops'],
[data-hdr='4'][data-past-dock][data-sec='unit'] [data-s='unit'] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
[data-hdr='4'][data-page='home'][data-past-dock][data-sec] .hdr :is(.logo-word, .logo-tag) {
  opacity: 0;
}

/* 05 섹션 탭: 헤더 아래 탭 줄이 내려오고 지금 보는 섹션에 불이 들어온다 */
[data-hdr='5'] .hdr-bg {
  bottom: auto;
  height: 100px;
  background: rgb(var(--gl) / 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 0.5px 0 rgba(20, 20, 30, 0.12);
  transform: translateY(-44px);
}
[data-hdr='5'][data-scrolled] .hdr-bg {
  opacity: 1;
  transform: none;
}
[data-hdr='5'] .hdr-tabs {
  display: flex;
}
.hdr-tabs {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  height: 44px;
  padding: 0 12px;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
}
.hdr-tabs::-webkit-scrollbar {
  display: none;
}
.hdr-tabs a {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  color: #5a5f6b;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.hdr-tabs a[aria-current] {
  background: #17171c;
  color: #fff;
}
[data-hdr='5'][data-scrolled] .hdr-tabs {
  opacity: 1;
  visibility: visible;
  transform: none;
}
[data-hdr='5'] [data-spy] {
  scroll-margin-top: 108px;
}

/* 06 헤드룸: 내리면 숨고, 조금 올리면 아래가 둥근 카드로 다시 나타난다 */
[data-hdr='6'] .hdr-bg {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.5), 0 0.5px 0 rgba(15, 23, 42, 0.06);
}
[data-hdr='6'][data-scrolled] .hdr-bg {
  opacity: 1;
}
[data-hdr='6'][data-scrolled][data-down] .hdr {
  transform: translateY(-112%);
}

/* 07 진행선: 유리 바 아래 브랜드 빨강 읽기 진행선(스크롤 연동 애니메이션, 미지원이면 v9.js 눈금자) */
[data-hdr='7'] .hdr-bg {
  background: rgb(var(--gl) / 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  backdrop-filter: blur(24px) saturate(200%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -2px 0 rgba(23, 23, 28, 0.06);
}
[data-hdr='7'][data-scrolled] .hdr-bg {
  opacity: 1;
}
[data-hdr='7'] .hdr-prog {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff9466, #ff5a3c 55%, #e5302a);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.15s linear;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  [data-hdr='7'] .hdr-prog {
    transition: none;
    animation: hdr-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes hdr-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* 08 톤 틴트 + 페이드 엣지: 페이지(사진) 색을 머금은 유리, 경계선 대신 마스크로 사라짐. 크롬·사파리 JS 0 */
[data-hdr='8'] .hdr-bg {
  bottom: auto;
  height: 92px;
  background: linear-gradient(180deg, rgb(var(--tone) / 0.92) 0, rgb(var(--tone) / 0.72) 52px, rgb(var(--tone) / 0) 92px);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 50px, transparent 92px);
  mask-image: linear-gradient(180deg, #000 0, #000 50px, transparent 92px);
}
@supports (animation-timeline: scroll()) {
  [data-hdr='8'] .hdr-bg {
    transition: none;
    animation: hdr-in linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 120px;
  }
}
@supports not (animation-timeline: scroll()) {
  [data-hdr='8'][data-scrolled] .hdr-bg {
    opacity: 1;
  }
}
@keyframes hdr-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 09 스모크 다크: 어두운 유리 + 흰 로고(배지 반전), 56→48px 응축 */
[data-hdr='9'] .hdr-bg {
  background: linear-gradient(180deg, rgba(28, 28, 36, 0.84), rgba(14, 14, 20, 0.8));
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -0.5px 0 rgba(255, 255, 255, 0.14), 0 12px 28px -16px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 0;
}
[data-hdr='9'][data-scrolled] .hdr-bg {
  opacity: 1;
  transform: scaleY(0.857);
}
[data-hdr='9'][data-scrolled] .hdr-row {
  transform: translateY(-4px) scale(0.94);
}
[data-hdr='9'][data-scrolled] .hdr {
  --fg: #fff;
  --lw: #17171c;
  --logo-sub: #a1a1aa;
  --logo-hl: rgba(255, 255, 255, 0.26);
}
/* JS가 꺼져 있으면 Layout의 <noscript>가 09 배경을 처음부터 어둡게 깐다 → 부제도 어두운 바탕 색 */
@media (scripting: none) {
  [data-hdr='9'] .hdr {
    --logo-sub: #a1a1aa;
    --logo-hl: rgba(255, 255, 255, 0.26);
  }
}

/* 10 미니멀 솔리드: 블러 없음, 94% 단색 + 스크롤 후 그림자. 가장 싸다(저사양·투명도 줄이기 폴백과 같은 모양) */
[data-hdr='10'] .hdr-bg {
  opacity: 1;
  background: rgb(var(--pb) / 0.94);
  transition: none;
}
[data-hdr='10'] .hdr-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: 0 0.5px 0 rgba(16, 24, 40, 0.07), 0 8px 20px -12px rgba(16, 24, 40, 0.26);
  opacity: 0;
  transition: opacity 0.2s;
}
@supports (animation-timeline: scroll()) {
  [data-hdr='10'] .hdr-bg::after {
    transition: none;
    animation: hdr-in linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 40px;
  }
}
@supports not (animation-timeline: scroll()) {
  [data-hdr='10'][data-scrolled] .hdr-bg::after {
    opacity: 1;
  }
}

/* 폴백: 블러 미지원 → 단색 / 투명도 줄이기 → 10번처럼 단색 / 동작 줄이기 → 전환 0·06 숨김 끔
   (JS 꺼짐은 Layout의 <noscript><style>이 배경을 처음부터 깐다) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr-bg {
    background: rgb(var(--pb) / 0.97) !important;
  }
  [data-hdr='9'] .hdr-bg {
    background: rgba(22, 22, 28, 0.97) !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr-bg {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background: rgb(var(--pb)) !important;
  }
  [data-hdr='9'] .hdr-bg {
    background: #16161c !important;
  }
  [data-hdr='8'] .hdr-bg {
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hdr,
  .hdr * {
    transition: none !important;
  }
  [data-hdr='6'][data-scrolled][data-down] .hdr {
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-hdr='5'] {
    scroll-behavior: smooth;
  }
}

/* ── AI 동그라미: V11AIIcon 01 '글래스 원 · 무채색 정제' ──────────
   푸른 기 없는 흰 유리(165° 흰 98→90→86%) + 블러 10·채도 160%, 위쪽 1px 하이라이트, 0.5px 윤곽선.
   홈 검색창 32px · 일반 검색창(.ai-orb-sm) 24px · 상단바 03 검색창(.hdr-ai) 28px 모두 같은 재질.
   블러 미지원·투명도 줄이기 → 같은 그라데이션 불투명(흰 바탕 위 합성값). */
.ai-orb,
.hdr-ai {
  box-sizing: border-box;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 250, 0.9) 48%, rgba(226, 228, 236, 0.86) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1.5px 3px rgba(26, 25, 37, 0.1), 0 0 0 0.5px rgba(26, 25, 37, 0.18), 0 3px 8px -3px rgba(26, 25, 37, 0.32);
  color: #17171c;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ai-orb,
  .hdr-ai {
    background: linear-gradient(165deg, #fff 0%, #f7f8fa 48%, #e6e8ef 100%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .ai-orb,
  .hdr-ai {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(165deg, #fff 0%, #f7f8fa 48%, #e6e8ef 100%);
  }
}
.ai-orb {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1;
}
.ai-orb-sm {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  font-size: 9.5px;
}

/* ── 홈: 히어로 + AI 검색창 ──────────────────────────────── */
.hero {
  padding: 0 20px;
}
.hero-title {
  margin: 30px 0 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.36;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.ai-search {
  margin: 26px 0 0;
  padding: 18px 12px 12px 16px;
  border-radius: 22px;
  border: 1px solid var(--search-line);
  background: #fff;
  box-shadow: 0 18px 38px -24px rgba(30, 52, 96, 0.38);
}
.ai-search:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ai-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}
.ai-field {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 28px;
}
.ai-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--search-ink);
  letter-spacing: -0.03em;
}
.ai-input::-webkit-search-cancel-button,
.ai-input::-webkit-search-decoration {
  display: none;
}
.ai-ex {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--search-ph);
  letter-spacing: -0.03em;
  transition: opacity 0.15s;
}
.ai-ex-i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: ex-rot 24s linear infinite;
}
.ai-ex-i:nth-child(1) {
  animation-delay: -1s;
}
.ai-ex-i:nth-child(2) {
  animation-delay: 3s;
}
.ai-ex-i:nth-child(3) {
  animation-delay: 7s;
}
.ai-ex-i:nth-child(4) {
  animation-delay: 11s;
}
.ai-ex-i:nth-child(5) {
  animation-delay: 15s;
}
.ai-ex-i:nth-child(6) {
  animation-delay: 19s;
}
@keyframes ex-rot {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  2.4% {
    opacity: 1;
    transform: translateY(0);
  }
  14.6% {
    opacity: 1;
    transform: translateY(0);
  }
  16.6% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
.ai-input:focus ~ .ai-ex,
.ai-input:not(:placeholder-shown) ~ .ai-ex {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ai-ex-i {
    animation: none;
  }
  .ai-ex-i:first-child {
    opacity: 1;
  }
}
.ai-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.paste {
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 18px;
  background: var(--paste-bg);
  color: var(--paste-fg);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  letter-spacing: normal;
}
.send {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--search-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.send-sm {
  width: 40px;
  height: 40px;
  border-radius: 20px;
}

/* 한 줄 검색창 (검색·404·알림) */
.c-search {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 7px 0 14px;
  border-radius: 28px;
  border: 1px solid var(--search-line);
  background: #fff;
  box-shadow: 0 18px 38px -24px rgba(30, 52, 96, 0.38);
  text-align: left;
}
.c-search:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.c-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--search-ink);
  letter-spacing: -0.03em;
}
.c-search input::placeholder {
  color: var(--search-ph);
  font-weight: 500;
}
.c-search input::-webkit-search-cancel-button {
  display: none;
}

/* ── 섹션 공통 ─────────────────────────────────────────── */
hr.rule {
  margin: 34px 20px;
  height: 1px;
  border: 0;
  background: var(--line);
}
.sec {
  padding: 0 20px;
  scroll-margin-top: calc(var(--hdr-h) + 12px);
}
.sec.flush {
  padding: 0;
}
.pad {
  padding-left: 20px;
  padding-right: 20px;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sec-head.base {
  align-items: baseline;
}
.h-sm,
.h-md,
.h-lg {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}
.h-sm {
  font-size: 18px;
  letter-spacing: -0.04em;
}
.h-md {
  font-size: 20px;
  letter-spacing: -0.04em;
}
.h-lg {
  font-size: 22px;
  letter-spacing: -0.045em;
}
.sec-note {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.more {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.sec-sub {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
#criteria .sec-sub {
  line-height: 1.55;
}

/* ── 급상승 키워드 ─────────────────────────────────────── */
.rise-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.rise {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 18px 0 13px;
  border-radius: 27px;
  background: var(--surface);
}
.rise-rank {
  /* 1~5위 모두 같은 검정 칩 */
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rise-kw {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rise-list li:first-child .rise-kw {
  font-weight: 750;
}
.rise-delta {
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 14px;
  font-weight: 750;
}
.rise-delta.up {
  color: var(--up);
}
.rise-delta.down {
  color: var(--down);
}
.rise-same {
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: #c9c0c2;
}

/* ── 검색 탭: 실시간 검색어 순위 (홈 급상승 행을 그대로 쓰고, 6~10위는 체크박스로 펼침) ── */
.srk {
  padding-top: 22px;
}
.srk .srk-rest {
  margin-top: 6px;
}
.srk-x:not(:checked) ~ .srk-rest {
  display: none;
}
.srk-toggle {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.srk-toggle svg {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.srk-close,
.srk-x:checked ~ .srk-toggle .srk-open {
  display: none;
}
.srk-x:checked ~ .srk-toggle .srk-close {
  display: inline;
}
.srk-x:checked ~ .srk-toggle svg {
  transform: rotate(-90deg);
}
.srk-x:focus-visible ~ .srk-toggle {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .srk-toggle svg {
    transition: none;
  }
}

/* 검색 결과 아래 작은 판: 1~5 / 6~10 두 줄, 헤어라인 구분 */
.srk-c {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.srk-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 14px;
}
.srk-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
}
.srk-i {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: 12px;
}
.srk-n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.srk-kw {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srk-i .rise-delta {
  min-width: 0;
  font-size: 12.5px;
  gap: 2px;
}

/* ── 라디오 탭 (JS 없이 동작) ─────────────────────────────── */
.rtabs {
  position: relative;
}
.rtab-in {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.seg {
  margin-top: 14px;
  padding: 4px;
  border-radius: 22px;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 2px;
}
.seg label,
.seg a {
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: normal;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#ds-rate:checked ~ .seg .seg-rate,
#ds-low:checked ~ .seg .seg-low,
#ds-unit:checked ~ .seg .seg-unit,
.seg a[aria-current='page'] {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
#ds-rate:focus-visible ~ .seg .seg-rate,
#ds-low:focus-visible ~ .seg .seg-low,
#ds-unit:focus-visible ~ .seg .seg-unit {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.rpanel {
  display: none;
}
/* 홈 '전체' 링크: 고른 탭의 /deals 탭으로 (라디오 형제 선택자, JS 없음) */
.rtabs .more {
  display: none;
}
#ds-rate:checked ~ .sec-head .mo-rate,
#ds-low:checked ~ .sec-head .mo-low,
#ds-unit:checked ~ .sec-head .mo-unit {
  display: inline-flex;
}
#ds-rate:checked ~ .rp-rate,
#ds-low:checked ~ .rp-low,
#ds-unit:checked ~ .rp-unit {
  display: block;
}

/* ── 가격 하락: 사진 카드 1~4 ─────────────────────────────── */
.dcards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 26px;
  align-items: start;
}
.dcard {
  display: block;
}
.dcard-media {
  position: relative;
  display: block;
}
.dcard-img {
  display: block;
  aspect-ratio: 169 / 211;
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
}
.th.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dcard-img.fit img {
  display: block;
  width: 80%;
  height: auto;
  aspect-ratio: 1;
  margin: 22.5% 10% 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.dcard-tags {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--rank);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dcard-name {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-2);
}
.dcard-was {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.dcard-was .n {
  font-weight: 500;
}
.dcard-unit {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.dcard-now {
  margin-top: 1px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dcard-now .pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--up);
}
.dcard-price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ── 가격 하락: 랭킹 행 5~ ───────────────────────────────── */
.drows {
  margin-top: 22px;
}
.drows.solo {
  margin-top: 12px;
}
.drows li + li {
  box-shadow: inset 0 1px 0 var(--line);
}
.drow {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 88px;
  margin: 0 -20px;
  padding: 0 20px;
}
.drow-rank {
  flex: none;
  display: flex;
  width: 28px;
  justify-content: center;
}
.drow .rank-dot {
  width: 28px;
  height: 28px;
  border-radius: 14px;
}
.drow-img {
  flex: none;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 27px;
  overflow: hidden;
  background: var(--surface);
}
.drow-img.fit img {
  display: block;
  margin: 5px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.drow-body {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.drow-main {
  flex: 1;
  min-width: 0;
}
.drow-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.drow-price {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.drow-price > .won,
.drow-unit .won {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}
.drow-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.drow-end {
  flex: none;
  padding-left: 10px;
  text-align: right;
}
.drow-end .pct {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--up);
}
.drow-amt {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.drow-amt .n {
  font-weight: 600;
}
.btn-line {
  box-sizing: content-box;
  margin-top: 18px;
  height: 52px;
  border-radius: 26px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.empty-note {
  margin: 12px 0 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── /deals 하락 순위 ─────────────────────────────────────── */
.deals {
  padding-top: 26px;
}
.deals-title {
  margin: 0;
}
.deals .empty-note {
  margin-top: 18px;
}
.pager {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pg-num,
.pg-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-2);
}
.pg-btn {
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
span.pg-btn {
  color: #c9ccd6;
  box-shadow: inset 0 0 0 1px #eef0f4;
}
.pg-prev svg {
  transform: rotate(180deg);
}
.pg-num[aria-current='page'] {
  background: var(--ink);
  color: #fff;
  font-weight: 750;
}
@media (hover: hover) {
  a.pg-num:hover,
  a.pg-btn:hover {
    background: var(--surface);
  }
}

/* ── 단위가 캐러셀 ─────────────────────────────────────── */
.rail {
  margin-top: 16px;
  padding: 0 20px 2px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar {
  display: none;
}
.ucard {
  flex: none;
  width: 148px;
  scroll-snap-align: start;
}
.ucard-media {
  position: relative;
  display: block;
}
.ucard-img {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
}
.ucard-img.fit img {
  display: block;
  margin: 15px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.ink-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  height: 24px;
  padding: 0 9px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
}
.ucard-unit {
  margin-top: 11px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.ucard-basis {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.ucard-uprice {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.ucard-name {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.ucard-meta {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.ucard-meta .pct {
  color: var(--up);
}
.ucard-price {
  color: var(--ink);
}
.ucard-qty {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* ── 판정 기준·FAQ (서비스 소개) ───────────────────────────── */
.about-sec {
  margin-top: 40px;
}
.crit {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}
.crit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
}
.crit-chip,
.chip {
  flex: none;
  min-width: 70px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.crit-chip.v-lowest,
.chip.v-lowest {
  background: var(--ink);
  color: #fff;
}
.crit-chip.v-near,
.chip.v-near {
  background: var(--red-chip-bg);
  color: var(--red-chip-fg);
}
.crit-chip.v-good,
.chip.v-good {
  background: var(--blue-chip-bg);
  color: var(--blue-chip-fg);
}
.crit-rule {
  padding-top: 3px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.faq {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}
.faq details {
  border-radius: 20px;
  background: var(--surface);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  flex: none;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary svg {
  transform: rotate(-90deg);
}
.faq details p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── 하단 정보 ─────────────────────────────────────────── */
.site-foot {
  margin-top: 52px;
  padding: 30px 20px calc(124px + env(safe-area-inset-bottom));
  background: var(--surface);
}
.site-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.site-foot-strong {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 650;
  color: var(--ink-2);
}
.site-foot-fine {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── 하단 탭 바 (리퀴드 글래스) ───────────────────────────── */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(calc(100% - 32px), calc(var(--col) - 32px));
  height: 66px;
  padding: 6px;
  border-radius: 35px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0.5px rgba(23, 23, 28, 0.1), 0 12px 32px rgba(23, 23, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .tabbar {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.62), rgba(242, 242, 252, 0.4));
    -webkit-backdrop-filter: blur(18px) saturate(220%);
    backdrop-filter: blur(18px) saturate(220%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.tab {
  border-radius: 28px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}
.tab[aria-current='page'] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 23, 28, 0.22);
  font-weight: 750;
}

/* ── 상품 페이지 ───────────────────────────────────────── */
.gallery {
  position: relative;
  margin: 0 10px;
  height: 372px;
  border-radius: 28px;
  overflow: hidden;
}
.gallery img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 14px 0 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.dots span {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: #b7bdc2;
}
.dots .on {
  width: 18px;
  background: var(--ink);
}
.card {
  margin: 10px 10px 0;
  padding: 22px 18px 18px;
  border-radius: 22px;
  background: #fff;
  scroll-margin-top: calc(var(--hdr-h) + 10px);
}
.notice-ok {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--muted);
}
.crumb-sep {
  display: flex;
  color: var(--chev);
}
.crumbs [aria-current],
.crumbs .leaf {
  color: var(--ink);
  font-weight: 650;
}
.crumbs a:hover {
  color: var(--ink);
}
.p-title {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.rating {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.rating b {
  font-weight: 600;
  color: var(--ink);
}
.rating span {
  color: var(--muted);
}
.pblock {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.was {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.was s {
  font-size: 14px;
  text-decoration: line-through;
}
.now {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
}
.now-pct {
  font-size: 25px;
  font-weight: 700;
  color: var(--up);
  letter-spacing: -0.02em;
}
.now-price {
  font-size: 37px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.14;
  color: var(--ink);
  white-space: nowrap;
}
.now-price .n {
  letter-spacing: -0.03em;
}
.now-price .won-u {
  margin-left: 2px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.unitline {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.unitline .won {
  font-weight: 700;
  color: var(--ink-2);
}
/* 가격 아래 한 줄: V11PriceInfo 02 '하락선' — 회색 → 빨간 사선 → 검정 + 점, 하락액, 며칠 전 */
.dropline {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dropline-ico {
  display: block;
  flex: none;
}
.dropline-amt {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
}
.dropline-when {
  font-size: 13px;
  font-weight: 550;
  color: #7a808a;
}
.option {
  margin-top: 18px;
  height: 52px;
  padding: 0 12px 0 16px;
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.option-l {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.option-k {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}
.option-v {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.option-r {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* AI 판정 */
.ai-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}
.ribbon-mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #0e0f12;
  color: var(--verdict-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ribbon-mark svg {
  display: block;
}
.v-head {
  margin: 14px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.34;
  color: var(--ink);
}
.why {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.why b {
  font-weight: 750;
  color: var(--ink);
}
/* 판정 제목 아래: V11PriceInfo 02 '위치 핀' — 역대 최저~최고 막대 위 지금 위치.
   --p = 0~100% (서버 계산). --x = 핀 중심(양 끝 11px 안쪽으로 묶어 말풍선 꼬리가 둥근 모서리에 걸리지 않게).
   말풍선은 왼쪽 절반이면 핀 22px 왼쪽에서 시작, 오른쪽 절반이면 거울로 오른쪽 기준. */
.pin {
  --x: clamp(11px, var(--p), calc(100% - 11px));
  margin-top: 14px;
}
.pin-ptr {
  position: relative;
  height: 34px;
}
.pin-bub {
  position: absolute;
  top: 0;
  left: max(0px, calc(var(--x) - 22px));
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: #0e0f12;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.pin[data-side='r'] .pin-bub {
  left: auto;
  right: max(0px, calc(100% - var(--x) - 22px));
}
.pin-bub i {
  font-style: normal;
  opacity: 0.6;
}
.pin-arrow {
  position: absolute;
  left: var(--x);
  top: 25px;
  margin-left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0e0f12;
}
.pin-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: #e6eaef;
}
.pin-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--x);
  border-radius: 4px 0 0 4px;
  background: #0e0f12;
}
.pin-dot {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #0e0f12;
}
.pin-lbl {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.pin-lbl b {
  font-weight: 650;
  color: var(--ink);
}
.scale {
  --gap: 4px;
  --x: calc((100% - 4 * var(--gap)) / 5 * (var(--i) + 0.5) + var(--gap) * var(--i));
  margin-top: 20px;
}
.scale-ptr {
  position: relative;
  height: 36px;
}
.scale-bub {
  position: absolute;
  left: var(--x);
  top: 0;
  transform: translateX(-50%);
  height: 27px;
  padding: 0 10px;
  border-radius: 13px;
  background: #0e0f12;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.scale[data-i='0'] .scale-bub {
  transform: translateX(-24%);
}
.scale[data-i='4'] .scale-bub {
  transform: translateX(-76%);
}
.scale-arrow {
  position: absolute;
  left: var(--x);
  top: 26px;
  margin-left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0e0f12;
}
.scale-bar,
.scale-lbl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
.scale-bar {
  margin-top: 2px;
}
.scale-bar span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e2e7ee;
}
.scale-bar .on {
  background: #0e0f12;
}
.scale-lbl {
  margin-top: 8px;
  height: 20px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.scale-lbl .lbl-low {
  display: flex;
  justify-content: flex-start;
}
.scale-lbl .on {
  color: var(--ink);
  font-weight: 800;
}
.stats {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.stats div {
  min-width: 0;
  padding: 11px 10px 12px;
  border-radius: 16px;
  background: var(--soft);
}
.stats dt {
  height: 20px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.stats dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stats .won-u {
  font-size: 13px;
  font-weight: 750;
}
.alert-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ecedf0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-txt {
  flex: 1;
  min-width: 0;
}
.alert-t {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.alert-s {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.switch {
  flex: none;
  width: 50px;
  height: 30px;
  padding: 3px;
  border-radius: 15px;
  background: #e1e3e7;
  display: flex;
  align-items: center;
}
.switch span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 15, 18, 0.22);
  transition: transform 0.2s ease;
}
.switch {
  transition: background-color 0.2s ease;
}
/* 알림이 걸린 상태 (alerts.js가 aria-pressed="true" 또는 data-alert-on을 붙인다) */
.alert-row[aria-pressed='true'] .switch,
.alert-row[data-alert-on] .switch {
  background: var(--ink);
}
.alert-row[aria-pressed='true'] .switch span,
.alert-row[data-alert-on] .switch span {
  transform: translateX(20px);
}

/* 가격 추이 */
.trend {
  position: relative;
  padding: 22px 18px 14px;
}
.trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.h-card {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.trend-tabs {
  display: flex;
  gap: 14px;
}
.trend-tabs label {
  height: 32px;
  padding: 0 1px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 550;
  color: #8e939c;
  cursor: pointer;
  letter-spacing: normal;
}
#tr-7:checked ~ .trend-head .tt-7,
#tr-30:checked ~ .trend-head .tt-30,
#tr-90:checked ~ .trend-head .tt-90,
#tr-all:checked ~ .trend-head .tt-all {
  font-weight: 800;
  color: var(--ink);
  box-shadow: inset 0 -2.5px 0 var(--ink);
}
#tr-7:focus-visible ~ .trend-head .tt-7,
#tr-30:focus-visible ~ .trend-head .tt-30,
#tr-90:focus-visible ~ .trend-head .tt-90,
#tr-all:focus-visible ~ .trend-head .tt-all {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.tpanel {
  display: none;
}
#tr-7:checked ~ .tp-7,
#tr-30:checked ~ .tp-30,
#tr-90:checked ~ .tp-90,
#tr-all:checked ~ .tp-all {
  display: block;
}
.chart {
  display: block;
  margin-top: 18px;
  width: 100%;
  height: auto;
  overflow: visible;
}
.c-base {
  stroke: #ebeced;
}
.c-low {
  stroke: #c9ccd2;
  stroke-dasharray: 3 4;
}
.c-line {
  fill: none;
  stroke: #0e0f12;
  stroke-width: 2;
  stroke-linejoin: round;
}
.c-t {
  font-family: var(--font);
  font-size: 12px;
  fill: #5f6470;
}
.c-mid {
  font-size: 11px;
  font-weight: 500;
}
.c-lowt {
  font-weight: 700;
  fill: #0e0f12;
}
.c-bubt {
  font-weight: 700;
  fill: #fff;
}
.c-lowdot {
  fill: #0e0f12;
  stroke: #fff;
  stroke-width: 2;
}
.c-bub {
  fill: #0e0f12;
}
.c-now {
  fill: #0e0f12;
  stroke: #fff;
  stroke-width: 2.5;
}

/* 함께 본 상품 */
.related {
  padding: 22px 18px;
}
.rgrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
}
.rgrid > li {
  min-width: 0;
}
.rcard {
  display: block;
  min-width: 0;
}
/* 함께 본 상품 가로 스와이프: 한 쪽 = 2×2, 카드 안쪽 여백까지 번져서 넘어간다 */
.rcar {
  margin: 16px -18px 0;
  timeline-scope: --rp1, --rp2, --rp3, --rp4, --rp5;
}
.rcar-track {
  display: flex;
  gap: 18px;
  padding: 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rcar-track::-webkit-scrollbar {
  display: none;
}
.rcar-track:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-radius: 16px;
}
.rcar .rpage {
  flex: 0 0 100%;
  margin-top: 0;
  align-content: start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: calc(var(--hdr-h) + 70px);
}
.rpage:nth-child(1) {
  view-timeline: --rp1 inline;
}
.rpage:nth-child(2) {
  view-timeline: --rp2 inline;
}
.rpage:nth-child(3) {
  view-timeline: --rp3 inline;
}
.rpage:nth-child(4) {
  view-timeline: --rp4 inline;
}
.rpage:nth-child(5) {
  view-timeline: --rp5 inline;
}
.rdots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.rdot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #c9ccd2;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.rdot::before {
  content: '';
  position: absolute;
  inset: -10px -4px;
}
.rdot[aria-current='true'] {
  width: 18px;
  background: var(--ink);
}
/* 지금 쪽 점: 스크롤 연동 애니메이션(크롬·사파리 26+, JS 0). 쪽이 가운데 맞았을 때(50%) 켜진다 */
@keyframes rdot-on {
  0%,
  30% {
    width: 6px;
    background-color: #c9ccd2;
  }
  50% {
    width: 18px;
    background-color: #0e0f12;
  }
  70%,
  100% {
    width: 6px;
    background-color: #c9ccd2;
  }
}
@supports (animation-timeline: view()) {
  .rdot {
    animation: rdot-on linear both;
    transition: none;
  }
  .rdot:nth-child(1) {
    animation-timeline: --rp1;
  }
  .rdot:nth-child(2) {
    animation-timeline: --rp2;
  }
  .rdot:nth-child(3) {
    animation-timeline: --rp3;
  }
  .rdot:nth-child(4) {
    animation-timeline: --rp4;
  }
  .rdot:nth-child(5) {
    animation-timeline: --rp5;
  }
}
.rcard-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft-2);
}
.rcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.rcard-media.fit img {
  padding: 8%;
  object-fit: contain;
}
.rcard-media > .rcard-chip {
  position: absolute;
  left: 8px;
  top: 8px;
}
.rcard-name {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink-2);
}
.rcard-price {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.rcard-price .pct {
  color: var(--up);
  font-weight: 700;
}
.rcard-price .won {
  color: var(--ink);
  font-weight: 700;
}
.rcard-price .won-u {
  font-size: 14px;
  font-weight: 750;
}

/* 연관 검색어 */
.kws {
  padding: 20px 18px 8px;
}
.h-kw {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.kgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
.kgrid a {
  box-sizing: content-box;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.kgrid a:last-child,
.kgrid a:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}
.kw-ico {
  display: flex;
  color: #9a9fa8;
}

/* 상품 하단 정보 */
.p-foot {
  margin-top: 18px;
  padding: 28px 20px calc(172px + env(safe-area-inset-bottom));
  color: #666b74;
  font-size: 12px;
  line-height: 1.62;
}
.p-foot p {
  margin: 0;
}
.p-foot-strong {
  font-size: 13px;
  font-weight: 700;
  color: #3c4048;
}
.p-foot .p-foot-disc {
  margin-top: 12px;
}
.p-foot .p-foot-legal {
  margin-top: 6px;
}
.report-row {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid #dee0e3;
  border-bottom: 1px solid #dee0e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.report-row span {
  color: #3c4048;
}
.report-row a {
  flex: none;
  font-weight: 700;
  color: var(--ink);
}
.p-foot .p-foot-links {
  margin-top: 14px;
  font-size: 12px;
  color: #3c4048;
}

/* 2단 고정 CTA */
.cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, var(--col));
  transform: translateX(-50%);
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(14, 15, 18, 0.1);
}
.cta-sum {
  padding: 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
}
.cta-pct {
  font-size: 16px;
  font-weight: 700;
  color: var(--up);
  letter-spacing: -0.03em;
}
.cta-dot {
  font-size: 15px;
  font-weight: 700;
  color: var(--chev);
}
.cta-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--ink);
  white-space: nowrap;
}
.cta-price .n {
  letter-spacing: -0.02em;
}
.cta-price .won-u {
  font-size: 17px;
  font-weight: 800;
}
.cta-btns {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.cta-alert {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--soft-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-go {
  flex: 1;
  height: 62px;
  border-radius: 16px;
  /* J 2026-11-30: 예전 시안(V4P01)처럼 파란 버튼 */
  background: #2160f3;
  box-shadow: 0 6px 16px rgba(33, 96, 243, 0.32);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

/* 수정·삭제 요청 바텀시트 */
.sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
}
.sheet:target,
.sheet[data-open] {
  display: block;
}
html.sheet-open {
  overflow: hidden;
}
.sheet-dim {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 18, 0.58);
}
.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--col));
  max-height: calc(100% - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 10px 20px calc(30px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}
.sheet-handle {
  width: 40px;
  height: 5px;
  margin: 0 auto;
  border-radius: 3px;
  background: #d6d9de;
}
.sheet h2 {
  margin: 22px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.sheet-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.reasons {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.reasons label {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.reasons label:has(:checked) {
  font-weight: 650;
}
.rd {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid #c9cdd4;
  background: #fff;
  cursor: pointer;
}
.rd:checked {
  border: 7px solid #0e0f12;
}
.rd:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.fl {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.fl span {
  font-weight: 500;
}
.fld + .fl {
  margin-top: 16px;
}
.fld {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #f3f4f5;
  outline: none;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
textarea.fld {
  height: 92px;
  resize: none;
  line-height: 1.5;
}
input.fld {
  height: 50px;
}
.fld::placeholder {
  color: #7a808a;
}
.fld:focus {
  border-color: #0e0f12;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sheet-btns {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}
.btn-soft,
.btn-ink {
  height: 56px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-soft {
  background: #f3f4f5;
  color: var(--ink);
  font-weight: 700;
}
.btn-ink {
  background: #0e0f12;
  color: #fff;
  font-weight: 750;
}
.sheet-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ── 일반 페이지 (소개·약관·개인정보·문의·검색·404·알림) ───────────── */
.wrap {
  padding: 0 20px;
}
.page-head {
  padding: 30px 0 6px;
}
.page-head.compact {
  padding: 18px 0 0;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.page-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.36;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.prose-wrap {
  padding: 8px 0 0;
}
.prose h2 {
  margin: 32px 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}
.prose p {
  margin: 10px 0 0;
}
.prose ul,
.prose ol {
  margin: 10px 0 0;
  padding-left: 20px;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 4px;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose table {
  display: block;
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
  min-width: 90px;
}
.prose thead th {
  font-weight: 750;
  color: var(--ink);
}
table.criteria th[scope='row'] {
  min-width: 0;
  padding-right: 12px;
}
.callout {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.fine {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.fine a {
  text-decoration: underline;
}
.h3 {
  margin: 16px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.empty {
  padding-top: 36px;
  text-align: center;
}
.empty p {
  font-size: 15px;
  line-height: 1.65;
}
.empty > p > a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mark {
  display: inline-flex;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}
.notice p {
  margin: 0;
}
.notice.err {
  background: var(--red-chip-bg);
  color: var(--red-chip-fg);
}
.result-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
}
.result-card .eyebrow {
  margin: 0;
}
.result-card .h3 {
  margin-top: 6px;
}
.form label {
  display: block;
  margin-top: 16px;
}
.form label > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.form label > span em {
  font-style: normal;
  font-weight: 500;
}
.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #f3f4f7;
  outline: none;
  font-size: 15px;
  color: var(--ink);
}
.form textarea {
  resize: vertical;
  line-height: 1.55;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--ink);
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

/* ── 리퀴드 글래스 흰 판정 칩(적정 가격·할인 대기) — V10 유리 그대로 ─────────────
   반투명 흰 채움(아래로 갈수록 옅은 회청색) + 블러·채도·밝기, 위쪽 1px 하이라이트, 0.5px 테두리.
   블러 미지원·투명도 줄이기 → 불투명 흰 그라데이션 */
.crit-chip:is(.v-usual, .v-wait),
.chip:is(.v-usual, .v-wait) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.7) 52%, rgba(236, 238, 246, 0.74) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.1);
  backdrop-filter: blur(12px) saturate(180%) brightness(1.1);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(255, 255, 255, 0.55), 0 0 0 0.5px rgba(22, 24, 40, 0.12),
    0 1px 1.5px rgba(22, 24, 40, 0.05), 0 3px 9px -5px rgba(22, 24, 40, 0.24);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .crit-chip:is(.v-usual, .v-wait),
  .chip:is(.v-usual, .v-wait) {
    background: linear-gradient(180deg, #fff, #f4f5f9);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .crit-chip:is(.v-usual, .v-wait),
  .chip:is(.v-usual, .v-wait) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(180deg, #fff, #f4f5f9);
  }
}

/* ── '역대 최저'·'신규' 유리 배지 (V11) ─────────────────────────
   공통 뼈대(보드 .gx): 높이 하나(--h)로 알약, 굵기 800, 아이콘+글자 간격 3px(20px은 2px).
   .h22 = 22px · .h20 = 20px · 기본 24px. 글자는 <span>, 아이콘은 SVG(빨강 고정). */
.wf,
.lens {
  --h: 24px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
  box-sizing: border-box;
  height: var(--h);
  padding: 0 9px;
  border-radius: calc(var(--h) / 2);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
:is(.wf, .lens).h22 {
  --h: 22px;
  padding: 0 8px;
  font-size: 11px;
}
:is(.wf, .lens).h20 {
  --h: 20px;
  padding: 0 7px;
  font-size: 11px;
  gap: 2px;
}
:is(.wf, .lens) svg {
  flex: none;
  display: block;
}
.lens.tight {
  letter-spacing: -0.04em;
}

/* 홈·/deals: V11BadgesHome 04 '웜 프로스트' — 따뜻한 우윳빛 유리(웜 화이트 62% · 흐림 16 · 대비 0.4 · 밝기 2.0),
   두꺼운 안쪽 흰 테두리 + 아랫면 따뜻한 굴절빛, 빨간 글자 #B01F17, 불꽃 아이콘. 사진 카드 24 · 랭킹 행 20 · 신규 22.
   단색 대체 #FFF5EC */
.wf {
  color: #b01f17;
  background: rgba(255, 244, 232, 0.62);
  -webkit-backdrop-filter: blur(16px) contrast(0.4) brightness(2) saturate(1.4);
  backdrop-filter: blur(16px) contrast(0.4) brightness(2) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 1px 1.5px rgba(255, 255, 255, 0.9), inset 0 -2px 4px -1px rgba(255, 160, 110, 0.32),
    0 0 0 0.5px rgba(90, 40, 10, 0.14), 0 4px 10px -5px rgba(90, 40, 10, 0.3);
}

/* 상품 화면: V11BadgesProduct 01 '클리어 렌즈' — 투명 유리(흰 22% · 흐림 10 · 대비 0.55 · 밝기 1.55 · 채도 190%),
   대각 테두리 빛 1px(::before 마스크 링), 먹색 글자, 빨간 아래 화살표. 함께 본 상품 22 · 판정 눈금·요약 칸 20.
   단색 대체 흰색 + 0.5px 테두리 */
.lens {
  color: #16171d;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px) contrast(0.55) brightness(1.55) saturate(1.9);
  backdrop-filter: blur(10px) contrast(0.55) brightness(1.55) saturate(1.9);
  box-shadow: 0 0 0 0.5px rgba(16, 18, 30, 0.16), 0 1px 2px rgba(16, 18, 30, 0.08), 0 4px 10px -5px rgba(16, 18, 30, 0.28);
}
.lens::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.4) 28%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wf {
    background: #fff5ec;
  }
  .lens {
    background: #fff;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .wf,
  .lens {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .wf {
    background: #fff5ec;
  }
  .lens {
    background: #fff;
  }
}


/* ── v12 SEO: 상품 고유 블록 (사실 문장 · 월별 표 · 단위가 비교 · 데이터 Q&A) ─────────── */
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card-sub {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}
.card-more {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
}
/* 가격 추이 카드 안 사실 문장 (차트 위) + 기록 한 줄 (차트 아래) */
.fact {
  margin: 12px 0 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.fact-rec {
  margin: 8px 0 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.trend .fact + .tpanel {
  margin-top: 4px;
}

/* 표 (허브 가격표 .hot-ptable) */
.mtable {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.mtable th,
.mtable td {
  height: 46px;
  padding: 0;
  border-top: 1px solid var(--line);
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.mtable thead th {
  height: 34px;
  border-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.mtable th:first-child {
  text-align: left;
}
.mtable tbody th {
  font-weight: 650;
}
.mtable td .won-u {
  font-size: 13px;
}
.mtable .mt-n {
  width: 52px;
  font-weight: 500;
  color: var(--muted);
}

/* 단위가 비교 */
.ucmp-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.ucmp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-top: 1px solid var(--line);
}
.ucmp-list li:first-child {
  border-top: 0;
}
.ucmp-list li.self {
  margin: 2px -10px;
  padding: 0 10px;
  border-radius: 14px;
  border-top: 0;
  background: var(--soft);
}
.ucmp-list li.self + li {
  border-top: 0;
}
.ucmp-rank {
  flex: none;
  width: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.ucmp-list li.self .ucmp-rank {
  color: var(--ink);
}
.ucmp-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
}
.ucmp-me {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}
.ucmp-per {
  flex: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.ucmp-per .won-u {
  font-size: 13px;
}

/* 데이터 Q&A (답이 늘 보이게 — FAQPage JSON-LD와 같은 내용) */
.pfaq-list {
  margin: 8px 0 0;
}
.pfaq-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.pfaq-list div:first-child {
  border-top: 0;
}
.pfaq-list dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.pfaq-list dd {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ── v12 SEO: 허브 (/k · /c · /b) ─────────────────────────────── */
.hub {
  padding-top: 8px;
}
.hub-crumbs {
  margin-top: 4px;
}
.hub-title {
  margin-top: 12px;
  line-height: 1.35;
}
.hub-page {
  font-weight: 600;
  color: var(--muted);
}
.hub-intro {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink-2);
}
.hub-stats {
  margin: 16px 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.hub-stats div {
  min-width: 0;
  padding: 11px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
}
.hub-stats dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-stats dd {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hub-stats .won-u {
  font-size: 14px;
}
.hub-sec .sec-sub {
  margin-bottom: 2px;
}
.hub-links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.hub-links a:hover {
  background: var(--hover);
}
.hub-gap {
  height: 28px;
}
.hub-units {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.hub-unit {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  margin: 0 -20px;
  padding: 0 20px;
}
.hub-unit-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.hub-unit-per {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.hub-unit-per .won-u {
  font-size: 13.5px;
}

/* ── v14 (2026-11-29) — 측정·정직한 하락·단위가·CTA·공유·허브 UX. 새 요소도 기존 토큰만 쓴다 ───────────── */

/* 홈 위쪽 배경: V13HomeHero 12 '라일락 그레이' (채도 낮춘 라일락 → 흰색, 제목 대비 15.0:1) */
.pg-home .page {
  background: linear-gradient(180deg, #eae8f3 0, #f4f3f9 150px, #ffffff 390px);
}
.pg-home .hero .ai-search {
  --search-line: #dedcea;
  border-color: var(--search-line);
  box-shadow: 0 18px 38px -24px rgba(52, 44, 96, 0.3);
}

/* 하단 탭 '검색': V13S08 '돋보기 + AI 미니 태그' — 태그 먹색, 검색 탭이 선택되면 민트 */
.tab-s {
  position: relative;
}
.si {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
}
.si svg {
  display: block;
  flex: none;
}
.s-08 .ai-tag {
  position: absolute;
  top: -3px;
  right: -9px;
  height: 11px;
  padding: 0 2.6px;
  border-radius: 3.5px;
  background: #1a1925;
  color: #ffffff;
  font-size: 7.6px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 11px;
  box-shadow: 0 0 0 1.5px #f6f6fa;
}
.s-08[aria-current] .ai-tag {
  background: #2cd5a8;
  color: #0e1915;
  box-shadow: 0 0 0 1.5px #1a1925;
}

/* 판정 카드 안 쿠팡 버튼(#8). 대가성 고지는 맨 아래 정보 영역에만 (J 2026-11-29) */
.vcta {
  margin-top: 16px;
}
.alert-row + .vcta {
  padding-top: 16px;
  border-top: 1px solid #ecedf0;
}
.vcta + .alert-row {
  margin-top: 14px;
}
.vcta-go {
  height: 54px;
  border-radius: 16px;
  background: #2160f3;
  box-shadow: 0 6px 16px rgba(33, 96, 243, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.03em;
}


/* 알림 한 번 제안(#9): 본문 안 한 줄 (자동 팝업 아님) */
.aprompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 18px;
}
.aprompt[hidden] {
  display: none;
}
.aprompt-t {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.aprompt-btn {
  flex: none;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 19px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
}


/* 작은 판정 딱지 (허브 행·허브 맨 위) */
.chip.sm {
  min-width: 0;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11px;
}

/* 허브 맨 위 두 줄(#11): 지금 사기 좋은 · 단위가 1위 */
.hub-picks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hub-picks li + li {
  box-shadow: inset 0 1px 0 var(--line);
}
.hub-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 0 -20px;
  padding: 8px 20px;
}
.hub-pick-k {
  flex: none;
  width: 58px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--muted);
}
.hub-pick-body {
  flex: 1;
  min-width: 0;
}
.hub-pick-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hub-pick-note {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
}
.hub-pick-note .won {
  font-weight: 700;
  color: var(--ink-2);
}
.hub-pick-price {
  flex: none;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
}
.hub-pick-price .won-u {
  font-size: 13.5px;
}
.drow-price .chip.sm {
  flex: none;
}

/* ── v15 (2026-11-29) — 실시간 급상승(hot) 키워드 허브 /k. v14 허브와 같은 토큰·행 모양만 쓴다 ───────────── */
.hot-flag {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px 0 9px;
  border-radius: 13px;
  background: var(--red-chip-bg);
  color: var(--red-chip-fg);
  font-size: 12.5px;
  font-weight: 750;
}
.hot-flag + .hub-title {
  margin-top: 10px;
}
.hot-exs {
  margin: 8px 0 0;
}
.hot-exs li + li {
  box-shadow: inset 0 1px 0 var(--line);
}
.hot-ex {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  margin: 0 -20px;
  padding: 14px 20px;
}
.hot-ex-img {
  flex: none;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}
.hot-ex-img img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 8px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hot-ex-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hot-ex-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.hot-ex-price {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hot-ex-price > .won {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hot-ex-price > .won .won-u {
  font-size: 16px;
}
.hot-ex-chk {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.hot-ex-chk svg {
  color: var(--blue-chip-fg);
}
.hot-div {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hot-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hot-div-t {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hot-div + .drows.solo {
  margin-top: 4px;
}
.hot-fact {
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
}
.trend-chart {
  margin-top: 14px;
}
.hot-src {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.hot-ptable th:first-child {
  width: 100%;
  max-width: 0;
  padding-right: 12px;
}
.hot-ptable tbody th a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--ink-2);
}
.hot-ptable tr.is-exact th a {
  font-weight: 700;
  color: var(--ink);
}
.hot-ptable td,
.hot-ptable thead th + th {
  padding-left: 12px;
}

/* ── v16 (2026-11-29) — 구매를 돋구는 상품 화면 · 배송 딱지 ───────────────────────── */

/* 판정 카드: 요약 칸 2개(역대 최저 · 60일 평균). '역대 최고' 칸은 뺐다 */
.stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 위치 핀: 오른쪽 '역대 최고' 글자 없이 왼쪽 '역대 최저'만 */
.pin-lbl {
  justify-content: flex-start;
}

/* 할인 대기·판정 전: '기다리라' 대신 담백한 알림 상자 */
.vbox {
  padding: 20px 18px 18px;
}
.vbox-h {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.vbox .why {
  margin-top: 6px;
  font-size: 13.5px;
}
.vbox .alert-row {
  margin-top: 14px;
  padding: 12px 12px 12px 12px;
  border-top: 0;
  border-radius: 18px;
  background: var(--soft-2);
}
.vbox .alert-ico {
  background: #fff;
}
.vbox .alert-row + .vcta {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

/* 가격 기록 (접힘): 그래프·사실 문장은 HTML에 있고 화면에선 한 줄 */
.tfold {
  padding: 0;
}
.tfold-sum {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px 14px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tfold-sum::-webkit-details-marker {
  display: none;
}
.tfold-sum:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-radius: 22px;
}
.tfold-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tfold-ico.is-pos {
  background: #fff1ef;
  color: var(--up);
}
.tfold-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tfold-t {
  margin: 0;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.tfold-s {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.tfold-less,
.tfold[open] .tfold-more {
  display: none;
}
.tfold[open] .tfold-less {
  display: inline;
}
.tfold-chev {
  flex: none;
  display: flex;
  color: var(--chev);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.tfold[open] .tfold-chev {
  transform: rotate(-90deg);
}
@media (prefers-reduced-motion: reduce) {
  .tfold-chev {
    transition: none;
  }
}
.tfold-body {
  padding: 0 18px 14px;
  border-top: 1px solid var(--line);
}
.tfold-body .trend-head {
  justify-content: flex-end;
  margin-top: 6px;
}
.tfold-body .fact {
  margin-top: 14px;
  font-size: 14.5px;
}

/* 배송 딱지: V6Badges '연한 톤 + 아이콘' (S 20 · M 26, 테두리 = 글자색 10%) */
.dlv {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  box-sizing: border-box;
  height: 26px;
  padding: 0 10px 0 7px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  vertical-align: middle;
}
.dlv.s {
  gap: 3px;
  height: 20px;
  padding: 0 7px 0 5px;
  border-radius: 6px;
  font-size: 11px;
}
.dlv svg {
  display: block;
  flex: none;
}
.dlv-rocket,
.dlv-seller {
  background: #ecf2ff;
  color: #1a55d6;
  box-shadow: inset 0 0 0 1px rgba(26, 85, 214, 0.1);
}
.dlv-fresh {
  background: #e7f6ed;
  color: #087446;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 70, 0.1);
}
.dlv-jikgu {
  background: #f2edfd;
  color: #6a35c9;
  box-shadow: inset 0 0 0 1px rgba(106, 53, 201, 0.1);
}
.p-badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p-badges + .p-title {
  margin-top: 8px;
}
.dcard-dlv,
.ucard-dlv {
  margin-top: 6px;
  align-self: flex-start;
}
.drow-tags {
  margin-top: 4px;
  display: flex;
  gap: 4px;
}
.drow-price + .drow-tags {
  margin-top: 4px;
}

/* ── 핫딜·특가 정보 (상품 화면, 긍정 데이터가 있을 때만 — lib/deal-facts) ─────────── */
.deal {
  padding: 18px 18px 16px;
}
.deal-h {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.deal-ico {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--red-chip-bg);
  color: var(--red-chip-fg);
}
.deal-main {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: keep-all;
}
.deal-date {
  font-weight: 550;
  color: var(--muted);
}
.deal-notes {
  margin: 12px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.deal-notes li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  word-break: keep-all;
}
.deal-notes li + li {
  margin-top: 4px;
}
.deal-notes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chev, #a3a8b0);
}
/* /deals 하락 탭: 쿠폰·공동구매 안내 두 줄 · 대분류 칩(/deals?cat=) */
.deals-notes {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
.seg a[aria-current='true'] {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.deal-cats {
  margin: 12px -16px 0;
  padding: 0 16px 2px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.deal-cats::-webkit-scrollbar {
  display: none;
}
.deal-cat {
  flex: none;
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
}
.deal-cat-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.deal-cat[aria-current='page'] {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}
.deal-cat[aria-current='page'] .deal-cat-n {
  color: rgba(255, 255, 255, 0.72);
}

.cta-go:active,
.vcta-go:active {
  background: #1a52d6;
  box-shadow: 0 3px 10px rgba(33, 96, 243, 0.26);
}
