/* ─── Google Fonts + Pretendard ───────────────────────────── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* font-display: swap 보장 (모바일 FOIT 방지) */
@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local('Pretendard Variable'), local('Pretendard');
}

/* ─── CSS 변수 (디자인 시스템) ─────────────────────────────── */
:root {
  --site-header-h: 4rem;
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --surface: #111120;
  --card: #13131f;
  --card-hover: #1a1a2e;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(233, 69, 96, 0.4);
  --accent: #e94560;
  --accent-hover: #c73652;
  --accent-glow: rgba(233, 69, 96, 0.15);
  --accent-2: #0f3460;
  --text-primary: #f0f0f0;
  --text-secondary: #8b8b9e;
  --text-muted: #4a4a5e;
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 40%, #0f1525 100%);
}

/* ─── 기본 초기화 ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

#products-section,
#wizard-result-section,
#recent-shipping-section,
#cafe-section {
  scroll-margin-top: calc(var(--site-header-h) + 12px);
}

/* ═══════════════════════════════════════════════════════════ */
/* iframe 내부 최적화                                          */
/* ═══════════════════════════════════════════════════════════ */

/* 헤더 높이 48px로 줄이기 */
body.iframe-embed #main-header {
  height: 48px;
  min-height: 48px;
}

body.iframe-embed #main-header .max-w-7xl {
  height: 48px;
  min-height: 48px;
}

body.iframe-embed {
  --site-header-h: 48px;
}

/* 히어로 섹션: 헤더(48px) 만큼 padding-top 확보 → 겹침 방지 */
body.iframe-embed .hero-section {
  min-height: auto;
  padding-top: 48px !important;
}

body.iframe-embed .hero-section .max-w-7xl {
  padding-top: 1rem !important;
  padding-bottom: 2rem !important;
}

/* ─── 스크롤바 커스텀 ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Tailwind 확장 커스텀 클래스 ─────────────────────────── */
.bg-bg { background-color: var(--bg); }
.bg-surface { background-color: var(--surface); }
.bg-card { background-color: var(--card); }
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.hover\:bg-accent\/80:hover { background-color: rgba(233,69,96,0.8); }
.border-accent { border-color: var(--accent); }
.border-accent\/30 { border-color: rgba(233,69,96,0.3); }
.border-accent\/40 { border-color: rgba(233,69,96,0.4); }

/* ─── 헤더 ────────────────────────────────────────────────── */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}


