/* =============================================
   VOIDMARKET — Dark Mystic Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg-void:       #0E0E1A;
  --bg-midnight:   #1A1A2E;
  --bg-deep:       #26215C;
  --purple:        #7F77DD;
  --purple-hover:  #534AB7;
  --purple-light:  #AFA9EC;
  --purple-pale:   #EEEDFE;
  --gold:          #EF9F27;
  --gold-hover:    #BA7517;
  --teal:          #1D9E75;
  --text-primary:  #E8E6FF;
  --text-secondary:#AFA9EC;
  --text-muted:    #55546A;
  --border:        #3C3C4A;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-pill:   999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(20px, 3vw, 30px); line-height: 1.3; }
h3 { font-size: 18px; }
p { color: var(--text-secondary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: none; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--purple); color: var(--purple-pale); }
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 0.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--purple-light); color: var(--text-primary); }
.btn-gold { background: var(--gold); color: #412402; font-weight: 600; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,26,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar__logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); }
.navbar__logo span { color: var(--purple); }
.navbar__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.navbar__links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.navbar__links a:hover, .navbar__links a.active { color: var(--text-primary); }
.navbar__right { display: flex; align-items: center; gap: 12px; }
.navbar__search {
  background: var(--bg-midnight); border: 0.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 14px;
  color: var(--text-primary); font-size: 13px; font-family: var(--font-body);
  width: 180px; outline: none; transition: border-color 0.2s;
}
.navbar__search::placeholder { color: var(--text-muted); }
.navbar__search:focus { border-color: var(--purple); }
.navbar__hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; padding: 4px; }

/* HERO */
.hero {
  background: var(--bg-void); padding: 96px 32px 80px;
  text-align: center; border-bottom: 0.5px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,119,221,0.07) 0%, transparent 68%);
  pointer-events: none;
}
.hero__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); margin-bottom: 18px; display: block; }
.hero__title { font-family: var(--font-display); font-size: clamp(32px, 6vw, 58px); font-weight: 700; line-height: 1.1; color: var(--text-primary); margin-bottom: 18px; letter-spacing: -0.02em; }
.hero__title em { color: var(--purple); font-style: normal; }
.hero__sub { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 520px; margin: 0 auto 32px; }
.hero__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 13px; border-radius: var(--radius-pill);
  border: 0.5px solid var(--border); color: var(--text-muted); transition: all 0.2s;
}
.hero__tag:hover, .hero__tag.active { border-color: var(--purple); color: var(--text-secondary); }

/* TRUST BAR */
.trust-bar {
  background: var(--bg-void); border-bottom: 0.5px solid var(--border);
  padding: 16px 32px; display: flex; gap: 36px; justify-content: center; flex-wrap: wrap;
}
.trust-bar__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.trust-bar__item svg { color: var(--purple); width: 15px; height: 15px; flex-shrink: 0; }

/* FEATURED BANNER */
.featured-banner {
  background: var(--bg-midnight); border-top: 2px solid var(--purple);
  border-bottom: 0.5px solid var(--border); padding: 24px 32px;
}
.featured-banner__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.featured-banner__badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--bg-deep); color: var(--purple-light); padding: 3px 10px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.featured-banner__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.featured-banner__desc { font-size: 13px; color: var(--text-secondary); max-width: 460px; }
.featured-banner__right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.featured-banner__amount { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold); }
.featured-banner__per { font-size: 12px; color: var(--text-muted); }

/* NICHE HUB */
.niche-hub { background: var(--bg-void); padding: 28px 32px; border-bottom: 0.5px solid var(--border); }
.niche-hub__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.niche-card { background: var(--bg-midnight); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; transition: all 0.2s; cursor: pointer; display: block; }
.niche-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.niche-card__icon { font-size: 28px; margin-bottom: 10px; }
.niche-card__name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.niche-card__count { font-size: 12px; color: var(--text-muted); }

