/* ==========================================================================
   TechShop - Design System
   Dark mode / neon cyan + emerald / glassmorphism / futuristic
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #04070d;
  --bg-elev:       #080d16;
  --surface:       rgba(13, 20, 33, 0.72);
  --surface-solid: #0d1421;
  --surface-hover: rgba(20, 31, 50, 0.85);

  /* Lines */
  --border:        rgba(34, 211, 238, 0.13);
  --border-strong: rgba(34, 211, 238, 0.32);

  /* Accents */
  --cyan:    #22d3ee;
  --cyan-2:  #06b6d4;
  --emerald: #10b981;
  --emerald-2: #059669;
  --violet:  #8b5cf6;
  --amber:   #f59e0b;
  --rose:    #f43f5e;

  /* Text */
  --text:  #e8f2ff;
  --muted: #8ba3bf;
  --dim:   #5b7691;

  /* Effects */
  --glow-cyan:    0 0 24px rgba(34, 211, 238, 0.35);
  --glow-emerald: 0 0 24px rgba(16, 185, 129, 0.32);
  --shadow:       0 18px 50px -12px rgba(0, 0, 0, 0.85);

  /* Geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Ambient background: two neon orbs + fine grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(820px 520px at 92% 4%, rgba(16, 185, 129, 0.13), transparent 62%),
    radial-gradient(700px 600px at 50% 110%, rgba(139, 92, 246, 0.10), transparent 65%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: rgba(34, 211, 238, 0.3); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-elev); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.4), rgba(16, 185, 129, 0.4));
  border-radius: 99px;
  border: 2px solid var(--bg-elev);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--cyan), var(--emerald)); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: min(1280px, 100% - 44px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800; line-height: 1.15; margin: 0;
  letter-spacing: -0.03em;
}
.section-sub { color: var(--muted); margin: 10px 0 0; max-width: 62ch; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--emerald) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 30px;
  width: min(1280px, 100% - 44px); margin-inline: auto;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--cyan), var(--emerald));
  color: #03131a; font-weight: 900; font-size: 17px;
  box-shadow: var(--glow-cyan);
  flex: none;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: 14px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(34, 211, 238, 0.07); }
.nav-links a.active { color: var(--cyan); background: rgba(34, 211, 238, 0.1); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-search {
  position: relative; display: flex; align-items: center;
}
.nav-search input {
  width: 210px; padding: 10px 14px 10px 38px;
  background: rgba(13, 20, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: 99px; font-size: 13.5px; outline: none;
  transition: all 0.25s var(--ease);
}
.nav-search input:focus {
  width: 290px; border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}
.nav-search svg { position: absolute; left: 13px; opacity: 0.55; pointer-events: none; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(13, 20, 33, 0.85);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.22s var(--ease);
  flex: none;
}
.icon-btn:hover {
  border-color: var(--border-strong); color: var(--cyan);
  box-shadow: var(--glow-cyan); transform: translateY(-1px);
}

.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(140deg, var(--cyan), var(--emerald));
  color: #03131a; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 650; font-size: 14px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.22s var(--ease); white-space: nowrap;
  background: transparent; text-align: center;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--emerald));
  color: #03131a;
  box-shadow: 0 8px 26px -8px rgba(34, 211, 238, 0.6);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(34, 211, 238, 0.75);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(13, 20, 33, 0.6);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.btn-danger { border-color: rgba(244, 63, 94, 0.4); color: #fda4af; background: rgba(244, 63, 94, 0.08); }
.btn-danger:hover:not(:disabled) { border-color: var(--rose); background: rgba(244, 63, 94, 0.16); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   Cards & glass panels
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.card.pad { padding: 24px; }
.card.pad-lg { padding: 32px; }

.card-glow::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.5), transparent 40%, rgba(16, 185, 129, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 26px 0 0; }

.hero-slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 500px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 30px;
  padding: 56px 60px;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--slide-bg, radial-gradient(700px 420px at 78% 45%, rgba(34,211,238,0.22), transparent 62%));
}
.hero-copy, .hero-art { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 99px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border-strong);
  color: var(--cyan); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 99px; background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.hero-text { color: var(--muted); font-size: 1.03rem; max-width: 50ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

.hero-art { display: grid; place-items: center; }
.hero-art-inner {
  width: min(400px, 100%); aspect-ratio: 1;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 70px -14px rgba(34, 211, 238, 0.55);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
  background: linear-gradient(140deg, rgba(34,211,238,0.14), rgba(16,185,129,0.1));
}
.hero-slide.active .hero-art-inner { transform: rotate(-3deg) scale(1.02); }
.hero-art-inner img { width: 100%; height: 100%; object-fit: cover; }

.hero-nav {
  position: absolute; bottom: 26px; left: 60px; z-index: 3;
  display: flex; gap: 9px; align-items: center;
}
.hero-dot {
  width: 30px; height: 4px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.18); transition: all 0.35s var(--ease); padding: 0;
}
.hero-dot.active { width: 54px; background: linear-gradient(90deg, var(--cyan), var(--emerald)); box-shadow: var(--glow-cyan); }

.hero-arrows { position: absolute; bottom: 22px; right: 26px; z-index: 3; display: flex; gap: 8px; }

/* --------------------------------------------------------------------------
   Marquee trust bar
   -------------------------------------------------------------------------- */
