:root {
  --bg: #080810;
  --surface: #0f0f1a;
  --surface2: #13131f;
  --border: #1e1e35;
  --text: #e8e8f0;
  --muted: #6b6b8a;
  --accent: #00d4aa;
  --accent2: #00b894;
  --accent-glow: rgba(0, 212, 170, 0.12);

  /* Category colors */
  --beauty: #ff6b9d;
  --wellness: #a29bfe;
  --tech: #74b9ff;
  --pets: #ffeaa7;
  --home: #55efc4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: #fff;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-cats {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-cats a {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-cats a:hover, .nav-cats a.active { color: var(--accent); background: var(--accent-glow); }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-count {
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* HERO (homepage) */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(0,212,170,0.07), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 60px 60px;
  opacity: 0.6;
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #8080b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: #9090b0;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* CATEGORY GRID (homepage) */
.cats-section { padding: 80px 0; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 48px;
  background: linear-gradient(135deg, #fff 0%, #8080b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  background: var(--border);
}
.cat-card {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-card:hover { background: var(--surface2); }
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color);
}
.cat-emoji { font-size: 32px; margin-bottom: 4px; }
.cat-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--cat-color);
}
.cat-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cat-count {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: auto;
}
.cat-arrow {
  position: absolute;
  bottom: 20px; right: 20px;
  font-size: 20px;
  color: var(--cat-color);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(4px); }

/* PRODUCT PAGE HERO */
.page-hero {
  padding: 100px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 80% at 90% 50%, var(--cat-glow, rgba(0,212,170,0.08)), transparent 70%);
  pointer-events: none;
}
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--cat-accent);
}
.page-subtitle { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 400px; line-height: 1.6; }
.page-stats { display: flex; gap: 32px; flex-shrink: 0; }
.page-stat .val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--cat-accent);
}
.page-stat .lbl { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; letter-spacing: 1px; }

/* PRODUCT GRID */
.products-section { padding: 64px 0 100px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
}
.product-card {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.product-card:hover { background: var(--surface2); }
.product-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--surface2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.product-img span {
  display: none;
}
.product-img.no-photo {
  align-items: center;
  justify-content: center;
}
.product-img.no-photo span {
  display: block;
  font-size: 64px;
}
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-glow, transparent), transparent 60%);
}
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cat-accent);
  color: #000;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  text-transform: uppercase;
  z-index: 1;
}
.product-body { padding: 20px; }
.product-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.product-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.price-current {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--cat-accent);
}
.price-compare {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-margin {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: #00d4aa;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  padding: 2px 6px;
  margin-left: auto;
}
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.meta-chip {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
}
.btn-add {
  width: 100%;
  background: var(--cat-accent);
  color: #000;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}
.btn-add:hover { opacity: 0.85; }
.btn-add.added { background: #00d4aa; }

/* CART DRAWER */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; }
.cart-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { text-align: center; color: var(--muted); font-size: 13px; margin-top: 60px; }
.cart-item {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.cart-item-emoji { font-size: 28px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 12px; color: var(--accent); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-num { font-size: 13px; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--muted); background: none; border: none; cursor: pointer; font-size: 16px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-label { font-size: 13px; color: var(--muted); }
.cart-total-val { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--accent); }
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-checkout:hover { opacity: 0.85; }

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero { padding: 90px 16px 60px; }
  .nav-cats { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cart-drawer { width: 100vw; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
