/* ───────────────────────────────────────────
   HURRZ — 신제품 최초 공개 허브
   화이트 + 코발트 블루, 초볼드 에디토리얼
─────────────────────────────────────────── */
:root {
  --blue: #1a1af0;
  --blue-deep: #0f0fb4;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --paper-warm: #f6f6f2;
  --yellow: #ffe600;
  --line: #d8d8d2;
  --font-display: "Anton", "Pretendard Variable", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, sans-serif;
  --font-hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input { font-family: inherit; }

::selection { background: var(--blue); color: #fff; }

/* ── 헤더 ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 1.5rem;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--blue);
  text-decoration: none;
  line-height: 1;
  transform: scaleY(1.05);
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border: 2px solid transparent;
  transition: all 0.15s;
}

.nav-link:hover { border-color: var(--ink); }

.nav-link.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.search-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: all 0.15s;
}

.search-btn svg { width: 19px; height: 19px; }

.search-btn:hover { background: var(--yellow); transform: rotate(8deg); }

/* ── 티커 ─────────────────────────────── */
.ticker {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ── 히어로 ───────────────────────────── */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7.4vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero-title .line { display: block; }

.hero-title em {
  font-style: normal;
  color: var(--blue);
}

.hero-title .line {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-title .line:nth-child(2) { animation-delay: 0.12s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.hero-note {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 1.2rem;
  transform: rotate(-1.5deg);
  opacity: 0;
  animation: rise 0.7s 0.35s forwards;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 0.7s 0.5s forwards;
}

.stamp {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border: 2px solid var(--ink);
  padding: 0.4rem 0.9rem;
}

.stamp-fill { background: var(--yellow); border-color: var(--ink); }

/* ── 필터 바 ──────────────────────────── */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 1.5rem 1rem;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.filter-bar button {
  margin-left: auto;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid var(--ink);
  padding: 0.25rem 0.7rem;
  background: var(--paper);
  transition: all 0.15s;
}

.filter-bar button:hover { background: var(--ink); color: #fff; }

.filter-bar[hidden] { display: none; }

/* ── 그리드 ───────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 1.5rem 2rem;
}

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  border: 2px solid var(--ink);
  margin: -1px;
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: tile-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes tile-in { to { opacity: 1; transform: none; } }

.tile-media {
  position: relative;
  aspect-ratio: 5 / 4.5;
  overflow: hidden;
  background: var(--paper-warm);
}

.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s;
}

.tile-media img.alt { opacity: 0; }

.tile:hover .tile-media img.main { transform: scale(1.04); }
.tile:hover .tile-media img.alt  { opacity: 1; transform: scale(1.04); }
.tile.has-alt:hover .tile-media img.main { opacity: 0; }

/* NEW 배지 */
.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  background: var(--blue);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}

/* 동영상 아이콘 */
.badge-video {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: all 0.2s;
}

.badge-video svg { width: 14px; height: 14px; margin-left: 2px; }

.tile:hover .badge-video { background: var(--blue); transform: scale(1.12); }

.tile-caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 2;
}

.tile-brand {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.tile-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.tile:hover .tile-caption { background: var(--yellow); }

/* 무한 스크롤 센티넬 */
.sentinel { height: 10px; }

/* ── 아티클 ───────────────────────────── */
.articles {
  scroll-margin-top: 70px;
  border-top: 2px solid var(--ink);
  background: var(--blue);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
}

.section-title .dot { color: var(--yellow); }

.section-sub {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.article-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2.2rem;
}

@media (max-width: 880px) { .article-row { grid-template-columns: 1fr; } }

.article-card {
  border: 2px solid #fff;
  margin: -1px;
  padding: 1.6rem 1.4rem 2rem;
  transition: all 0.2s;
}

.article-card:hover { background: #fff; color: var(--ink); }

.article-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.25rem 0.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  word-break: keep-all;
}

.article-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.82;
  word-break: keep-all;
}

/* ── 푸터 ─────────────────────────────── */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 2.5rem 1.5rem 2rem;
  overflow: hidden;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 0.95;
  text-align: center;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--blue);
  user-select: none;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── 오버레이 공통 ────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.overlay[hidden] { display: none; }

.overlay-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 110;
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.15s;
}

.overlay-close:hover { transform: rotate(90deg); }

.overlay-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--blue);
}

