/* =====================
   CSS RESET & BASE
   ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --border: rgba(0, 255, 255, 0.15);
  --border-hover: rgba(0, 255, 255, 0.4);
  --cyan: #00f0ff;
  --cyan-dim: #00a8b5;
  --purple: #b44aff;
  --green: #00ff88;
  --red: #ff3366;
  --yellow: #ffdd00;
  --text: #e0e0e0;
  --text-dim: #8888aa;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =====================
   SCANLINES OVERLAY
   ===================== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
}

.logo-text span {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dim);
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dim);
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--cyan);
  top: -200px;
  right: -100px;
  animation: pulse-glow 6s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: -100px;
  left: -100px;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--cyan);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
  background: rgba(0, 240, 255, 0.05);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border-hover);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =====================
   SECTIONS
   ===================== */
.section {
  padding: 80px 24px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* =====================
   CATEGORIES
   ===================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.cat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.cat-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.cat-info {
  flex: 1;
}

.cat-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cat-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cat-arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.cat-card:hover .cat-arrow {
  transform: translateX(4px);
  color: var(--cyan);
}

/* =====================
   FILTER BAR
   ===================== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}

.filter:hover,
.filter.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* =====================
   PRODUCTS GRID
   ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 4px;
  background: var(--cyan);
  color: var(--bg-dark);
  z-index: 1;
}

.product-badge.hot {
  background: var(--red);
  color: #fff;
}

.product-img {
  height: 220px;
  overflow: hidden;
  background: #0d0d14;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: 18px;
}

.product-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}

.product-rating {
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 14px;
}

.product-rating span {
  color: var(--text-dim);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

.price-old {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.add-cart {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.add-cart:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* =====================
   LOAD MORE
   ===================== */
.load-more {
  text-align: center;
  margin-top: 48px;
}

/* =====================
   DEALS BANNER
   ===================== */
.deals {
  padding: 60px 0;
}

.deal-banner {
  position: relative;
  background: linear-gradient(135deg, #12121a 0%, #1a0a25 100%);
  border: 1px solid var(--purple);
  border-radius: 20px;
  padding: 60px;
  overflow: hidden;
}

.deal-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(180, 74, 255, 0.1) 0%, transparent 50%),
    linear-gradient(225deg, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.deal-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--purple);
  filter: blur(150px);
  opacity: 0.2;
  top: -100px;
  right: -50px;
  border-radius: 50%;
}

.deal-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.deal-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--purple);
  padding: 6px 16px;
  border: 1px solid rgba(180, 74, 255, 0.4);
  border-radius: 4px;
  margin-bottom: 20px;
}

.deal-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.deal-banner p {
  color: var(--text-dim);
  margin-bottom: 32px;
}

.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.time-block {
  text-align: center;
}

.time-val {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan);
}

.time-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================
   NEWSLETTER
   ===================== */
.newsletter .container {
  max-width: 700px;
}

.nl-box {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.nl-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--cyan);
  filter: blur(180px);
  opacity: 0.1;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.nl-box h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.nl-box p {
  color: var(--text-dim);
  margin-bottom: 28px;
  position: relative;
}

.nl-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.nl-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.nl-form input:focus {
  border-color: var(--cyan);
}

.nl-form input::placeholder {
  color: var(--text-dim);
}

.nl-success {
  color: var(--green);
  font-weight: 600;
  padding: 14px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 12px 0 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-payments {
  display: flex;
  gap: 8px;
}

.footer-payments span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .deal-banner {
    padding: 40px 24px;
  }

  .countdown {
    gap: 10px;
  }

  .time-val {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nl-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
