/* 데일리홈픽 — generated pages share this one stylesheet. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #14161a;
  --ink-2: #3d434d;
  --muted: #737a86;
  --line: #e4e7ec;
  --accent: #ff4f2e;
  --accent-soft: #fff0ec;
  --accent-ink: #ffffff;
  --buy: #14161a;
  --buy-ink: #ffffff;
  --good: #0f8a5f;
  --good-soft: #e9f7f1;
  --bad: #c2410c;
  --bad-soft: #fff4ec;
  --logo-ink: #ffffff;
  --img-bg: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(16 24 40 / .04), 0 4px 16px rgb(16 24 40 / .06);
  --shadow-hover: 0 2px 4px rgb(16 24 40 / .06), 0 12px 32px rgb(16 24 40 / .1);
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #171a20;
    --surface-2: #1e222a;
    --ink: #eef0f3;
    --ink-2: #c4c9d2;
    --muted: #8e95a1;
    --line: #2a2f38;
    --accent: #ff6a4d;
    --accent-soft: #3a1d17;
    --buy: #eef0f3;
    --buy-ink: #111318;
    --good: #4cc79a;
    --good-soft: #13291f;
    --bad: #ff9a62;
    --bad-soft: #2f1f14;
    --logo-ink: #111318;
    --img-bg: #ffffff;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-hover: 0 8px 28px rgb(0 0 0 / .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.ico { width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.logo-sm { font-size: 16px; margin-bottom: 8px; }
.search {
  position: relative; flex: 1; max-width: 520px; margin-left: auto;
  display: flex; align-items: center;
}
.search .ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--surface-2); outline: none;
  transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--ink); background: var(--surface); }
.search input::placeholder { color: var(--muted); }

.cat-nav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 10px; margin-top: -2px;
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.cat-nav a:hover { background: var(--surface-2); color: var(--ink); }
.cat-nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, background .15s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-buy { background: var(--buy); color: var(--buy-ink); }
.btn-buy:hover { opacity: .88; }
.btn-buy .ico { width: 13px; height: 13px; }
.btn-sm { height: 40px; font-size: 14px; border-radius: 10px; width: 100%; }
.btn-lg { height: 54px; font-size: 16px; width: 100%; }
.btn.is-disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- common bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.kicker a:hover { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.lead { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.verdict { font-weight: 600; color: var(--ink-2); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.price strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.price .rate { color: var(--accent); font-weight: 800; font-size: 18px; }
.price .price-sub { color: var(--muted); font-size: 13px; font-weight: 600; }
.price del { color: var(--muted); font-size: 13px; width: 100%; order: -1; }
.price-lg strong, .price-lg .rate { font-size: 24px; }
.price-xl strong, .price-xl .rate { font-size: 30px; }
.price-lg .price-sub, .price-xl .price-sub { font-size: 15px; }

.disclosure {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 24px 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.disclosure .ico { width: 16px; height: 16px; margin-top: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.tags a:hover { border-color: var(--ink); color: var(--ink); }
.tags a span { color: var(--muted); font-weight: 500; font-size: 12px; }
.tags-lg a { padding: 10px 16px; font-size: 15px; }

.specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; color: var(--ink-2); }
.caution { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--ink-2); font-size: 14px; }
.caution strong { color: var(--bad); margin-right: 6px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-tight { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.link-more { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.link-more:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 14px 0 16px; letter-spacing: -0.035em; }
.hero-copy .lead { max-width: 34em; margin-bottom: 28px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%230f8a5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.hero-visual { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.hero-lead {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.hero-lead:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.hero-lead-img { aspect-ratio: 1; background: var(--img-bg); display: grid; place-items: center; padding: 18px; }
.hero-lead-img img { width: 100%; height: 100%; object-fit: contain; }
.hero-lead-body { display: grid; gap: 6px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.hero-lead-body .badge { justify-self: start; }
.hero-lead-body strong { font-size: 15px; line-height: 1.4; }
.hero-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-mosaic a {
  background: var(--img-bg); border-radius: 16px; padding: 10px; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .2s;
}
.hero-mosaic a:hover { transform: translateY(-2px); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--img-bg); padding: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.chip-store {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: rgb(20 22 26 / .72); color: #fff; font-size: 11px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; border-top: 1px solid var(--line); }
.card-cat { font-size: 12px; font-weight: 700; color: var(--muted); }
.card-cat:hover { color: var(--accent); }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-note { font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--muted); }
.card .btn { margin-top: 8px; }

.img-missing { background: repeating-linear-gradient(45deg, var(--surface-2) 0 10px, var(--surface) 10px 20px) !important; }
.img-missing img { opacity: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.count { color: var(--muted); font-size: 14px; }
.count strong { color: var(--ink); }
.sort select {
  appearance: none; height: 38px; padding: 0 36px 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23737a86' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/12px no-repeat;
  font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--bg); border-radius: var(--radius); border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.cat-tile:hover { border-color: var(--line); background: var(--surface); }
.cat-img { width: 64px; height: 64px; flex: none; border-radius: 12px; background: var(--img-bg); padding: 6px; display: grid; place-items: center; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-text { display: grid; }
.cat-text strong { font-size: 16px; }
.cat-text span { font-size: 13px; color: var(--muted); }

/* ---------- post cards ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.post-card:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
.post-thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 3; }
.post-thumbs span { background: var(--img-bg); border-radius: 10px; padding: 6px; display: grid; place-items: center; border: 1px solid var(--line); overflow: hidden; }
.post-thumbs span:first-child { grid-row: span 2; }
.post-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.post-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-card h3 { font-size: 17px; font-weight: 800; }
.post-card p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); }

/* ---------- page heads ---------- */
.crumb { display: flex; gap: 8px; padding: 20px 0 0; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.page-head { padding: 22px 0 8px; max-width: 760px; }
.page-head.center { margin: 0 auto; padding: 80px 0; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin: 8px 0 12px; letter-spacing: -0.03em; }
.page-head .kicker + h1 { margin-top: 6px; }
.page-head h1:first-child { margin-top: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stat-row span { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-row strong { color: var(--ink); font-size: 14px; }

/* ---------- deals post feature ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.feature-media { background: var(--img-bg); display: grid; place-items: center; padding: 32px; aspect-ratio: 1; }
.feature-media img { width: 100%; height: 100%; object-fit: contain; }
.feature-body { padding: 32px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); }
.feature-body .badge { align-self: flex-start; }
.feature-body h2 { font-size: 24px; font-weight: 800; }
.feature-body .btn { margin-top: 18px; align-self: flex-start; min-width: 220px; }

/* ---------- guide post ---------- */
.guide { max-width: 900px; }
.narrow-head { max-width: 900px; }
.toc { list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 32px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 800; }
.toc a:hover { border-color: var(--ink-2); }
.guide-item {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px;
  margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
}
.guide-media { position: sticky; top: 140px; align-self: start; aspect-ratio: 1; background: var(--img-bg); border-radius: 14px; border: 1px solid var(--line); padding: 16px; display: grid; place-items: center; }
.guide-media img { width: 100%; height: 100%; object-fit: contain; }
.guide-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.guide-body h2 { font-size: 22px; font-weight: 800; }
.guide-body > p:not(.kicker):not(.verdict) { color: var(--ink-2); }
.buy-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.buy-box-col { flex-direction: column; align-items: stretch; gap: 8px; padding: 20px; }
.tg-cta { margin: 10px 2px 0; font-size: 14px; }
.tg-cta a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.tg-cta a:hover { color: var(--ink); }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.box { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.box strong { display: block; margin-bottom: 6px; }
.box ul { padding-left: 18px; color: var(--ink-2); display: grid; gap: 2px; }
.box-good { background: var(--good-soft); }
.box-good strong { color: var(--good); }
.box-bad { background: var(--bad-soft); }
.box-bad strong { color: var(--bad); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0 8px; align-items: start; }
.product-media { position: sticky; top: 140px; aspect-ratio: 1; background: var(--img-bg); border-radius: 22px; border: 1px solid var(--line); padding: 36px; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 12px; }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.product-info .tags { margin-top: 12px; }
.sticky-buy { display: none; }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; padding: 40px 0 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.footer-grid .muted { max-width: 30em; }
.footer-links { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 20px; justify-content: end; align-content: start; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; color: var(--muted); font-size: 12px; }

/* ---------- responsive ---------- */
.hero-grid > *, .hero-visual > *, .product > *, .feature > *, .guide-item > *, .post-card > * { min-width: 0; }
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 32px; }
  .post-list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .product, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 28px; }
  .feature-body { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .feature-media { aspect-ratio: 4 / 3; }
  .product { gap: 24px; }
  .guide-media { position: static; }
  /* 모바일은 따라다닐 필요가 없다. relative 로 두는 건 할인율 칩(absolute)의 기준이기 때문이고,
     top 은 sticky 전용이라 풀어 준다. 안 풀면 이미지가 140px 아래로 밀려 다음 섹션을 덮는다. */
  /* 화면 높이의 38%로 묶는다. 안 묶으면 정사각형에 가까운 상품 사진이 첫 화면을 다 먹어
     상품명과 가격이 스크롤 밖으로 밀린다. */
  .product-media { position: relative; top: auto; aspect-ratio: 4 / 3; max-height: 38vh; padding: 24px; }
  .product-media img { min-height: 0; }
  .guide-item { grid-template-columns: 1fr; padding: 20px; }
  .guide-media { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  body.has-sticky-buy { padding-bottom: 84px; }
  .sticky-buy {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .sticky-buy .btn { flex: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 160px; }
  .header-row { flex-wrap: wrap; height: auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 40px; }
  .cat-nav { padding-bottom: 8px; margin-top: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { padding: 10px; }
  .card-body { padding: 12px; gap: 4px; }
  .card-title { font-size: 14px; }
  .card-note { display: none; }
  .price strong { font-size: 16px; }
  .chip-store { left: 6px; top: 6px; }
  .btn-sm { height: 36px; font-size: 13px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 21px; }
  .hero-visual { grid-template-columns: minmax(0, 1fr); }
  .hero-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hero-mosaic { grid-template-rows: none; }
  .hero-mosaic a { padding: 6px; border-radius: 12px; aspect-ratio: 1; }
  .hero-lead { flex-direction: row; }
  .hero-lead-img { width: 42%; flex: none; aspect-ratio: 1; padding: 12px; }
  .hero-lead-body { border-top: 0; border-left: 1px solid var(--line); align-content: center; padding: 14px; }
  .hero-points { margin-top: 22px; }
  .actions .btn { flex: 1; }
  .cat-grid { gap: 10px; }
  .cat-tile { flex-direction: column; text-align: center; gap: 8px; padding: 14px 10px; }
  .cat-img { width: 56px; height: 56px; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumbs { aspect-ratio: 16 / 7; }
  .toc { grid-template-columns: 1fr; }
  .procon { grid-template-columns: 1fr; }
  .buy-box .btn { width: 100%; }
  .feature-body .btn { width: 100%; min-width: 0; }
  .specs div { grid-template-columns: 80px 1fr; }
  .footer-links { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- deals: discount chips, today nav, trending, filters ---------- */
.cat-nav a.nav-today { color: var(--accent); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.cat-nav a.nav-today .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-nav a.nav-today[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.cat-nav a.nav-today[aria-current="page"] .dot { background: var(--accent-ink); box-shadow: none; }

.chip-rate {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 8px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
}
.chip-rate-lg { left: 18px; top: 18px; font-size: 18px; padding: 6px 12px; border-radius: 10px; }
.hero-mosaic a { position: relative; }
.hero-mosaic .chip-rate { left: 6px; top: 6px; font-size: 11px; padding: 2px 6px; }

.card-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); min-width: 0; }
.card-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta span::before { content: "·"; margin-right: 6px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.checked.is-stale { color: var(--bad); }

.section-tight-top { padding-top: 8px; padding-bottom: 8px; }
.trending { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.trending a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-weight: 600; transition: border-color .15s;
}
.trending a:hover { border-color: var(--ink-2); }
.trending .rank { width: 18px; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 700; }
.cat-chips a span { margin-left: 6px; color: var(--muted); font-weight: 600; font-size: 12px; }
.cat-chips a:hover { background: var(--ink); color: var(--surface); }
.cat-row { margin-top: 32px; }
.cat-row .section-head { margin-bottom: 14px; }
.cat-row h3 { font-size: 19px; font-weight: 800; }

.filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 16px; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button {
  flex: none; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.filter-chips button span { margin-left: 5px; color: var(--muted); font-size: 12px; }
.filter-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.filter-chips button[aria-pressed="true"] span { color: inherit; opacity: .7; }

.history { margin-top: 12px; font-size: 14px; }
.history summary { cursor: pointer; color: var(--muted); font-weight: 600; }

.review-list { display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-img { aspect-ratio: 1; background: var(--img-bg); border-radius: 12px; padding: 10px; display: grid; place-items: center; }
.review-img img { width: 100%; height: 100%; object-fit: contain; }
.review-item h3 { font-size: 17px; margin: 4px 0 8px; }
.review-id { font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; user-select: all; }

@media (max-width: 820px) {
  .trending { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-item { grid-template-columns: 110px 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .chip-rate { left: 6px; top: 6px; font-size: 12px; padding: 2px 6px; }
  .trending a { padding: 9px 12px; font-size: 14px; }
  .card-meta span { display: none; }
}
.card[hidden] { display: none; }
.trending .rank { width: auto; min-width: 20px; white-space: nowrap; }
/* Hide alt text of broken thumbnails; the striped .img-missing background shows instead. */
.card-media img, .hero-lead-img img, .hero-mosaic img, .product-media img, .post-thumbs img,
.feature-media img, .guide-media img, .cat-img img, .review-img img { color: transparent; font-size: 0; }
.chip-rate.is-drop { background: var(--good); }
.chip-rate.is-deal { background: var(--ink); color: var(--surface); }
.price .rate-drop { color: var(--good); }

/* 품목별 자주 묻는 질문 */
.faq { display: grid; gap: 0; }
.faq dt { font-weight: 700; font-size: 15.5px; line-height: 1.5; padding-top: 16px; }
.faq dd { margin: 6px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.faq dd:last-child { border-bottom: 0; padding-bottom: 0; }

/* 실적 대시보드 (관리자용, 비공개 경로) */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); }
.stat-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.stat-main { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: -8px 0 12px; }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 2px; }
.chart-legend .sw + .sw { margin-left: 10px; }
.sw-site { background: var(--accent); }
.sw-other { background: var(--muted); opacity: .45; }
.chart-plot { position: relative; height: 150px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.chart-line { position: absolute; left: 38px; right: 12px; border-top: 1px dashed var(--line); }
.chart-line span { position: absolute; left: -34px; top: -.62em; width: 28px; text-align: right; font-size: 11px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-bars { position: absolute; top: 8px; bottom: 0; left: 38px; right: 12px; display: flex; align-items: flex-end; gap: 3px; }
.chart-bars i { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.chart-bars b { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; }
.chart-bars b.zero { min-height: 0; }
.chart-bars .b-site { background: var(--accent); }
.chart-bars .b-other { background: var(--muted); opacity: .45; }
.chart-x { display: flex; justify-content: space-between; padding: 6px 12px 0 38px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 44px 0 0; }
.price-log { margin-top: 22px; }
.price-log .h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.price-log-list { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.price-log-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.price-log-list li + li { border-top: 1px solid var(--line); }
.price-log-list span { width: 52px; color: var(--muted); font-size: 12.5px; }
.price-log-list b { font-weight: 700; }
.price-log-list i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--good); background: var(--good-soft); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.price-log-list em { font-style: normal; font-size: 12.5px; font-weight: 700; margin-left: auto; }
.price-log-list em.down { color: var(--good); }
.price-log-list em.up { color: var(--muted); }
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.quick-links .btn { padding: 9px 15px; font-size: 14px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.stat-table th, .stat-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; white-space: nowrap; }
.stat-table th { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.stat-table .neg { color: var(--bad); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
