/* ========================================
   VELOCE PARTS - APP UI PREMIUM
   ======================================== */

:root {
  --bg: #000000;
  --bg-2: #050505;
  --panel: radial-gradient(1200px 800px at 50% 0%, rgba(255, 59, 48, 0.08) 0%, transparent 60%), linear-gradient(180deg, #080808 0%, #000000 100%);
  --card: linear-gradient(165deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 59, 48, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #b9b9b9;
  --text-tertiary: #6f6f6f;
  --accent: #ff3b30;
  --accent-2: #ff6b35;
  --glow: rgba(255, 59, 48, 0.35);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.25, 0.8, 0.25, 1.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 59, 48, 0.12) 0%, #000000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s var(--ease-out-expo);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.preloader-track {
  width: 220px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  animation: prefill 1.2s var(--ease-out-expo) forwards;
}

@keyframes prefill {
  from { width: 0; }
  to { width: 100%; }
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

select {
  font: inherit;
}

/* Background FX */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.bg-grid-lines {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 59, 48, 0.14) 0%, transparent 55%),
    linear-gradient(rgba(255, 59, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 59, 48, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  opacity: 0.18;
  transform: perspective(1200px) rotateX(65deg) translateY(-20%);
  filter: blur(0.2px);
}

.bg-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.16;
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-one {
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.orb-two {
  top: 20%;
  right: -240px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  animation-delay: -6s;
}

.orb-three {
  bottom: -320px;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.9) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(40px, -30px, 0) scale(1.08); }
  66% { transform: translate3d(-30px, 20px, 0) scale(0.96); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px auto 0;
  width: min(1180px, calc(100% - 40px));
  padding: 10px 18px;
  border-radius: 999px;
  background: radial-gradient(600px 120px at 50% 0%, rgba(255, 59, 48, 0.16) 0%, transparent 70%), rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -60px var(--glow);
  pointer-events: auto;
}

.logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  position: relative;
}

.logo-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.22) 0%, transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.logo-btn:hover::after {
  opacity: 1;
}

.dock-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: radial-gradient(400px 80px at 50% 0%, rgba(255, 59, 48, 0.12) 0%, transparent 70%), rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
}

.dock-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-tertiary);
  transition: all 0.4s var(--ease-out-expo);
}

.dock-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.dock-btn svg {
  position: relative;
  z-index: 1;
}

.dock-btn:hover {
  color: var(--text-secondary);
  transform: translateY(-4px);
}

.dock-btn.active {
  color: var(--text-primary);
}

.dock-btn.active::before {
  opacity: 1;
}

.dock-btn.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.cart-fab {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 59, 48, 0.26) 0%, transparent 70%), rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(255, 59, 48, 0.5);
  color: var(--text-primary);
  box-shadow: 0 30px 60px -40px var(--glow);
  transition: all 0.4s var(--ease-out-expo);
}

.cart-fab:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 40px 70px -36px var(--glow);
}

.cart-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -14px var(--glow);
}

/* App */
.app-viewport {
  position: relative;
  min-height: 100vh;
}

.view {
  display: none;
  min-height: 100vh;
  padding: 110px 20px 80px;
}

.view.active {
  display: block;
  animation: viewIn 0.8s var(--ease-out-expo);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Hero */
.hero-frame {
  position: relative;
  width: min(1480px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 190px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 120px 200px -160px var(--glow);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: 65% center;
  filter: contrast(1.1) saturate(1.12);
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left, transparent 8%, rgba(0, 0, 0, 0.94) 78%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.7) 46%, rgba(0, 0, 0, 0.32) 100%);
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255, 255, 255, 0.008) 2px, rgba(255, 255, 255, 0.008) 4px);
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 59, 48, 0.4), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255, 107, 53, 0.35), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.2), transparent);
  background-repeat: no-repeat;
  animation: particlesDrift 12s ease-in-out infinite alternate;
  opacity: 0.6;
}

@keyframes particlesDrift {
  from { transform: translateY(0px); }
  to { transform: translateY(-16px); }
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 0 min(8vw, 140px);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 48, 0.5);
  background: radial-gradient(200px 60px at 50% 0%, rgba(255, 59, 48, 0.24) 0%, transparent 70%);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.hero-heading {
  font-family: 'Tourney', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-heading .stroke {
  display: block;
  -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.9);
  color: transparent;
}

