*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0505;
  --bg2: #180a0a;
  --accent: #e02020;
  --accent2: #ff4444;
  --text: #f4e8e8;
  --muted: #99787a;
  --card: #160c0c;
  --border: #2e1414;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; }

/* NAV */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: 24px; }
.logo { height: 32px; width: auto; border-radius: 50%; }
.brand { font-weight: 900; font-size: 1rem; letter-spacing: 1px; color: var(--text); }
.nav-link { text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.discord-btn { color: var(--muted); transition: color .2s; }
.discord-btn:hover { color: #5865F2; }

/* LANG SWITCHER */
.lang-switcher {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 6px 14px;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: .78rem; font-weight: 700; letter-spacing: 1px;
  color: var(--muted); padding: 0; transition: color .2s;
  font-family: 'Inter', sans-serif;
}
.lang-btn.active { color: var(--text); }
.lang-btn:hover { color: var(--text); }
.lang-sep { color: rgba(255,255,255,.2); font-size: .8rem; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(224,32,32,.12) 0%, transparent 70%);
}
.hero-sub { font-size: .7rem; letter-spacing: 4px; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.hero-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 900; letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 80px rgba(224,32,32,.4);
  margin-bottom: 28px;
}
.hero-desc { max-width: 520px; font-size: .95rem; line-height: 1.7; color: var(--muted); margin-bottom: 32px; }
.hero-desc strong { color: var(--text); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.badge {
  font-size: .65rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent2); border: 1px solid rgba(255,68,68,.3);
  background: rgba(224,32,32,.08); padding: 6px 14px; border-radius: 20px;
}
.cta-btn {
  display: inline-block; padding: 14px 36px;
  background: transparent; color: var(--text);
  border: 2px solid var(--accent); border-radius: 4px;
  font-size: .85rem; font-weight: 700; letter-spacing: 2px;
  text-decoration: none; text-transform: uppercase;
  transition: background .2s, box-shadow .2s;
}
.cta-btn:hover { background: rgba(61,90,254,.15); box-shadow: 0 0 24px rgba(61,90,254,.3); }

/* PRODUCTS */
.products-section { padding: 80px 40px; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: .75rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 48px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.loading { color: var(--muted); text-align: center; grid-column: 1/-1; padding: 40px; }
.error-msg { color: #e74c3c; text-align: center; grid-column: 1/-1; padding: 40px; }

/* CARD */
.product-card {
  background: #110808;
  border: 1px solid #2a1010;
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224,32,32,.6);
  box-shadow: 0 0 0 1px rgba(224,32,32,.25), 0 16px 48px rgba(224,32,32,.18);
}
.card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: #1a0808; display: block;
}
.card-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #1a0808 0%, #2e1010 100%);
  display: flex; align-items: center; justify-content: center;
}
.card-img-placeholder svg { opacity: .25; }

.card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; flex: 1;
  border-top: 1px solid #2a1010;
}
.card-name {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text); margin-bottom: 16px;
  letter-spacing: .3px;
}
.card-meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px;
}
.card-meta-col { display: flex; flex-direction: column; gap: 3px; }
.card-meta-label {
  font-size: .6rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.card-price {
  font-size: 1.25rem; font-weight: 900;
  color: var(--accent2);
}
.card-stock {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); text-align: right;
}
.card-btn {
  display: block; width: 100%; padding: 12px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  font-size: .85rem; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: background .2s, box-shadow .2s;
  margin-top: auto;
}
.card-btn:hover {
  background: var(--accent2);
  box-shadow: 0 0 20px rgba(224,32,32,.4);
}

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 32px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-img { width: 100%; border-radius: 6px; margin-bottom: 20px; max-height: 220px; object-fit: cover; }
.modal-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 12px; }
.modal-desc { font-size: .9rem; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.modal-variants { margin-bottom: 24px; }
.modal-variants h4 { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.variant-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background .2s;
}
.variant-option:hover, .variant-option.selected { border-color: var(--accent); background: rgba(224,32,32,.08); }
.variant-name { font-size: .9rem; font-weight: 600; }
.variant-price { font-size: .9rem; font-weight: 700; color: var(--accent2); }
.variant-stock { font-size: .7rem; color: var(--muted); }
.modal-buy-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--accent); color: #fff; border: none; border-radius: 6px;
  font-size: .9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background .2s, box-shadow .2s;
  text-decoration: none; text-align: center;
}
.modal-buy-btn:hover { background: var(--accent2); box-shadow: 0 0 24px rgba(224,32,32,.35); }
.modal-buy-btn:disabled { opacity: .4; cursor: not-allowed; }

/* FOOTER */
.footer { text-align: center; padding: 32px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); }

@media (max-width: 600px) {
  .navbar { padding: 14px 20px; }
  .products-section { padding: 60px 20px; }
  .hero-title { font-size: 3rem; }
}
