/* 띠니 — design r51 (2026-11-19) · 웜 라이트 · 프레시 그린 & 입맛 도는 코랄 */
:root {
  /* r51 — 재영 님 "색감까지", "입맛돌게 바꾸자".
     차가운 다크/무채색을 걷어내고 따뜻한 화이트 바탕 + 순백 카드,
     포인트는 프레시 그린(좋은 가격·브랜드)과 코랄(핫딜·할인율), 앰버(무난한 가격). */
  color-scheme: light;
  --bg: #f7f7f5;
  --bg-2: #f2f1ec;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --surface-3: #f2f1ed;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #6f6a64;
  --muted-2: #8c867f;
  --line: #e7e4df;
  --line-2: #efede8;
  /* 메인 CTA · 선택 칩 — 웜 차콜 + 아이보리 글씨 */
  --invert-bg: #1c1917;
  --invert-fg: #fbfaf8;
  --invert-line: #1c1917;
  --invert-hover: #2f2a26;
  --chip-on-bg: #1c1917;
  --chip-on-line: #1c1917;
  --chip-on-fg: #fbfaf8;
  --sub-bg: #f5f4f1;
  --sub-line: #e4e1db;
  --sub-fg: #44403c;
  --mark-bg: #15803d;
  --mark-line: #15803d;
  --mark-fg: #ffffff;
  /* 상품 사진 판 — 순백 + 아주 연한 보더: 흰 배경 누끼컷이 카드에 그대로 녹아듭니다 */
  --plate: #ffffff;
  --plate-line: #eeece7;
  /* 프레시 그린 — 좋은 가격·브랜드 포인트 */
  --sage: #16a34a;
  --sage-d: #15803d;
  --sage-soft: #edf8f0;
  --sage-text: #15803d;
  --sage-line: #cfe9d8;
  /* 코랄(토마토) — 할인율·핫딜·역대급 */
  --pap: #f04438;
  --pap-d: #d92d20;
  --pap-soft: #fef1ef;
  --pap-line: #fbd9d4;
  /* 앰버 — 무난한 가격·알림 켜짐 */
  --cocoa: #b45309;
  --cocoa-soft: #fef6e7;
  --cocoa-line: #f3e2bd;
  --blue: #2563eb;
  --blue-soft: #eef3fe;
  /* 판매처 3색 — 라이트 바탕에서 또렷한 원색 그대로 */
  --coupang: #e52528;
  --coupang-d: #c81e1e;
  --coupang-soft: #fdedec;
  --toss: #0064ff;
  --toss-d: #0050cc;
  --toss-soft: #ebf1ff;
  --naver: #03c75a;
  --naver-d: #02a94b;
  --naver-soft: #eafbf1;
  --legal-bg: #f7f7f5;
  --legal-fg: #8c867f;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-card: 0 1px 2px rgba(28, 25, 23, 0.04), 0 10px 22px -16px rgba(28, 25, 23, 0.22);
  --radius: 14px;
  --max: 720px;
  --pad: 16px;
  --legal-h: 0px;
  --hdr-h: 56px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
b, strong { font-weight: 800; }

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 80;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── r47: 첫 진입 페이드인 ─────────────────────────────
   사이트를 처음 열 때만 아주 짧게 스르륵 나타납니다(탭 전환·뒤로가기에는 걸지 않음).
   · body — opacity 0 → 1 (0.4s ease-out). body에 transform을 걸면 fixed인 하단 탭바·BGM 버튼의
     기준 상자가 body가 되어 스크롤을 따라 움직여 버리므로, body에는 opacity만 겁니다.
   · main — translateY(6px) → 0 (0.5s)로 살짝 떠오르는 정도만. main 안에는 fixed 요소가 없어 안전합니다.
   style.css가 head에서 렌더를 막고 있어 첫 페인트 전에 이미 적용되므로, 내용이 먼저 번쩍 보였다가
   사라지는 FOUC는 생기지 않습니다. fill-mode는 backwards라 애니메이션이 끝나면 transform이 남지 않고,
   첫 터치 BGM(js/bgm.js)·이미지 로딩·스크롤은 그대로 동작합니다(요소를 숨기거나 막지 않음). */
@keyframes tt-in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tt-in-rise { from { transform: translateY(6px); } to { transform: translateY(0); } }
body { animation: tt-in-fade 0.4s ease-out backwards; }
main { animation: tt-in-rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }

/* ── 고지 · 헤더 ─────────────────────────────────────── */
.legal {
  position: sticky; top: 0; z-index: 60;
  background: var(--legal-bg); color: var(--legal-fg);
  font-size: 10.5px; line-height: 1.4; letter-spacing: -0.01em;
  text-align: center;
  padding: 6px 14px;
  padding-top: max(6px, env(safe-area-inset-top));
}

.hdr {
  position: sticky; top: var(--legal-h); z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--max); margin: 0 auto;
  height: var(--hdr-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.mark-img { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.word { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
/* 지금 사도 될까? 신호등 미니 배지 */
.lights {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 3px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 1px rgba(22, 19, 15, 0.04);
}
.lights i { display: block; width: 5px; height: 5px; border-radius: 50%; }
.lights i:nth-child(1) { background: #2fbe8c; }
.lights i:nth-child(2) { background: #f0b429; }
.lights i:nth-child(3) { background: #e2574c; }
.word strong { font-size: 16.5px; font-weight: 800; letter-spacing: -0.035em; }
.word em { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--muted-2); }
.word strong, .word em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* r39 — 이름 옆 '최저가 비교' 배지: 직접 파는 쇼핑몰이 아니라는 걸 첫눈에 */
.brand-badge {
  flex: none;
  display: inline-flex; align-items: center;
  height: 16px; padding: 0 6px; border-radius: 999px;
  background: var(--sage-soft); border: 1px solid #cfe3d7;
  color: var(--sage-text);
  font-size: 9.5px; font-weight: 900; letter-spacing: -0.03em; white-space: nowrap;
}
.word em .sub-b { display: none; }
@media (min-width: 1100px) { .word em .sub-b { display: inline; } }

.topnav { display: none; margin-left: auto; gap: 2px; }

/* r39 — PC·태블릿(>=900px) 헤더 상시 검색창. 모바일에서는 숨기고 검색 탭을 그대로 씁니다.
   r55 — PC에서 검색창이 좁게 붕 떠 보이던 것: 최대 폭을 520px로 넓히고 flex로 가운데 공간을 채웁니다. */
.hdr-find {
  display: none;
}
@media (min-width: 900px) {
  .hdr-find {
    display: flex; align-items: center; gap: 8px;
    flex: 1 1 360px; max-width: 520px; min-width: 220px;
    margin-left: 14px; margin-right: 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 14px;
  }
  .hdr-find:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.1); }
  .hdr-find-input {
    flex: 1; min-width: 0;
    border: 0; outline: none; background: transparent;
    font-size: 13px; font-weight: 700; color: var(--ink); padding: 0;
  }
  .hdr-find-input::placeholder { color: var(--muted-2); font-weight: 650; }
  .hdr-find-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
  .hdr-find-clear {
    flex: none; cursor: pointer; width: 18px; height: 18px; border-radius: 999px;
    border: 0; background: var(--line-2); color: var(--muted);
    font-size: 10px; font-weight: 800; line-height: 1; display: grid; place-items: center; padding: 0;
  }
  .hdr-find-clear[hidden] { display: none; }
  /* 헤더 검색창이 생기면 검색 탭의 같은 입력창은 숨겨 중복을 없앱니다(추천 검색어·결과는 그대로) */
  .view-search .toolbar { display: none; }
  .view-search { padding-top: 10px; }
}
.hdr-find-ico { font-size: 12.5px; line-height: 1; opacity: 0.65; flex: none; }

.topnav a {
  text-decoration: none;
  font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--muted);
  padding: 8px 12px; border-radius: 999px;
}
.topnav a[aria-current="page"] { color: #fff; background: var(--ink); }

.hdr-share {
  margin-left: auto; flex: none;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 14px; line-height: 1;
}
.hdr-share:active { transform: scale(0.97); }
.hdr-share + .hdr-share { margin-left: 0; }
/* 헤더 ? 안내 버튼 — 공유 아이콘 바로 옆, 같은 크기 */
.hdr-info {
  flex: none;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.hdr-info:hover { border-color: var(--sage); color: var(--sage-text); }
.hdr-info:active { transform: scale(0.97); }
/* 헤더 📲 홈 화면 추가 — 본문 큰 버튼 대신 아주 작은 알약 버튼 */
.hdr-add {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 9px; border-radius: 999px;
  border: 1px solid #cfe3d7; background: var(--sage-soft);
  color: var(--sage-text);
  font-size: 11px; font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hdr-add:hover { border-color: var(--sage); }
.hdr-add:active { transform: scale(0.97); }
.hdr-add[hidden] { display: none; }

/* ── 본문 ────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 28px; }

/* 모바일 첫 화면이 바로 상품으로 이어지도록 상단은 얇게 */
.eyebrow {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--sage-text); background: var(--sage-soft);
  border-radius: 999px; padding: 3px 8px;
}
/* r26 — 가격 기준·조회수는 홈 상단에서 내려 푸터 맨 아래에 작은 한 줄로만 */
.foot-meta {
  margin: 14px 0 0;
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap; row-gap: 2px;
  font-size: 10px; line-height: 1.4;
  color: var(--muted-2);
}
.update-ico { font-size: 9.5px; line-height: 1; opacity: 0.55; flex: none; }
.update-date { display: inline-flex; align-items: baseline; gap: 1px; flex: none; }
.update-date strong {
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3;
}
.update-weekday { font-size: 9.5px; font-weight: 800; color: var(--muted-2); }
.update-time {
  margin-left: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.update-cycle-main {
  min-width: 0;
  font-size: 9.5px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--muted-2);
}
/* 조회수 (서버가 센 실제 방문 수) */
.view-stat {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9.5px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.view-stat b { color: var(--muted); font-weight: 900; }
.view-stat[hidden] { display: none; }

/* ── 검색 뷰 (하단 탭 가운데) ───────────────────────── */
.view.view-search { padding-top: 0; }
.toolbar {
  position: sticky;
  top: calc(var(--legal-h) + var(--hdr-h));
  z-index: 40;
  background: var(--bg);
  padding: 10px 0 8px;
  margin: 0 calc(var(--pad) * -1);
  padding-left: var(--pad); padding-right: var(--pad);
  border-bottom: 1px solid var(--line);
}
.search-lead {
  margin: 12px 0 0; font-size: 12px; font-weight: 650;
  line-height: 1.55; color: var(--muted-2);
}
.search-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.chip-key {
  cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 11px;
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--muted);
}
.chip-key:active { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-text); }
/* 쿠팡 공식 기획전 — 추천 검색어 바로 아래 3칸 */
.promos { margin-top: 12px; }
.promos[hidden] { display: none; }
.promos-lab {
  font-size: 10px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--muted-2);
}
.promo-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px; margin-top: 6px;
}
.promo {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 9px 8px 8px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.promo:active { transform: scale(0.985); border-color: var(--sage); }
.promo-emoji { font-size: 16px; line-height: 1.1; }
.promo-title { font-size: 11px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.3; }
.promo-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-sub {
  font-size: 9.5px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3;
  color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.view-search .sec-head { margin-top: 14px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
}
.search-box:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.1); }
.search-ico { font-size: 14px; line-height: 1; opacity: 0.7; }
.search-input {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 650;
  background: transparent; border: 0; outline: none; padding: 1px 0;
}
.search-input::placeholder { color: var(--muted-2); font-weight: 600; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
  flex: none; cursor: pointer;
  width: 22px; height: 22px; border-radius: 999px;
  border: 0; background: var(--line-2); color: var(--muted);
  font-size: 11px; font-weight: 800; line-height: 1;
  display: grid; place-items: center;
}
.search-status {
  margin-top: 6px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.search-status strong { color: var(--sage-text); }
.search-reset {
  cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}

/* ── 뷰 · 섹션 ───────────────────────────────────────── */
.view { padding-top: 14px; }
.view-head { padding: 2px 0 12px; }
.view-head h1 { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.view-head p { margin-top: 3px; font-size: 12.5px; font-weight: 650; color: var(--muted-2); }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 18px 0 10px;
}
.sec-head h2 { font-size: 16px; font-weight: 900; letter-spacing: -0.035em; }
.sec-count { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.sec-sub { font-size: 11.5px; font-weight: 650; color: var(--muted-2); }
.sec-more {
  flex: none; cursor: pointer; border: 0; background: transparent;
  font-size: 12px; font-weight: 800; color: var(--sage-text);
}
/* r38 — 역대급 할인 아래 큰 '가격 내리면 알림' 줄(.alert-row/.qbtn)은 없앴습니다.
   알림은 이제 섹션 제목 오른쪽의 작은 🔔 종 버튼(.spot-bell)으로 엽니다. */
/* ── 필터 패널 ───────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0 0;
}
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ctl-grp { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ctl-lab {
  font-size: 11px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--muted-2); white-space: nowrap;
}
.chk {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 9px 4px 7px;
  font-size: 12px; font-weight: 800; color: var(--muted);
  cursor: pointer; user-select: none;
}
.chk input { width: 13px; height: 13px; accent-color: var(--sage); margin: 0; }
.chk:has(input:checked) { background: var(--sage-soft); border-color: #c9e2d4; color: var(--sage-text); }

select.sel {
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236c6659' stroke-width='1.6' stroke-linecap='round'/></svg>")
    no-repeat right 8px center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 26px 6px 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em;
  cursor: pointer;
  max-width: 190px;
}
select.sel:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; }

/* ── 대분류 · 부문 칩 ────────────────────────────────── */
.seg {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 2px 0 2px;
  margin: 8px 0 0;
}
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button {
  flex: none; cursor: pointer; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap;
}
.seg .n { font-size: 11px; font-weight: 700; color: var(--muted-2); margin-left: 3px; }
.seg [aria-selected="true"], .seg [aria-current="page"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.seg [aria-selected="true"] .n, .seg [aria-current="page"] .n { color: rgba(255,255,255,0.72); }

/* 대분류 칩 */
.parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.part-chip {
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em;
}
.part-chip[aria-selected="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.part-chip[aria-selected="true"] .chip-n { color: rgba(255, 255, 255, 0.78); }
.part-chip .chip-ico { font-size: 13px; }

/* ── 세부 필터 줄 ────────────────────────────────────── */
.filters-wrap { margin: 12px 0 0; }
.filter-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.filter-row[hidden] { display: none; }
.filter-lab {
  flex: none; width: 26px;
  font-size: 10.5px; font-weight: 800; color: var(--muted-2);
}
.filters {
  display: flex; gap: 6px; overflow-x: auto;
  flex: 1; min-width: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 750; letter-spacing: -0.02em;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
}
.filter[aria-selected="true"] {
  background: var(--sage-soft); border-color: #bcd9c8; color: var(--sage-text); font-weight: 800;
}
.chip-ico { margin-right: 3px; }
.chip-n { margin-left: 3px; font-size: 10px; font-weight: 700; opacity: 0.7; }
/* r39 — 다중 체크 표시·필터 해제 */
.chip-tick { margin-right: 3px; font-size: 10.5px; font-weight: 900; opacity: 0.9; }
.filter.is-on[aria-selected="true"] .chip-n { opacity: 0.75; }
.cat-reset {
  flex: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 3px 9px;
  font-size: 10.5px; font-weight: 800; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.cat-reset:active { border-color: var(--sage); color: var(--sage-text); }
.ing-note { margin: 7px 0 0 34px; font-size: 10.5px; font-weight: 650; color: var(--muted-2); }
.cat-note {
  margin: 10px 0 0; font-size: 12px; font-weight: 600; line-height: 1.55;
  color: var(--muted); background: var(--surface-2);
  border: 1px dashed var(--line); border-radius: 10px; padding: 9px 11px;
}

/* ── 상품 카드 ───────────────────────────────────────── */
.shelf { margin-top: 4px; }
.list, .grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.group-block { margin: 4px 0 18px; }
.group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 12px 0 8px;
}
.group-head h2 { font-size: 14.5px; font-weight: 900; letter-spacing: -0.03em; }
.cat-ico { margin-right: 4px; font-size: 13px; }
.group-hint { font-size: 11px; font-weight: 650; color: var(--muted-2); }
.part-head {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.part-head-ico { font-size: 17px; line-height: 1; }
.part-head h2 { font-size: 16px; font-weight: 900; letter-spacing: -0.035em; }
.part-head-count { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.part-head-desc { font-size: 11.5px; font-weight: 650; color: var(--muted-2); }

.pc {
  display: flex; gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 0;
}
.pc.is-flash { animation: cardFlash 2.6s ease; }
@keyframes cardFlash {
  0%, 100% { box-shadow: none; }
  20%, 72% { box-shadow: 0 0 0 2px var(--sage), 0 8px 22px rgba(47, 107, 79, 0.18); }
}
.pc-photo {
  width: 88px; height: 88px; flex: none;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
  position: relative;
}
.pc-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pc-photo.is-blank { font-size: 10.5px; font-weight: 700; color: var(--muted-2); text-align: center; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.pc-top {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 10.5px; font-weight: 750; color: var(--muted-2);
  line-height: 1.3;
}
.pc-brand { font-weight: 800; color: var(--muted); }
.src {
  font-size: 10px; font-weight: 800; letter-spacing: 0.01em;
  border-radius: 4px; padding: 1px 4px;
}
.src-coupang { color: #b31217; background: var(--coupang-soft); }
.src-toss { color: var(--toss); background: var(--toss-soft); }
.src-naver { color: #01934a; background: var(--naver-soft); }

.pc-name {
  font-size: 13.5px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-unit { font-size: 12.5px; font-weight: 800; color: var(--sage-text); line-height: 1.35; }
.pc-unit b { font-size: 13.5px; font-weight: 900; letter-spacing: -0.03em; }
.pc-unit .per { font-weight: 700; color: var(--sage-text); }
.pc-unit .est {
  font-size: 9.5px; font-weight: 800; color: var(--muted-2);
  background: var(--line-2); border-radius: 4px; padding: 1px 4px; margin-left: 4px;
  vertical-align: 1px;
}
.pc-sub {
  font-size: 11.5px; font-weight: 650; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-tip {
  font-size: 10.5px; font-weight: 750; color: var(--sage-text); line-height: 1.35;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-tip-ico { font-size: 9.5px; }
.pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.pc-price strong { font-size: 17px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pc-price .off { font-size: 12px; font-weight: 900; color: var(--pap); }
.pc-price .was { font-size: 10.5px; font-weight: 600; color: #b2aa9d; text-decoration: line-through; }
.pc-deal { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.pc-rate { font-size: 11px; font-weight: 700; color: var(--muted); }
.pc-rate b { color: #a06a00; font-weight: 800; }

.bd {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: -0.01em;
  border-radius: 5px; padding: 1.5px 5px; line-height: 1.4;
  white-space: nowrap;
}
.bd-low { color: #fff; background: var(--sage); }
.bd-near { color: var(--sage-text); background: var(--sage-soft); border: 1px solid #c9e2d4; }
.bd-up { color: #8a4b1f; background: var(--cocoa-soft); }
.bd-avg { color: var(--blue); background: var(--blue-soft); }
.bd-track { color: var(--muted-2); background: var(--line-2); }
.bd-cheap { color: var(--sage-text); background: var(--sage-soft); }

.pc-acts { display: flex; gap: 6px; margin-top: 4px; }
.btn-ghost, .btn-buy, .btn-copy {
  cursor: pointer; border-radius: 9px; padding: 7px 8px;
  font-size: 12px; font-weight: 800; letter-spacing: -0.02em;
  text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.btn-ghost {
  flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
}
.btn-ghost:hover { background: #f3f0e9; }
.btn-buy { flex: 1.15; background: var(--coupang); color: #fff; border: 1px solid var(--coupang); }
.btn-buy:hover { background: var(--coupang-d); }
.btn-buy.is-toss { background: var(--toss); border-color: var(--toss); }
.btn-buy.is-toss:hover { background: var(--toss-d); }
.btn-buy.is-naver { background: var(--naver); border-color: var(--naver); }
.btn-buy.is-naver:hover { background: var(--naver-d); }

/* 한 카드 안 플랫폼 버튼 나란히 */
.pc-buys { display: flex; gap: 5px; flex: 1.15; min-width: 0; }
.pc-buys .btn-buy { flex: 1 1 0; min-width: 0; }
.btn-buy.is-pair {
  flex-direction: row; gap: 3px; align-items: baseline; line-height: 1.15;
  padding: 6px 5px; letter-spacing: -0.02em; overflow: hidden;
}
.btn-buy.is-pair .bp-lab { font-size: 10px; font-weight: 800; opacity: 0.95; white-space: nowrap; }
.btn-buy.is-pair .bp-price {
  font-size: 11.5px; font-weight: 900; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 카드 대표가가 네이버일 때 */
.pc-nvtag {
  font-size: 9.5px; font-weight: 900; letter-spacing: -0.02em;
  color: #01934a; background: var(--naver-soft); border: 1px solid #b9ecd0;
  border-radius: 5px; padding: 1px 5px;
}
.bd-naver { color: #01934a; background: var(--naver-soft); border: 1px solid #b9ecd0; }
.pending-label {
  flex: 1; display: inline-block; text-align: center;
  background: var(--line-2); color: var(--muted);
  border-radius: 9px; padding: 7px 8px; font-size: 11.5px; font-weight: 800;
}
.pc-acts .btn-icon {
  flex: none; width: 34px;
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 9px; cursor: pointer; font-size: 13px;
}

/* 순위 */
.pc-rank {
  flex: none; width: 20px; align-self: flex-start;
  font-size: 15px; font-weight: 900; color: var(--muted-2);
  text-align: center; letter-spacing: -0.04em; line-height: 1;
  padding-top: 4px;
}
.pc-rank.is-top { color: var(--sage); font-size: 17px; }

/* ── 오늘의 특가 (홈) ────────────────────────────────── */
.deals { margin-top: 16px; }
.deals-row {
  display: flex; gap: 8px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.deals-row::-webkit-scrollbar { display: none; }
.deal-card {
  flex: 0 0 78%; max-width: 260px; scroll-snap-align: start;
  display: flex; gap: 10px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px;
  font: inherit; color: inherit;
}
.deal-photo {
  width: 58px; height: 58px; flex: none;
  border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface-2); display: grid; place-items: center; overflow: hidden;
}
.deal-photo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.deal-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; justify-content: center; }
.deal-drop { font-size: 11px; font-weight: 800; color: var(--pap); }
.deal-name {
  font-size: 11.5px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-price { font-size: 13px; font-weight: 900; letter-spacing: -0.03em; }
@media (min-width: 640px) { .deal-card { flex-basis: 240px; } }

/* ── 핫딜 카드 ───────────────────────────────────────── */
.deal-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.dc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px;
  display: flex; flex-direction: column; gap: 9px;
}
.dc-top { display: flex; gap: 11px; }
.dc-photo {
  width: 76px; height: 76px; flex: none;
  border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--surface-2); display: grid; place-items: center; overflow: hidden;
}
.dc-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dc-head { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-box {
  display: grid; grid-template-columns: 1fr auto; gap: 5px 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 9px 11px;
}
.dc-row { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.dc-k { flex: none; width: 34px; font-size: 10.5px; font-weight: 800; color: var(--muted-2); }
.dc-row strong { font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.dc-row .off { font-size: 11.5px; font-weight: 900; color: var(--pap); }
.dc-row .was { font-size: 10.5px; color: #b2aa9d; text-decoration: line-through; }
.dc-go {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 9px; padding: 9px 13px;
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.dc-deal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px;
  padding-top: 3px; border-top: 1px dashed var(--line);
  font-size: 10.5px; font-weight: 700; color: var(--muted);
}
.dc-acts { display: flex; gap: 6px; }
.dc-acts .btn-ghost, .dc-acts .btn-copy { flex: 1; }
.btn-copy { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.dc-when { font-size: 10.5px; font-weight: 650; color: var(--muted-2); }

/* ── 랭킹 · 노트 ─────────────────────────────────────── */
.rank-note {
  margin: 10px 0 8px; font-size: 11.5px; font-weight: 650; line-height: 1.5;
  color: var(--muted-2);
}
.ranking-list { display: grid; grid-template-columns: 1fr; gap: 8px; }

/* ── 빈 상태 ─────────────────────────────────────────── */
.empty {
  text-align: center; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 18px; color: var(--muted); font-size: 14px; font-weight: 700;
}
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.empty-btn {
  cursor: pointer; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; font-weight: 800; padding: 8px 12px;
}
.empty-btn.is-primary { background: var(--sage); border-color: var(--sage); color: #fff; }

/* ── 비교표 ──────────────────────────────────────────── */
.compare { margin: 24px 0 4px; }
.compare h2 { font-size: 16px; font-weight: 900; letter-spacing: -0.035em; margin-bottom: 8px; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-size: 12px;
}
.compare-table th, .compare-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table th { font-size: 10.5px; font-weight: 800; color: var(--muted-2); background: var(--surface-2); }
.compare-table tr:last-child td { border-bottom: 0; }
.cmp-name { display: flex; align-items: center; gap: 7px; font-weight: 700; min-width: 150px; }
.cmp-name img { width: 32px; height: 32px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line-2); }
.cmp-reviews { margin-left: 3px; font-size: 9.5px; color: var(--muted-2); }
.cheap-dot, .protein-dot {
  display: inline-block; margin-left: 5px; font-size: 9.5px; font-weight: 800;
  border-radius: 999px; padding: 1px 6px;
}
.cheap-dot { color: var(--sage-text); background: var(--sage-soft); }
.protein-dot { color: var(--cocoa); background: var(--cocoa-soft); }

/* ── 하단 탭바 ───────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--muted-2);
}
.tabbar .ico { font-size: 17px; line-height: 1; filter: grayscale(1); opacity: 0.65; }
.tabbar a[aria-current="page"] { color: var(--sage-text); }
.tabbar a[aria-current="page"] .ico { filter: none; opacity: 1; }
.tabbar a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 0; width: 18px; height: 2.5px;
  border-radius: 2px; background: var(--sage);
}
.tabbar a { position: relative; }
.tabbar a.tab-search .ico {
  filter: none; opacity: 1;
  width: 26px; height: 20px; display: grid; place-items: center;
  border-radius: 999px;
}
.tabbar a.tab-search { color: var(--muted); }
.tabbar a.tab-search[aria-current="page"] { color: var(--sage-text); }

/* ── 푸터 ────────────────────────────────────────────── */
.foot {
  margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 11px; line-height: 1.6;
}
.legal-foot { margin-bottom: 8px; }
.copy { margin-top: 12px; font-size: 10.5px; color: #a9a29a; }

/* 유튜브 BGM 플레이어 — 화면 안에 두되 눈에 안 보이게 1px로 깔아 둡니다.
   아이폰(WebKit)은 화면 밖·display:none 플레이어의 소리를 막아서 이렇게 둡니다(js/bgm.js). */
.bgm-yt {
  position: fixed; left: 0; bottom: 0;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0.01; pointer-events: none; z-index: 0;
}
.bgm-yt iframe { width: 200px; height: 112px; border: 0; display: block; }

/* 푸터 BGM 1줄 컨트롤 (예전 헤더 🎧 BGM 버튼이 여기로) — 유튜브 「All That You Wanted」 */
.foot-bgm { margin-top: 12px; }
.bgm-btn {
  display: inline-flex; align-items: center; gap: 7px;
  max-width: 100%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 10px 5px 8px;
  color: var(--muted-2); font-size: 10.5px; font-weight: 750; letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.bgm-btn.is-on { color: var(--sage-text); border-color: #cfe6da; background: var(--sage-soft); }
.bgm-btn:active { transform: scale(0.99); }
.bgm-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-state { flex: none; font-size: 9px; font-weight: 900; letter-spacing: 0.02em; opacity: 0.72; }
.bgm-credit {
  display: block; margin-top: 5px;
  font-size: 9px; font-weight: 650; letter-spacing: 0.01em;
  color: var(--muted-2); opacity: 0.78;
}
.bgm-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.bgm-eq i { display: block; width: 2.5px; height: 3px; border-radius: 2px; background: currentColor; opacity: 0.5; }
.bgm-btn.is-on .bgm-eq i { opacity: 1; animation: bgm-eq 1.15s ease-in-out infinite; }
.bgm-btn.is-on .bgm-eq i:nth-child(2) { animation-delay: 0.18s; }
.bgm-btn.is-on .bgm-eq i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bgm-eq {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

/* r39 — 화면 우하단 떠 있는 BGM 버튼(모바일은 탭바 위, PC는 구석). 푸터 BGM과 같은 상태 */
.bgm-fab {
  position: fixed; right: 12px;
  bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 74;
  width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(22, 19, 15, 0.16);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.bgm-fab-ico { font-size: 17px; line-height: 1; }
.bgm-fab.is-on { border-color: #cfe6da; background: var(--sage-soft); }
.bgm-fab:active { transform: scale(0.94); }
.bgm-fab[hidden] { display: none; }
@media (min-width: 860px) {
  .bgm-fab { right: 20px; bottom: 20px; width: 42px; height: 42px; }
}

/* ── 설치 안내 모달 ──────────────────────────────────── */
body.modal-open { overflow: hidden; }
.install-modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(22, 19, 15, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.install-card {
  position: relative; width: 100%; max-width: 430px;
  background: var(--surface); border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(22, 19, 15, 0.26);
}
.install-x {
  position: absolute; right: 8px; top: 6px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 16px; line-height: 1; padding: 10px;
}
.install-card h2 { font-size: 18px; font-weight: 900; letter-spacing: -0.035em; padding-right: 28px; }
.install-device { margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--sage-text); }
.install-steps {
  margin: 14px 0 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; line-height: 1.55;
}
.install-steps li::marker { font-weight: 800; color: var(--sage); }
.install-hint { margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.install-actions { display: flex; gap: 8px; margin-top: 18px; }
.install-actions button {
  flex: 1; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 800;
  padding: 12px 10px; border-radius: 12px;
}
.install-copy { background: var(--ink); color: #fff; }
.install-close { background: var(--line-2); color: var(--ink); }
.install-copied { margin-top: 10px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--sage-text); }
@media (min-width: 640px) { .install-modal { align-items: center; } }

/* ── ? 띠니픽 안내 모달 ────────────────────────────── */
.info-modal {
  position: fixed; inset: 0; z-index: 96;
  background: rgba(22, 19, 15, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.info-card {
  position: relative; width: 100%; max-width: 470px; max-height: 86vh;
  display: flex; flex-direction: column;
  background: #fffdf8; border-radius: 20px;
  box-shadow: 0 20px 50px rgba(22, 19, 15, 0.26);
  overflow: hidden;
}
.info-x {
  position: absolute; right: 6px; top: 4px; z-index: 2;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 12px; cursor: pointer;
}
.info-title { padding: 20px 20px 0; font-size: 18px; font-weight: 900; letter-spacing: -0.035em; }
.info-lead { padding: 6px 20px 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.info-lead b { color: var(--ink); font-weight: 800; }
.info-lead-strong {
  margin: 10px 20px 0; padding: 9px 11px;
  background: var(--sage-soft); border: 1px solid #d6e9de; border-radius: 10px;
  color: var(--sage-text);
}
.info-lead-strong b { color: var(--sage-text); }
.info-scroll { padding: 14px 20px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.info-sec { margin-bottom: 14px; }
.info-sec h3 { margin-bottom: 6px; font-size: 13px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.info-sec ul {
  margin: 0; padding-left: 16px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; line-height: 1.6; color: var(--muted);
}
.info-sec li::marker { color: var(--sage); }
.info-sec b { color: var(--ink); font-weight: 800; }
.info-fine {
  margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 10.5px; line-height: 1.55; color: var(--muted-2);
}
.info-actions { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
.info-close {
  width: 100%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 800;
  padding: 12px 10px; border-radius: 12px;
}
@media (min-width: 640px) { .info-modal { align-items: center; } }

/* ── 토스트 ──────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  z-index: 120; max-width: 88vw;
  background: rgba(22, 19, 15, 0.94); color: #fff;
  font-size: 12.5px; font-weight: 800; line-height: 1.45;
  text-align: center; padding: 10px 15px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(22, 19, 15, 0.26);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── 가격 추이·비교 분석 모달 ─────────────────────────── */
.pm-modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(22, 19, 15, 0.48);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.pm-card {
  position: relative; width: 100%; max-width: 470px; max-height: 90vh;
  background: #fffdf8; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(22, 19, 15, 0.3);
  display: flex; flex-direction: column; overflow: hidden;
}
.pm-x {
  position: absolute; right: 6px; top: 4px; z-index: 2;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 12px; cursor: pointer;
}
.pm-scroll { padding: 20px 18px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pm-eyebrow {
  font-size: 10.5px; font-weight: 800; color: var(--sage-text);
  background: var(--sage-soft); border-radius: 999px;
  padding: 3px 9px; display: inline-block; margin-bottom: 8px;
}
.pm-title { font-size: 17px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.35; padding-right: 22px; }
.pm-src { margin-top: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted); line-height: 1.5; }

.pm-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 14px; }
.pm-stat {
  border-radius: 12px; padding: 9px 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); background: var(--surface); min-width: 0;
}
.pm-stat .pm-k { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.pm-stat strong { font-size: 15px; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.pm-stat em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted-2); }
.pm-stat.pm-max { border-color: #c6e3d1; background: #f0f8f3; }
.pm-stat.pm-max strong { color: var(--sage-text); }
.pm-stat.pm-avg { border-color: #cfdcf5; background: #f1f5fd; }
.pm-stat.pm-avg strong { color: #1d4ed8; }
.pm-stat.pm-min { border-color: #f6d3c6; background: #fdf3ef; }
.pm-stat.pm-min strong { color: var(--pap); }

.pm-chart {
  margin-top: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px 4px;
}
.pm-chart svg { display: block; width: 100%; height: auto; }
.pm-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px;
  font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 0 10px 6px;
}
.pm-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.pm-legend .pm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 4px; vertical-align: middle; }
.pm-fine { margin-top: 8px; font-size: 11px; font-weight: 600; line-height: 1.55; color: var(--muted-2); }
.pm-warn {
  margin-top: 8px; font-size: 11.5px; font-weight: 650; line-height: 1.55; color: var(--cocoa);
  background: #fdf3e6; border: 1px solid #f0dcc0; border-radius: 10px; padding: 8px 10px;
}

.pm-track {
  margin-top: 14px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: 14px; padding: 14px;
}
.pm-track-start { font-size: 13px; font-weight: 800; color: var(--sage-text); letter-spacing: -0.02em; }
.pm-track p.pm-track-desc { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.55; }
.pm-bars { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pm-bar-row { display: grid; grid-template-columns: 52px 1fr 84px; align-items: center; gap: 8px; }
.pm-bar-label { font-size: 11px; font-weight: 800; color: var(--muted); }
.pm-bar-track { height: 12px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.pm-bar-fill { height: 100%; border-radius: 999px; }
.pm-bar-fill.is-list { background: #cfc7ba; }
.pm-bar-fill.is-now { background: var(--sage); }
.pm-bar-value { font-size: 11.5px; font-weight: 800; text-align: right; white-space: nowrap; }

.pm-h3 { margin-top: 20px; font-size: 15px; font-weight: 900; letter-spacing: -0.035em; }
.pm-block {
  margin-top: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px;
}
.pm-block h4 { font-size: 12px; font-weight: 800; color: var(--sage-text); margin-bottom: 7px; }
.pm-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pm-list li {
  position: relative; padding-left: 11px;
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.pm-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 999px; background: #c9c2b6;
}
.pm-list b { font-weight: 800; }
.pm-list .plus { color: var(--pap); font-weight: 800; }
.pm-list .minus { color: var(--sage-text); font-weight: 800; }
.pm-verdict {
  margin-top: 10px; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 12px 14px;
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.5;
}
.pm-foot { margin-top: 16px; font-size: 10.5px; font-weight: 600; color: var(--muted-2); line-height: 1.6; }
.pm-foot a { color: var(--muted); text-decoration: underline; }
@media (min-width: 640px) {
  .pm-modal { align-items: center; padding: 20px; }
  .pm-card { max-height: 88vh; }
  .pm-scroll { padding: 24px 22px 26px; }
}

/* ── 넓은 화면 ───────────────────────────────────────── */
@media (min-width: 860px) {
  :root { --max: 1040px; --pad: 24px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .hdr-share { margin-left: 10px; }
  .list, .grid, .ranking-list, .deal-list { grid-template-columns: 1fr 1fr; }
  .group-block .list, .group-block .grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 23px; }
  .pc-photo { width: 96px; height: 96px; }
  .pc-name { font-size: 14px; }
  .view-head h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* r47: 움직임을 줄이기로 한 사용자에게는 첫 진입 애니메이션도 끕니다 */
  body, main { animation: none; }
  .pc.is-flash { animation: none; box-shadow: 0 0 0 2px var(--sage); }
  .toast { transition: none; }
  .bgm-eq i { animation: none !important; }
}

/* ── 5단계 등급 배지 ─────────────────────────────────── */
.grade-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.grade-badge {
  display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: -0.01em;
  border-radius: 5px; padding: 1.5px 6px; line-height: 1.45; white-space: nowrap;
}
.grade-badge.is-best { color: #fff; background: #0a7d4f; }
.grade-badge.is-great { color: #fff; background: #1f8f5c; }
.grade-badge.is-mid { color: #1f5a3d; background: #dcf0e5; }
.grade-badge.is-soso { color: #5d5648; background: var(--line-2); }
.grade-badge.is-high { color: #9a3324; background: var(--pap-soft); }
.grade-note { font-size: 10px; font-weight: 700; color: var(--muted-2); line-height: 1.3; }
.grade-note b { color: var(--muted); font-weight: 800; }

/* 알림 종 아이콘 */
.alert-btn.is-on { border-color: #f0c26a; background: #fff5dd; }
.alert-inline {
  width: 100%; margin-top: 12px; cursor: pointer;
  border: 1px solid #d6e6dc; background: var(--sage-soft); color: var(--sage-text);
  border-radius: 11px; padding: 11px 12px;
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em;
}
.alert-inline.is-on { border-color: #f0c26a; background: #fff5dd; color: #8a5a12; }

/* ── 모달 공통 ───────────────────────────────────────── */
.alert-modal {
  position: fixed; inset: 0; z-index: 96;
  background: rgba(22, 19, 15, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.alert-card {
  position: relative; width: 100%; max-width: 470px; max-height: 92vh;
  background: #fffdf8; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(22, 19, 15, 0.3);
  display: flex; flex-direction: column; overflow: hidden;
}
.alert-x {
  position: absolute; right: 6px; top: 4px; z-index: 2;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 12px; cursor: pointer;
}

.alert-target input:focus {
  outline: none; border-color: var(--sage); background: #fff;
}

/* ── 알림 모달 ───────────────────────────────────────── */
.alert-card { padding: 20px 18px 22px; overflow-y: auto; }
.alert-title { font-size: 17px; font-weight: 900; letter-spacing: -0.035em; padding-right: 26px; }
.alert-name {
  margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.45;
}
.alert-note {
  margin-top: 12px; border: 1px dashed #d6e6dc; background: #f7faf8;
  border-radius: 12px; padding: 12px; font-size: 12.5px; font-weight: 650; line-height: 1.55; color: var(--ink);
}
.alert-sub { margin-top: 12px; font-size: 12px; font-weight: 650; color: var(--muted); line-height: 1.5; }
.alert-target { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.alert-target input {
  flex: 1; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); padding: 12px; font-size: 16px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.alert-target span { font-size: 12px; font-weight: 800; color: var(--muted); flex: none; }
.alert-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.alert-chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; cursor: pointer;
}
.alert-chip:active { background: var(--sage-soft); }
.alert-go {
  width: 100%; margin-top: 12px; border: 0; cursor: pointer;
  background: var(--sage); color: #fff; border-radius: 12px; padding: 13px;
  font-size: 13.5px; font-weight: 900; letter-spacing: -0.02em;
}
.alert-go:active { background: var(--sage-d); }
.alert-off {
  width: 100%; margin-top: 7px; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface); color: var(--muted); border-radius: 12px; padding: 11px;
  font-size: 12.5px; font-weight: 800;
}
.alert-fine { margin-top: 10px; font-size: 10.5px; line-height: 1.6; color: var(--muted-2); }
.alert-kakao {
  display: block; margin-top: 10px; text-align: center; text-decoration: none;
  border: 1px solid #f2dfae; background: #fff8e6; color: #6b5320;
  border-radius: 12px; padding: 12px; font-size: 12.5px; font-weight: 800;
}
@media (min-width: 640px) {
  .alert-modal { align-items: center; padding: 20px; }
}

/* ══════════════════════════════════════════════════════
   v5 — 5대 카테고리 · 옵션 묶음 · 미니 가격그래프
   ══════════════════════════════════════════════════════ */

/* 히어로: 제목 없이 업데이트 바만 */
.hero { padding: 7px 0 2px; }
.hero-in { display: none; }

/* 한 줄 컨트롤 칩 */
.panel { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: 8px 0 6px; }
/* r54 — 필터 바 한 줄: 왼쪽 토클 2개(역대급·지금 사기 좋아요) + 오른쪽 정렬 드롭다운
   375px에서도 가로 스크롤·잘림 없이 한 줄에 들어가도록 폭을 부족하게 잡습니다. */
.ctlbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0;
}
.ctl-picks { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ctl-picks .cchip { padding: 6px 9px; font-size: 11px; }
.ctl-sort { position: relative; display: inline-flex; align-items: center; margin-left: auto; flex: none; }
.ctl-sort::after {
  content: "▾"; position: absolute; right: 9px; font-size: 9px; color: var(--muted-2);
  pointer-events: none; line-height: 1;
}
.ctl-sel {
  appearance: none; -webkit-appearance: none;
  width: 112px; padding: 6px 18px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: -0.02em;
  text-overflow: ellipsis; cursor: pointer;
}
.ctl-sel:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
@media (max-width: 400px) {
  .ctlbar { gap: 6px; }
  .ctl-picks .cchip { padding: 6px 8px; font-size: 10.5px; }
  .ctl-sel { width: 106px; font-size: 10.5px; }
}
.ctlbar-scroll {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; align-items: center;
}
.ctlbar-scroll::-webkit-scrollbar { display: none; }
.cchip {
  flex: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 6px 11px; font-size: 11.5px; font-weight: 800; letter-spacing: -0.02em;
}
.cchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cchip.is-src { padding: 6px 9px; font-size: 11px; }
.cchip.is-src.is-on { background: var(--sage-soft); border-color: #c9e2d4; color: var(--sage-text); }
/* r39 — 바로 거르는 빠른 필터: 🟢 지금 사기 좋아요 / 🔥 역대급 */
.cchip.is-good { border-color: #cfe3d7; background: #f3faf6; color: var(--sage-text); }
.cchip.is-good.is-on { background: #0a7d4f; border-color: #0a7d4f; color: #fff; }
.cchip.is-wow { border-color: #f0d6bc; background: #fff8f0; color: #9a3324; }
.cchip.is-wow.is-on { background: #c00a0a; border-color: #c00a0a; color: #fff; }
.ctl-sep { flex: none; width: 1px; height: 16px; background: var(--line); margin: 0 2px; }

/* 상품 카드 */
.pc {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.pc-left { flex: none; width: 108px; display: flex; flex-direction: column; gap: 5px; }
.pc-photo {
  width: 108px; height: 94px; border-radius: 11px; position: relative;
  border: 1px solid var(--line-2); background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.pc-photo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.photo-blank { font-size: 10px; font-weight: 700; color: var(--muted-2); }
.pc-off {
  position: absolute; left: 0; top: 0;
  background: #e0231f; color: #fff;
  font-size: 15px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.15;
  padding: 3px 8px; border-radius: 11px 0 12px 0;
  box-shadow: 0 2px 6px rgba(224, 35, 31, 0.28);
}
.pc-off.is-hot { background: #c00a0a; font-size: 17px; padding: 4px 9px; }

/* 미니 60일 그래프 (사진 바로 아래) */
.spark {
  position: relative; border-radius: 9px; overflow: hidden;
  background: linear-gradient(180deg, #fbfaf6, #f4f2ec);
  border: 1px solid var(--line-2);
  padding: 3px 4px 2px;
}
.spark-svg { display: block; width: 100%; height: 22px; }
.spark-cap { display: block; font-size: 8.5px; font-weight: 800; color: var(--muted-2); letter-spacing: -0.02em; text-align: center; }
.spark.is-none { display: grid; place-items: center; min-height: 22px; padding: 2px 4px; border-style: dashed; background: transparent; }
.spark.is-none span { font-size: 9px; font-weight: 800; color: var(--muted-2); letter-spacing: -0.02em; }

.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 10.5px; font-weight: 750; color: var(--muted-2); }
.pc-parttag {
  font-size: 9.5px; font-weight: 800; color: var(--muted);
  background: var(--line-2); border-radius: 4px; padding: 1px 4px;
}
.pc-rate { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.pc-name { font-size: 13.5px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.32; }
.pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-price strong { font-size: 19px; font-weight: 900; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.pc-price .was { font-size: 10.5px; font-weight: 600; color: #b2aa9d; text-decoration: line-through; }
.rank-metric { font-size: 10.5px; font-weight: 800; color: var(--sage-text); background: var(--sage-soft); border-radius: 5px; padding: 1px 5px; }
.pc-unit { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; font-size: 11.5px; font-weight: 800; color: var(--sage-text); }
.pc-unit b { font-size: 13px; font-weight: 900; letter-spacing: -0.03em; }
.pc-unit .per { font-weight: 700; }
.pc-unit .dot { color: var(--muted-2); font-weight: 700; }
.pc-alt { font-size: 10.5px; font-weight: 750; color: var(--blue); }
.pc-alt b { font-weight: 900; }
.pc-alt a { color: var(--blue); font-weight: 800; text-decoration: underline; }

/* 옵션(묶음 수량) 버튼 */
.pc-opts { display: flex; gap: 4px; flex-wrap: wrap; margin: 1px 0; }
.opt {
  cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  border-radius: 7px; padding: 3px 7px; font-size: 11px; font-weight: 800; letter-spacing: -0.02em;
}
.opt.is-on { border-color: var(--sage); background: var(--sage); color: #fff; }

.bd-since { color: #8a4b1f; background: var(--cocoa-soft); }
.pc-deal:empty { display: none; }

/* 카테고리 안쪽 1줄 쿠팡 기획전 (r27) — 홈에는 안 보임, 얇은 바 하나 */
.promo-bar { margin: 0 0 2px; }
.promo-bar[hidden] { display: none; }
.promo-link {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 9px;
  background: var(--sage-soft); border: 1px solid #cde8da;
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--sage-text); text-decoration: none;
}
.promo-link:active { opacity: 0.75; }
.promo-txt {
  min-width: 0; flex: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 359px) { .promo-link { font-size: 11px; padding: 6px 9px; } }

/* 카테고리 대표 사진 타일 */
.cattiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tile {
  position: relative; cursor: pointer; text-align: left; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  font: inherit; color: inherit;
}
.tile:active { transform: scale(0.995); }
.tile-photo { display: block; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tile-body { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; }
.tile-name { font-size: 13px; font-weight: 900; letter-spacing: -0.03em; }
.tile-sub { font-size: 10.5px; font-weight: 700; color: var(--muted-2); }
.tile-n { position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 900; color: var(--sage-text); background: var(--sage-soft); border-radius: 999px; padding: 2px 7px; }
.cattiles .tile:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.cattiles .tile:last-child .tile-photo { width: 132px; flex: none; aspect-ratio: auto; align-self: stretch; }
.cattiles .tile:last-child .tile-body { padding: 10px 12px; }

.back-btn {
  cursor: pointer; margin: 8px 0 2px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 6px 12px; font-size: 11.5px; font-weight: 800;
}
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 10px 0 2px; }
.cat-head h2 { font-size: 19px; font-weight: 900; letter-spacing: -0.04em; }
.cat-head span { font-size: 11px; font-weight: 700; color: var(--muted-2); }
.cat-head .cat-reset { margin-left: auto; align-self: center; }
.filters .filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 더 보기 */
.more-btn {
  display: block; width: 100%; margin: 10px 0 4px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 12px; padding: 12px; font-size: 12.5px; font-weight: 800;
}

/* 랭킹 */
.rankblock { margin-top: 14px; }
.rankblock .sec-head { margin-bottom: 6px; }
.ranklist { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rank-mode { margin-top: 10px; }
.seg button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 핫딜 카드 — 사진·가격·버튼 아래, 그 상품의 60일 최저·보통가 숫자 요약 (그래프 없이) */
.pnum {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px;
}
.pnum-c {
  flex: 1 1 88px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 3px 5px; border: 1px solid var(--line-2); border-radius: 9px;
  background: linear-gradient(180deg, #fbfaf6, #f4f2ec);
}
.pnum-k { font-size: 9px; font-weight: 800; color: var(--muted-2); letter-spacing: -0.02em; white-space: nowrap; }
.pnum-v {
  font-size: 12.5px; font-weight: 900; color: var(--ink);
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pnum-v.is-low { color: var(--sage-text); }
.pnum-few {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  padding: 5px 7px; border: 1px dashed var(--line-2); border-radius: 9px; background: transparent;
}
.pnum-few .pnum-k { font-size: 9.5px; }
.pnum-few .pnum-v { font-size: 11px; color: var(--muted); }
@media (max-width: 400px) {
  .pnum-v { font-size: 12px; }
}
@keyframes flashSoft { 0%, 100% { box-shadow: none; } 30%, 70% { box-shadow: 0 0 0 2px var(--sage); } }
.pc.is-flash { animation: flashSoft 1.6s ease; }

@media (min-width: 640px) {
  .cattiles { grid-template-columns: repeat(3, 1fr); }
  .cattiles .tile:last-child { grid-column: auto; flex-direction: column; }
  .cattiles .tile:last-child .tile-photo { width: auto; aspect-ratio: 16 / 10; }
}
@media (min-width: 860px) {
  .list > .group-head, .ranklist > .group-head { grid-column: 1 / -1; }
  .pc-photo { width: 108px; height: 94px; }
  .pc-name { font-size: 14px; }
}

/* r46 — 예전 2열 카드용 미세 조정 블록은 삭제하고, 카드 스타일을 아래 r46 섹션에서 새로 씁니다. */

/* ── 🔥 오늘의 역대급 할인 (가로 스와이프 카드) ─────────
   이미지 크기는 CSS가 늦게 와도(캐시) 터지지 않도록 <img width/height="72">
   속성과 여기 width/height를 이중으로 고정했습니다. */
.spot { margin: 10px 0 0; }
.spot[hidden] { display: none; }
.spot-head {
  display: flex; align-items: center;
  gap: 8px; margin: 0 2px 9px;
}
.spot-title { flex: 1 1 auto; } /* 제목이 남는 폭을 차지해 힌트·종 버튼이 오른쪽에 붙습니다 */
/* ── 제목 오른쪽 작은 🔔 종 버튼 (r38) ──────────────────
   아래 큰 알림 줄을 없애고 여기로 옮겼습니다. 누르면 알림 허브가 열립니다. */
.spot-bell {
  position: relative; flex: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 9px 0 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.spot-bell-ico { flex: none; display: block; }
.spot-bell:active { transform: scale(0.96); }
.spot-bell.is-on { border-color: #e0a73a; background: #fff3d4; color: #8a5a12; }
.spot-bell.is-on .bell-body { fill: currentColor; fill-opacity: 0.22; }
.spot-bell-n {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #e0902c; color: #fff;
  font-size: 9.5px; font-weight: 900; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}
.spot-bell-n.is-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -3px; right: -3px; }

/* 카테고리 필터 칩 — 1분 결론 대신 할인 섹션 안으로 합쳤습니다.
   r38: 10.5px·4px 패딩은 너무 작다는 지시로 13px·높이 38px로 키우고,
   375px에서 5개가 한 번에 다 보이도록 6칸 그리드로 3+2 두 줄에 나눠 놓았습니다
   (1~3번째는 2칸씩, 4~5번째는 3칸씩 차지). */
.spot-chips {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px; margin: 0 0 10px; padding: 0;
}
.spot-chip {
  grid-column: span 2; min-width: 0;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 8px;
  border: 1px solid #ded7c9; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 800; letter-spacing: -0.03em;
  box-shadow: 0 1px 2px rgba(22, 19, 15, 0.05);
  -webkit-tap-highlight-color: transparent;
}
.spot-chip:nth-child(4), .spot-chip:nth-child(5) { grid-column: span 3; }
.spot-chip.is-on {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 2px 7px rgba(22, 19, 15, 0.22);
}
.spot-chip:active { transform: scale(0.97); }
.spot-empty {
  margin: 2px 0 0; padding: 14px 12px; border-radius: 12px;
  border: 1px dashed var(--line); background: var(--surface);
  color: var(--muted-2); font-size: 11.5px; font-weight: 700; text-align: center;
}
.spot-title {
  font-size: 15px; font-weight: 900; letter-spacing: -0.035em;
  color: var(--ink); line-height: 1.25;
}
.spot-hint {
  font-size: 10px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--muted-2); white-space: nowrap;
}
/* 375px 폭에서는 제목과 종 버튼만 남깁니다(힌트는 431px 이상에서만) */
@media (max-width: 430px) {
  .spot-hint { display: none; }
}
.spot-rail {
  display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 20px 6px 1px;
  margin-right: calc(var(--pad) * -1);
}
.spot-rail::-webkit-scrollbar { display: none; }

.spot-card {
  flex: 0 0 288px; max-width: 86%;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  row-gap: 5px; column-gap: 10px;
  align-items: start;
  padding: 11px;
  border-radius: 16px;
  color: #fff;
  background: radial-gradient(120% 130% at 0% 0%, #24314f 0%, #141c30 48%, #0b111f 100%);
  box-shadow: 0 6px 18px rgba(11, 17, 31, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.spot-card::after {
  content: ""; position: absolute; right: -44px; top: -54px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 37, 40, 0.36), rgba(229, 37, 40, 0) 68%);
  pointer-events: none;
}
.spot-tap { display: contents; }
.spot-tap:focus-visible { outline: none; }
.spot-tap:focus-visible .spot-photo { box-shadow: 0 0 0 2px #ffcf6b; }

.spot-photo {
  grid-column: 1; grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  display: block;
  width: 72px; height: 72px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.spot-photo img {
  display: block;
  width: 72px; height: 72px;
  max-width: 72px; max-height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 12px;
}
.spot-off {
  position: absolute; left: 0; top: 0;
  background: #e0231f; color: #fff;
  font-size: 12.5px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.15;
  padding: 2px 6px 3px; border-radius: 11px 0 10px 0;
  box-shadow: 0 2px 8px rgba(224, 35, 31, 0.35);
}

.spot-body {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
  cursor: pointer;
}
.spot-meta {
  display: flex; align-items: center; gap: 4px;
  min-width: 0;
  font-size: 10px; font-weight: 800; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72); line-height: 1.2;
}
.spot-brand {
  min-width: 0; max-width: 76px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 오늘의 상태 태그 — 실제 데이터(가격 인하·관측 최저·판정)에서만 붙습니다 */
.spot-tag {
  flex: none;
  font-size: 9px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2;
  border-radius: 999px; padding: 1px 5px 2px;
  white-space: nowrap;
}
.spot-tag.is-fresh { color: #ffd3cd; background: rgba(224, 35, 31, 0.42); }
.spot-tag.is-low { color: #b8f5d6; background: rgba(31, 138, 95, 0.42); }
.spot-tag.is-good { color: #ffe3a8; background: rgba(214, 158, 46, 0.36); }
.spot-tag.is-prot { color: #c9dcff; background: rgba(64, 118, 215, 0.36); }
.spot-src {
  flex: none;
  font-size: 9.5px; font-weight: 900; letter-spacing: 0.01em;
  border-radius: 4px; padding: 1px 4px;
}
.spot-src.src-coupang { color: #ffdada; background: rgba(229, 37, 40, 0.3); }
.spot-src.src-toss { color: #c3daff; background: rgba(0, 100, 255, 0.32); }
.spot-src.src-naver { color: #baf2d0; background: rgba(3, 199, 90, 0.26); }
.spot-name {
  font-size: 12.5px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em;
  color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.spot-price {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  margin-top: 1px;
}
.spot-price strong {
  font-size: 17px; font-weight: 900; letter-spacing: -0.05em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.spot-was {
  font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}
.spot-unit {
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.02em;
  color: #7fe6b6;
}

.spot-buys {
  grid-column: 2; grid-row: 2;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 5px; margin-top: auto;
}
.spot-buy {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.03em;
  color: #fff; text-decoration: none; white-space: nowrap;
  line-height: 1.2;
}
.spot-buy.is-coupang { background: var(--coupang); }
.spot-buy.is-toss { background: var(--toss); }
.spot-buy.is-naver { background: var(--naver); }
.spot-buy.is-pending { background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.72); }
.spot-buy.is-price { min-width: 0; padding: 4px 7px; font-size: 10px; letter-spacing: -0.05em; }

@media (min-width: 640px) {
  .spot-card { flex-basis: 320px; }
}

/* ══════════════════════════════════════════════════════
   r12 — 1분 결론 · 신호등 게이지 · 10초 추천 · 한 줄 팁
   ══════════════════════════════════════════════════════ */

/* 상단 두 버튼 (추천 / 알림) */
.smart-row { display: flex; gap: 7px; margin-top: 7px; }
.smart-btn {
  flex: 1 1 0; min-width: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 11px; padding: 10px 6px;
  font-size: 12px; font-weight: 900; letter-spacing: -0.03em;
  white-space: nowrap; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.smart-btn .smart-btn-lab { overflow: hidden; text-overflow: ellipsis; }
.smart-btn:active { transform: scale(0.99); }
.smart-btn.is-rec { border: 1px solid var(--sage); background: var(--sage); color: #fff; }
.smart-btn.is-rec:active { background: var(--sage-d); }
.smart-btn.is-bell {
  border: 1px solid #f0c26a; background: #fff7e4; color: #8a5a12;
}
.smart-btn.is-bell.is-on { border-color: #e0a73a; background: #ffefc9; }

/* 1분 결론 칩 */
.goal-row { margin-top: 9px; }
.goal-lab {
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.02em; color: var(--muted);
  margin-bottom: 5px;
}
.goal-lab em { font-style: normal; font-weight: 700; color: var(--muted-2); margin-left: 3px; }
.goal-chips { display: flex; gap: 5px; }
.goal-chip {
  flex: 1 1 0; min-width: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 4px;
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.035em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
}
.goal-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.goal-chip:active { transform: scale(0.99); }

/* 결론 카드 */
.gv {
  margin-top: 8px; padding: 10px;
  background: linear-gradient(180deg, #f2faf6, #ffffff 62%);
  border: 1px solid #c9e2d4; border-radius: 14px;
}
.gv-empty { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.gv-head {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 11px; font-weight: 800; color: var(--muted-2);
}
.gv-goal { font-size: 10.5px; font-weight: 900; color: var(--sage-text); background: #dff0e7; border-radius: 6px; padding: 2px 6px; }
.gv-head b { font-size: 12.5px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.gv-n { font-size: 10px; font-weight: 800; color: var(--muted-2); }
.gv-x {
  margin-left: auto; cursor: pointer; border: 0; background: transparent;
  font-size: 10.5px; font-weight: 800; color: var(--muted-2); padding: 2px 2px;
}
.gv-body { display: flex; gap: 9px; margin-top: 7px; align-items: center; }
.gv-photo {
  flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center;
}
.gv-photo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.gv-txt { min-width: 0; }
.gv-name {
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gv-why {
  margin-top: 2px; font-size: 10.5px; font-weight: 750; color: var(--sage-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gv-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.gv-price { display: flex; flex-direction: column; min-width: 0; }
.gv-price strong { font-size: 16px; font-weight: 900; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.gv-price em { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--sage-text); }
.gv-buys { flex: 1 1 auto; min-width: 0; display: flex; }
.gv-buys .pc-buys { flex: 1 1 auto; width: 100%; }
.gv-bell { flex: none; width: 34px; }

/* 신호등 게이지 */
.tl { display: flex; align-items: center; gap: 5px; margin-top: 2px; min-width: 0; }
.tl-bar {
  position: relative; flex: 1 1 auto; min-width: 24px; max-width: 58px;
  height: 6px; border-radius: 999px; display: flex; gap: 2px;
}
.tl-bar i { flex: 1 1 0; border-radius: 999px; background: var(--line); }
.tl-bar b {
  position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 2px;
  background: var(--ink); opacity: 0.55; transform: translateX(-1px);
}
.tl-good .tl-bar i:nth-child(1) { background: #2fbe8c; box-shadow: 0 0 0 1px rgba(47, 190, 140, 0.28); }
.tl-mid .tl-bar i:nth-child(2) { background: #f0b429; box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.26); }
.tl-wait .tl-bar i:nth-child(3) { background: #e2574c; box-shadow: 0 0 0 1px rgba(226, 87, 76, 0.24); }
.tl-none .tl-bar i:nth-child(3) { background: #b9b2a6; }
.tl-lab {
  flex: 0 1 auto; min-width: 0;
  font-size: 10px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-dot { font-size: 8.5px; margin-right: 2px; }
.tl-good .tl-lab { color: #177a51; }
.tl-mid .tl-lab { color: #8a6a12; }
.tl-wait .tl-lab { color: #b23a2e; }
.tl-none .tl-lab { color: var(--muted-2); }
.tl-mini { margin-top: 0; }

/* 한 줄 꿀팁 */
.tip-line {
  display: flex; align-items: center; gap: 3px;
  margin-top: 1px; padding: 2px 6px 2px 5px;
  background: #f2faf6; border: 1px solid #dcefe5; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--sage-text);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tip-ico { font-size: 8.5px; flex: none; }

/* ── 10초 맞춤 추천 모달 ─────────────────────────────── */
.rec-modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(22, 19, 15, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.rec-card {
  position: relative; width: 100%; max-width: 470px; max-height: 92vh;
  background: #fffdf8; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(22, 19, 15, 0.3);
  display: flex; flex-direction: column; overflow: hidden;
}
.rec-x {
  position: absolute; right: 6px; top: 4px; z-index: 2;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 12px; cursor: pointer;
}
.rec-head { padding: 18px 18px 10px; border-bottom: 1px solid var(--line-2); }
.rec-title { font-size: 17px; font-weight: 900; letter-spacing: -0.035em; padding-right: 26px; }
.rec-sub { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.rec-scroll { padding: 14px 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rec-step { font-size: 11px; font-weight: 900; color: var(--sage-text); letter-spacing: -0.01em; }
.rec-opts { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.rec-opt {
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 13px;
}
.rec-opt:active { background: var(--sage-soft); border-color: var(--sage); }
.rec-opt b { font-size: 13.5px; font-weight: 900; letter-spacing: -0.03em; }
.rec-opt em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted-2); }
.rec-picked {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px;
}
.rec-tag {
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--sage-text); background: var(--sage-soft); border: 1px solid #d6e6dc;
  border-radius: 999px; padding: 4px 9px;
}
.rec-back {
  margin-left: auto; cursor: pointer; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); border-radius: 999px;
  padding: 4px 9px; font-size: 10.5px; font-weight: 800;
}
.rec-res-lead {
  margin-top: 11px; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.5;
}
.rec-res-lead b { color: var(--ink); font-weight: 900; }
.rec-list { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.rec-pick {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px;
}
.rec-pick:first-child { border-color: #bcd9c8; box-shadow: 0 1px 0 #e4f2ea; }
.rec-pick-head { display: flex; align-items: flex-start; gap: 8px; position: relative; }
.rec-rank {
  flex: none; width: 19px; padding-top: 2px; text-align: center;
  font-size: 14px; font-weight: 900; letter-spacing: -0.04em; color: var(--sage);
}
.rec-photo {
  flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center;
}
.rec-photo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.rec-txt { min-width: 0; flex: 1 1 auto; }
.rec-name {
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rec-why {
  margin-top: 2px; font-size: 10.5px; font-weight: 800; color: var(--sage-text);
  line-height: 1.35;
}
.rec-best {
  display: inline-block; margin-bottom: 2px;
  font-size: 9px; font-weight: 900; letter-spacing: -0.02em;
  color: #6b3d00; background: linear-gradient(180deg, #ffe08a, #ffc74d);
  border-radius: 999px; padding: 2px 6px;
}
.rec-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rec-price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; min-width: 0; }
.rec-price strong { font-size: 15px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rec-price em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--sage-text); }
.rec-foot .tl { margin-left: auto; flex: 0 0 auto; }
.rec-foot .tl-bar { display: none; }
.rec-acts { display: flex; gap: 5px; margin-top: 7px; align-items: stretch; }
.rec-acts .btn-icon, .rec-bell {
  flex: none; width: 36px; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 9px; cursor: pointer; font-size: 13px; padding: 0;
}
.rec-bell.is-on { border-color: #f0c26a; background: #fff5dd; }
.rec-acts .pc-buys { flex: 1 1 auto; }
.rec-fine { margin-top: 11px; font-size: 10.5px; line-height: 1.55; color: var(--muted-2); }
.rec-empty { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ── 알림 허브 ───────────────────────────────────────── */
.hub-modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(22, 19, 15, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.hub-card {
  position: relative; width: 100%; max-width: 470px; max-height: 92vh;
  background: #fffdf8; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(22, 19, 15, 0.3);
  display: flex; flex-direction: column; overflow: hidden;
  padding: 18px 18px 20px;
}
.hub-x {
  position: absolute; right: 6px; top: 4px; z-index: 2;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 12px; cursor: pointer;
}
.hub-title { font-size: 17px; font-weight: 900; letter-spacing: -0.035em; padding-right: 26px; }
.hub-scroll { margin-top: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hub-lead { font-size: 12px; font-weight: 650; color: var(--muted); line-height: 1.55; }
.hub-lead b { color: var(--ink); font-weight: 800; }
.hub-sec {
  margin-top: 14px; font-size: 11px; font-weight: 900; letter-spacing: -0.01em;
  color: var(--sage-text);
}
.hub-sec b { color: var(--ink); }
.hub-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.hub-row {
  cursor: pointer; text-align: left; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; width: 100%;
}
.hub-row.is-on { border-color: #f0c26a; background: #fffdf5; }
.hub-row:active { background: var(--sage-soft); }
.hub-photo {
  flex: none; width: 42px; height: 42px; border-radius: 9px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center;
}
.hub-photo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.hub-txt { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.hub-txt b {
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-txt em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted-2); }
.hub-bell { flex: none; font-size: 14px; }
.hub-fine { margin-top: 13px; font-size: 10px; line-height: 1.55; color: var(--muted-2); }

/* ── 🔥 새 초특가 전체 알림 (허브 맨 위 전용 카드) ─────────── */
.hot-card {
  margin-top: 10px;
  border: 1px solid #f2d7a4;
  border-radius: 16px;
  padding: 12px 12px 11px;
  background: linear-gradient(155deg, #fffaf0 0%, #fff3dd 60%, #ffedd0 100%);
  box-shadow: inset 0 1px 0 #fff;
}
.hot-card.is-on {
  border-color: #eeb45b;
  background: linear-gradient(155deg, #fff4dc 0%, #ffe9c2 62%, #ffe1ae 100%);
}
.hot-top { display: flex; align-items: center; gap: 9px; }
.hot-ico {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px;
  background: #fff; border: 1px solid #f2d7a4;
}
.hot-mid { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.hot-title { font-size: 13.5px; font-weight: 900; letter-spacing: -0.03em; color: #7a3c05; line-height: 1.3; }
.hot-sub { font-size: 10.5px; font-weight: 700; color: #a4703a; line-height: 1.4; }
.hot-switch {
  flex: none; position: relative; width: 46px; height: 27px; padding: 0;
  border-radius: 999px; border: 1px solid #e2c58f; background: #fff; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hot-switch .hot-knob {
  position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #cdae74; transition: transform 0.18s ease, background 0.18s ease;
}
.hot-switch.is-on { background: #f97316; border-color: #e2660a; }
.hot-switch.is-on .hot-knob { transform: translateX(19px); background: #fff; }
.hot-switch:disabled { opacity: 0.5; cursor: default; }
.hot-note { margin-top: 8px; font-size: 10.5px; line-height: 1.5; font-weight: 700; color: #96601f; }
.hot-note.is-on { color: #2f6f46; }
.hot-install {
  margin-top: 7px; width: 100%; border: 1px solid #eec27c; background: #fff;
  color: #7a3c05; font-size: 11px; font-weight: 800; border-radius: 10px; padding: 7px 8px; cursor: pointer;
}
.hot-install:active { background: #fff3dd; }
.hot-fine { margin-top: 8px; font-size: 9.5px; line-height: 1.5; color: #a2804f; }
.hot-fine b { color: #7a3c05; font-weight: 800; }

@media (min-width: 640px) {
  .rec-modal, .hub-modal { align-items: center; padding: 20px; }
  .goal-chip { font-size: 11.5px; }
  .smart-btn { font-size: 12.5px; }
}

/* r46 — 카드 안 팁·게이지·부연 줄은 없앴습니다(카드 스타일은 아래 r46 섹션). */

/* 모달 안 '지금 사러 가기' — 카드와 같은 3색 버튼 규칙, 모달에서는 손가락에 맞게 조금 크게 */
.pm-buy {
  margin-top: 14px; padding: 10px 10px 11px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fffdf6;
}
.pm-buy-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0 0 8px 2px; }
.pm-buy-k {
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--muted);
}
.pm-buy-head strong {
  font-size: 16px; font-weight: 900; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.pm-buy-head em {
  font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted-2);
  letter-spacing: -0.02em;
}
.pm-buy .pc-buys { gap: 7px; }
.pm-buy .btn-buy { padding: 11px 8px; font-size: 13.5px; border-radius: 11px; }
.pm-buy .btn-buy.is-pair { padding: 9px 6px; gap: 4px; }
.pm-buy .btn-buy.is-pair .bp-lab { font-size: 11px; }
.pm-buy .btn-buy.is-pair .bp-price { font-size: 13px; }

/* 모달 안 '가격 내리면 알림 받기' 버튼을 한 번 더 눈에 띄게 */
.alert-inline {
  border: 1px solid #e6c17a;
  background: linear-gradient(180deg, #fff9ea, #fff2d2);
  color: #8a5a12; font-size: 13px; font-weight: 900;
  box-shadow: 0 1px 0 #f7e6bf;
}
.alert-inline.is-on { border-color: #e0a73a; background: #ffefc9; }
.pm-buy + .alert-inline { margin-top: 8px; }

/* 게이지 비활성 칸은 더 흐리게 — 0.5초에 어느 칸이 켜졌는지 보이게 */
.tl-bar i { opacity: 0.5; }
.tl-good .tl-bar i:nth-child(1),
.tl-mid .tl-bar i:nth-child(2),
.tl-wait .tl-bar i:nth-child(3),
.tl-none .tl-bar i:nth-child(3) { opacity: 1; }

/* ══════════════════════════════════════════════════════
   r14 — 💪 단백질 음료, 지금 사도 될까?
   홈 '오늘의 역대급 할인' 바로 아래, 판정 레일(가로 스와이프)
   ══════════════════════════════════════════════════════ */

.prot { margin: 12px 0 0; }
.prot[hidden] { display: none; }

.prot-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin: 0 2px 2px;
}
.prot-title {
  font-size: 15px; font-weight: 900; letter-spacing: -0.035em;
  color: var(--ink); line-height: 1.25;
}
.prot-more {
  flex: none; cursor: pointer; border: 0; background: transparent;
  font-size: 10px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--sage-text); padding: 2px 0; white-space: nowrap;
}
.prot-sub {
  margin: 0 2px 7px;
  font-size: 10.5px; font-weight: 750; letter-spacing: -0.01em;
  color: var(--muted-2);
}

/* 판정 요약 알약 — 누르면 그 판정만, 다시 누르면 전체 */
.prot-chips { display: flex; gap: 5px; margin: 0 2px 8px; }
.prot-chip {
  flex: 1 1 0; min-width: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 3px;
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.035em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
}
.prot-chip b { font-variant-numeric: tabular-nums; font-weight: 900; }
.prot-chip:active { transform: scale(0.99); }
.prot-chip.is-on.is-hot { background: var(--sage); border-color: var(--sage); color: #fff; }
.prot-chip.is-on.is-mid { background: var(--ink); border-color: var(--ink); color: #fff; }
.prot-chip.is-on.is-high { background: var(--pap); border-color: var(--pap); color: #fff; }
.prot-chip.is-on.is-track { background: var(--muted-2); border-color: var(--muted-2); color: #fff; }

/* 가로 스와이프 레일 */
.prot-rail {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 20px 6px 1px;
  margin-right: calc(var(--pad) * -1);
}
.prot-rail::-webkit-scrollbar { display: none; }

.prot-card {
  flex: 0 0 234px; max-width: 78%;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.prot-card.is-hot { border-color: #b3ddc8; box-shadow: 0 1px 0 #e4f2ea; }
.prot-card.is-high { border-color: #f2d3c9; }

.prot-tap { display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; }
.prot-tap:focus-visible { outline: 2px solid #f0b429; outline-offset: 3px; border-radius: 9px; }

.prot-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.prot-badge {
  flex: none;
  font-size: 10px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2;
  border-radius: 6px; padding: 2px 6px;
}
.prot-badge.is-hot { background: var(--sage); color: #fff; }
.prot-badge.is-mid { background: var(--line-2); color: var(--muted); border: 1px solid var(--line); }
.prot-badge.is-high { background: var(--pap-soft); color: var(--pap); border: 1px solid #f4d2c8; }
.prot-badge.is-track { background: var(--surface-2); color: var(--muted-2); border: 1px dashed var(--line); }

.prot-brand {
  min-width: 0; flex: 1 1 auto;
  font-size: 10px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prot-src {
  flex: none;
  font-size: 9px; font-weight: 900; border-radius: 4px; padding: 1px 4px;
  background: var(--line-2); color: var(--muted);
}
.prot-src.src-coupang { color: var(--coupang); background: var(--coupang-soft); }
.prot-src.src-toss { color: var(--toss); background: var(--toss-soft); }
.prot-src.src-naver { color: #01934a; background: var(--naver-soft); }

.prot-name {
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.prot-price { display: flex; align-items: baseline; gap: 4px; margin-top: 1px; }
.prot-price strong {
  font-size: 16.5px; font-weight: 900; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.prot-p20 {
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--sage-text);
}
.prot-p20 strong { font-size: 12.5px; font-weight: 900; letter-spacing: -0.04em; }
.prot-per-bottle { font-weight: 700; color: var(--muted-2); margin-left: 2px; }
.prot-cmp {
  font-size: 10.5px; font-weight: 750; letter-spacing: -0.02em;
  color: var(--muted); line-height: 1.35;
}
.prot-cmp .minus { color: var(--sage-text); font-weight: 900; }
.prot-cmp .plus { color: var(--pap); font-weight: 900; }

.prot-buys { display: flex; margin-top: auto; }
.prot-buys .pc-buys { flex: 1 1 auto; width: 100%; gap: 4px; }
.prot-buys .btn-buy { padding: 7px 4px; font-size: 11px; border-radius: 9px; letter-spacing: -0.03em; }
.prot-buys .btn-buy.is-pair { padding: 6px 3px; gap: 2px; }
.prot-buys .btn-buy.is-pair .bp-lab { font-size: 9px; }
.prot-buys .btn-buy.is-pair .bp-price { font-size: 10px; }

.prot-fine {
  font-size: 9.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35;
  color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.prot-empty {
  margin: 2px; padding: 11px;
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px;
  font-size: 11px; font-weight: 750; color: var(--muted);
}
.prot-reset {
  cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 900; margin-left: 4px;
}

.prot-note {
  margin: 7px 2px 0;
  font-size: 9.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4;
  color: var(--muted-2);
}

@media (min-width: 640px) {
  .prot-card { flex-basis: 260px; }
}

/* ════════════════════════════════════════════════════════════
   r15 (2026-11-18) — 판정 통일 · 단백질 1g당 · 48시간+ 표기 · 단백질 카드 배경
   ════════════════════════════════════════════════════════════ */

/* 가변 폰트(Pretendard Variable)로 바꾸면서 굵기 650·750도 그대로 씁니다 */
:root {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

/* 상단 업데이트 바 → r26부터 푸터 맨 아래 작은 한 줄 — "가격 이력 11/18 09:05 기준" */
.update-k {
  font-style: normal; font-size: 9.5px;
  font-weight: 800; letter-spacing: -0.01em; color: var(--muted-2);
}
.foot-meta .update-k:last-child { margin-left: 1px; }

/* 단백질 1g당 가격 — 카드에서 한눈에 */
.pc-prot {
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  margin-top: 1px;
  font-size: 10.5px; font-weight: 800; color: var(--sage-text);
  line-height: 1.35;
}
.pc-prot-k {
  padding: 1px 5px; border-radius: 5px;
  background: var(--sage-soft); border: 1px solid #cde8da;
  font-size: 9.5px; font-weight: 900; letter-spacing: -0.02em;
}
.pc-prot b { font-size: 13px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pc-prot-sub { font-size: 10px; font-weight: 750; color: var(--muted); }

/* 48시간+ 전 확인 — 숨기지 않고 작게 알립니다 */
.bd-stale { color: #8a5a12; background: #fdf6e7; border: 1px solid #f0e0bd; }
.pm-stale {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 10px;
  background: #fdf6e7; border: 1px solid #f0e0bd;
  color: #7a5010; font-size: 11px; font-weight: 750; line-height: 1.45;
}

/* 단백질 레일 카드 — 오른쪽 뒤에 상품 사진을 은은하게 깔고, 앞은 흰/크림 그라데이션 */
.prot-card { position: relative; overflow: hidden; isolation: isolate; }
.prot-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prot-bg img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: 92% 50%;
  opacity: 0.42;
  filter: saturate(1.02);
}
.prot-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.94) 34%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 255, 255, 0.34) 68%,
    rgba(255, 255, 255, 0.1) 100%
  );
}
.prot-card > *:not(.prot-bg) { position: relative; z-index: 2; }
.prot-card.is-stale::after {
  background: linear-gradient(
    100deg,
    #fffdf7 0%,
    rgba(255, 253, 247, 0.95) 34%,
    rgba(255, 253, 247, 0.86) 48%,
    rgba(255, 253, 247, 0.34) 68%,
    rgba(255, 250, 240, 0.1) 100%
  );
}
@media (max-width: 400px) {
  .lights { gap: 1.5px; padding: 1.5px 2.5px; }
  .lights i { width: 4.5px; height: 4.5px; }
}
.prot-p1g {
  display: inline-block; margin-left: 4px; padding: 1px 6px;
  border-radius: 999px; background: var(--sage-soft);
  color: var(--sage-text); font-size: 10px; font-weight: 900; letter-spacing: -0.02em;
}

@media (max-width: 859px) {
  .prot-p1g { font-size: 9.5px; padding: 1px 5px; }
}

/* 고함량(1병 25g 이상) 배지 — 20g 일반 제품과 한눈에 구분 */
.prot-hi {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 1px 6px; border-radius: 999px;
  background: #fff1e4; color: #b4520d; border: 1px solid #f6d2b0;
  font-size: 10px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.5;
  white-space: nowrap;
}
.prot-hi.is-strong {
  background: linear-gradient(100deg, #ff8a3d 0%, #e2574c 100%);
  color: #fff; border-color: #e2574c;
  box-shadow: 0 1px 2px rgba(226, 87, 76, 0.28);
}
.prot-price { flex-wrap: wrap; row-gap: 2px; }

/* ══════════════════════════════════════════════════════════
   r46 (2026-11-19) — 모던 커머스 다듬기
   · 카드: 상품 사진 · 이름 · 가격·단가 · 신호등 · 구매 버튼만
   · 색: 화이트/라이트그레이 베이스 + 초록 한 톤, 원색 배지·굵은 테두리 정리
   · 상단·카테고리 여백 정리
   · 파트너스 고지는 푸터 맨 아래 한 줄만 (index.html)
   ══════════════════════════════════════════════════════════ */

/* ── 헤더 ────────────────────────────────────────────── */
.hdr {
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hdr-in { height: var(--hdr-h); gap: 8px; padding: 0 var(--pad); }
.brand { gap: 7px; }
.mark-img { width: 30px; height: 30px; border-radius: 9px; }
.word strong { font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.word em { font-size: 10px; font-weight: 600; color: var(--muted-2); letter-spacing: -0.01em; margin-top: 1px; }
.brand-badge {
  height: 16px; padding: 0 5px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: -0.02em;
}
@media (max-width: 859px) { .word em { display: none; } }
.topnav a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 11px; }
.topnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.hdr-share, .hdr-info {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 12px; line-height: 1;
}
.hdr-info svg { width: 15px; height: 15px; }
.hdr-add {
  height: 28px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 10.5px; font-weight: 700;
}
.hdr-find { background: var(--surface-2); border-color: var(--line); }
.hdr-find-input { font-size: 12.5px; font-weight: 600; }

/* ── 본문 여백 ───────────────────────────────────────── */
main { padding: 0 var(--pad) 24px; }
.view { padding-top: 20px; }
.view-search { padding-top: 12px; }
.shelf { margin-top: 2px; }
.sec-head { margin: 22px 0 12px; }
.sec-head h2 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.03em; }
.sec-sub { font-size: 11px; font-weight: 500; color: var(--muted-2); }
.group-head { margin: 16px 0 10px; }
.group-head h2 { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.group-hint { font-size: 10.5px; font-weight: 500; }
.more-btn {
  display: block; width: 100%; margin: 14px 0 4px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: #4a4a51;
  border-radius: 10px; padding: 13px; font-size: 12px; font-weight: 600;
}

/* ── 오늘의 역대급 할인 ──────────────────────────────── */
.spot { margin: 6px 0 0; }
.spot-head { margin: 0 2px 10px; gap: 8px; }
.spot-title { font-size: 16px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.spot-hint { font-size: 10px; font-weight: 500; color: var(--muted-2); }
.spot-bell {
  height: 26px; padding: 0 9px 0 8px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.spot-bell.is-on { border-color: #e9cf92; background: #fff6e0; color: #8a5a12; }
.spot-chips { gap: 6px; margin: 0 0 12px; }
.spot-chip {
  min-height: 36px; padding: 0 8px;
  border: 1px solid var(--line); background: var(--surface);
  color: #4b4b52; font-size: 12.5px; font-weight: 600;
  box-shadow: none;
}
.spot-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.spot-rail { gap: 8px; padding: 1px 16px 4px 0; }
.spot-card {
  flex: 0 0 268px; max-width: 92%;
  grid-template-columns: 64px minmax(0, 1fr);
  row-gap: 4px; column-gap: 10px;
  padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: none;
}
.spot-card::after { display: none; }
.spot-photo {
  width: 64px; height: 64px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2);
}
.spot-photo img { width: 64px; height: 64px; padding: 4px; border-radius: 8px; }
.spot-off { display: none; }
.spot-meta { color: var(--muted-2); font-size: 10px; font-weight: 500; gap: 5px; }
.spot-tag {
  font-size: 9px; font-weight: 600; padding: 0 5px 1px; border-radius: 4px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.spot-tag.is-fresh, .spot-tag.is-low, .spot-tag.is-good, .spot-tag.is-prot {
  color: var(--muted); background: var(--surface-2);
}
.spot-src { padding: 0; background: transparent; color: var(--muted-2); font-weight: 500; }
.spot-name { color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.spot-price { gap: 5px; margin-top: 1px; }
.spot-price strong { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.spot-price .pc-off { font-size: 12px; }
.spot-was { color: var(--muted-2); font-size: 10px; font-weight: 500; }
.spot-unit { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.spot-buys { justify-content: flex-start; gap: 5px; margin-top: 1px; }
.spot-buy {
  display: inline-flex; align-items: center;
  padding: 5px 9px; border-radius: 7px;
  background: var(--ink); border: 1px solid var(--ink); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: -0.02em;
}
.spot-buy::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: currentColor; opacity: 0.55; margin-right: 5px;
}
.spot-buy.is-coupang::before { background: #ff9a9a; opacity: 1; }
.spot-buy.is-toss::before { background: #8fb8ff; opacity: 1; }
.spot-buy.is-naver::before { background: #6fe0a4; opacity: 1; }
.spot-buy.is-pending { background: var(--surface-2); border-color: var(--line); color: var(--muted-2); }
.spot-buy.is-pending::before { display: none; }

/* ── 단백질 음료 레일 ────────────────────────────────── */
.prot { margin: 26px 0 0; }
.prot-title { font-size: 16px; font-weight: 800; letter-spacing: -0.04em; }
.prot-more { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.prot-chips { gap: 6px; margin: 10px 2px 10px; }
.prot-chip {
  border: 1px solid var(--line); background: var(--surface);
  color: #5a5a62; font-size: 11px; font-weight: 600; padding: 6px 3px;
}
.prot-chip.is-on,
.prot-chip.is-on.is-hot,
.prot-chip.is-on.is-mid,
.prot-chip.is-on.is-high,
.prot-chip.is-on.is-track { background: var(--ink); border-color: var(--ink); color: #fff; }
.prot-card {
  flex: 0 0 212px; max-width: 82%;
  padding: 10px; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: none;
}
.prot-card.is-hot, .prot-card.is-high { border-color: var(--line); box-shadow: none; }
.prot-bg img { opacity: 0.18; }
.prot-card::after,
.prot-card.is-stale::after {
  background: linear-gradient(100deg, #fff 0%, rgba(255,255,255,0.96) 44%, rgba(255,255,255,0.8) 72%, rgba(255,255,255,0.42) 100%);
}
.prot-badge {
  font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.prot-badge.is-hot { background: #f0f8f4; color: #0d6b45; border-color: #dcece3; }
.prot-badge.is-mid { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.prot-badge.is-high { background: #fdf2f0; color: #b23a2e; border-color: #f5ded9; }
.prot-badge.is-track { background: var(--surface-2); color: var(--muted-2); border: 1px dashed var(--line); }
.prot-brand { font-size: 10px; font-weight: 500; color: var(--muted-2); }
.prot-src { background: transparent; color: var(--muted-2); font-weight: 500; }
.prot-name { font-size: 12px; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.prot-price strong { font-size: 16.5px; font-weight: 800; letter-spacing: -0.04em; }
.prot-p20 { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.prot-p20 strong { color: #3c3c42; font-weight: 800; }
.prot-p1g { background: transparent; padding: 0; margin-left: 6px; color: var(--muted-2); font-weight: 500; }
.prot-hi {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: 9.5px; padding: 0 5px;
}
.prot-hi.is-strong { background: var(--surface-2); border-color: var(--line); color: var(--muted); box-shadow: none; }
.prot-note { margin: 8px 2px 0; font-size: 9.5px; font-weight: 500; line-height: 1.45; color: var(--muted-2); }

/* ── 컨트롤 칩 ───────────────────────────────────────── */
.panel { margin: 18px 0 6px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.ctlbar-scroll { gap: 6px; }
.cchip {
  border: 1px solid var(--line); background: var(--surface); color: #5a5a62;
  font-size: 11.5px; font-weight: 600; padding: 6px 11px;
}
.cchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cchip.is-good, .cchip.is-wow { border-color: var(--line); background: var(--surface); color: #5a5a62; }
.cchip.is-good.is-on, .cchip.is-wow.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cchip.is-src.is-on { background: var(--surface-2); border-color: #dedede; color: var(--ink); }
.ctl-sep { background: var(--line); }
.seg a, .seg button { border-color: var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; padding: 8px 13px; }
.seg [aria-selected="true"], .seg [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter { border-color: var(--line); font-weight: 500; font-size: 12px; }
.chip-key { border-color: var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 500; padding: 7px 12px; }
.search-lead { font-size: 12px; font-weight: 500; color: var(--muted-2); }

/* ── 상품 그리드 (2열 → 3열 → 4열) ───────────────────── */
.list, .list--grid, .ranklist, .ranking-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.list > .group-head, .list--grid > .group-head, .ranklist > .group-head { grid-column: 1 / -1; }
.list > .more-btn, .list--grid > .more-btn { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .list, .list--grid, .ranklist, .ranking-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1040px) {
  .list, .list--grid, .ranklist, .ranking-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 상품 카드 ───────────────────────────────────────── */
.pc {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  min-width: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: none; overflow: hidden;
}
.pc-photo {
  position: relative; flex: none;
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: var(--surface-2); display: block;
}
.pc-photo-btn {
  display: block; width: 100%; height: 100%; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pc-photo img { width: 100%; height: 100%; object-fit: contain; padding: 13px; }
.photo-blank {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 500; color: var(--muted-2);
}
.pc-fab { position: absolute; top: 7px; right: 7px; z-index: 2; display: flex; gap: 4px; }
.pc-fab .btn-icon, .pc-fab .pc-ico {
  width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--muted);
  font-size: 11.5px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pc-fab .alert-btn.is-on { background: #fff6e0; border-color: #e9cf92; color: #8a5a12; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 10px; }
.pc-top {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  font-size: 10.5px; font-weight: 500; color: var(--muted-2); line-height: 1.3;
}
.pc-brand {
  min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-weight: 500;
}
.src {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  padding: 0; border-radius: 0; background: transparent;
  color: var(--muted-2); font-size: 10px; font-weight: 500; letter-spacing: 0;
}
.src::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--muted-2); }
.src-coupang::before { background: #e52528; }
.src-toss::before { background: #0064ff; }
.src-naver::before { background: #03c75a; }
.pc-parttag { font-size: 9.5px; font-weight: 500; color: var(--muted-2); background: transparent; padding: 0; }
.pc-rate { margin-left: auto; flex: none; font-size: 9.5px; font-weight: 500; color: var(--muted-2); white-space: nowrap; }
.pc-name {
  font-size: 13px; font-weight: 600; line-height: 1.38; letter-spacing: -0.02em; color: var(--ink);
  min-height: 2.76em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-opts { display: flex; flex-wrap: wrap; gap: 4px; margin: 1px 0; }
.opt {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 6px; padding: 2px 7px; font-size: 10.5px; font-weight: 500;
}
.opt.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pc-price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.pc-off {
  position: static; display: inline;
  padding: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--pap); font-size: 12px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
}
.pc-off.is-hot, .pc-off.is-hot { font-size: 12px; padding: 0; background: transparent; box-shadow: none; }
.pc-price strong {
  font-size: 17px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pc-price .was { font-size: 10.5px; font-weight: 400; color: #c2c2c2; text-decoration: line-through; }
.pc-nvtag {
  font-size: 9px; font-weight: 500; color: var(--muted-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
}
.rank-metric {
  font-size: 10px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-radius: 4px; padding: 1px 5px;
}
.pc-unit {
  display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.35;
}
.pc-unit b { font-size: 12px; font-weight: 800; color: #3c3c42; letter-spacing: -0.02em; }
.pc-unit .per { color: var(--muted-2); font-weight: 500; }
.pc-unit .dot { color: var(--muted-2); }
.pc-unit .est { background: var(--surface-2); color: var(--muted-2); font-weight: 500; }
.pc-prot { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.pc-prot-k { background: transparent; border: 0; padding: 0; color: var(--muted-2); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.pc-prot b { font-size: 12px; font-weight: 800; color: #3c3c42; }
.pc-prot-sub { font-size: 10px; font-weight: 500; color: var(--muted-2); }
.pc-flag { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 1px; min-height: 18px; }
.sig {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-size: 10px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
}
.sig i { font-style: normal; font-size: 8.5px; line-height: 1; }
.sig-good { color: #0d6b45; background: #f0f8f4; border-color: #dcece3; }
.sig-mid { color: #7a5c12; background: #fdf8ea; border-color: #f0e6cb; }
.sig-wait { color: #b23a2e; background: #fdf2f0; border-color: #f5ded9; }
.sig-none { color: var(--muted-2); }
.pc-note { font-size: 9.5px; font-weight: 500; color: #b3b3bb; white-space: nowrap; }
.pc-acts { margin-top: auto; padding-top: 8px; display: flex; gap: 5px; align-items: stretch; }
.pc-buys { flex: 1; display: flex; gap: 5px; min-width: 0; }
.btn-buy {
  flex: 1 1 auto; min-width: 0; min-height: 34px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px; border-radius: 8px;
  background: var(--ink); border: 1px solid var(--ink); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.02em; text-align: center;
}
.btn-buy::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 999px;
  background: currentColor; opacity: 0.5;
}
.btn-buy:hover { filter: brightness(1.08); }
.btn-buy.is-coupang, .btn-buy.is-toss, .btn-buy.is-naver {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.btn-buy.is-primary.is-coupang::before { background: #ff9a9a; opacity: 1; }
.btn-buy.is-primary.is-toss::before { background: #8fb8ff; opacity: 1; }
.btn-buy.is-primary.is-naver::before { background: #6fe0a4; opacity: 1; }
.btn-buy.is-alt, .btn-buy.is-alt.is-coupang, .btn-buy.is-alt.is-toss, .btn-buy.is-alt.is-naver {
  background: var(--surface); border-color: #e4e4e3; color: #4a4a51;
}
.btn-buy.is-alt:hover { background: var(--surface-2); filter: none; }
.btn-buy.is-alt.is-coupang::before { background: #e52528; opacity: 1; }
.btn-buy.is-alt.is-toss::before { background: #0064ff; opacity: 1; }
.btn-buy.is-alt.is-naver::before { background: #03c75a; opacity: 1; }
.btn-buy.is-pair { flex-direction: row; gap: 4px; padding: 8px 4px; font-size: 10.5px; }
.buy-lab { font-size: 11.5px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-lab { font-size: 10px; font-weight: 600; white-space: nowrap; }
.bp-price { font-size: 11px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pending-label {
  flex: 1; display: grid; place-items: center; padding: 8px;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--surface);
  color: var(--muted-2); font-size: 11px; font-weight: 500;
}
@media (max-width: 859px) {
  .pc-buys.is-multi { flex-direction: column; gap: 4px; }
  .pc-buys.is-multi .btn-buy { flex: 0 0 auto; padding: 7px 6px; }
  .pc-name { font-size: 12.5px; }
  .pc-price strong { font-size: 16.5px; }
  .pc-rate .rv { display: none; }
  /* 좁은 카드에서는 종류 태그·정가·1개당 가격을 빼 한 줄을 지킵니다 */
  .pc-parttag { display: none; }
  .pc-price .was { display: none; }
  .pc-each { display: none; }
}
.pc-rank {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94); color: var(--muted);
  font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pc-rank.is-top { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── 카테고리 · 검색 카드 ────────────────────────────── */
.cattiles { gap: 10px; margin-top: 4px; }
.tile { border-radius: 12px; border-color: var(--line); }
.tile-name { font-size: 13px; font-weight: 700; letter-spacing: -0.03em; }
.tile-sub { font-size: 10.5px; font-weight: 500; color: var(--muted-2); }
.tile-n { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.promo { border-radius: 10px; border-color: var(--line); padding: 10px 9px; }
.promo-title { font-size: 11px; font-weight: 700; }
.promo-sub { font-size: 9.5px; font-weight: 500; color: var(--muted-2); }
.promo-link {
  background: var(--surface); border-color: var(--line); color: var(--muted);
  border-radius: 8px; font-weight: 500; padding: 8px 10px; font-size: 11px;
}
.promo-link:active { opacity: 0.6; }
.back-btn { border-radius: 8px; border-color: var(--line); background: var(--surface); color: var(--muted); font-weight: 500; font-size: 11.5px; }

/* ── 푸터 ────────────────────────────────────────────── */
.foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); }
.legal-foot {
  margin: 0 0 5px; font-size: 11px; font-weight: 400; line-height: 1.65;
  color: #9b9b9b; letter-spacing: -0.01em;
}
.legal-foot + .legal-foot { margin-top: 7px; }
.foot-bgm { margin-top: 16px; }
.bgm-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-weight: 500; font-size: 10.5px; padding: 5px 10px 5px 8px;
}
.bgm-btn.is-on { color: #0d6b45; border-color: #dcece3; background: #f0f8f4; }
.foot-meta { margin-top: 16px; }
.copy { margin-top: 14px; font-size: 10.5px; color: #b5b5b5; }

/* ── 하단 탭바 ───────────────────────────────────────── */
.tabbar { background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); }
.tabbar a { font-size: 10px; font-weight: 500; color: var(--muted-2); }
.tabbar a[aria-current="page"], .tabbar a.tab-search[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::after { background: var(--ink); }

/* ── 넓은 화면 ───────────────────────────────────────── */
@media (min-width: 860px) {
  :root { --max: 1080px; --pad: 24px; }
  .pc-photo img { padding: 16px; }
  .pc-name { font-size: 13.5px; }
  .spot-card { flex-basis: 300px; }
  .prot-card { flex-basis: 240px; }
}

/* r46 후속 — 남아 있던 플랫폼 원색 정리 (스팟 카드·판매처 표기) */
.spot-buy.is-coupang, .spot-buy.is-toss, .spot-buy.is-naver {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.spot-src.src-coupang, .spot-src.src-toss, .spot-src.src-naver {
  color: var(--muted-2); background: transparent; font-weight: 500;
}
.prot-src.src-coupang, .prot-src.src-toss, .prot-src.src-naver {
  color: var(--muted-2); background: transparent; font-weight: 500;
}
/* 넓은 화면에서는 카테고리 칩을 내용 폭만큼 (3+2 그리드 해제) */
@media (min-width: 860px) {
  .spot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .spot-chip { grid-column: auto; min-height: 38px; padding: 0 18px; font-size: 13px; }
  .prot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .prot-chip { flex: 0 0 auto; padding: 7px 16px; font-size: 12px; }
}
/* r46 후속4 — 좁은 화면 스팟 카드: 정가 취소선은 빼고 가격 한 줄을 지킵니다 */
@media (max-width: 480px) {
  .spot-was { display: none; }
  .spot-price { flex-wrap: nowrap; }
}


/* ══════════════════════════════════════════════════════════
   r51 (2026-11-19) — 🍃 웜 라이트 & 입맛 도는 포인트
   · 재영 님: "띠니는 너가 마음대로 고쳐봐" · "색감까지" · "입맛돌게 바꾸자"
   · 바탕 #F7F7F5(따뜻한 화이트그레이) · 카드 #FFFFFF · 보더 #E7E4DF
   · 글씨 #1C1917 / #44403C / #6F6A64 / #8C867F
   · 메인 CTA·선택 칩 = 웜 차콜(#1C1917) + 아이보리 글씨, 판매처 색 점은 그대로 포인트
   · 프레시 그린(#15803D) = 브랜드 T 심볼·'지금 사기 좋아요'·중박급
   · 코랄(#F04438) = 할인율·역대급/대박급·가격 인하·새 초특가
   · 앰버(#B45309) = 무난한 가격·알림 켜짐
   · r47 첫 진입 페이드인 · js/bgm.js BGM · 푸터 11px 파트너스 고지는 그대로
   ══════════════════════════════════════════════════════════ */

/* ── 0. 기본 ──────────────────────────────────────────── */
body { background: var(--bg); color: var(--ink); }
::selection { background: rgba(22, 163, 74, 0.16); color: #14532d; }
.skip { background: var(--invert-bg); color: var(--invert-fg); }
/* 가격 숫자는 어디서나 같은 폭으로 — 카드마다 자릿수가 흔들리지 않게 */
.pc-price strong, .spot-price strong, .prot-price strong, .rec-price strong, .gv-price strong,
.pc-off, .spot-was, .bp-price, .dc-row strong, .pnum-v, .pm-stat strong, .pm-bar-value,
.pm-buy strong, .update-date strong, .update-time, .view-stat, .spot-bell-n {
  font-variant-numeric: tabular-nums;
}

/* ── 1. 헤더 ──────────────────────────────────────────── */
.hdr {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.hdr-in { height: var(--hdr-h); gap: 8px; padding: 0 var(--pad); }
/* T 심볼 — 프레시 그린 라운드 사각 + 흰 T */
.mark {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(158deg, #21a34f 0%, #15803d 100%);
  color: #fff;
  font-size: 15px; font-weight: 900; letter-spacing: -0.06em; line-height: 1;
  box-shadow: 0 2px 6px -2px rgba(21, 128, 61, 0.5);
}
.word strong { font-size: 17px; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); }
.word em { font-size: 10px; font-weight: 600; color: var(--muted-2); letter-spacing: -0.01em; }
.brand-badge {
  height: 16px; padding: 0 6px; border-radius: 5px;
  background: var(--sage-soft); border: 1px solid var(--sage-line);
  color: var(--sage-text);
  font-size: 9px; font-weight: 800; letter-spacing: -0.01em;
}
@media (max-width: 859px) { .word em { display: none; } }
.topnav a { color: var(--muted); font-weight: 700; }
.topnav a[aria-current="page"] { background: var(--invert-bg); border-color: var(--invert-bg); color: #fff; }
.hdr-share, .hdr-info {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.hdr-info:hover { border-color: var(--sage-line); color: var(--sage-text); }
.hdr-add {
  height: 28px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 10.5px; font-weight: 700;
}
.hdr-add:hover { border-color: var(--sage-line); color: var(--sage-text); }
.hdr-find { background: var(--surface-2); border-color: var(--line); }
.hdr-find:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }
.hdr-find-input { color: var(--ink); }
.hdr-find-clear { background: var(--surface-3); color: var(--muted); }
.lights { background: #fff; border-color: var(--line); box-shadow: none; }
.lights i:nth-child(1) { background: #16a34a; }
.lights i:nth-child(2) { background: #f0b429; }
.lights i:nth-child(3) { background: #f04438; }

/* ── 2. 검색 ──────────────────────────────────────────── */
.toolbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.search-box { background: var(--surface); border: 1px solid var(--line); }
.search-box:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }
.search-input { color: var(--ink); }
.search-input::placeholder { color: var(--muted-2); }
.search-clear { background: var(--surface-3); color: var(--muted); }
.chip-key { background: var(--surface); border-color: var(--line); color: var(--ink-2); font-weight: 600; }
.chip-key:active { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-text); }
.promo { background: var(--surface); border-color: var(--line); color: var(--ink); }
.promo:active { border-color: var(--sage-line); }
.promo-sub { color: var(--muted-2); }
.promo-link { background: var(--surface); border-color: var(--line); color: var(--muted); }
.promos-lab { color: var(--muted-2); }

/* ── 3. 칩 · 필터 (기본 흰 칩 → 선택은 웜 차콜) ─────────── */
.seg a, .seg button,
.part-chip, .filter, .cchip, .prot-chip, .goal-chip, .spot-chip, .opt,
.search-reset, .cat-reset, .back-btn, .more-btn, .empty-btn,
.alert-off, .alert-chip, .prot-reset, .rec-back, .bgm-btn {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-2);
}
.seg a, .seg button, .part-chip, .spot-chip, .goal-chip, .prot-chip { color: var(--ink-2); }
.seg [aria-selected="true"], .seg [aria-current="page"], .seg button.is-on,
.part-chip[aria-selected="true"],
.filter[aria-selected="true"], .filters .filter.is-on,
.cchip.is-on, .cchip.is-good.is-on, .cchip.is-wow.is-on,
.prot-chip.is-on, .prot-chip.is-on.is-hot, .prot-chip.is-on.is-mid,
.prot-chip.is-on.is-high, .prot-chip.is-on.is-track,
.goal-chip.is-on, .spot-chip.is-on, .opt.is-on,
.topnav a[aria-current="page"] {
  background: var(--chip-on-bg);
  border-color: var(--chip-on-line);
  color: var(--chip-on-fg);
  box-shadow: none;
}
.seg [aria-selected="true"] .n, .seg [aria-current="page"] .n, .seg button.is-on .n,
.part-chip[aria-selected="true"] .chip-n,
.cchip.is-on .chip-n, .filter.is-on[aria-selected="true"] .chip-n {
  color: rgba(251, 250, 248, 0.62); opacity: 1;
}
.cchip.is-src.is-on { background: var(--sub-bg); border-color: var(--sub-line); color: var(--ink); }
.filter { color: var(--muted); }
.chk { background: var(--surface); border-color: var(--line); color: var(--muted); }
.chk input { accent-color: var(--sage); }
.chk:has(input:checked) { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-text); }
.ctl-sep { background: var(--line); }
.cat-reset:active, .spot-chip:active, .promo:active { border-color: #cfcbc2; }
select.sel {
  color: var(--ink-2);
  border-color: var(--line);
  background: var(--surface)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236F6A64' stroke-width='1.6' stroke-linecap='round'/></svg>")
    no-repeat right 8px center;
}

/* ── 4. 카드 표면 · 상품 사진 판 ────────────────────────── */
.pc, .dc, .deal-card, .spot-card, .prot-card, .tile, .rec-pick, .hub-row,
.pm-stat, .pm-block, .pm-track, .pm-buy, .compare-table, .empty, .promo,
.spot-empty, .prot-empty {
  background: var(--surface);
  border-color: var(--line);
}
.pc, .spot-card, .prot-card, .tile, .deal-card, .rec-pick { box-shadow: var(--shadow-card); }
.compare-table th { background: var(--surface-2); color: var(--muted-2); }
.compare-table th, .compare-table td { border-bottom-color: var(--line); }
.empty { background: var(--surface); border-color: var(--line); color: var(--muted); }
@media (hover: hover) {
  .pc:hover, .tile:hover, .deal-card:hover, .spot-card:hover, .prot-card:hover {
    border-color: #d9d5cd;
  }
}

/* 사진 판 — 순백 + 1px 연한 보더(사진이 카드에 그대로 녹아들게) */
.pc-photo, .dc-photo, .deal-photo, .spot-photo, .gv-photo,
.rec-photo, .hub-photo, .tile-photo, .cmp-name img {
  background: var(--plate);
  border-color: var(--plate-line);
  box-shadow: inset 0 0 0 1px var(--plate-line);
}
.pc-photo { border-bottom: 1px solid var(--plate-line); box-shadow: none; }
.spot-photo, .gv-photo, .rec-photo, .hub-photo { border-radius: 10px; overflow: hidden; }
.pc-photo { padding: 13px; }
.pc-photo img { padding: 0; border-radius: 10px; }
.pc-photo.is-blank { padding: 13px; display: grid; place-items: center; }
.photo-blank, .pc-photo.is-blank { color: var(--muted-2); }
.pc-fab .btn-icon, .pc-fab .pc-ico {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 25, 23, 0.07);
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.1);
}
.pc-fab .alert-btn.is-on, .alert-btn.is-on {
  background: var(--cocoa-soft); border-color: var(--cocoa-line); color: #8a5a12;
}
.pc-rank {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pc-rank.is-top { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── 5. 상품 카드 ─────────────────────────────────────── */
.pc-name, .deal-name, .dc-head, .prot-name, .spot-name, .rec-name, .hub-txt b { color: var(--ink); }
.pc-price strong, .spot-price strong, .prot-price strong, .rec-price strong, .gv-price strong,
.dc-row strong, .pnum-v { color: var(--ink); }
.pc-price .was, .dc-row .was, .spot-was { color: #a8a29e; }
.pc-unit, .spot-unit { color: var(--muted); }
.pc-unit b, .pc-prot b, .prot-p20 strong { color: var(--ink-2); }
.pc-note, .prot-fine, .spot-hint, .pc-top, .pc-rate, .spot-meta, .deal-drop-sub { color: var(--muted-2); }
.pc-rate b { color: var(--muted); }
.pc-off { color: var(--pap); font-weight: 800; }
.deal-drop, .dc-row .off, .prot-cmp .plus, .pm-list .plus { color: var(--pap); }
.pc-nvtag, .pc-parttag, .rank-metric, .prot-badge.is-mid, .bd-track {
  background: var(--surface-3); border-color: var(--line); color: var(--muted);
}
.pc-unit .est { background: var(--surface-3); color: var(--muted-2); }
/* 판매처 점 — 원색 그대로 */
.src { color: var(--muted-2); }
.src-coupang::before, .btn-buy.is-alt.is-coupang::before, .spot-buy.is-coupang::before { background: var(--coupang); }
.src-toss::before, .btn-buy.is-alt.is-toss::before, .spot-buy.is-toss::before { background: var(--toss); }
.src-naver::before, .btn-buy.is-alt.is-naver::before, .spot-buy.is-naver::before { background: var(--naver); }
.spot-buy.is-coupang::before, .spot-buy.is-toss::before, .spot-buy.is-naver::before,
.btn-buy.is-primary.is-coupang::before, .btn-buy.is-primary.is-toss::before, .btn-buy.is-primary.is-naver::before {
  opacity: 1;
}

/* ── 6. 오늘의 역대급 할인 (가로 스와이프) ──────────────── */
.spot-title, .prot-title { color: var(--ink); }
.spot-title { font-size: 16px; font-weight: 800; letter-spacing: -0.04em; }
.spot-hint { color: var(--muted-2); }
.spot-bell {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-weight: 600;
}
.spot-bell.is-on { border-color: var(--cocoa-line); background: var(--cocoa-soft); color: #8a5a12; }
.spot-bell-n { background: var(--pap); box-shadow: 0 0 0 2px var(--bg); }
.spot-chip { box-shadow: none; }
.spot-rail { padding: 2px 16px 6px 1px; }
.spot-card { border-radius: 14px; }
.spot-card::after { display: none; }
.spot-photo { border: 1px solid var(--plate-line); }
.spot-tag { font-weight: 700; }
.spot-tag.is-fresh { color: #b42318; background: var(--pap-soft); }
.spot-tag.is-low { color: var(--sage-text); background: var(--sage-soft); }
.spot-tag.is-good { color: var(--cocoa); background: var(--cocoa-soft); }
.spot-tag.is-prot { color: var(--ink-2); background: var(--surface-3); }
.spot-src { color: var(--muted-2); background: transparent; font-weight: 600; }
.spot-unit { color: var(--muted); }
.spot-empty { color: var(--muted-2); }
.spot-buy, .spot-buy.is-coupang, .spot-buy.is-toss, .spot-buy.is-naver {
  background: var(--invert-bg); border: 1px solid var(--invert-bg); color: #fff;
  font-weight: 700;
}
.spot-buy::before { opacity: 1; }
.spot-buy.is-pending {
  background: var(--surface-3); border: 1px dashed var(--line); color: var(--muted-2);
}
.spot-buy.is-pending::before { display: none; }

/* ── 7. 단백질 음료 레일 ──────────────────────────────── */
.prot-bg { display: none; }
.prot-card::after, .prot-card.is-stale::after { display: none; }
.prot-badge { background: var(--surface-3); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.prot-badge.is-hot { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-text); }
.prot-badge.is-high { background: var(--pap-soft); border-color: var(--pap-line); color: #b42318; }
.prot-badge.is-mid { background: var(--surface-3); border-color: var(--line); color: var(--muted); }
.prot-badge.is-track { background: transparent; border: 1px dashed var(--line); color: var(--muted-2); }
.prot-p20 { color: var(--muted); }
.prot-p1g { color: var(--muted-2); }
.prot-hi, .prot-hi.is-strong {
  background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-2); box-shadow: none;
}
.prot-hi.is-strong {
  background: linear-gradient(100deg, #ff7a55 0%, #f04438 100%);
  border-color: #e6402f; color: #fff;
  box-shadow: 0 1px 3px rgba(240, 68, 56, 0.28);
}
.prot-cmp .minus, .pm-list .minus { color: var(--sage-text); }
.prot-empty { color: var(--muted); }

/* ── 8. 신호등 · 등급 · 시세 배지 ──────────────────────── */
.bd-low { background: #d92d20; color: #fff; }
.bd-near, .bd-cheap { color: #b42318; background: var(--pap-soft); border: 1px solid var(--pap-line); }
.bd-up, .bd-since { color: var(--cocoa); background: var(--cocoa-soft); }
.bd-avg { color: var(--blue); background: var(--blue-soft); }
.bd-stale { color: var(--cocoa); background: var(--cocoa-soft); border: 1px solid var(--cocoa-line); }
.bd-naver { color: var(--naver-d); background: var(--naver-soft); border: 1px solid #c9f0d8; }
.grade-badge.is-best { background: #d92d20; color: #fff; }
.grade-badge.is-great { background: var(--pap-soft); color: #b42318; }
.grade-badge.is-mid { background: var(--sage-soft); color: var(--sage-text); }
.grade-badge.is-soso { background: var(--surface-3); color: var(--muted); }
.grade-badge.is-high { background: var(--surface-3); color: var(--ink-2); }
.grade-note, .grade-note b { color: var(--muted-2); }
.sig { background: var(--surface-3); border-color: var(--line); color: var(--muted); }
.sig-good { color: var(--sage-text); background: var(--sage-soft); border-color: var(--sage-line); }
.sig-mid { color: var(--cocoa); background: var(--cocoa-soft); border-color: var(--cocoa-line); }
.sig-wait { color: #b42318; background: var(--pap-soft); border-color: var(--pap-line); }
.sig-best { color: #fff; background: #b42318; border-color: #b42318; font-weight: 800; }
.sig-none { color: var(--muted-2); }

/* r55 — 홈 섹션 헤더 오른쪽: 🔔 알림 + 추천순 드롭다운 */
.home-head-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.home-head-tools .ctl-sort { margin-left: 0; }

/* 신호등 게이지 */
.tl-bar i { background: #e7e4df; }
.tl-bar b { background: var(--ink); opacity: 0.35; }
.tl-good .tl-bar i:nth-child(1) { background: #16a34a; box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.22); }
.tl-mid .tl-bar i:nth-child(2) { background: #f0b429; box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.24); }
.tl-wait .tl-bar i:nth-child(3) { background: #f04438; box-shadow: 0 0 0 1px rgba(240, 68, 56, 0.2); }
.tl-none .tl-bar i:nth-child(3) { background: #ddd9d1; }
.tl-good .tl-lab { color: var(--sage-text); }
.tl-mid .tl-lab { color: var(--cocoa); }
.tl-wait .tl-lab { color: #b42318; }

/* ── 9. 구매 버튼 · 알림 ──────────────────────────────── */
.btn-buy, .btn-buy.is-coupang, .btn-buy.is-toss, .btn-buy.is-naver,
.btn-buy.is-primary, .btn-buy.is-primary.is-coupang,
.btn-buy.is-primary.is-toss, .btn-buy.is-primary.is-naver,
.btn-buy.is-pair,
.dc-go, .install-copy, .info-close, .pm-verdict, .alert-go,
.smart-btn.is-rec {
  background: var(--invert-bg);
  border: 1px solid var(--invert-line);
  color: var(--invert-fg);
  box-shadow: none;
}
.btn-buy:hover, .btn-buy.is-coupang:hover, .btn-buy.is-toss:hover, .btn-buy.is-naver:hover,
.btn-buy.is-primary:hover, .btn-buy.is-pair:hover,
.dc-go:hover, .info-close:hover, .alert-go:hover, .install-copy:hover, .pm-verdict:hover {
  background: var(--invert-hover);
  border-color: var(--invert-hover);
  color: #fff;
  filter: none;
}
.btn-buy .bp-lab, .btn-buy .bp-price, .btn-buy .buy-lab { color: inherit; }
.btn-ghost, .btn-copy,
.btn-buy.is-alt, .btn-buy.is-alt.is-coupang, .btn-buy.is-alt.is-toss, .btn-buy.is-alt.is-naver,
.alert-off {
  background: var(--sub-bg);
  border: 1px solid var(--sub-line);
  color: var(--sub-fg);
}
.btn-ghost:hover, .btn-buy.is-alt:hover,
.btn-buy.is-alt.is-coupang:hover, .btn-buy.is-alt.is-toss:hover, .btn-buy.is-alt.is-naver:hover {
  background: var(--surface-3); border-color: #d8d4cc; color: var(--ink);
}
.pending-label { background: var(--surface-2); border-color: var(--line); color: var(--muted-2); }
.spot-bell.is-on, .rec-bell.is-on {
  border-color: var(--cocoa-line); background: var(--cocoa-soft); color: #8a5a12;
}
.smart-btn.is-bell { border: 1px solid var(--cocoa-line); background: var(--cocoa-soft); color: #8a5a12; }
.smart-btn.is-bell.is-on { border-color: #e9cd94; background: #fdeecb; }
.alert-inline {
  border: 1px solid var(--cocoa-line);
  background: var(--cocoa-soft);
  color: #8a5a12; box-shadow: none;
}
.alert-inline.is-on { border-color: #e9cd94; background: #fdeecb; color: #7a4e0f; }
.alert-note { background: var(--surface-2); border: 1px dashed var(--line); color: var(--ink-2); }
.alert-target input { background: var(--surface); border-color: var(--line); color: var(--ink); }
.alert-target input:focus { background: var(--surface); border-color: var(--sage); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }
.alert-kakao { background: var(--cocoa-soft); border-color: var(--cocoa-line); color: #8a5a12; }

/* 1분 결론 카드 · 꿀팁 줄 */
.gv {
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.07), rgba(255, 255, 255, 0) 62%),
    var(--surface);
  border-color: var(--sage-line);
}
.gv-head, .gv-n, .gv-empty { color: var(--muted-2); }
.gv-head b, .gv-name { color: var(--ink); }
.gv-goal { background: var(--sage-soft); color: var(--sage-text); }
.gv-why, .gv-price em { color: var(--sage-text); }
.tip-line { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-text); }
.spark { background: linear-gradient(180deg, #fbfbf9, #f4f3ee); border-color: var(--line); }
.pnum-c { background: linear-gradient(180deg, #fbfbf9, #f4f3ee); border-color: var(--line); }
.pnum-few { border-color: var(--line); }

/* ── 10. 모달 공통 ────────────────────────────────────── */
.install-modal, .info-modal, .pm-modal, .alert-modal, .rec-modal, .hub-modal {
  background: rgba(28, 25, 23, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.install-card, .info-card, .pm-card, .alert-card, .rec-card, .hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(28, 25, 23, 0.45);
}
.install-x, .info-x, .pm-x, .alert-x, .rec-x, .hub-x { color: var(--muted); }
.install-card h2, .info-title, .pm-title, .alert-title, .rec-title, .hub-title { color: var(--ink); }
.install-device, .install-copied { color: var(--sage-text); }
.install-hint, .info-lead, .info-sec ul, .alert-name, .alert-sub, .rec-sub,
.hub-lead, .pm-src, .pm-fine, .rec-res-lead, .rec-fine, .hub-fine { color: var(--muted); }
.info-lead b, .info-sec b, .info-sec h3, .hub-lead b, .rec-res-lead b { color: var(--ink); }
.info-lead-strong { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-text); }
.info-lead-strong b { color: var(--sage-text); }
.info-fine { border-top-color: var(--line); color: var(--muted-2); }
.install-steps li::marker, .info-sec li::marker { color: var(--sage); }
.install-close { background: var(--surface-2); color: var(--ink); }

/* ── 11. 가격 추이 모달 ────────────────────────────────── */
.pm-eyebrow { background: var(--sage-soft); color: var(--sage-text); }
.pm-stat { background: var(--surface-2); border-color: var(--line); }
.pm-stat .pm-k, .pm-stat em { color: var(--muted-2); }
.pm-stat.pm-max { border-color: var(--sage-line); background: var(--sage-soft); }
.pm-stat.pm-max strong { color: var(--sage-text); }
.pm-stat.pm-avg { border-color: #d8e3fb; background: var(--blue-soft); }
.pm-stat.pm-avg strong { color: var(--blue); }
.pm-stat.pm-min { border-color: var(--pap-line); background: var(--pap-soft); }
.pm-stat.pm-min strong { color: #b42318; }
.pm-chart { background: var(--surface); border-color: var(--line); }
.pm-legend { color: var(--muted); }
.pm-warn { background: var(--cocoa-soft); border-color: var(--cocoa-line); color: #8a5a12; }
.pm-stale { background: var(--cocoa-soft); border-color: var(--cocoa-line); color: #8a5a12; }
.pm-track { border-style: dashed; border-color: var(--line); background: var(--surface-2); }
.pm-track-start { color: var(--sage-text); }
.pm-track p.pm-track-desc { color: var(--muted); }
.pm-bar-track { background: #eae7e1; }
.pm-bar-fill.is-list { background: #cfcac1; }
.pm-bar-fill.is-now { background: var(--sage); }
.pm-bar-label, .pm-bar-value { color: var(--ink-2); }
.pm-block h4 { color: var(--sage-text); }
.pm-list li::before { background: #cbc6bd; }
.pm-foot { color: var(--muted-2); }
.pm-foot a { color: var(--muted); }
.pm-buy { background: var(--surface-2); border-color: var(--line); }
.pm-buy-k { color: var(--muted); }

/* ── 12. 10초 맞춤 추천 ───────────────────────────────── */
.rec-opt { background: var(--surface-2); border-color: var(--line); }
.rec-opt:active { background: var(--surface-3); border-color: #d8d4cc; }
.rec-opt em { color: var(--muted-2); }
.rec-step { color: var(--sage-text); }
.rec-tag { color: var(--sage-text); background: var(--sage-soft); border: 1px solid var(--sage-line); }
.rec-pick { background: var(--surface-2); }
.rec-pick:first-child { border-color: var(--sage-line); box-shadow: none; }
.rec-best { color: #fff; background: linear-gradient(180deg, #f04438, #d92d20); }
.rec-acts .btn-icon, .rec-bell { background: var(--surface); border-color: var(--line); color: var(--ink-2); }

/* ── 13. 알림 허브 · 새 초특가 ─────────────────────────── */
.hub-row { background: var(--surface-2); border-color: var(--line); }
.hub-row:active { background: var(--surface-3); }
.hub-row.is-on { border-color: var(--cocoa-line); background: var(--cocoa-soft); }
.hub-sec { color: var(--sage-text); }
.hub-sec b { color: var(--ink); }

/* 새 초특가 전체 알림 카드 — 따뜻한 코랄 틴트 */
.hot-card {
  border-color: var(--pap-line);
  background: linear-gradient(155deg, #fff7f4 0%, #ffffff 62%, #fffbf9 100%);
  box-shadow: none;
}
.hot-card.is-on {
  border-color: #f6c3bb;
  background: linear-gradient(155deg, #fff1ed 0%, #fff8f5 62%, #ffffff 100%);
}
.hot-ico { background: #fff; border-color: var(--pap-line); }
.hot-title { color: #b42318; }
.hot-sub { color: #9a6f66; }
.hot-switch { background: #e7e4df; border-color: #d9d5cd; }
.hot-switch .hot-knob { background: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, 0.2); }
.hot-switch.is-on { background: #f04438; border-color: #f04438; }
.hot-note { color: #9a6f66; }
.hot-note.is-on { color: var(--sage-text); }
.hot-install { background: #fff; border-color: var(--pap-line); color: #b42318; }
.hot-install:active { background: var(--pap-soft); }
.hot-fine { color: #a1887f; }
.hot-fine b { color: #b42318; }

/* ── 14. 토스트 ───────────────────────────────────────── */
.toast {
  background: #1c1917;
  border: 1px solid #1c1917;
  color: #fbfaf8;
  box-shadow: 0 14px 34px -12px rgba(28, 25, 23, 0.5);
}

/* ── 15. 푸터 · BGM ───────────────────────────────────── */
.foot { border-top-color: var(--line); color: var(--muted-2); }
.legal-foot { color: var(--muted-2); font-size: 11px; line-height: 1.65; }
.copy { color: #a8a29e; }
.foot-meta { color: var(--muted-2); }
.bgm-btn { background: var(--surface); border-color: var(--line); color: var(--muted); }
.bgm-btn.is-on { color: var(--sage-text); border-color: var(--sage-line); background: var(--sage-soft); }
.bgm-credit { color: var(--muted-2); }
.bgm-fab {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 4px 16px -4px rgba(28, 25, 23, 0.22);
}
.bgm-fab.is-on { background: var(--sage-soft); border-color: var(--sage-line); }

/* ── 16. 하단 탭바 ────────────────────────────────────── */
.tabbar {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.tabbar a { color: var(--muted-2); }
.tabbar a[aria-current="page"], .tabbar a.tab-search[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::after { background: var(--sage); }

@media (min-width: 860px) {
  * { scrollbar-color: #d8d4cc transparent; }
}

/* ── 17. 화면 폭 ──────────────────────────────────────── */
@media (min-width: 860px) {
  :root { --max: 1080px; --pad: 24px; }
  .pc-photo { padding: 16px; }
  .pc-name { font-size: 13.5px; }
  .spot-card { flex-basis: 300px; }
  .prot-card { flex-basis: 240px; }
  .sec-head { margin: 24px 0 12px; }
}
@media (max-width: 400px) {
  .hdr-in { gap: 6px; }
  .hdr-add { padding: 0 7px; font-size: 10px; }
  .spot-card { flex-basis: 262px; }
  .pc-body { padding: 8px 9px 9px; }
}

/* ── 18. 접근성 · 포커스 ──────────────────────────────── */
:where(a, button, input, select, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hdr, .tabbar, .bgm-fab { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── 19. 카톡 톡딜 (네 번째 판매처) · r54 카카오 옐로 버튼 ──────
   재영 님(2026-11-19): "톡딜 버튼 카카오 노란색" — 배경 #FEE500 · 글씨 #191919,
   호버는 한 톤 내린 #F5DC00. 노란 바탕에서는 흰 글씨가 안 보이므로 점도 짙게 갑니다. */
.src-talkdeal::before {
  background: #fee500;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.btn-buy.is-talkdeal,
.btn-buy.is-primary.is-talkdeal,
.btn-buy.is-alt.is-talkdeal {
  background: #fee500;
  border-color: #fee500;
  color: #191919;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08);
}
.btn-buy.is-talkdeal:hover,
.btn-buy.is-primary.is-talkdeal:hover,
.btn-buy.is-alt.is-talkdeal:hover {
  background: #f5dc00;
  border-color: #f5dc00;
  color: #191919;
  filter: none;
}
.btn-buy.is-talkdeal::before,
.btn-buy.is-primary.is-talkdeal::before,
.btn-buy.is-alt.is-talkdeal::before {
  background: #191919;
  opacity: 0.45;
  box-shadow: none;
}
/* 역대급 할인 미니 카드(가로 레일)의 톡딜 버튼도 같은 노란색 */
.spot-buy.is-talkdeal {
  background: #fee500;
  border: 1px solid #fee500;
  color: #191919;
  font-weight: 900;
}
.spot-buy.is-talkdeal:hover { background: #f5dc00; border-color: #f5dc00; }
.spot-buy.is-talkdeal::before {
  background: #191919;
  opacity: 0.45;
  box-shadow: none;
}
/* 기간 한정 특가(톡딜·타임세일) 마감 안내 배지 */
.bd-deal {
  color: #8a5a12;
  background: var(--cocoa-soft);
  border: 1px solid var(--cocoa-line);
  font-weight: 700;
}

/* ── r53 (2026-11-19) ─────────────────────────────────────
   ① 첫 진입 인트로(약 1초): 초록 T 아래로 '최저가 검색은 띠니'가 떠오릅니다. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #f7f7f5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.splash.is-out { opacity: 0; }
.splash-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-6px);
}
.splash-mark {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.22);
  animation: splashMark 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.splash-copy {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #23231f;
  opacity: 0;
  transform: translateY(12px);
  animation: splashRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes splashMark {
  from { opacity: 0; transform: translateY(-8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-mark, .splash-copy { animation: none; opacity: 1; transform: none; }
  .splash { transition: none; }
}

/* r55 — 홈 맨 위 카테고리 6개 줄(#home-cats)은 없앱니다(분류는 하단 '카테고리' 탭).
   대신 역대급 Top 5 바로 아래 '🟢 지금 사기 좋아요' 섹션 헤더 + 오른쪽 '추천순 ▾' 드롭다운 한 줄. */
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
}
.home-head-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.home-head-n { font-size: 11px; font-weight: 500; color: var(--muted-2); }
.home-head .ctl-sort { margin-left: auto; }
@media (max-width: 400px) {
  .home-head { gap: 6px; }
  .home-head-title { font-size: 15px; }
  .home-head .ctl-sel { width: 100px; }
}

/* 카테고리 탭 타일 사진 */
.cattiles .tile-photo img { object-fit: cover; width: 100%; height: 100%; }

/* ── r55 · 카테고리 탭 '판매처별 모아보기' 칩 (🔴 쿠팡 · 🔵 토스 · 🟢 네이버) ── */
.cat-stores { margin: 2px 0 16px; }
.cat-stores .store-chip {
  display: inline-flex; align-items: center; gap: 5px;
  flex: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 8px 13px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em;
}
.cat-stores .store-chip .n { font-size: 11px; font-weight: 600; color: var(--muted-2); }
.cat-stores .store-chip.is-on { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-fg, #101013); }
.cat-stores .store-chip.is-on .n { color: rgba(16, 16, 19, 0.62); }
.cat-stores .store-chip.is-coupang { border-color: #f3d6d6; }
.cat-stores .store-chip.is-toss { border-color: #d6e2ff; }
.cat-stores .store-chip.is-naver { border-color: #d3ecdd; }

/* ── r55 · 홈 5단계 등급 안내 (윗줄 3개 · 아랫줄 2개) ──────── */
.home-legend {
  display: flex; flex-direction: column;
  gap: 1px;
  margin: -2px 0 12px;
  font-size: 11px; font-weight: 500; line-height: 1.5;
  color: var(--muted-2); letter-spacing: -0.02em;
}
.home-legend .lg-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.home-legend .lg { white-space: nowrap; }
.home-legend .lg + .lg::before { content: "·"; margin-right: 6px; opacity: 0.55; }
.home-legend .lg b { font-weight: 800; color: var(--muted); }
@media (max-width: 400px) { .home-legend { font-size: 10.5px; } .home-legend .lg-row { gap: 0 6px; } .home-legend .lg + .lg::before { margin-right: 4px; } }