.hero-heading .glow-text {
  display: block;
  background: radial-gradient(circle at top, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-neo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-neo.primary {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.98) 0%, rgba(255, 107, 53, 0.98) 100%);
  box-shadow: 0 40px 80px -50px var(--glow);
}

.btn-neo.ghost {
  border: 1px solid var(--border);
  background: radial-gradient(220px 70px at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  backdrop-filter: blur(12px);
}

.btn-neo:hover {
  transform: translateY(-4px);
}

.btn-neo.primary:hover {
  box-shadow: 0 50px 90px -46px var(--glow);
}

.btn-neo.ghost:hover {
  border-color: rgba(255, 59, 48, 0.5);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.22) 50%, transparent 85%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out-expo);
}

.btn-neo:hover .btn-shine {
  transform: translateX(130%);
}

.btn-neo svg {
  position: relative;
  z-index: 1;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: radial-gradient(220px 70px at 50% 0%, rgba(255, 59, 48, 0.18) 0%, transparent 70%);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out-expo);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 30px 60px -40px var(--glow);
}

.metric-num {
  font-family: 'Tourney', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--text-tertiary);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
}

.trust-item svg {
  color: var(--accent);
}

/* Panels */
.panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-kicker {
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--accent);
}

.panel-title {
  font-family: 'Tourney', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.panel-sub {
  color: var(--text-secondary);
}

/* Search */
.search-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.search-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(255, 59, 48, 0.16) 0%, transparent 70%);
}

.search-grid-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
  padding: clamp(26px, 6vw, 48px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--text-tertiary);
  border-bottom: 1px solid var(--text-tertiary);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.8);
  color: var(--text-primary);
  appearance: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

select:disabled {
  opacity: 0.4;
}

.search-submit {
  height: 56px;
  justify-content: center;
}

/* Quick */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quick-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.quick-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 120px at 0% 50%, rgba(255, 59, 48, 0.16) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.quick-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 59, 48, 0.4);
}

.quick-tile:hover::before {
  opacity: 1;
}

.tile-icon,
.quick-tile h3,
.quick-tile p,
.tile-arrow {
  position: relative;
  z-index: 1;
}

.tile-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 48, 0.4);
  color: var(--accent);
}

.quick-tile h3 {
  font-family: 'Tourney', sans-serif;
  letter-spacing: 0.18em;
}

.quick-tile p {
  color: var(--text-secondary);
}

.tile-arrow {
  margin-left: auto;
  font-size: 1.6rem;
  color: var(--text-tertiary);
  transition: transform 0.4s var(--ease-out-expo);
}

.quick-tile:hover .tile-arrow {
  transform: translateX(8px);
  color: var(--accent);
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cat-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  text-align: left;
}

.cat-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(255, 59, 48, 0.18) 0%, transparent 70%), linear-gradient(180deg, rgba(15, 15, 15, 0.9) 0%, rgba(0, 0, 0, 0.98) 100%);
}

.cat-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 6vw, 38px);
  height: 100%;
}

.cat-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 48, 0.5);
  color: var(--accent);
  margin-bottom: auto;
}

.cat-tile h3 {
  font-family: 'Tourney', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cat-tile p {
  color: var(--text-secondary);
}

.cat-go {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  transition: color 0.4s var(--ease-out-expo);
}

.cat-tile:hover {
  border-color: rgba(255, 59, 48, 0.5);
}

.cat-tile:hover .cat-go {
  color: var(--accent);
}

/* Catalog */
.catalog-bar {
  display: flex;
  justify-content: flex-start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.8);
}

.chip {
  padding: 10px 22px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--text-tertiary);
  transition: all 0.4s var(--ease-out-expo);
}

.chip.active {
  color: var(--text-primary);
  background: radial-gradient(200px 60px at 50% 0%, rgba(255, 59, 48, 0.26) 0%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.5);
}

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

.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(16px);
}

.prod-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 170px at 50% 0%, rgba(255, 59, 48, 0.16) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.prod-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 59, 48, 0.55);
  box-shadow: 0 60px 100px -80px var(--glow);
}

.prod-card:hover::before {
  opacity: 1;
}

