/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e12;
  --surface: #18181f;
  --surface2: #22222c;
  --border: rgba(255,255,255,0.08);
  --accent: #d4a574;
  --accent2: #e8c9a0;
  --text: #f0ece4;
  --text-muted: #8a8490;
  --card-radius: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,165,116,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(83,52,131,0.3) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #f0ece4, #d4a574, #e8c9a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(240,236,228,0.7);
  font-weight: 300;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text);
}

.update-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Loading ===== */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.empty-state p { font-size: 0.95rem; }

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===== Product Card ===== */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(212,165,116,0.2);
  border-color: rgba(212,165,116,0.25);
}

/* 썸네일 / 영상 */
.card-media {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--surface2);
  overflow: hidden;
  max-height: 320px;
}

.card-media video,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface2), #2a2a38);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(212,165,116,0.9);
  backdrop-filter: blur(8px);
  color: #1a0a2e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* 카드 본문 */
.card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 구매 버튼 */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1a0a2e;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn-buy:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.btn-buy:active { transform: scale(0.98); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-sub {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .card-media { max-height: 60vw; }
}
