:root {
  --bg: #fbf7f4;
  --card: #ffffff;
  --ink: #23201e;
  --muted: #8a827c;
  --line: #efe8e2;
  --brand: #ff5a8a;
  --brand-ink: #ffffff;
  --tag-bg: #fff0f5;
  --tag-ink: #d63b6e;
  --shadow: 0 2px 10px rgba(60, 40, 30, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f; --card: #211d18; --ink: #f2ede8; --muted: #a79f97;
    --line: #2e2820; --brand: #ff6f9a; --tag-bg: #331722; --tag-ink: #ff9bbd;
    --shadow: 0 2px 12px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic",
               "Apple SD Gothic Neo", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* 화면 중앙 컬럼(모바일 우선, 데스크톱에선 좁게) */
.disclosure, .head, .list, .foot, .pending-wrap { max-width: 520px; margin-inline: auto; }

.disclosure {
  font-size: 11.5px; color: var(--muted); text-align: center;
  padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}

.head { padding: 20px 18px 8px; text-align: center; }
.handle { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tagline { font-size: 13px; color: var(--muted); margin-top: 2px; }

.search {
  width: 100%; margin-top: 16px; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); outline: none;
}
.search:focus { border-color: var(--brand); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 13px; font-size: 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }

.list { padding: 8px 14px 24px; }
.card {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  margin-bottom: 12px; transition: transform .08s ease;
}
.card:active { transform: scale(.985); }
.card.pending { opacity: .72; }

.thumb {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: 12px;
  object-fit: cover; background: var(--bg);
}
.thumb.ph { display: grid; place-items: center; font-size: 30px; }

.info { flex: 1 1 auto; min-width: 0; }
.name { font-size: 15px; font-weight: 700; letter-spacing: -.01em;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-size: 15px; font-weight: 800; color: var(--brand); margin: 2px 0 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
       background: var(--tag-bg); color: var(--tag-ink); white-space: nowrap; }

.cta {
  flex: 0 0 auto; align-self: stretch; display: flex; align-items: center;
  padding: 0 12px; margin: -10px -10px -10px 0; border-radius: 0 16px 16px 0;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 13px;
}
/* 제휴 네트워크별 CTA — 어디로 가는지 한눈에 (쿠팡 레드 / 네이버 그린) */
.cta.nc { background: #e8452e; }
.cta.nn { background: #03c75a; }
.cta.off { background: var(--line); color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 32px 0; }

.foot { padding: 18px 18px 40px; text-align: center; }
.disclosure-foot { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
.copy { font-size: 12px; color: var(--muted); font-weight: 700; }

/* pending 페이지 */
.pending-wrap { padding: 60px 20px; }
.pending-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 36px 24px; text-align: center;
}
.pending-emoji { font-size: 44px; }
.pending-card h1 { font-size: 20px; margin: 10px 0 6px; }
.pending-card p { margin: 4px 0; font-size: 14px; }
.muted { color: var(--muted); font-size: 12.5px !important; }
.back { display: inline-block; margin-top: 18px; color: var(--brand); font-weight: 700; text-decoration: none; }