/* ── 검색 오버레이 ────────────────────── */
.search-overlay { place-items: start center; }

.search-inner {
  width: min(860px, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  margin-top: 4.5rem;
  padding: 2rem clamp(1.2rem, 4vw, 2.5rem) 2.5rem;
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 2px solid var(--ink);
  padding: 0.9rem 1.1rem;
  margin-top: 1rem;
}

.search-field svg { width: 20px; height: 20px; flex-shrink: 0; }

.search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  background: transparent;
}

.chip-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.4rem 0 0.6rem;
  opacity: 0.6;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: var(--paper);
  transition: all 0.15s;
}

.chip:hover { background: var(--yellow); }

.chip-dark { background: var(--ink); color: #fff; }

.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.search-results {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

@media (max-width: 640px) { .search-results { grid-template-columns: repeat(2, 1fr); } }

.result-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border: 2px solid var(--ink);
  padding: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.result-item:hover { background: var(--yellow); }

.result-item img {
  width: 52px;
  height: 47px;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.result-item .rb {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  display: block;
}

.result-item .rn {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  display: block;
}

.result-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 700;
  padding: 1.4rem;
  border: 2px dashed var(--line);
  opacity: 0.6;
}

/* ── 상세 모달 ────────────────────────── */
.detail-card {
  width: min(720px, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.detail-media {
  position: relative;
  aspect-ratio: 5 / 4.5;
  max-height: 52vh;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-warm);
}

.detail-media img { width: 100%; height: 100%; object-fit: contain; }

.detail-body { padding: 1.5rem clamp(1.2rem, 3vw, 2rem) 2rem; }

.detail-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.detail-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0.3rem 0 1rem;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }

.detail-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.detail-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--ink);
  transition: all 0.15s;
}

.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost:hover { background: var(--yellow); }

/* ── 소매점 모달 ──────────────────────── */
.store-card {
  width: min(620px, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  padding: 2rem clamp(1.2rem, 4vw, 2.2rem) 1.6rem;
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.store-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0.4rem 0 1.2rem;
}

.store-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid var(--ink);
  padding: 0.55rem 0.6rem 0.55rem 1rem;
}

.store-field svg { width: 20px; height: 20px; flex-shrink: 0; }

.store-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  min-width: 0;
}

.store-field button {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1.1rem;
  transition: background 0.15s;
}

.store-field button:hover { background: var(--blue-deep); }

.store-results { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

.store-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 2px solid var(--line);
  padding: 0.8rem 1rem;
}

.store-row b { margin-left: auto; font-size: 0.85rem; flex-shrink: 0; }

.store-row .sk-box {
  width: 44px;
  height: 44px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }

.sk-lines i {
  display: block;
  height: 9px;
  background: var(--paper-warm);
  border-radius: 4px;
}

.sk-lines i:first-child { width: 70%; }
.sk-lines i:last-child { width: 45%; }

.store-row.real { border-color: var(--ink); }
.store-row.real .st-name { font-weight: 800; font-size: 0.95rem; }
.store-row.real .st-addr { font-size: 0.8rem; opacity: 0.65; }

.store-foot {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ── 모바일 헤더 ──────────────────────── */
@media (max-width: 740px) {
  .site-header { flex-wrap: wrap; gap: 0.6rem; padding: 0.8rem 1rem; }
  .main-nav { order: 3; width: 100%; margin-left: 0; justify-content: center; }
  .search-btn { margin-left: auto; }
  .nav-link { font-size: 0.82rem; padding: 0.35rem 0.55rem; }
  .filter-bar { top: 106px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
