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

:root {
  --bg: #090b10;
  --card: #11151d;
  --border: #242b38;
  --text: #f5f7fa;
  --muted: #929aaa;
  --accent: #7c5cff;
  --accent2: #a78bfa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 16, .92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent2);
  margin-left: 5px;
}

.cart-btn, .shop-btn, .checkout {
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 800;
  border-radius: 10px;
  padding: 12px 18px;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 8%;
  background:
    radial-gradient(circle at 75% 35%, rgba(124,92,255,.25), transparent 30%),
    radial-gradient(circle at 20% 70%, rgba(167,139,250,.10), transparent 25%);
}

.eyebrow {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  max-width: 800px;
}

.hero h1 span {
  color: var(--accent2);
}

.hero-text {
  color: var(--muted);
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  margin: 25px 0 30px;
}

.shop-btn {
  display: inline-block;
  text-decoration: none;
}

.shop {
  padding: 80px 8%;
  max-width: 1400px;
  margin: auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}

.section-head h2 {
  font-size: 38px;
}

select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}

.product:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.product-img {
  height: 230px;
  display: grid;
  place-items: center;
  font-size: 70px;
  background: linear-gradient(135deg, #171c27, #0d1016);
}

.product-info {
  padding: 18px;
}

.category {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product h3 {
  margin: 7px 0;
  font-size: 19px;
}

.price {
  font-size: 20px;
  font-weight: 900;
  margin: 14px 0;
}

.add {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--accent);
  background: transparent;
  color: white;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}

.add:hover {
  background: var(--accent);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 30;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-box {
  width: min(500px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  background: #10141c;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.remove {
  background: #252b35;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 6px 9px;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 19px;
}

.checkout {
  width: 100%;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 35px;
  border-top: 1px solid var(--border);
}

@media (max-width: 950px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  header {
    padding: 0 4%;
  }

  .logo {
    font-size: 15px;
  }

  .hero {
    min-height: 500px;
    padding: 60px 6%;
  }

  .shop {
    padding: 60px 6%;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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