/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* === Variables === */
:root {
  --ink: #e2e8f0;
  --surface: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --yellow: #a78bfa;
  --muted: #94a3b8;
  --teal: #64ffda;
  --bg-start: #1a1a2e;
  --bg-end: #16213e;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

/* === Typography === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--muted); }

/* === Layout === */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.page-content {
  min-height: calc(100vh - 160px);
  padding-block: 3rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-block: 0.75rem;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.cart-btn {
  position: relative;
  font-size: 1.3rem;
  color: var(--ink);
  padding: 0.4rem;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--teal);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer a { color: var(--yellow); }

/* === Card === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(100,255,218,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 2.5rem;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.card-body .price {
  color: var(--teal);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--yellow);
  color: #1a1a2e;
}

.btn-primary:hover {
  background: #c4a8ff;
}

.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.btn-secondary:hover {
  background: var(--yellow);
  color: #1a1a2e;
}

.btn-teal {
  background: var(--teal);
  color: #1a1a2e;
}

.btn-teal:hover {
  background: #8affea;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero h1 span {
  background: linear-gradient(135deg, var(--yellow), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Section === */
.section {
  padding-block: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title p {
  margin-top: 0.5rem;
}

/* === Shop Layout === */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.filter-sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
  font-size: 0.95rem;
}

.filter-option:hover,
.filter-option.active {
  color: var(--yellow);
}

.filter-option input[type="radio"] {
  accent-color: var(--yellow);
}

/* === Product Detail === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(100,255,218,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--yellow);
}

.product-info h1 { margin-bottom: 0.5rem; }

.product-info .price {
  font-size: 1.75rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-info .description {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qty-control button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control span {
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

/* === Cart === */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--yellow);
}

.cart-summary {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.cart-summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-width: 320px;
}

.cart-summary-box .row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.cart-summary-box .total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-summary-box .total span:last-child {
  color: var(--teal);
}

.empty-cart {
  text-align: center;
  padding: 4rem 0;
}

.empty-cart i {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 1rem;
}

/* === About / Contact === */
.about-hero,
.contact-hero {
  text-align: center;
  padding-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.value-card i {
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--teal));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1a1a2e;
  font-weight: 700;
}

.team-card h3 { margin-bottom: 0.25rem; }
.team-card .role { color: var(--yellow); font-size: 0.875rem; margin-bottom: 0.5rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-card i {
  font-size: 1.5rem;
  color: var(--yellow);
  margin-top: 0.15rem;
}

.info-card h4 { margin-bottom: 0.25rem; }

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: var(--ink); }

/* === Related Products === */
.related { margin-top: 4rem; }

/* === Mobile Nav === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg-start);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 200;
  }

  .nav-links.open { right: 0; }

  .hamburger { display: flex; z-index: 300; }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .cart-table { font-size: 0.85rem; }
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) { display: none; }

  .cart-summary { justify-content: center; }
  .cart-summary-box { min-width: 100%; }

  .hero { padding: 3rem 0 2rem; }
}

@media (max-width: 500px) {
  .grid-3,
  .grid-4,
  .grid-2 { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) { display: none; }
}

/* === Nav overlay === */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

.nav-overlay.open { display: block; }

/* === Utilities === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
