/* ========================================================================
   KPOP ARCHIVES — Shared Styles
   Branding: Purple (#7B4FE0) + Pink (#E879A0) + Dark Ink (#1A1033)
   Typography: Nunito (single family, weight-driven hierarchy)
   ======================================================================== */

:root {
  /* Surfaces */
  --bg: #FDFCFF;
  --bg2: #F7F4FE;
  --bg3: #F0EBFD;
  --surface: #FFFFFF;
  --border: #E8E0F8;
  --border2: #D8CEFF;

  /* Ink */
  --ink: #1A1033;
  --ink2: #2D1F55;
  --muted: #6B5B8A;
  --subtle: #A095BE;

  /* Brand */
  --purple: #7B4FE0;
  --purple2: #9B72F5;
  --purple-light: #EDE5FF;
  --purple-dim: rgba(123, 79, 224, 0.08);
  --pink: #E879A0;
  --pink-light: #FFE8F3;
  --gold: #F0A500;
  --gold-light: #FFF8E6;
  --green: #22C55E;
  --green-light: #DCFCE7;
  --white: #FFFFFF;

  /* Radius */
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(123, 79, 224, 0.08);
  --shadow: 0 4px 24px rgba(123, 79, 224, 0.12);
  --shadow-lg: 0 12px 48px rgba(123, 79, 224, 0.18);

  /* Type */
  --font: 'Nunito', -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ===== TOPBAR (SALE banner) ===== */
.topbar {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: #fff;
  padding: 11px 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 14px,
    rgba(255, 255, 255, 0.06) 14px,
    rgba(255, 255, 255, 0.06) 28px
  );
  pointer-events: none;
}
.topbar strong { color: #FFE08A; font-weight: 900; }

/* ===== NAV ===== */
.nav {
  background: rgba(253, 252, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  gap: 10px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  user-select: none;
}
.nav-logo .lg-k {
  font-size: 20px;
  background: linear-gradient(135deg, #5B2FC0 0%, var(--purple) 40%, var(--purple2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}
.nav-logo .lg-a {
  font-size: 11px;
  color: var(--purple2);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-left: 5px;
  text-transform: uppercase;
  align-self: center;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cart {
  position: relative;
  background: var(--purple-light);
  border: none;
  color: var(--purple);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px 8px 12px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.nav-cart:hover { background: var(--border2); transform: translateY(-1px); }
.nav-cart svg { width: 16px; height: 16px; stroke: var(--purple); stroke-width: 2.4; fill: none; }
.nav-cart-badge {
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.nav-cart-badge.hidden { display: none; }

.nav-links {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
  margin: 0 -20px;
  padding: 0 8px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  padding: 9px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
  display: block;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 28px 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 2;
}
.footer strong { color: #B39DFF; }
.footer a {
  color: #B39DFF;
  transition: color 0.2s;
  font-weight: 700;
}
.footer a:hover { color: #fff; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(123, 79, 224, 0.25);
  transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(123, 79, 224, 0.35);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--purple);
  font-family: var(--font);
  font-weight: 900;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
}

/* ===== UTIL ===== */
.container { max-width: 960px; margin: 0 auto; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