#main-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ─── 히어로 섹션 ─────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* 풀스크린 중앙 CTA 레이아웃 */
.hero-section--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 히어로 썸네일 — 작게, 중앙 */
.hero-thumb {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* 메인 CTA 버튼 — 크고 강하게 */
.hero-cta-main {
  width: 100%;
  max-width: 380px;
  padding: 1.1rem 2rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(233,69,96,0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.hero-cta-main:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(233,69,96,0.45);
}

/* 게임 퀵칩 — 약간 다른 스타일로 구분 */
.hero-quick-chip--game {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
}

/* 신뢰 지표 행 */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(233,69,96,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(15,52,96,0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* 그리드 패턴 배경 */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-quick-chip:hover {
  border-color: rgba(233, 69, 96, 0.45);
  background: rgba(233, 69, 96, 0.12);
  transform: translateY(-1px);
}

.hero-proof-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 32, 0.75);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── 글로우 효과 ─────────────────────────────────────────── */
.glow-text {
  text-shadow: 0 0 40px rgba(233,69,96,0.4);
}

.glow-btn {
  box-shadow: 0 0 20px rgba(233,69,96,0.3);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.glow-btn:hover {
  box-shadow: 0 0 35px rgba(233,69,96,0.5);
  transform: translateY(-2px);
}

/* ─── 스크린 리더 전용 ───────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── 필터: 큰 블록(스크롤로 지나감) + compact 고정 바 ─────── */
.filter-expanded-block {
  scroll-margin-top: calc(var(--site-header-h) + 10px);
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  position: relative;
  z-index: 1;
}

/* 스크롤 후 상단 고정 요약 바 */
.filter-compact-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--site-header-h);
  z-index: 55;
  background: rgba(10, 10, 15, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.conversion-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.conversion-proof-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(19, 19, 31, 0.96), rgba(17, 17, 32, 0.9));
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.conversion-proof-card:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 69, 96, 0.32);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.conversion-proof-card--accent {
  border-color: rgba(233, 69, 96, 0.28);
  background: linear-gradient(180deg, rgba(233, 69, 96, 0.12), rgba(17, 17, 32, 0.94));
}

.conversion-proof-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.conversion-proof-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.conversion-proof-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.conversion-assurance-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.conversion-assurance-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.filter-compact-bar[hidden] {
  display: none !important;
}

.filter-compact-open-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.filter-compact-open-btn:hover,
.filter-compact-open-btn:focus-visible {
  background: rgba(233, 69, 96, 0.28);
  border-color: rgba(233, 69, 96, 0.55);
  outline: none;
}

.filter-compact-reset {
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease;
}

.filter-compact-reset:hover,
.filter-compact-reset:focus-visible {
  color: var(--accent);
  outline: none;
}

.filter-compact-chips-outer:focus-visible {
  outline: 2px solid rgba(233, 69, 96, 0.45);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.filter-compact-chip {
  flex-shrink: 0;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-compact-more {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
}

body.filter-compact-mode {
  scroll-padding-top: calc(var(--site-header-h) + var(--filter-compact-bar-h, 44px) + 4px);
}

/* 필터 버튼 기본 */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.filter-btn.filter-active {
  color: var(--accent);
  border-color: rgba(233,69,96,0.5);
  background: rgba(233,69,96,0.1);
}

/* 필터 탭 (게임/사양/금액/용도) */
.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover { color: var(--text-secondary); }
.filter-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.filter-panel { display: none; }
.filter-panel.active { display: flex; }

/*
 * 데스크톱: sticky 필터 바는 z-index로 카드 위에 그려지므로, 스크롤 시 카드 하단
 * 링크와 화면 좌표가 겹치면 빈 영역·패딩이 클릭을 가로챌 수 있음.
 * 바 전체는 pointer-events 통과, 실제 컨트롤(button)만 수신 — 모바일(768px 미만)은 기존 유지.
 */
@media (min-width: 768px) {
  .filter-bar {
    pointer-events: none;
  }

  .filter-bar button {
    pointer-events: auto;
  }
}

/* ─── 제품 카드 ───────────────────────────────────────────── */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
  contain: content;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.4),
    0 0 30px var(--accent-glow);
}

.purchase-confidence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.purchase-confidence__item {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.purchase-confidence--compact .purchase-confidence__item {
  font-size: 0.62rem;
  padding: 0.28rem 0.5rem;
}

/* ─── 위자드 모달 ─────────────────────────────────────────── */
#wizard-modal {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wizard-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 640px;
  height: min(80vh, 720px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 열린 상태: Tailwind 유틸리티보다 specificity가 낮아 덮어쓰이는 문제 수정.
   .wizard-panel.opacity-100 / .scale-100 은 0,2,0 → .wizard-panel 기본(0,1,0) 을 이긴다. */
.wizard-panel.opacity-100 { opacity: 1; }
.wizard-panel.scale-100   { transform: scale(1); }

/* 헤더·스텝바는 줄어들지 않도록 고정 */
.wizard-panel .wizard-header,
.wizard-panel .wizard-steps {
  flex-shrink: 0;
}

/* 위자드 콘텐츠만 스크롤, 헤더/스텝바는 상단 고정 */
.wizard-panel .wizard-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-2) transparent;
}

/* 위자드 스텝 인디케이터 */
.step-indicator {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  color: var(--text-muted);
}

.step-indicator.step-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 15px rgba(233,69,96,0.4);
}

.step-indicator.step-done {
  background: rgba(233,69,96,0.2);
  border-color: rgba(233,69,96,0.5);
  color: var(--accent);
}

/* 위자드 옵션 선택 상태 */
.wizard-option:hover .wizard-check {
  opacity: 0.4 !important;
  transform: scale(0.9) !important;
}

/* ─── 카페 슬라이더 ───────────────────────────────────────── */
.cafe-card {
  background: var(--card);
  border: 1px solid var(--border);
}

.cafe-card:hover {
  border-color: rgba(233,69,96,0.3);
  box-shadow: 0 0 20px rgba(233,69,96,0.1);
}

.cafe-dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  width: 0.5rem;
}

.cafe-dot.bg-accent { background: var(--accent); width: 1.5rem; }

/* ─── 스크롤 페이드인 애니메이션 ────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 순차 딜레이 */
.fade-in-up:nth-child(1) { transition-delay: 0ms; }
.fade-in-up:nth-child(2) { transition-delay: 60ms; }
.fade-in-up:nth-child(3) { transition-delay: 120ms; }
.fade-in-up:nth-child(4) { transition-delay: 180ms; }
.fade-in-up:nth-child(5) { transition-delay: 240ms; }
.fade-in-up:nth-child(6) { transition-delay: 300ms; }

