:root {
  --bg: #212121;
  --bg-deep: #111111;
  --text: #ffffff;
  --muted: #cccccc;
  --line: #333333;
  --accent: #00d4ff;
  --accent-2: #9100ff;
  --card: #111111;
  --radius: 12px;
  --page: 1200px;
  --shadow: 10px 10px 35px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(var(--page), calc(100% - 40px)); margin: 0 auto; }
.announcement {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(33, 33, 33, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner { padding: 20px 0 10px; }
.logo {
  display: block;
  width: min(300px, 70%);
  margin: 0 auto 16px;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-links, .nav-tools { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.icon-btn {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  position: relative;
  padding: 4px;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-2);
  color: #fff;
  border-radius: 20px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 48px 0 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #00d4ff, #ff3b3b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 34rem; }
.hero-media {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.hero-media img { width: 100%; height: min(520px, 62vw); object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: #212121;
  color: #fff;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.section { padding: 56px 0; }
.section h2, .page-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 28px; }
.grid-3, .grid-4, .product-grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4, .product-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}
.card:hover { transform: translateY(-6px); }
.product-card { padding: 0; overflow: hidden; text-align: center; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.product-card .meta { padding: 16px 16px 20px; }
.badge {
  display: inline-block;
  background: #000;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.price { font-weight: 600; margin-top: 6px; }

.why { background: #212121; }
.why .card { background: #111; }

.contact-band, .site-footer, .newsletter {
  background: #212121;
}
.contact-band { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--muted); display: block; margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.newsletter { padding: 44px 0 20px; text-align: center; }
.newsletter form, .search-form, .contact-form, .qty-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.newsletter input, .search-form input, .contact-form input, .contact-form textarea, .qty {
  background: #111;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  color: #fff;
  padding: 12px 14px;
}
.newsletter input, .search-form input { min-width: 260px; }
.contact-form { flex-direction: column; max-width: 640px; }
.contact-form textarea { min-height: 140px; resize: vertical; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 38%; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: #111;
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 60;
  padding: 24px;
  overflow: auto;
}
.drawer.open { transform: none; }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 40px 0; }

@media (max-width: 980px) {
  .hero, .product-layout, .grid-3, .grid-4, .product-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100%;
    background: #111;
    padding: 16px;
    border-radius: 12px;
  }
  .menu-toggle { display: block; }
}