/* FILTER BAR */
.filter-bar { background: var(--bg-midnight); border-bottom: 0.5px solid var(--border); padding: 14px 32px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar__label { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.filter-pill { font-size: 12px; padding: 5px 14px; border-radius: var(--radius-pill); border: 0.5px solid var(--border); color: var(--text-secondary); background: transparent; font-family: var(--font-body); transition: all 0.2s; cursor: pointer; }
.filter-pill:hover { border-color: var(--purple-light); color: var(--text-primary); }
.filter-pill.active { background: var(--purple); color: var(--purple-pale); border-color: var(--purple); }

/* PRODUCTS GRID */
.products-section { background: var(--bg-void); padding: 40px 32px 64px; }
.products-section__header { max-width: 1200px; margin: 0 auto 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.products-section__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-primary); }
.products-section__count { font-size: 13px; color: var(--text-muted); }
.products-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

.product-card { background: var(--bg-midnight); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column; position: relative; }
.product-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.product-card.featured { border-color: var(--purple); border-width: 1.5px; }
.product-card__badge { position: absolute; top: 0; left: 0; z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 10px; border-radius: 0 0 var(--radius-sm) 0; }
.badge--bestseller { background: var(--purple); color: var(--purple-pale); }
.badge--new { background: var(--teal); color: #E1F5EE; }
.badge--hot { background: var(--gold); color: #412402; }

.product-card__img { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.product-card__img--purple { background: #26215C; }
.product-card__img--gold   { background: #2A1D00; }
.product-card__img--teal   { background: #04342C; }
.product-card__img--grey   { background: #141420; border-bottom: 0.5px solid var(--border); }

.product-card__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card__niche { font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 5px; }
.niche--stock      { color: var(--gold); }
.niche--conspiracy { color: var(--purple); }
.niche--plant      { color: var(--teal); }
.niche--stoic      { color: var(--purple-light); }

.product-card__title { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; }
.product-card__desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--gold); }

/* NEWSLETTER */
.newsletter { background: var(--bg-midnight); border-top: 0.5px solid var(--border); padding: 72px 32px; text-align: center; }
.newsletter__icon { font-size: 38px; color: var(--purple); margin-bottom: 14px; }
.newsletter__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.newsletter__sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.newsletter__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.newsletter__input { flex: 1; min-width: 200px; background: var(--bg-void); border: 0.5px solid var(--border); border-radius: var(--radius-pill); padding: 11px 18px; font-size: 14px; color: var(--text-primary); font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__input:focus { border-color: var(--purple); }
.newsletter__fine { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* FOOTER */
.footer { background: var(--bg-void); border-top: 0.5px solid var(--border); padding: 32px; }
.footer__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__logo { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.footer__logo span { color: var(--purple); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--text-secondary); }
.footer__social { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-midnight); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 15px; transition: all 0.2s; text-decoration: none; }
.social-btn:hover { border-color: var(--purple); color: var(--purple); }
.footer__copy { width: 100%; text-align: center; font-size: 12px; color: var(--text-muted); padding-top: 20px; border-top: 0.5px solid var(--border); margin-top: 16px; }

/* CART TOAST */
.cart-toast { position: fixed; bottom: 24px; right: 24px; z-index: 999; background: var(--bg-midnight); border: 0.5px solid var(--purple); border-radius: var(--radius-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-primary); transform: translateY(80px); opacity: 0; transition: all 0.3s ease; pointer-events: none; }
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* FADE IN ANIMATION */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }
.fade-in:nth-child(6) { animation-delay: 0.40s; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__search { display: none; }
  .navbar__hamburger { display: block; }
  .navbar__links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-void); border-bottom: 0.5px solid var(--border); padding: 20px 32px; gap: 18px; z-index: 99; }
  .hero { padding: 60px 20px 50px; }
  .featured-banner__inner { flex-direction: column; align-items: flex-start; }
  .featured-banner__right { width: 100%; justify-content: space-between; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .hero__btns { flex-direction: column; align-items: center; }
  .newsletter__form { flex-direction: column; }
}
