/* ───── CSS Variables ───── */
:root {
  --red:          #E24B4A;
  --red-dark:     #C13A39;
  --bg:           #F2F1ED;
  --card:         #FFFFFF;
  --text:         #1A1A18;
  --text-muted:   #6B6B68;
  --text-light:   #9A9A97;
  --border:       rgba(26,26,24,0.10);
  --border-hover: rgba(26,26,24,0.20);
  --nav-h:        76px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ───── NAV ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242,241,237,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
  background: rgba(242,241,237,0.96);
}
.nav { transition: all 0.3s ease; }
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo span { color: var(--red); }

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 100px;
  padding: 8px 16px;
}
.nav-chip-emoji { font-size: 18px; }
.nav-chip-text { font-size: 15px; font-weight: 500; color: var(--text-muted); }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.nav-links a {
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--text); color: white; }

/* "상품" 드롭다운 — 데스크톱 nav */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  background: var(--text);
  color: white;
}
.nav-dropdown-caret {
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-dropdown-menu li { margin: 0; }
.nav-links .nav-dropdown-menu a {
  display: block;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links .nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--text);
}
/* 대분류 행 (Coupang 스타일 hover flyout) */
.nav-parent-row {
  position: relative;
}
.nav-parent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.nav-parent-caret {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 14px;
  line-height: 1;
}
.nav-parent-row:hover > .nav-parent-btn,
.nav-parent-row:focus-within > .nav-parent-btn {
  background: var(--bg);
  color: var(--text);
}
.nav-parent-row:hover .nav-parent-caret,
.nav-parent-row:focus-within .nav-parent-caret {
  color: var(--red);
}

/* 소분류 플라이아웃 패널 — 부모 행의 오른쪽으로 펼침 (Coupang 스타일) */
.nav-sub-panel {
  position: absolute;
  top: -6px;
  left: 100%;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 210;
}
.nav-parent-row:hover > .nav-sub-panel,
.nav-parent-row:focus-within > .nav-sub-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-sub-panel li { margin: 0; }
.nav-links .nav-sub-panel a {
  display: block;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links .nav-sub-panel a:hover {
  background: var(--bg);
  color: var(--red);
}

.nav-mobile-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-mobile-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ───── HERO (full) ───── */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ───── HERO (compact — 상품 그리드 아래) ───── */
.hero--compact {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 24px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero--compact.hero--text-only {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 16px 24px 24px;
}
.hero--compact.hero--text-only .hero-text { align-items: center; }
.hero--compact .hero-video-wrap { max-height: 320px; }
.hero--compact .hero-title {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
}
.hero--compact .hero-desc {
  font-size: 14px;
  line-height: 1.6;
}
.hero--compact .hero-eyebrow {
  font-size: 11px;
  padding: 4px 12px;
}

.hero-video-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.hero-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
}
.video-caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 14px;
  background: rgba(226,75,74,0.08);
  border-radius: 100px;
  border: 1px solid rgba(226,75,74,0.18);
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-title .highlight { color: var(--red); }
.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* ───── NOTICE ───── */
.notice-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.notice {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(26,26,24,0.02);
  border: 1px solid var(--border);
  line-height: 1.5;
}

/* ───── FILTER (2-tier 신규) ───── */
.filter-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.filter-section--two-tier {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-row-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  width: 78px;
}
.filter-section--two-tier .filter-bar {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filter-section--two-tier .filter-bar::-webkit-scrollbar { display: none; }
.filter-section--two-tier .filter-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 12px;
}
.filter-count {
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.filter-count strong { color: var(--red); font-weight: 700; }

/* 필터 아래 중앙 — 쿠팡 파트너스 정책 고지 */
/* 공정위 가이드라인 준수 광고 고지 배너 (14px, 진한 색, 굵게, 페이지 상단) */
.disclosure-banner {
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.disclosure-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(226, 75, 74, 0.06);
  border: 1px solid rgba(226, 75, 74, 0.20);
  border-radius: var(--radius-md);
  color: var(--text);
}
.disclosure-icon { font-size: 18px; line-height: 1; }
.disclosure-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 700px) {
  .disclosure-banner { margin-top: 12px; padding: 0 16px; }
  .disclosure-inner { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .disclosure-text { font-size: 13px; text-align: left; }
}

/* legacy .filter-notice — 더 이상 사용 안 함 (배너로 이동) */
.filter-notice { display: none; }

@media (max-width: 767px) {
  .filter-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .filter-row-label { width: auto; }
}

/* ───── FILTER (legacy 단일) ───── */
.filter-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-count {
  font-size: 13px;
  color: var(--text-light);
}
.product-count strong { color: var(--red); }

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(226,75,74,0.04);
}
.filter-btn.active {
  background: var(--red);
  border: 1.5px solid var(--red);
  color: white;
  box-shadow: 0 2px 6px rgba(226,75,74,0.20);
  font-weight: 700;
}

/* ───── PRODUCT GRID ───── */
.products-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(226,75,74,0.15);
  border-color: rgba(226,75,74,0.25);
}
.product-card:hover .product-emoji-wrap {
  background: rgba(226,75,74,0.04);
}
.product-card.hidden { display: none; }

