/* 꿀통몬 특가 허브 — 종이 바탕 · 먹색 글자 · 꿀색 포인트
   외부 폰트·이미지·스크립트 없음(속도와 인앱 브라우저 대응). */

:root {
  --paper: #FBF6EC;
  --paper-2: #FFFDF8;
  --ink: #171410;
  --ink-70: rgba(23, 20, 16, 0.72);
  --ink-55: rgba(23, 20, 16, 0.56);
  --line: rgba(23, 20, 16, 0.14);
  --line-strong: rgba(23, 20, 16, 0.4);
  --honey: #E9A227;
  --honey-soft: #F7DDAF;
  --honey-deep: #A96A05;
  --deal: #B23A18;
  --radius: 10px;
  --shadow: 0 8px 22px rgba(23, 20, 16, 0.08);
  --max: 1180px;
  --pad: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

main, .top, footer { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------------------------------------------------------------- 상단 */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--honey);
  color: #2A1B00;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -2px 0 rgba(23, 20, 16, 0.18);
}

.brand-text { display: flex; align-items: baseline; gap: 7px; }
.brand-text strong { font-size: 17px; font-weight: 900; letter-spacing: -0.04em; }
.brand-text span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-55); }

.top-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-55);
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 히어로 */
.hero {
  position: relative;
  padding: 30px 0 22px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at center, rgba(233, 162, 39, 0.22), rgba(233, 162, 39, 0) 68%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

.hero h1 {
  margin: 0;
  font-size: clamp(31px, 8.4vw, 56px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  padding-bottom: 0.02em;
  border-bottom: 0.16em solid var(--honey);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-70);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
}

.hero-stats div { padding-right: 10px; }
.hero-stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-stats dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-55);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------- 필터 */
.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 14px;
  border-top: 1px solid var(--line);
}

.search { margin: 0; }

.search input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  appearance: none;
  -webkit-appearance: none;
}
.search input::placeholder { color: rgba(23, 20, 16, 0.38); }
.search input:focus {
  outline: none;
  border-color: var(--honey-deep);
  box-shadow: 0 0 0 3px rgba(233, 162, 39, 0.28);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-row--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 calc(var(--pad) * -1);
  padding: 2px var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 88%, transparent 100%);
}
.chip-row--scroll::-webkit-scrollbar { display: none; }
.chip-row--tight { gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 248, 0.7); }

.chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-70);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip-count {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.55;
}
.chip-row--tight .chip {
  padding: 6px 12px;
  border: 0;
  font-size: 12px;
}
.chip-row--tight .chip[aria-pressed="true"] { background: var(--ink); }

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.result-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-55);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 카드 */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px 0 4px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 172px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(23, 20, 16, 0.3); }
.card:active { transform: translateY(0); box-shadow: none; }
.card:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 2px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.plat {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.plat--coupang { background: #FCE9E5; color: #A63122; }
.plat--kakao { background: #FDF1C8; color: #6E5100; }
.plat--smartstore { background: #E4F7EC; color: #0A6C3E; }
.plat--naver { background: #E4F7EC; color: #0A6C3E; }

.drop {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--deal);
  white-space: nowrap;
}
.drop small { font-size: 10.5px; font-weight: 800; margin-left: 1px; }

.card-title {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin: auto 0 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.card-price strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.card-price strong small { font-size: 12px; font-weight: 800; margin-left: 1px; }
.card-price del {
  font-size: 11px;
  color: var(--ink-55);
  text-decoration-thickness: 1px;
}
.card-price .ask { font-size: 12.5px; font-weight: 700; color: var(--ink-70); }

.card-facts {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ink-55);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.card-facts span + span::before { content: "·"; margin-right: 4px; opacity: 0.6; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-55);
}
.card-foot .cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot .go { font-weight: 800; color: var(--ink); white-space: nowrap; }

.card-badge {
  position: absolute;
  top: -7px;
  left: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card--ghost {
  min-height: 172px;
  border-style: dashed;
  background: rgba(255, 253, 248, 0.5);
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------------------------------------------------------------- 더 보기·빈 상태 */
.more-wrap { display: flex; justify-content: center; padding: 18px 0 8px; }

.more {
  padding: 12px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.more:hover { background: var(--ink); color: var(--paper); }

.empty {
  padding: 46px 0 60px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink-70);
}
.empty span { font-size: 12.5px; font-weight: 600; color: var(--ink-55); }

/* ---------------------------------------------------------------- 푸터 */
footer {
  margin-top: 26px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1.5px solid var(--ink);
}

.disclosure {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-70);
}
.disclosure strong { font-weight: 800; color: var(--ink); }
.disclosure--soft { color: var(--ink-55); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0 10px;
}
.foot-links a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.foot-links a:hover { border-color: var(--honey-deep); color: var(--honey-deep); }

.foot-mark { margin: 0; font-size: 11px; color: var(--ink-55); letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- 넓은 화면 */
@media (min-width: 560px) {
  :root { --pad: 22px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .card { min-height: 190px; padding: 14px 14px 12px; }
  .card-title { font-size: 14.5px; }
  .card-price strong { font-size: 20px; }
}

@media (min-width: 900px) {
  :root { --pad: 32px; }
  .hero { padding: 46px 0 30px; }
  .hero-sub { font-size: 15px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .card { min-height: 205px; }
  .card-title { font-size: 15px; -webkit-line-clamp: 2; }
  .chip-row--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card:hover { transform: none; }
}