/* ─── 로딩 스피너 ─────────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── 펄스 애니메이션 (실시간 뱃지) ────────────────────────── */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ─── 그라디언트 텍스트 ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e94560 60%, #ff8c69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 섹션 구분선 ─────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* ─── 검색 인풋 ───────────────────────────────────────────── */
.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 0.75rem;
  padding: 0.625rem 2.5rem 0.625rem 2.75rem;
  font-size: 0.875rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: rgba(233,69,96,0.5);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

/* ─── 제품 그리드 컨테이너 ─────────────────────────────────── */
#product-grid {
  transition: opacity 0.3s ease;
}

/* ─── 위자드 결과 섹션 ─────────────────────────────────────── */
.wizard-result-card {
  background: var(--card);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.wizard-result-card:hover {
  transform: translateY(-4px);
}

/* ─── 반응형 유틸 ─────────────────────────────────────────── */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ─── 스마트 line-clamp ───────────────────────────────────── */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ─── 모바일 모드 토글 ──────────────────────────────────────── */
#mobile-mode-toggle {
  display: none; /* md:hidden — JS 없이 CSS만으로 숨김 */
}

.mobile-mode-toggle-inner {
  display: flex;
  margin: 10px 0 8px;
  background: var(--surface);
  border-radius: 12px;
  padding: 3px;
  border: 1px solid var(--border);
}

.mobile-mode-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #888;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.mobile-mode-btn--active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ─── 태블릿·모바일 대응 ──────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --site-header-h: 3.5rem;
  }

  /* ── 모드 토글 표시 ── */
  #mobile-mode-toggle {
    display: block;
  }

  /* ── 헤더: 높이 56px (≤60px 기준) ── */
  #main-header > div {
    height: 3.5rem; /* 56px */
  }

  /* ── 전체 레이아웃: 가로 스크롤 완전 제거 ── */
  body {
    overflow-x: hidden;
  }

  /* ── 히어로 ── */
  .hero-section { min-height: 90vh; }

  .conversion-proof-grid {
    grid-template-columns: 1fr;
  }

  /* 히어로 오브 애니메이션 제거 + 크기 축소 (렌더링 부하) */
  .hero-orb-1, .hero-orb-2 {
    animation: none;
    opacity: 0.4;
  }
  .hero-orb-1 { width: 200px; height: 200px; }
  .hero-orb-2 { width: 150px; height: 150px; }

  /* ── 필터 바 ── */
  .filter-bar {
    max-height: 35vh;
    overflow: hidden;
  }

  /* 필터 바 내부 패딩 축소 */
  .filter-bar > div {
    padding: 0.5rem 0.75rem;
  }

  /* 탭 헤더 하단 여백 축소 */
  .filter-bar > div > div:first-child {
    margin-bottom: 0.375rem;
  }

  /* 필터 탭 터치 영역 44px 보장 */
  .filter-tab {
    min-height: 44px;
    padding: 0 0.875rem;
    display: inline-flex;
    align-items: center;
  }

  /* 모바일에서 필터 스크롤 */
  .filter-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-scroll-x::-webkit-scrollbar { display: none; }

  .filter-panel.active {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding-bottom: 2px;
    align-items: center;
  }

  .filter-panel.active::-webkit-scrollbar { display: none; }

  /* 내부 그룹 div 투명화 — 버튼이 직접 가로 줄에 배치됨 */
  .filter-panel.active > div {
    display: contents;
  }

  /* 버튼 줄바꿈·축소 방지 + 터치 44px 보장 */
  .filter-panel.active .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* 섹션 라벨(AI 추천, 게이밍 등) 모바일에서 숨김 */
  .filter-panel.active > div > span {
    display: none;
  }

  /* ── 제품 그리드 ── */
  #product-grid {
    gap: 0.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  /* ── 제품 카드 ── */
  /* 이미지 컨테이너 높이 축소 (h-52 → 10rem) */
  .product-card > div:first-child {
    height: 10rem;
  }

  /* 카드 콘텐츠 패딩 8px */
  .product-card > div:last-child {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  /* 제품명 모바일 가독성 */
  .product-card h3 {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  /* 구매하기 버튼 터치 44px 보장 */
  .product-card a[data-track-click="product"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 카드 hover 효과 제거 (모바일 불필요) */
  .product-card:hover {
    transform: none;
  }

  .conversion-assurance-bar span,
  .hero-proof-pill {
    font-size: 0.72rem;
  }

  /* 카드 fade-in 딜레이 제거 (로딩 체감 개선) */
  .fade-in-up {
    transition-delay: 0ms !important;
    transition-duration: 0.25s;
  }

  /* ── 위자드 모달 ── */
  #wizard-modal {
    align-items: flex-end;
    padding: 0;
  }

  .wizard-panel {
    height: 85vh;
    max-height: 95vh;
    border-radius: 1.25rem 1.25rem 0 0;
    margin: 0;
  }

  /* ── 히어로 통계 ── */
  .hero-stats { gap: 1rem; }

  /* ── 위자드: 헤더/스텝바 패딩 축소 (공간 확보) ── */
  .wizard-panel .wizard-header {
    padding: 1rem 1.25rem 0.75rem;
  }

  .wizard-panel .wizard-steps {
    padding: 0.5rem 1.25rem;
  }

  /* 위자드 콘텐츠 좌우 패딩 축소 */
  .wizard-panel .wizard-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
  }

  /* ── 위자드 옵션: 2×2 그리드 더 크고 명확하게 ── */
  .wizard-option {
    padding: 1.25rem 0.5rem;
    min-height: 5.5rem;
    gap: 0.375rem;
  }

  /* ── 위자드 이전 선택 태그 ── */
  .wizard-prev-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
    border: 1px solid rgba(233, 69, 96, 0.25);
  }

  /* ── 위자드 결과 섹션: 여백 최소화·카드 즉시 표시 ── */
  #wizard-result-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  #wizard-result-section .flex {
    margin-bottom: 1rem;
  }

  #wizard-result-container {
    gap: 0.5rem;
  }

  /* ── 플로팅 카카오 상담: 모바일 위치 보정 ── */
  .floating-kakao-cta {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 640px) {
  /* 위자드 옵션 2열 고정 */
  .wizard-content .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 섹션 패딩 축소 */
  section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .cafe-card { width: 240px; }

  /* 히어로 텍스트 크기 조정 */
  .hero-section h1 { font-size: 2rem; }
  .hero-quick-chip {
    width: calc(50% - 0.25rem);
    justify-content: center;
  }
  .conversion-proof-card {
    padding: 1rem;
  }
}