/* 모든 카드 이미지/이모지 영역 통일 — 4:3 가로형 */
.product-emoji-wrap {
  background: var(--bg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: background 0.22s ease;
  overflow: hidden;
}
.product-emoji {
  font-size: 56px;
  line-height: 1;
}

/* ───── 상품 이미지 갤러리 (캐러셀) ───── */

/* 이미지 모드 — alt 텍스트 거대화 방지 */
.product-card.has-image .product-emoji-wrap {
  font-size: 0;
}

.product-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 슬라이드 트랙 — translateX로 이동 */
.gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* 각 슬라이드 (이미지 1장) */
.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  background: var(--bg);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* 좌/우 화살표 — 호버 시 표시 */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 0;
  line-height: 1;
}
.gallery-arrow:hover { background: white; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
/* 카드 hover 시 화살표 표시 (다중 이미지일 때만) */
.product-card.has-multi-image:hover .gallery-arrow { opacity: 1; }
/* 모바일은 항상 표시 (호버 없으니까) */
@media (hover: none) {
  .product-card.has-multi-image .gallery-arrow { opacity: 0.85; }
}

/* 점 indicator */
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26, 26, 24, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.22s ease;
}
.gallery-dot.active {
  background: var(--text);
  width: 16px;
  border-radius: 100px;
}

/* 모바일 — 갤러리 영역 약간 축소 */
@media (max-width: 480px) {
  .gallery-arrow { width: 30px; height: 30px; font-size: 16px; }
  .gallery-slide { padding: 12px; }
}

/* email-text — .email-box grid 첫 자식 (보강) */
.email-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* "🔥 이번 주 인기" — 좌측 상단 (이모지 영역 안) */
/* specificity 강화: 부모 .product-emoji-wrap의 font-size: 56px 상속 차단 */
.product-emoji-wrap .product-popular,
.product-popular {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FF6B00 0%, #E24B4A 100%);
  color: #FFFFFF;
  border: none;
  font-size: 11px !important;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(226,75,74,0.35);
}

/* 카테고리 뱃지 — 우측 상단 */
.product-emoji-wrap .product-badge,
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 2;
}
/* 픽 (BEST) — 다크 스탬프 */
.product-emoji-wrap .badge-BEST,
.badge-BEST {
  background: #1A1A18;
  color: white;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 3px 8px;
}
/* 신상 (NEW) — pill */
.badge-NEW {
  background: #E6F4FF;
  color: #0063B2;
  border-radius: 100px;
  font-size: 10px;
}
/* 최저가 (SALE) — pulse */
.badge-SALE {
  background: var(--red);
  color: white;
  border-radius: 100px;
  animation: pulse 2s infinite;
  font-size: 10px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,75,74,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(226,75,74,0); }
}

