* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

:root {
  --bg: #0f0f17;
  --bg-soft: #181827;
  --text: #ffffff;
  --muted: #cfcfff;
  --accent1: #a855f7;
  --accent2: #6366f1;
  --border-soft: rgba(255,255,255,0.06);
}

body {
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #020617 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* DARK/LIGHT MODE */
body.light {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border-soft: rgba(15,23,42,0.08);
  background: #f5f5f7;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 30, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
}

body.light .header {
  background: rgba(255,255,255,0.9);
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
}

nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.25s;
}

nav a:hover {
  color: var(--accent1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* HERO */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 16px 60px;
}

.hero {
  text-align: center;
  padding: 40px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(99,102,241,0.25), transparent 55%),
              radial-gradient(circle at top right, rgba(168,85,247,0.25), transparent 55%),
              var(--bg-soft);
  box-shadow: 0 20px 60px rgba(15,23,42,0.6);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary.full {
  width: 100%;
}

/* SECTIONS */
.section {
  margin-top: 32px;
  padding: 26px 20px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 40px rgba(15,23,42,0.4);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 20px;
}

/* PRODUCTS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  background: #111827;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(15,23,42,0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.25s;
}

body.light .product-card {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(99,102,241,0.35);
}

.product-image {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #020617;
}

body.light .product-image {
  background-color: #e5e7eb;
}

.product-name {
  font-weight: 600;
  font-size: 1rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.product-price {
  font-weight: 700;
}

.product-category {
  color: var(--muted);
  font-size: 0.8rem;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-outline {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent2);
  background: transparent;
  color: var(--accent2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.25s;
}

.btn-outline:hover {
  background: rgba(99,102,241,0.1);
}

/* FAQ */
.faq-item {
  margin-top: 12px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--accent1);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CART PANEL */
.cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100vh;
  background: var(--bg-soft);
  border-left: 1px solid var(--border-soft);
  box-shadow: -10px 0 40px rgba(15,23,42,0.7);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  transition: 0.3s;
}

.cart-panel.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 500;
}

.cart-item-qty {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item-price {
  font-weight: 600;
}

.cart-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

.cart-total {
  margin-bottom: 8px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 150;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }
  nav {
    display: none;
  }
  main {
    padding: 90px 12px 40px;
  }
  .hero {
    padding: 28px 18px;
  }
  .cart-panel {
    width: 100%;
  }
}
.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 16px 60px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 26px;
}

.product-gallery {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--border-soft);
}

.product-main-image {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #020617;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.product-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
}

.product-thumb.active {
  border-color: var(--accent2);
  opacity: 1;
}

.product-info {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border-soft);
}

.product-price-stock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 10px;
}

.product-price-big {
  font-size: 1.6rem;
  font-weight: 700;
}

.product-stock {
  font-size: 0.9rem;
  color: #22c55e;
}

.product-short {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.product-meta-block {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.product-details p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.product-features {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-reviews-item {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: 10px;
}

.product-reviews-item strong {
  font-size: 0.9rem;
}

.product-reviews-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-related .product-card {
  cursor: pointer;
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}