/* ─── 호버 강조 링크 ─────────────────────────────────────── */
a.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

a.nav-link:hover {
  color: var(--text-primary);
}

a.nav-link:hover::after { width: 100%; }

/* ─── 태그 스타일 ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(233,69,96,0.1);
  color: var(--accent);
  border: 1px solid rgba(233,69,96,0.25);
}

/* ─── 섹션 헤더 ───────────────────────────────────────────── */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

@media (max-width: 640px) {
  .section-title { font-size: 1.375rem; }
}

/* ─── 푸터 ────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ─── 위자드 스텝 연결선 ─────────────────────────────────── */
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  position: relative;
}

.step-connector.done {
  background: rgba(233,69,96,0.4);
}

/* ─── 숫자 카운터 ─────────────────────────────────────────── */
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════ */
/* 디자인 UI 강화 (경량)                                       */
/* ═══════════════════════════════════════════════════════════ */

/* ─── 히어로 배경 오브 (blur 제거 → opacity로 대체) ────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233,69,96,0.14) 0%, transparent 65%);
  top: -10%;
  left: -5%;
  animation: orb-drift 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15,52,96,0.2) 0%, transparent 65%);
  bottom: 0;
  right: -5%;
  animation: orb-drift 25s ease-in-out infinite reverse;
}

@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(30px, -20px, 0); }
}

/* ─── Shimmer 버튼 (hover에서만 작동) ────────────────────── */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: none;
}

.shimmer-btn:hover::after {
  animation: shimmer-once 0.6s ease forwards;
}

@keyframes shimmer-once {
  to { transform: translateX(100%); }
}

/* ─── Marquee 신뢰 배너 ─────────────────────────────────── */
.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.marquee-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ─── Bento Grid 카드 ────────────────────────────────────── */
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-card .bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ─── 그룹 섹션 헤더 ────────────────────────────────────── */
.group-section h3 {
  position: relative;
  display: inline-block;
}

/* ─── 카탈로그 탭 + 가로스크롤 뷰 ──────────────────────── */
.catalog-tab-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}
.catalog-tab-bar::-webkit-scrollbar { display: none; }