.prod-media {
  position: relative;
  z-index: 1;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 59, 48, 0.12) 0%, transparent 70%);
}

.prod-media svg {
  color: var(--text-tertiary);
  transition: all 0.4s var(--ease-out-expo);
}

.prod-card:hover .prod-media svg {
  color: var(--accent);
  transform: scale(1.08);
}

.prod-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.prod-cat {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--accent);
}

.prod-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.prod-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.prod-price {
  font-family: 'Tourney', sans-serif;
  letter-spacing: 0.16em;
}

.prod-add {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 48, 0.5);
  color: var(--text-primary);
  background: radial-gradient(circle, rgba(255, 59, 48, 0.24) 0%, transparent 70%);
  transition: all 0.4s var(--ease-out-expo);
}

.prod-add:hover {
  box-shadow: 0 20px 40px -26px var(--glow);
  transform: scale(1.06);
}

/* Cart Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 59, 48, 0.12) 0%, rgba(0, 0, 0, 0.92) 70%);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out-expo);
  z-index: 1100;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: radial-gradient(400px 200px at 50% 0%, rgba(255, 59, 48, 0.16) 0%, transparent 70%), rgba(6, 6, 6, 0.98);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.7s var(--ease-out-expo);
  z-index: 1150;
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 24px;
}

.drawer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.74rem;
  color: var(--accent);
}

.drawer-title {
  font-family: 'Tourney', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 6px;
}

.drawer-close {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.drawer-close:hover {
  color: var(--text-primary);
  border-color: rgba(255, 59, 48, 0.5);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px;
}

.empty-state {
  margin: auto;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(200px 80px at 0% 50%, rgba(255, 59, 48, 0.12) 0%, transparent 70%);
}

.cart-thumb {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}

.cart-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-meta h4 {
  font-size: 0.98rem;
}

.cart-meta span {
  font-family: 'Tourney', sans-serif;
  letter-spacing: 0.14em;
}

.cart-remove {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-align: left;
}

.cart-remove:hover {
  color: var(--accent);
}

.cart-qty {
  color: var(--text-tertiary);
}

.drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 32px 32px;
  border-top: 1px solid var(--border);
}

.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.btn-full {
  justify-content: center;
}

/* Animations */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  animation: animUp 0.9s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.3s; }
.delay-5 { animation-delay: 0.36s; }

@keyframes animUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .search-grid-form {
    grid-template-columns: repeat(2, 1fr);
  }
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 1024px) {
  .bg-orb {
    filter: blur(90px);
    opacity: 0.12;
  }
  .bg-grid-lines {
    transform: none;
    opacity: 0.1;
  }
  .hero-img {
    animation: none;
    transform: none;
  }
  .hero-particles {
    display: none;
  }
}

@media (max-width: 720px) {
  .bg-fx {
    display: none;
  }
  .header-inner {
    width: calc(100% - 16px);
    padding: 6px 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.95);
  }
  .dock-nav {
    gap: 2px;
    padding: 4px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 10, 0.9);
  }
  .dock-btn {
    width: 42px;
    height: 42px;
  }
  .cart-fab {
    width: 46px;
    height: 46px;
  }
  .view {
    padding: 92px 14px 64px;
  }
  .hero-frame {
    border-radius: 18px;
    min-height: calc(100svh - 150px);
  }
  .hero-img {
    background-position: 58% center;
    animation: none;
    transform: none;
    filter: contrast(1.02) saturate(1.02);
  }
  .hero-vignette {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.98) 100%);
  }
  .hero-scanlines {
    display: none;
  }
  .hero-content-wrap {
    padding: 0 18px;
  }
  .hero-inner {
    gap: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn-neo {
    width: 100%;
    justify-content: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-metrics {
    gap: 8px;
  }
  .metric-card {
    padding: 10px 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .search-grid-form {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .prod-grid {
    grid-template-columns: 1fr;
  }
  .prod-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .cat-tile {
    min-height: 240px;
  }
  .chip-row {
    border-radius: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .cart-drawer {
    width: 100%;
  }
  .drawer-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .search-panel,
  .quick-tile,
  .cat-tile,
  .prod-card,
  .metric-card,
  .panel-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-img,
  .bg-orb,
  .hero-particles {
    animation: none !important;
  }
}