.marquee {
  margin-top: 26px; padding: 16px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 22, 0.6);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 50px -18px rgba(34, 211, 238, 0.35);
}

.product-media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(140deg, #0b1420, #0a1a1c);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.07); }

.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-cyan    { background: rgba(34, 211, 238, 0.16); color: var(--cyan);    border: 1px solid rgba(34,211,238,0.4); }
.badge-emerald { background: rgba(16, 185, 129, 0.16); color: #6ee7b7;        border: 1px solid rgba(16,185,129,0.4); }
.badge-amber   { background: rgba(245, 158, 11, 0.16); color: #fcd34d;        border: 1px solid rgba(245,158,11,0.4); }
.badge-rose    { background: rgba(244, 63, 94, 0.16);  color: #fda4af;        border: 1px solid rgba(244,63,94,0.4); }
.badge-slate   { background: rgba(148, 163, 184, 0.14); color: #cbd5e1;       border: 1px solid rgba(148,163,184,0.3); }

.product-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--emerald); }
.product-name {
  font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0;
  letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name a:hover { color: var(--cyan); }

.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--amber); font-size: 12px; }
.stars .empty { color: rgba(148, 163, 184, 0.32); }
.rating-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.product-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 6px; }
.price-now { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.03em; }
.price-was { font-size: 12.5px; color: var(--dim); text-decoration: line-through; }

.product-actions { display: flex; gap: 8px; padding: 0 18px 18px; }

.stock-line { font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.stock-dot { width: 6px; height: 6px; border-radius: 99px; flex: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }

.input, .select, .textarea {
  width: 100%; padding: 12px 15px;
  background: rgba(6, 11, 19, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none; font-size: 14px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}
.input::placeholder, .textarea::placeholder { color: #4d6480; }
.textarea { resize: vertical; min-height: 96px; }
.select { appearance: none; cursor: pointer; background-image: none; }
.select option { background: var(--surface-solid); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 99px;
  background: #04121a; border: 3px solid var(--cyan);
  box-shadow: var(--glow-cyan); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 99px;
  background: #04121a; border: 3px solid var(--cyan); cursor: pointer;
}

/* --------------------------------------------------------------------------
   Catalog layout
   -------------------------------------------------------------------------- */
.catalog-layout { display: grid; grid-template-columns: 268px 1fr; gap: 30px; align-items: start; }

.filters { position: sticky; top: calc(var(--nav-h) + 20px); }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

.check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; color: var(--muted); transition: all 0.18s var(--ease);
}
.check:hover { background: rgba(34, 211, 238, 0.07); color: var(--text); }
.check input { accent-color: var(--cyan); width: 15px; height: 15px; cursor: pointer; }
.check .count { margin-left: auto; font-size: 11px; color: var(--dim); }

.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
}
.toolbar .spacer { margin-left: auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 99px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(13, 20, 33, 0.7);
  color: var(--muted); transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: rgba(34, 211, 238, 0.14); border-color: var(--border-strong); color: var(--cyan); font-weight: 600; }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.gallery-main {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-solid);
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.gallery-thumb {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); opacity: 0.55;
  transition: all 0.24s var(--ease); background: none; padding: 0;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { opacity: 1; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-price { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; margin: 6px 0; }

.spec-list { display: grid; gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; margin: 22px 0; }
.spec-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 16px; background: var(--surface-solid); font-size: 13.5px; }
.spec-row dt { color: var(--muted); font-weight: 600; }
.spec-row dd { margin: 0; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: rgba(6, 11, 19, 0.85);
}
.qty button {
  width: 42px; height: 46px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 17px; transition: all 0.18s var(--ease);
}
.qty button:hover { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.qty input {
  width: 54px; height: 46px; text-align: center; border: 0; background: none;
  font-weight: 700; outline: none; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.tab {
  padding: 13px 20px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.22s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.4s var(--ease); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Reviews */
.review { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 99px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: linear-gradient(140deg, rgba(34,211,238,0.25), rgba(16,185,129,0.25));
  border: 1px solid var(--border-strong); color: var(--cyan);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-author { font-weight: 700; font-size: 14px; }
.review-body { color: var(--muted); font-size: 14px; }
.review-body img, .review-body script { display: inline-block; max-width: 100%; }

.star-input { display: inline-flex; gap: 4px; font-size: 24px; color: var(--amber); cursor: pointer; }
.star-input span { transition: transform 0.15s var(--ease); }
.star-input span:hover { transform: scale(1.2); }

/* --------------------------------------------------------------------------
   Cart & checkout
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }

.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px;
  align-items: center; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  margin-bottom: 14px;
}
.cart-item-media {
  width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); flex: none;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }

.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--muted); }
.summary-row.total {
  border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: grid; place-items: center; padding: 22px;
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
  overflow-y: auto;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  width: min(620px, 100%);
  background: linear-gradient(160deg, #0c1420, #0a1119);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), 0 0 60px -20px rgba(34, 211, 238, 0.5);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.35s var(--ease);
  max-height: calc(100vh - 44px); display: flex; flex-direction: column;
  margin: auto;
}
.modal-backdrop.open .modal { transform: none; }
.modal-lg { width: min(880px, 100%); }

.modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.02em; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 26px; overflow-y: auto; }
.modal-foot {
  display: flex; gap: 12px; justify-content: flex-end;
  padding: 20px 26px; border-top: 1px solid var(--border);
}

.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step {
  flex: 1; height: 3px; border-radius: 99px; background: rgba(148, 163, 184, 0.18);
  transition: background 0.4s var(--ease);
}
.step.active { background: linear-gradient(90deg, var(--cyan), var(--emerald)); box-shadow: var(--glow-cyan); }

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }

.side-nav { position: sticky; top: calc(var(--nav-h) + 20px); }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; border-radius: 11px; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 550; border: 0; background: none;
  width: 100%; text-align: left; transition: all 0.2s var(--ease); margin-bottom: 3px;
}
.side-link:hover { background: rgba(34, 211, 238, 0.07); color: var(--text); }
.side-link.active {
  background: linear-gradient(90deg, rgba(34,211,238,0.14), rgba(16,185,129,0.07));
  color: var(--cyan); font-weight: 650;
  box-shadow: inset 2px 0 0 var(--cyan);
}

.profile-hero {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(34,211,238,0.1), rgba(16,185,129,0.06) 60%, transparent);
  border: 1px solid var(--border);
  margin-bottom: 26px;
}
.profile-avatar {
  width: 92px; height: 92px; border-radius: 26px; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--cyan), var(--emerald));
  color: #03131a; font-size: 34px; font-weight: 900;
  box-shadow: var(--glow-cyan);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat {
  padding: 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
}
.stat .label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.stat .value { font-size: 1.7rem; font-weight: 850; letter-spacing: -0.035em; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; padding: 13px 16px; white-space: nowrap;
  background: rgba(13, 20, 33, 0.9);
  font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid rgba(34, 211, 238, 0.06); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(34, 211, 238, 0.04); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  min-width: 270px; max-width: 400px; padding: 14px 18px;
  background: rgba(13, 20, 33, 0.96);
  border: 1px solid var(--border-strong); border-left-width: 3px;
  border-radius: 12px; box-shadow: var(--shadow);
  font-size: 13.5px; backdrop-filter: blur(14px);
  animation: toastIn 0.35s var(--ease);
  pointer-events: auto;
}
.toast.ok  { border-left-color: var(--emerald); }
.toast.err { border-left-color: var(--rose); }
.toast.info{ border-left-color: var(--cyan); }
.toast.warn{ border-left-color: var(--amber); }
.toast.leaving { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* --------------------------------------------------------------------------
   Chat widget
   -------------------------------------------------------------------------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 99px; border: 0; cursor: pointer;
  background: linear-gradient(140deg, var(--cyan), var(--emerald));
  color: #03131a; display: grid; place-items: center;
  box-shadow: 0 10px 34px -8px rgba(34, 211, 238, 0.7);
  transition: transform 0.28s var(--ease);
}
.chat-fab:hover { transform: scale(1.08) translateY(-2px); }
.chat-fab .ping {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  border-radius: 99px; background: var(--rose); border: 2px solid var(--bg);
  animation: pulse 2s infinite;
}

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 160;
  width: min(370px, calc(100vw - 44px));
  height: min(520px, calc(100vh - 140px));
  background: linear-gradient(170deg, #0c1420, #080e17);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.97);
  transition: all 0.3s var(--ease);
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(34,211,238,0.1), transparent);
}
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 82%; padding: 11px 15px; border-radius: 15px; font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.chat-msg.cs {
  align-self: flex-start; background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end; background: linear-gradient(120deg, rgba(16,185,129,0.2), rgba(34,211,238,0.14));
  border: 1px solid rgba(16,185,129,0.28); border-bottom-right-radius: 4px;
}
.chat-msg .who { display: block; font-size: 10.5px; opacity: 0.6; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.1em; }
.chat-foot { display: flex; gap: 9px; padding: 14px; border-top: 1px solid var(--border); }
.chat-foot input { flex: 1; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 60px; padding: 60px 0 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.5), rgba(4, 7, 13, 0.9));
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer h5 { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 13.5px; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--cyan); }

.newsletter { display: flex; gap: 9px; margin-top: 16px; max-width: 400px; }
.newsletter input { flex: 1; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--dim);
}

.socials { display: flex; gap: 10px; margin-top: 20px; }
.social {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border); background: rgba(13, 20, 33, 0.7);
  color: var(--muted); transition: all 0.22s var(--ease);
}
.social:hover { color: var(--cyan); border-color: var(--border-strong); box-shadow: var(--glow-cyan); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Lab warning banner
   -------------------------------------------------------------------------- */
.lab-banner {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 9px 20px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  background: repeating-linear-gradient(45deg, rgba(245,158,11,0.14) 0 12px, rgba(245,158,11,0.06) 12px 24px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d; text-align: center;
}
.lab-banner strong { color: #fde68a; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; }
.stack-8  { gap: 8px; }  .stack-12 { gap: 12px; } .stack-16 { gap: 16px; }
.stack-20 { gap: 20px; } .stack-26 { gap: 26px; }
.row { display: flex; align-items: center; }
.row-8 { gap: 8px; } .row-12 { gap: 12px; } .row-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.ml-auto { margin-left: auto; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

.empty-state { padding: 60px 24px; text-align: center; }
.empty-state svg { opacity: 0.3; margin-bottom: 18px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.15rem; }
.empty-state p { color: var(--muted); margin: 0 0 22px; }

.skeleton {
  background: linear-gradient(90deg, rgba(34,211,238,0.05) 25%, rgba(34,211,238,0.12) 50%, rgba(34,211,238,0.05) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.code-block {
  background: #050a12; border: 1px solid var(--border); border-radius: 11px;
  padding: 15px 17px; font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; color: #a5f3fc;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.code-block.err { color: #fda4af; border-color: rgba(244,63,94,0.3); }
.code-block.ok  { color: #6ee7b7; border-color: rgba(16,185,129,0.3); }

.divider { height: 1px; background: var(--border); margin: 26px 0; border: 0; }

.pill-tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(6,11,19,0.85); border: 1px solid var(--border); border-radius: 12px; }
.pill-tabs button {
  padding: 8px 16px; border: 0; background: none; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 600; transition: all 0.2s var(--ease);
}
.pill-tabs button.active { background: linear-gradient(120deg, rgba(34,211,238,0.18), rgba(16,185,129,0.12)); color: var(--cyan); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .dash-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .side-link { width: auto; white-space: nowrap; margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-toggle { display: grid; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .hero-slide { grid-template-columns: 1fr; padding: 40px 30px 90px; text-align: left; }
  .hero-art { display: none; }
  .hero-slider { min-height: 440px; }
  .hero-nav { left: 30px; }
  .hero-stats { gap: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

@media (max-width: 620px) {
  .container, .nav-inner { width: calc(100% - 28px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-media { width: 70px; height: 70px; }
  .toast-stack { left: 14px; right: 14px; bottom: 88px; align-items: stretch; }
  .toast { max-width: none; min-width: 0; }
  .modal-body, .modal-head, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .hero-title { font-size: 2rem; }
}
