:root {
  --primary: #E8320A;
  --primary-dark: #C42A08;
  --bg: #F5F5F0;
  --card-bg: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #888;
  --rocket: #1B6CF2;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* 헤더 */
header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}
.header-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: 0.9;
}
.badge {
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
}

/* 배너 */
.top-banner {
  background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
  color: white;
  padding: 20px;
}
.top-banner-inner {
  max-width: 800px;
  margin: 0 auto;
}
.top-label {
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
  display: block;
  margin-bottom: 12px;
}
.top-product {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #444;
}
.top-info p:first-child {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#top-price {
  font-size: 18px;
  font-weight: 900;
  color: #FFD700;
  margin: 6px 0;
}
.top-info a {
  font-size: 12px;
  color: #FF6B6B;
  text-decoration: none;
  font-weight: 700;
}

/* 탭 */
.category-tabs {
  background: white;
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 61px;
  z-index: 99;
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background: #F0F0F0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}
.tab.active {
  background: var(--primary);
  color: white;
}

/* 상품 그리드 */
.product-grid {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

/* 상품 카드 */
.card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  cursor: pointer;
}
.card:hover { transform: translateY(-3px); }
.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f0f0f0;
}
.card-body { padding: 12px; }
.card-rank {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.card-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 36px;
}
.card-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.rocket-badge {
  background: var(--rocket);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.review-count {
  font-size: 11px;
  color: var(--text-muted);
}
.card-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.card-btn:hover { background: var(--primary-dark); }

/* 푸터 */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-name { font-size: 12px; }
}

/* 큐레이션 멘트 */
.curation-box {
  max-width: 800px;
  margin: 16px auto 0;
  padding: 0 16px;
}
.curation-comment {
  background: linear-gradient(135deg, #FFF8E7, #FFF3D0);
  border-left: 4px solid #FFB800;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #5A4A00;
  font-weight: 500;
}
.curation-label {
  font-size: 11px;
  font-weight: 900;
  color: #FFB800;
  margin-bottom: 6px;
}
