/* 최저가마당 — styles.css
   모바일 우선. 외부 폰트·이미지 요청 없음(로컬에서 바로 열려도 동일하게 보임). */

:root {
  --bg: #08080a;
  --bg-soft: #0d0d10;
  --card: #141418;
  --card-2: #1a1a20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f7f7f8;
  --ink-2: #bcbcc5;
  --ink-3: #8a8a94;
  --red: #e6232b;
  --red-soft: rgba(230, 35, 43, 0.14);
  --green: #03c75a;
  --green-soft: rgba(3, 199, 90, 0.12);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ── 헤더 ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-name {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-sub {
  display: none;
  font-size: 11.5px;
  color: var(--ink-3);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}
.yt-link:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.yt-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ── 히어로 ─────────────────────────────────────────── */
.hero {
  padding: 18px 0 16px;
  background: radial-gradient(
      1100px 380px at 50% -160px,
      rgba(230, 35, 43, 0.16),
      transparent 70%
    ),
    radial-gradient(
      900px 340px at 82% -120px,
      rgba(3, 199, 90, 0.12),
      transparent 70%
    );
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow .dot-red,
.eyebrow .dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red {
  background: var(--red);
}
.dot-green {
  background: var(--green);
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(24px, 6.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 48%, var(--green) 52%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  margin: 10px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 13.8px;
  word-break: keep-all;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 700;
}

/* 비교 카드 */
.compare-card {
  background: linear-gradient(180deg, #17171c, #101013);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.compare-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel {
  border-radius: 12px;
  padding: 10px 11px 12px;
  border: 1px solid var(--line);
  background: #121216;
  min-width: 0;
}
.panel.is-coupang {
  border-color: rgba(230, 35, 43, 0.42);
  background: linear-gradient(180deg, rgba(230, 35, 43, 0.15), rgba(230, 35, 43, 0.03));
}
.panel.is-naver {
  border-color: rgba(3, 199, 90, 0.38);
  background: linear-gradient(180deg, rgba(3, 199, 90, 0.13), rgba(3, 199, 90, 0.03));
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.panel-list {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  text-decoration: line-through;
}

.panel-price {
  margin: 2px 0 0;
  font-size: clamp(16px, 4.3vw, 23px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.compare-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #66e79b;
  border: 1px solid rgba(3, 199, 90, 0.35);
}
.result-pill.is-red {
  background: var(--red-soft);
  color: #ff8f93;
  border-color: rgba(230, 35, 43, 0.4);
}
.result-text {
  font-size: 13px;
  color: var(--ink-2);
}
.result-text b {
  color: var(--ink);
}
.saving {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* 예시 안내 */
.notice {
  margin: 14px 0 0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 11px 13px;
  line-height: 1.5;
}
.notice svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
}

/* ── 탭 / 목록 ──────────────────────────────────────── */
.main {
  padding: 22px 0 8px;
}

.tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -18px;
  padding: 2px 18px 2px;
}
.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  width: max-content;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tab:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: #0a0a0b;
  border-color: var(--ink);
}
.tab .count {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 14px;
  flex-wrap: wrap;
}

.section-head {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head span {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px;
}

.sorts {
  display: flex;
  gap: 6px;
}
.sort {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sort[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* ── 상품 카드 ──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #16161b, #101012);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--line-strong);
}

.thumb {
  position: relative;
  aspect-ratio: 2 / 1;
  background: #0c0c0f;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.thumb::before {
  /* 브랜드 문법: 빨강·초록 2×2 격자 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(230, 35, 43, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 199, 90, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
}
.thumb-motif {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 27px);
  grid-template-rows: repeat(2, 27px);
  gap: 0;
  opacity: 0.9;
}
.thumb-motif i {
  display: block;
}
.thumb-motif i:nth-child(1) {
  background: var(--red);
}
.thumb-motif i:nth-child(2) {
  background: var(--green);
}
.thumb-motif i:nth-child(3) {
  background: var(--green);
}
.thumb-motif i:nth-child(4) {
  background: var(--red);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(230, 35, 43, 0.09) 0%,
    rgba(230, 35, 43, 0.09) 49.6%,
    rgba(3, 199, 90, 0.09) 50.4%,
    rgba(3, 199, 90, 0.09) 100%
  );
}
.thumb-motif {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.thumb-note {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.chip-sample {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  backdrop-filter: blur(4px);
}

.chip-discount {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.card-sub {
  margin: -4px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  word-break: keep-all;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.price-list {
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.price-now {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-now small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 4px;
}

.compare-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  min-width: 0;
}
.crow-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.crow-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.crow.is-win {
  background: var(--green-soft);
  border-color: rgba(3, 199, 90, 0.34);
}
.crow.is-win.coupang-win {
  background: var(--red-soft);
  border-color: rgba(230, 35, 43, 0.38);
}
.win-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--green);
  color: #04170b;
}
.coupang-win .win-badge {
  background: var(--red);
  color: #fff;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-aff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  height: 41px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: not-allowed;
}
.btn-aff[data-platform="coupang"] {
  border-color: rgba(230, 35, 43, 0.5);
  background: rgba(230, 35, 43, 0.13);
}
.btn-aff[data-platform="naver"] {
  border-color: rgba(3, 199, 90, 0.45);
  background: rgba(3, 199, 90, 0.11);
}
.btn-aff .ldot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.btn-aff em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ink-2);
  margin-left: 1px;
}

.pending-note {
  grid-column: 1 / -1;
  font-size: 10.8px;
  color: var(--ink-3);
  text-align: center;
  margin: 0;
}

/* ── 운영 방식 ──────────────────────────────────────── */
.how {
  margin: 34px 0 0;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.how h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.how p.lead {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.steps {
  display: grid;
  gap: 10px;
}
.step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}
.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  flex: none;
}
.step h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.step p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  word-break: keep-all;
}

/* ── 채널 CTA ──────────────────────────────────────── */
.channel {
  margin: 6px 0 34px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(230, 35, 43, 0.14), rgba(3, 199, 90, 0.1));
}
.channel-in {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.channel h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.channel p {
  margin: 7px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  word-break: keep-all;
}
.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0a0b;
  font-size: 13.5px;
  font-weight: 800;
  margin-top: 14px;
}
.channel-btn svg {
  width: 16px;
  height: 16px;
}
.channel-banner {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
}

/* ── 푸터 ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  background: var(--bg-soft);
}
.disclosure {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 14px;
  word-break: keep-all;
}
.disclosure b {
  color: var(--ink-2);
  font-weight: 700;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.foot-links a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.copyright {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 0;
}

/* ── 반응형 ────────────────────────────────────────── */
@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .channel-in {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
  .brand-sub {
    display: inline;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 46px 0 34px;
  }
  .hero-grid {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 40px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .main {
    padding-top: 28px;
  }
  .compare-card {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .tabs-scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }
  .tab {
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 359px) {
  .wrap {
    padding: 0 14px;
  }
  .tabs-scroll {
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .card-title {
    font-size: 14.5px;
  }
  .btn-aff {
    font-size: 11.5px;
  }
  .btn-aff em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ════════════════════════════════════════════════════════
   판매 사이트 확장분 (2026-11-30): 검색·카테고리 타일·상세페이지·PWA
   ════════════════════════════════════════════════════════ */

/* ── 헤더 검색 ── */
.header-in {
  flex-wrap: wrap;
  row-gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.search {
  order: 3;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  min-width: 0;
}
.search svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex: none;
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}
.search input::placeholder {
  color: var(--ink-3);
}
.search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.5;
}
.search button {
  flex: none;
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0a0b;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
@media (min-width: 820px) {
  .search {
    order: 2;
    flex: 1 1 auto;
    max-width: 380px;
    margin-left: auto;
  }
}

/* ── 카테고리 내비 ── */
.cat-nav {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.6);
}
.cat-nav .wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 7px;
  padding-bottom: 7px;
}
.cat-nav .wrap::-webkit-scrollbar {
  display: none;
}
.cat-link {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cat-link:hover {
  color: var(--ink);
}
.cat-link.is-on {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* ── 예시 표시 ── */
.sample-tag {
  margin: 0 0 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffb3b7;
  background: rgba(230, 35, 43, 0.16);
  border: 1px solid rgba(230, 35, 43, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
}
.badge-sample {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 2px 7px;
  display: inline-block;
}

/* ── 구역(오늘의 특가·카테고리·인기) ── */
.band {
  padding: 24px 0 4px;
}
.band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.band-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.band-head h2 span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 3px;
}
.band-more {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

/* ── 카테고리 타일 ── */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.tile {
  display: block;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover {
  border-color: var(--line-strong);
}
.tile b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tile span {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.tile em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  word-break: keep-all;
}

/* ── 카드 보조 ── */
.card-title a {
  color: inherit;
}
.card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -2px;
}
.wish,
.share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.wish.is-on {
  color: #ff6b73;
  border-color: rgba(230, 35, 43, 0.5);
  background: rgba(230, 35, 43, 0.1);
}
.detail-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.detail-link:hover {
  color: var(--ink);
}
.crow.is-win {
  background: color-mix(in srgb, var(--win, #03c75a) 15%, transparent);
  border-color: color-mix(in srgb, var(--win, #03c75a) 40%, transparent);
}
.crow.is-win .win-badge {
  background: var(--win, #03c75a);
  color: #fff;
}
.ldot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.card-actions {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}
.card-actions .btn-aff {
  font-size: 12px;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 목록 페이지 머리 ── */
.page-head {
  padding: 20px 0 6px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(21px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.page-lede {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  word-break: keep-all;
}
.crumbs {
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 14px 18px 0;
  max-width: 1120px;
  margin: 0 auto;
}
.crumbs span {
  margin: 0 4px;
}
.crumbs b {
  color: var(--ink-2);
  font-weight: 600;
}
.crumbs a {
  color: var(--ink-3);
}
.crumbs a:hover {
  color: var(--ink);
}

/* ── 전체 상품 목록(정적) ── */
.all-products {
  padding: 26px 0 6px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.all-products h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.all-lede {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.all-block {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.all-block h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 800;
}
.all-block h3 span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 6px;
}
.all-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.all-block li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.all-block li a {
  color: var(--ink-2);
  word-break: keep-all;
}
.all-block li a:hover {
  color: var(--ink);
}
.al-price {
  flex: none;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

/* ── 상품 상세 ── */
.detail {
  padding: 16px 0 0;
}
.detail-grid {
  display: grid;
  gap: 18px;
}
.detail-thumb {
  border: 1px solid var(--line);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
}
.detail-info h1 {
  margin: 8px 0 0;
  font-size: clamp(20px, 5.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
  word-break: keep-all;
}
.detail-cat {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.detail-cat a {
  color: var(--ink-2);
  font-weight: 700;
}
.detail-sub {
  margin: 6px 0 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  word-break: keep-all;
}
.detail-info .tags {
  margin-bottom: 12px;
}
.best-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(230, 35, 43, 0.12), rgba(3, 199, 90, 0.09));
}
.best-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.best-price {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.best-off {
  font-size: 11.5px;
  color: var(--ink-3);
}
.best-note {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--ink-3);
}
.detail-cta {
  margin-top: 14px;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #0a0a0b;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.btn-primary[disabled] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  border-color: var(--line-strong);
  cursor: not-allowed;
}
.btn-primary em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.detail-tools {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.detail-tools .wish,
.detail-tools .share {
  flex: 1;
  height: 42px;
}
.detail-fineprint {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: keep-all;
}
.detail-sec {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-sec h2 {
  margin: 0 0 12px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.detail-sec p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
  word-break: keep-all;
}
.muted {
  color: var(--ink-3) !important;
  font-size: 12px !important;
  margin-top: 8px !important;
}

/* 판매처 비교 표 */
.pt-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.price-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 8px 8px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.price-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.price-table tr.is-best td {
  background: rgba(3, 199, 90, 0.06);
}
.price-table tr.is-best td:first-child {
  border-radius: 8px 0 0 8px;
}
.price-table tr.is-best td:last-child {
  border-radius: 0 8px 8px 0;
}
.pt-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-off {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-act {
  text-align: right;
}
.pt-act .btn-aff {
  height: 34px;
  padding: 0 11px;
  cursor: pointer;
}
.pt-act .btn-aff[disabled] {
  cursor: not-allowed;
}

/* 스펙 */
.specs {
  margin: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12.5px;
}
.spec-row dt {
  color: var(--ink-3);
  font-weight: 600;
}
.spec-row dd {
  margin: 0;
  color: var(--ink-2);
  word-break: keep-all;
}

/* 화면 아래 고정 구매 바 */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.sticky-buy.is-hidden {
  transform: translateY(110%);
}
.sb-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sb-price span {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 700;
}
.sb-price b {
  font-size: 16.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sb-wish {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 16px;
}
.sb-cta {
  flex: 1;
  height: 46px;
  font-size: 13px;
}
@media (max-width: 899px) {
  .sticky-buy {
    display: flex;
  }
  .detail-cta .btn-primary {
    height: 46px;
  }
  body[data-page="product"] {
    padding-bottom: 84px;
  }
}

/* 빈 결과 */
.empty {
  padding: 34px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* ── 설치 유도 배너 ── */
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 24, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.install-banner[hidden] {
  display: none;
}
.install-banner img {
  border-radius: 9px;
  flex: none;
}
.ib-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.ib-text b {
  font-size: 12.5px;
  font-weight: 800;
}
.ib-text span {
  font-size: 11px;
  color: var(--ink-3);
}
.ibtn {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #0a0a0b;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.iclose {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}

/* ── 오프라인 화면 ── */
.offline {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 22px;
  text-align: center;
}
.offline h1 {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.offline p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}
.offline img {
  border-radius: 16px;
}
.offline .btn-primary {
  max-width: 220px;
  margin-top: 6px;
}

/* ── 넓은 화면 ── */
@media (min-width: 560px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: 24px;
  }
  .detail-thumb {
    aspect-ratio: 1 / 1;
  }
}
@media (min-width: 900px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .band {
    padding-top: 30px;
  }
  .search {
    max-width: 420px;
  }
}
@media (min-width: 1280px) {
  .wrap {
    max-width: 1180px;
  }
}
@media (max-width: 400px) {
  .pt-off {
    display: none;
  }
  .price-table th:nth-child(3) {
    display: none;
  }
  .spec-row {
    grid-template-columns: 82px 1fr;
  }
}

/* ── 법적 고지 페이지 ── */
.legal { padding: 26px 18px 40px; max-width: 760px; }
.legal h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.legal-date { margin: 0 0 22px; font-size: 12px; color: var(--ink-3); }
.legal h2 { margin: 26px 0 8px; font-size: 15.5px; font-weight: 800; }
.legal p, .legal li { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.legal ul { margin: 0; padding-left: 18px; }

/* ════════════════════════════════════════════════════════════════
   2026-11-30 사진·라이트 테마·배너 확장분
   ─ 기본 테마는 라이트(밝은 바탕), 히어로·푸터만 어두운 브랜드 톤 유지
   ════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-soft: #eef1f5;
  --card: #ffffff;
  --card-2: #f3f5f8;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.18);
  --ink: #141821;
  --ink-2: #4a5262;
  --ink-3: #6b7385;
  --red: #d92027;
  --red-soft: rgba(217, 32, 39, 0.08);
  --green: #01803f;
  --green-soft: rgba(1, 128, 63, 0.1);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .cat-nav {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: var(--line);
}
html[data-theme="light"] .search {
  background: #fff;
  border-color: var(--line-strong);
}
html[data-theme="light"] .search button {
  background: var(--ink);
  color: #fff;
}
html[data-theme="light"] .yt-link,
html[data-theme="light"] .theme-toggle {
  background: #fff;
}

/* 카드·목록 */
html[data-theme="light"] .card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
html[data-theme="light"] .thumb {
  background: #e9edf2;
}
html[data-theme="light"] .crow {
  background: rgba(17, 24, 39, 0.04);
}
html[data-theme="light"] .btn-aff {
  background: #f6f8fb;
  border-color: var(--line-strong);
  color: var(--ink);
}
html[data-theme="light"] .btn-aff[data-platform="coupang"] {
  background: rgba(217, 32, 39, 0.07);
}
html[data-theme="light"] .btn-aff[data-platform="naver"] {
  background: rgba(1, 128, 63, 0.07);
}
html[data-theme="light"] .notice {
  background: #eff3f8;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
html[data-theme="light"] .tab {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
html[data-theme="light"] .tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
html[data-theme="light"] .sort {
  background: #fff;
  color: var(--ink-3);
}
html[data-theme="light"] .sort[aria-pressed="true"] {
  color: var(--ink);
  background: #fff;
  border-color: var(--ink);
}
html[data-theme="light"] .tile,
html[data-theme="light"] .all-block,
html[data-theme="light"] .step {
  background: #fff;
  border-color: var(--line);
}
html[data-theme="light"] .all-block {
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
html[data-theme="light"] .price-table th {
  color: var(--ink-3);
  border-bottom-color: var(--line-strong);
}
html[data-theme="light"] .price-table td {
  border-bottom-color: var(--line);
}
html[data-theme="light"] .spec-row {
  background: #f6f8fb;
}
html[data-theme="light"] .specs {
  border-color: var(--line);
}
html[data-theme="light"] .best-line {
  background: linear-gradient(135deg, rgba(217, 32, 39, 0.07), rgba(1, 128, 63, 0.07));
  border-color: var(--line-strong);
}
html[data-theme="light"] .channel {
  background: linear-gradient(135deg, rgba(217, 32, 39, 0.07), rgba(1, 128, 63, 0.06));
  border-color: var(--line);
}
html[data-theme="light"] .channel-btn {
  background: var(--ink);
  color: #fff;
}
html[data-theme="light"] .sticky-buy {
  background: rgba(255, 255, 255, 0.97);
  border-top-color: var(--line);
}
html[data-theme="light"] .install-banner {
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
}
html[data-theme="light"] .btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
html[data-theme="light"] .mode-card,
html[data-theme="light"] .faq-item {
  background: #fff;
  border-color: var(--line);
}
html[data-theme="light"] .wish,
html[data-theme="light"] .share {
  background: #fff;
}

/* 히어로·푸터는 어두운 톤 유지(브랜드 인상) */
.site-footer {
  background: #0f1116;
  color: #e8eaee;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .site-footer .disclosure,
html[data-theme="light"] .site-footer .copyright {
  color: #9aa3b2;
}
html[data-theme="light"] .site-footer .disclosure b {
  color: #dfe3ea;
}
html[data-theme="light"] .site-footer .foot-links a {
  color: #cfd5df;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

/* ── 사진 ─────────────────────────────────────── */
.thumb::before,
.thumb::after,
.thumb-motif {
  content: none;
  display: none;
}
.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-img.is-failed {
  opacity: 0;
}
.thumb-credit {
  position: absolute;
  left: 9px;
  bottom: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgba(10, 12, 16, 0.62);
  backdrop-filter: blur(4px);
}
.chip-sample,
.chip-discount {
  z-index: 3;
}
.detail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 히어로 배경 사진 */
.hero {
  position: relative;
  overflow: hidden;
  background: #08080a;
  color: #f7f7f8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.72) 0%, rgba(6, 8, 12, 0.86) 55%, rgba(6, 8, 12, 0.95) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
}
.hero .hero-lede,
.hero .eyebrow {
  color: #d6dae3;
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.hero-notice {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #d6dae3 !important;
}

/* ── 카테고리 타일(사진) ─────────────────────── */
.tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.tile-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf2;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tile:hover .tile-media img {
  transform: scale(1.04);
}
.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--cat, #2563eb) 55%, transparent) 100%);
}
.tile-body {
  display: block;
  padding: 11px 13px 14px;
}
.tile-big {
  grid-column: span 2;
}
.tile-big .tile-media {
  aspect-ratio: 21 / 9;
}
@media (min-width: 900px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tile-big {
    grid-column: span 1;
  }
  .tile-big .tile-media {
    aspect-ratio: 16 / 10;
  }
}

/* ── 카테고리 머리(사진) ─────────────────────── */
.cat-hero {
  position: relative;
  margin: 12px 0 0;
  border-radius: 18px;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat, #2563eb) 88%, #000), color-mix(in srgb, var(--cat, #2563eb) 55%, #000));
}
.cat-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.cat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.15), rgba(8, 10, 14, 0.8));
}
.cat-hero-text {
  position: relative;
  z-index: 1;
  padding: 22px 18px;
  color: #fff;
}
.cat-hero-text h1 {
  margin: 0;
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.cat-hero-text .page-lede {
  color: #e7ebf2;
  margin-top: 6px;
}
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 8px;
}

/* ── 본문 설명 · FAQ ─────────────────────────── */
.explain {
  padding: 6px 0 4px;
}
.explain h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.explain p {
  margin: 0 0 12px;
  font-size: 13.6px;
  line-height: 1.78;
  color: var(--ink-2);
  word-break: keep-all;
}
.faq {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.faq-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  padding: 12px 14px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13.6px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--ink-3);
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: "－";
}
.faq-item p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* ── 여행 비교 허브 ──────────────────────────── */
.hub-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 760px) {
  .hub-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.hub-tile {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--card);
}
.hub-tile b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.hub-tile span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}
.hub {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 760px) {
  .hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.hub-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--card);
}
.hub-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}
.hub-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.hub-col li a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.hub-col li span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ── 판매처 이동 버튼 ────────────────────────── */
.buy-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
@media (min-width: 560px) {
  .buy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}
.buy-btn:hover {
  border-color: var(--ink-3);
}
.buy-coupang {
  border-color: rgba(217, 32, 39, 0.5);
  background: rgba(217, 32, 39, 0.07);
}
.buy-naver {
  border-color: rgba(1, 128, 63, 0.45);
  background: rgba(1, 128, 63, 0.07);
}
.buy-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ── 쿠팡 배너 ───────────────────────────────── */
.banner {
  max-width: 1120px;
  margin: 18px auto;
  padding: 0 18px;
  display: flex;
  justify-content: center;
}
.banner a {
  display: block;
  line-height: 0;
}
.banner img {
  border-radius: 8px;
}
.banner-m {
  display: none;
}
.banner.is-failed {
  display: none;
}
.banner-top {
  margin-top: 20px;
}
.banner-bottom {
  margin: 22px auto 6px;
}
@media (min-width: 760px) {
  .banner-d {
    display: block;
  }
  .banner-m {
    display: none;
  }
  .banner-mid img {
    border-radius: 12px;
  }
}
@media (max-width: 759px) {
  .banner-d {
    display: none;
  }
  .banner-m {
    display: block;
  }
  .banner-mid .banner-m {
    display: block;
  }
}

/* ── 카테고리 이전·다음 ──────────────────────── */
.pager {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 0 18px;
}
.pager-link {
  flex: 1 1 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
}

/* ── 테마 전환 버튼 ──────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.theme-toggle[aria-pressed="true"] {
  color: #ffd479;
  border-color: rgba(255, 212, 121, 0.5);
}
@media (max-width: 420px) {
  .theme-toggle .tt-label {
    display: none;
  }
}

/* 라이트 테마에서 사진·가격 숫자 가독성 */
html[data-theme="light"] .price-now,
html[data-theme="light"] .best-price,
html[data-theme="light"] .crow-price {
  color: #0e1116;
}
html[data-theme="light"] .cat-link.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