.catalog-tab {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.catalog-tab:hover {
  border-color: rgba(233,69,96,0.35);
  color: var(--text-primary);
}
.catalog-tab.active {
  background: rgba(233,69,96,0.12);
  border-color: rgba(233,69,96,0.45);
  color: var(--accent);
}

/* 가로 스크롤 카드 행 */
.catalog-hscroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(233,69,96,0.3) transparent;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}
.catalog-hscroll::-webkit-scrollbar { height: 4px; }
.catalog-hscroll::-webkit-scrollbar-track { background: transparent; }
.catalog-hscroll::-webkit-scrollbar-thumb { background: rgba(233,69,96,0.3); border-radius: 2px; }

/* 가로 스크롤 안의 카드 — 고정 너비 */
.catalog-hscroll .product-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
}

/* 더보기 버튼 — 가로스크롤 끝에 붙는 링크 카드 */
.catalog-more-card {
  flex-shrink: 0;
  width: 120px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  scroll-snap-align: start;
  transition: border-color 0.15s, color 0.15s;
}
.catalog-more-card:hover {
  border-color: rgba(233,69,96,0.4);
  color: var(--accent);
}

/* ─── 스크롤 프로그레스 바 ───────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
}

/* 하단 더보기 후 첫 신규 카드 하이라이트 */
.just-loaded-card {
  animation: just-loaded-pulse 1.2s ease-out;
  outline: 2px solid rgba(233, 69, 96, 0.65);
  outline-offset: 2px;
}

@keyframes just-loaded-pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.45); }
  100% { box-shadow: 0 0 0 18px rgba(233, 69, 96, 0); }
}

.load-more-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(233, 69, 96, 0.45);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.load-more-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 플로팅 카카오 상담 (전환 CTA) ───────────────────────── */
/* 링크 단일 출처: https://pf.kakao.com/_sxmjxgT/chat */
.floating-kakao-cta {
  position: fixed;
  z-index: 110;
  right: max(1rem, env(safe-area-inset-right, 0px));
  /* load-more-toast(우하단 고정)와 겹침 방지 — 모든 뷰포트 동일 */
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: min(calc(100vw - 2rem), 20rem);
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  border-radius: 9999px;
  background: rgba(19, 19, 31, 0.94);
  border: 1px solid rgba(254, 229, 0, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.floating-kakao-cta:hover {
  border-color: rgba(254, 229, 0, 0.85);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
  background: rgba(26, 26, 46, 0.96);
}

.floating-kakao-cta:focus {
  outline: none;
}

.floating-kakao-cta:focus-visible {
  outline: 2px solid #fee500;
  outline-offset: 3px;
}

.floating-kakao-cta__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fee500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-kakao-cta__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #191919;
}

.floating-kakao-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  min-width: 0;
}

.floating-kakao-cta__title {
  font-size: 0.8125rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .floating-kakao-cta__title {
    font-size: 0.875rem;
  }
}

.floating-kakao-cta__sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 모바일: 짧은 제목만 */
.floating-kakao-cta__title--full {
  display: none;
}

.floating-kakao-cta__title--short {
  display: block;
}

.floating-kakao-cta__sub {
  display: none;
}

@media (min-width: 640px) {
  .floating-kakao-cta__title--full {
    display: block;
  }
  .floating-kakao-cta__title--short {
    display: none;
  }
  .floating-kakao-cta__sub {
    display: block;
  }

  .floating-kakao-cta {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
  }
}

/*
 * 데스크톱: 넓은 pill이 그리드 우측 열 구매하기·카드 CTA와 수평 겹침 → 아이콘만 노출해 hit 면적 최소화.
 * 767px 이하는 기존(640px 구간 포함) 그대로. 링크에 aria-label 유지.
 */
@media (min-width: 768px) {
  /* 원형 고정 hitbox: flex 잔여 너비·자식 display 규칙과 무관하게 클릭 면적을 최소화 */
  .floating-kakao-cta {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    max-width: none;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    right: max(1.75rem, env(safe-area-inset-right, 0px));
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .floating-kakao-cta__text {
    display: none !important;
  }

  .floating-kakao-cta__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .floating-kakao-cta__icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* iframe 임베드 시 부모와 중복 CTA 방지 */
body.iframe-embed .floating-kakao-cta {
  display: none !important;
}

.js-load-more[disabled],
.js-load-more.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.load-more-inline-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}

.product-skeleton {
  min-height: 360px;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.03) 60%
  );
  background-size: 240% 100%;
  animation: skeleton-shimmer 1s linear infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ─── 최근 출고 사진 카드 (고정 비율 · 비율 다른 썸네일도 레이아웃 유지) ─── */