.product-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* min-height 제거 — 짧은 이름은 1줄, 긴 이름은 2줄로 자연 표시 */
}
/* 가격 스택 — 상품명 바로 아래에 붙도록 */
.product-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-top: 4px;
  /* margin-top: auto 제거 → name 바로 아래 붙음 */
}
.product-original-price {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.product-original-price .orig-amount {
  color: var(--text-light);
  text-decoration: line-through;
  opacity: 0.6;
}
.product-price {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-price .price-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.product-price .won {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.product-price .product-discount {
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
/* 절약 금액 — pill chip */
.product-saving {
  display: inline-flex;
  align-items: center;
  background: rgba(224,112,0,0.10);
  color: #E07000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  width: fit-content;
  margin-top: 2px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  display: none;
}
.empty-state.visible { display: block; }

/* ───── ACCESSORIES ───── */
.accessories {
  background: white;
  padding: 32px 0 48px;
  margin-bottom: 64px;
}
.acc-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header { margin-bottom: 20px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.02em;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.acc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.acc-card:hover {
  background: white;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.acc-emoji { font-size: 36px; line-height: 1; }
.acc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.acc-price {
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
}
.acc-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ───── TIP ───── */
.tip-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.tip-box {
  background: linear-gradient(135deg, rgba(226,75,74,0.06) 0%, rgba(226,75,74,0.02) 100%);
  border: 1.5px solid rgba(226,75,74,0.18);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.tip-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tip-content-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.tip-content-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* ───── EMAIL ───── */
.email-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.email-box {
  background: var(--text);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.email-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.email-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  color: white;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-weight: 400;
  line-height: 1.15;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.email-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.6;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 300px;
}
.email-input-wrap {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.email-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-right: none;
  color: white;
  font-size: 14px;
  outline: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-family: inherit;
}
.email-input::placeholder { color: rgba(255,255,255,0.3); }
.email-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.email-btn {
  padding: 14px 22px;
  background: var(--red);
  color: white;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background var(--transition);
}
.email-btn:hover { background: var(--red-dark); }
.email-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.email-msg {
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
}
.email-msg.success { color: #4CAF50; }
.email-msg.error   { color: #FF6B6B; }

/* ───── RELATED ───── */
.related-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.related-card {
  padding: 20px 22px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.related-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(226,75,74,0.12);
  transform: translateX(3px);
}
.related-emoji { font-size: 32px; flex-shrink: 0; }
.related-info { flex: 1; }
.related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.related-count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.related-arrow {
  color: var(--text-light);
  font-size: 18px;
  transition: all var(--transition);
}
.related-card:hover .related-arrow { color: var(--red); transform: translateX(3px); }

/* ───── HOME (index.php) ───── */
.home-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}
.home-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--text);
}
.home-logo span { color: var(--red); }
.home-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.home-desc {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.home-grid-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.home-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.home-card-emoji {
  font-size: 48px;
  text-align: center;
  padding: 16px 0;
  line-height: 1;
}
.home-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.home-card-count {
  font-size: 12px;
  color: var(--text-light);
}
.home-card-updated {
  font-size: 11px;
  color: var(--text-light);
}
.home-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}

.home-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.home-empty-icon { font-size: 48px; margin-bottom: 12px; }
.home-empty-text { font-size: 16px; }

@media (max-width: 1024px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 40px 24px 24px; }
}

/* ───── FOOTER ───── */
.footer {
  background: var(--text);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: white;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--red); }
.footer-text {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ───── BACK TO TOP ───── */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--red); }

/* ───── TOAST ───── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  z-index: 300;
  white-space: nowrap;
  transition: all var(--transition);
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ───── MOBILE DRAWER ───── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-menu.open { pointer-events: all; }
.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open .mobile-overlay { opacity: 1; }
.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  font-size: 16px;
  margin-bottom: 24px;
}
.mobile-links li { margin-bottom: 4px; }
.mobile-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 4px;
  margin-bottom: 2px !important;
  list-style: none;
}
/* Accordion (parent category 단위로 접고 펼침) */
.mobile-accordion {
  list-style: none;
  margin: 4px 0 !important;
  border-top: 1px solid var(--border);
}
.mobile-links .mobile-section-title + .mobile-accordion,
.mobile-links li.mobile-accordion:first-child {
  border-top: none;
}
.mobile-accordion-details {
  width: 100%;
}
.mobile-accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.mobile-accordion-summary::-webkit-details-marker { display: none; }
.mobile-accordion-summary::marker { content: ''; }
.mobile-accordion-summary:hover,
.mobile-accordion-summary:active { background: white; }
.mobile-accordion-label {
  flex: 1;
  min-width: 0;
}
.mobile-accordion-caret {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.mobile-accordion-details[open] .mobile-accordion-caret {
  transform: rotate(180deg);
}
.mobile-accordion-panel {
  padding: 2px 0 8px;
  margin: 0;
  list-style: none;
}
.mobile-accordion-panel li { margin-bottom: 2px; }
.mobile-links .mobile-sub-link {
  padding-left: 28px !important;
  font-weight: 500;
}
.mobile-links a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.mobile-links a:hover { background: white; }

/* ───── ANIMATIONS ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — breakpoints: 1024 / 767 / 480 / 375
   ───────────────────────────────────────── */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .acc-grid      { grid-template-columns: repeat(3, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
  .email-box     { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .hero--compact { padding: 20px 24px 28px; gap: 24px; }
  .hero--compact .hero-video-wrap { max-height: 280px; }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
  /* nav */
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-chip { display: none; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .logo { font-size: 26px; }

  /* hero */
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px; }
  .hero-title { font-size: clamp(32px, 8vw, 44px); }
  .hero-text { gap: 14px; }
  .hero-desc { font-size: 15px; }
  .hero-eyebrow { font-size: 11px; padding: 5px 12px; }

  /* hero compact (페이지 하단) — 1열 스택 */
  .hero--compact {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 16px 24px;
    margin-top: 16px;
  }
  .hero--compact .hero-video-wrap { max-height: none; aspect-ratio: 16 / 9; }
  .hero--compact .hero-title { font-size: clamp(24px, 6.5vw, 32px); }

  /* 공정위 고지 배너 */
  .disclosure-banner { margin-top: 12px; padding: 0 16px; }
  .disclosure-inner { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  .disclosure-text { font-size: 13px; text-align: left; line-height: 1.45; }

  /* filter — 2단 */
  .filter-section--two-tier { padding: 14px 16px 0; gap: 6px; }
  .filter-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .filter-row-label { width: auto; font-size: 12px; }
  .filter-section--two-tier .filter-bar { gap: 6px; padding-bottom: 6px; }
  .filter-section--two-tier .filter-btn {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13px;
  }
  .filter-section-title { font-size: 12px; margin-bottom: 4px; }

  /* filter — legacy */
  .filter-section { padding: 0 16px 24px; }
  .filter-btn { min-height: 40px; padding: 10px 16px; font-size: 13px; }

  /* products grid */
  .products-section { padding: 16px 16px 36px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; gap: 5px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 16px; }
  .product-price .product-discount { font-size: 14px; }
  .product-original-price { font-size: 11px; }
  .product-popular {
    top: 8px; left: 8px;
    font-size: 10px !important;
    padding: 4px 9px;
  }
  .product-emoji-wrap .product-badge { top: 8px; right: 8px; }

  /* accessories */
  .accessories { padding: 28px 0 36px; margin-bottom: 48px; }
  .acc-inner { padding: 0 16px; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .acc-card { padding: 18px 12px; gap: 8px; }
  .acc-emoji { font-size: 30px; }
  .acc-name { font-size: 12px; }
  .section-header { margin-bottom: 16px; }
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .section-label { font-size: 10px; letter-spacing: 0.12em; }

  /* tip */
  .tip-section { padding: 0 16px 40px; }
  .tip-box { padding: 20px; gap: 14px; border-radius: var(--radius-lg); }
  .tip-icon { width: 40px; height: 40px; font-size: 18px; }
  .tip-content-text { font-size: 14px; line-height: 1.6; }

  /* email */
  .email-section { padding: 0 16px 56px; }
  .email-box { padding: 32px 24px; gap: 24px; border-radius: var(--radius-lg); }
  .email-title { font-size: clamp(24px, 6.5vw, 32px); }
  .email-desc { font-size: 13px; }
  .email-form { min-width: auto; }
  .email-input-wrap { flex-direction: column; overflow: visible; gap: 8px; }
  .email-input {
    border-right: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    min-height: 48px;
    font-size: 15px;
  }
  .email-btn {
    border-radius: var(--radius-md);
    min-height: 48px;
    font-size: 15px;
  }

  /* related */
  .related-section { padding: 0 16px 56px; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .related-card { padding: 16px 18px; gap: 12px; }
  .related-emoji { font-size: 28px; }
  .related-title { font-size: 14px; }

  /* home (index.php) */
  .home-hero { padding: 40px 16px 20px; }
  .home-grid-section { padding: 20px 16px 56px; }
  .home-card { padding: 22px 18px; }
  .home-card-emoji { font-size: 40px; padding: 8px 0; }
  .home-card-title { font-size: 22px; }

  /* footer */
  .footer { padding: 32px 16px; }
  .footer-logo { font-size: 24px; margin-bottom: 12px; }

  /* back-to-top */
  .back-top {
    bottom: 16px; right: 16px;
    width: 44px; height: 44px;
  }

  /* gallery — 모바일에선 dots/arrows 약간 축소 */
  .gallery-arrow { width: 32px; height: 32px; font-size: 18px; }
  .gallery-dots { bottom: 8px; padding: 3px 7px; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .products-grid { gap: 10px; }
  .product-emoji { font-size: 44px; }

  /* 더 단단하게 */
  .hero { padding: 24px 14px; }
  .hero--compact { padding: 12px 14px 20px; }
  .home-hero { padding: 32px 14px 16px; }
  .home-grid-section { padding: 16px 14px 48px; }
  .home-grid { gap: 14px; }

  /* tip */
  .tip-box { padding: 18px; flex-direction: column; gap: 12px; }
  .tip-icon { width: 36px; height: 36px; font-size: 16px; }

  /* email */
  .email-box { padding: 28px 20px; }
}

/* ── Extra small (≤375px) — iPhone SE 등 ── */
@media (max-width: 375px) {
  .nav-inner { padding: 0 12px; }
  .logo { font-size: 23px; }
  .products-grid { gap: 8px; }
  .product-body { padding: 10px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 15px; }
  .acc-grid { gap: 8px; }
  .acc-card { padding: 14px 10px; }
  .filter-section--two-tier .filter-btn { padding: 8px 14px; font-size: 12px; }
  .disclosure-text { font-size: 12px; }
}

/* ───── v6: 심리 UI 추가 스타일 ───── */

/* 스티키 필터 — 제거 (사용자 거슬려서 따라다니지 않게) */

/* 카드 필터 전환 애니메이션 */
.product-card:not(.hidden) {
  animation: cardReveal 0.2s ease both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* 카운트 숫자 팝 */
@keyframes countPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); color: var(--red); }
  100% { transform: scale(1); }
}
.count-pop { animation: countPop 0.3s ease; display: inline-block; }

/* 빈 상태 (재설계) */
.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  display: none;
}
.empty-state.visible { display: block; }
.empty-icon  { font-size: 40px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.empty-btn   {
  display: inline-block;
  background: var(--text);
  color: white;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background 0.22s ease;
}
.empty-btn:hover { background: var(--red); }

/* 이메일 성공 메시지 */
.email-success-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4CAF50;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 18px;
  background: rgba(76,175,80,0.10);
  border: 1.5px solid rgba(76,175,80,0.25);
  border-radius: var(--radius-md);
  animation: fadeIn 0.3s ease;
}

/* 엔드리스 스크롤 신호 — 액세서리 섹션 진입부 그라데이션 */
/* .accessories::before 제거 — 페이지 상단 흰색 바 원인 */