.recent-shipping-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
}

.recent-shipping-card__ph {
  position: absolute;
  inset: 0;
  min-height: 10rem;
  background: linear-gradient(
    135deg,
    rgba(233, 69, 96, 0.14) 0%,
    rgba(15, 52, 96, 0.4) 50%,
    rgba(19, 19, 31, 0.9) 100%
  );
}

/* ─── 푸터 그라디언트 ────────────────────────────────────── */
footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), rgba(139,92,246,0.5), transparent);
}

/* ═══════════════════════════════════════════════════════════
   상품 상세 드로어
   ═══════════════════════════════════════════════════════════ */

/* 백드롭 */
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(2px);
}
.detail-backdrop--visible { opacity: 1; }

/* 드로어 패널 */
.detail-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1101;
  width: 100%;
  max-width: 420px;
  background: var(--surface, #0f1117);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.detail-drawer--open { transform: translateX(0); }

/* 드래그 핸들 (모바일 전용, 기본 hidden) */
.detail-drawer__drag-handle {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0 0.25rem;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}
.detail-drawer__drag-handle::before {
  content: '';
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

/* 헤더 */
.detail-drawer__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.detail-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.detail-drawer__close:hover { background: rgba(233,69,96,0.15); color: var(--accent); }

/* 스크롤 바디 */
.detail-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
  padding-bottom: 1rem;
}

/* 이미지 */
.detail-drawer__img-wrap {
  position: relative;
  width: 100%;
  background: #0d1117;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-drawer__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.4s ease;
}
.detail-drawer__img:hover { transform: scale(1.04); }

/* 가격 행 */
.detail-drawer__price-row {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 섹션 */
.detail-drawer__section {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.detail-drawer__section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* 스펙 테이블 */
.detail-drawer__spec-table { display: flex; flex-direction: column; gap: 0.5rem; }
.detail-drawer__spec-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
}
.detail-drawer__spec-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; padding-top: 0.1rem; }
.detail-drawer__spec-val { font-size: 0.75rem; color: #d1d5db; line-height: 1.45; word-break: break-word; }

/* FPS 그리드 */
.detail-drawer__fps-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.detail-drawer__fps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: rgba(233,69,96,0.06);
  border: 1px solid rgba(233,69,96,0.12);
  border-radius: 0.5rem;
}

/* 구매 확신 */
.detail-drawer__assurance { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.detail-drawer__assurance span {
  font-size: 0.7rem;
  color: #9ca3af;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.375rem;
  padding: 0.25rem 0.6rem;
}

/* 고정 하단 CTA */
.detail-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--surface, #0f1117);
  flex-shrink: 0;
}
.detail-drawer__btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--accent, #e94560);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.detail-drawer__btn-primary:hover { background: #d63651; transform: translateY(-1px); }
.detail-drawer__btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(254,229,0,0.1);
  color: #FEE500;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(254,229,0,0.25);
  border-radius: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}
.detail-drawer__btn-kakao:hover { background: rgba(254,229,0,0.18); }

/* 썸네일 클릭 버튼 */
.product-card__thumb-btn {
  cursor: pointer;
  display: block;
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.product-card__thumb-btn:hover::after {
  content: '상세 보기';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

/* 상품명 클릭 버튼 */
.product-card__name-btn {
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  color: inherit;
  font: inherit;
  transition: color 0.15s;
  line-height: inherit;
}
.product-card__name-btn:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─── 모바일: 바텀 시트 ──────────────────────────────────── */
@media (max-width: 639px) {
  /* 드로어 — 하단에서 올라오는 바텀 시트 */
  .detail-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    width: 100%;
    height: 92dvh;           /* 동적 뷰포트 높이 사용 (주소창 고려) */
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
  }
  .detail-drawer--open {
    transform: translateY(0);
  }

  /* 드래그 핸들 표시 */
  .detail-drawer__drag-handle {
    display: flex !important;
  }

  /* 이미지 비율 줄이기 (세로 공간 절약) */
  .detail-drawer__img-wrap {
    aspect-ratio: 16 / 9;
  }

  /* 하단 CTA: iOS 노치 대응 */
  .detail-drawer__footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  /* 썸네일 hover 툴팁 → 터치에선 항상 숨김 */
  .product-card__thumb-btn:hover::after {
    display: none;
  }
}

/* dvh 미지원 폴백 */
@supports not (height: 1dvh) {
  @media (max-width: 639px) {
    .detail-drawer { height: 92vh; }
  }
}
