/* =====================================================================
   CYBERPUNK DESIGN SYSTEM — XBREED
   Professional Cyberpunk: Neon edges, cut corners, scanlines, glass
   Fonts: Orbitron (headings), Rajdhani (body), Share Tech Mono (code/data)
   ===================================================================== */

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg-0: #05060a;
  --bg-1: #0a0d14;
  --bg-2: #0e1219;
  --bg-panel: rgba(10, 14, 22, 0.85);

  /* CI Palette: schwarz, weiß, rot */
  --neon-1: #ffffff;       /* weiß – primary accent */
  --neon-2: #ff0000;       /* rot – secondary accent */
  --neon-3: #ffffff;       /* weiß – tertiary / success */
  --neon-4: #ffffff;       /* weiß – warning */
  --neon-5: #ffffff;       /* weiß – subtle highlight */
  --neon-price: #ffffff;

  /* Text */
  --text-0: #e8edf5;
  --text-dim: #6b7a8d;
  --text-bright: #ffffff;

  /* Glass & Panels */
  --glass: rgba(8, 12, 20, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-glow: 0 0 30px rgba(255, 255, 255, 0.04), 0 0 60px rgba(255, 255, 255, 0.02);

  /* System */
  --radius: 4px;          /* Sharp cyberpunk corners */
  --radius-lg: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.02);
  --grid-gap: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-head: 'Rubik', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'New Science', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; max-width: 100vw; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-0);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(255, 0, 60, 0.03) 0%, transparent 70%);
  letter-spacing: 0.3px;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Subtle scanline overlay on entire page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-1), var(--neon-2));
  border-radius: 3px;
}

/* ── Selection ── */
::selection {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-bright);
}

/* ===== Video Hero ===== */
.video-hero {
  position: relative;
  height: clamp(300px, 70svh, 780px);
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  background-color: #03040a;
  border: none;
  max-width: 100vw;
  z-index: 3;
}
.video-hero video {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  background-color: #03040a;
  filter: saturate(1.1) contrast(1.05);
  border: none; padding: 0;
  max-width: 100%;
}

/* Hero-Section after video */
.hero.wrap {
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.95) 0%, rgba(5, 6, 10, 0.9) 100%);
  padding-top: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 -16px 48px 0 rgba(5, 6, 10, 0.95);
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}

/* ===== Products Grid & Cards ===== */
.prod-grid {
  display: grid;
  gap: var(--grid-gap);
  /* Default auto-fill; overridden by mode classes in component */
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.prod-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.prod-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow), 0 0 25px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
/* Angled corner accent */
.prod-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.08) 50%);
  z-index: 5;
}
.prod-card .img-box {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.prod-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card .badge-price {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(0, 180, 255, 0.85));
  color: #000;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
  z-index: 10;
  letter-spacing: 0.5px;
}
.prod-card .badge-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--neon-1);
  z-index: 10;
}
.prod-card .meta {
  flex: 1;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.prod-card .meta .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.prod-card .meta .cat { color: var(--text-dim); font-size: 0.85rem; }
.prod-card .meta .details { color: var(--text-dim); font-size: 0.82rem; line-height: 1.25; }
@media (max-width: 700px) { .prod-card { width: 100%; } }

/* Category bar (mobile-first) */
.catbar {
  display: flex; gap: 8px;
  overflow: auto; padding: 6px 2px 10px;
  margin-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.catbar::-webkit-scrollbar { height: 6px; }
.catbar::-webkit-scrollbar-thumb { background: var(--neon-1); border-radius: 3px; }
.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-0);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
}
.chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.chip[aria-selected="true"] {
  border-color: var(--neon-1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  color: var(--neon-1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
}
.empty { color: var(--text-dim); padding: 12px 4px; }

/* ===== Utility ===== */
.wrap {
  width: min(100%, 960px);
  margin-inline: auto;
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Glass Panel */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-glow);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Neon text glow */
.neon {
  text-shadow: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text-0);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover {
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.btn:hover::before { opacity: 1; }
.btn.primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 180, 255, 0.12));
  border-color: transparent;
}

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: env(safe-area-inset-top);
  max-width: 100vw;
}
/* Animated neon line under header removed */
@keyframes headerGlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  max-width: 100%; box-sizing: border-box;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
  outline: 1px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--text-0);
}
.brand-name span { color: var(--neon-1); }

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: text-shadow var(--transition);
  position: relative;
}
/* Kleines rotes X rechts neben jedem Nav-Link, 50% über Oberkante */
nav a::before {
  content: "";
  position: absolute;
  top: 3px;
  left: calc(100% + 1px);
  width: 0.6em;
  height: 0.6em;
  background: url('assets/img/graphics/xb_x_solo_black_favicon.svg') center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(19%) sepia(98%) saturate(5000%) hue-rotate(358deg) brightness(105%) contrast(110%);
  transform: translateY(-50%);
  pointer-events: none;
}
nav a:hover {
  color: #ffffff;
  text-shadow: none;
}
/* Underline animation on hover */
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--neon-1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
nav a:hover::after { transform: scaleX(1); }

/* Burger button (mobile only) */
.burger {
  display: none;
  background: rgba(5, 6, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition);
}
.burger:hover { border-color: rgba(255, 255, 255, 0.5); }
.burger:focus-visible { outline: 2px solid var(--neon-1); }
.burger img {
  display: block; width: 24px; height: 24px;
  filter: invert(1) brightness(1.4);
}

/* ===== Hero / Carousel ===== */
.hero { padding: 20px 0 12px; }
.hero-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4.5vw, 2.4rem);
  margin: 0; line-height: 1.1;
  word-break: break-word;
  color: #ffffff;
}
.hero p {
  color: var(--text-dim);
  margin: 0.4rem 0 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.carousel { position: relative; max-width: 100%; overflow: hidden; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 82%, 100%);
  gap: var(--grid-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px 2px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: calc(16px + env(safe-area-inset-left));
  scroll-padding-right: calc(16px + env(safe-area-inset-right));
  touch-action: pan-x;
  max-width: 100%;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  border-radius: 3px;
}

.card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  max-width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow), 0 0 30px rgba(255, 255, 255, 0.08);
}
.card-media { aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--neon-1);
}
.card-info {
  padding: 0.8rem 0.9rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; flex-wrap: wrap;
}
.price {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--neon-price);
}

.car-ctrl { position: absolute; inset: 0; pointer-events: none; }
.ctrl {
  pointer-events: auto;
  position: absolute; top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-0);
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.ctrl:hover {
  border-color: var(--neon-1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}
.ctrl:active { transform: translateY(-50%) scale(0.95); }
.ctrl.left { left: calc(8px + env(safe-area-inset-left)); }
.ctrl.right { right: calc(8px + env(safe-area-inset-right)); }

/* ===== Sections ===== */
section { padding: 24px 0; max-width: 100%; }
.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  word-break: break-word;
  color: #ffffff;
  position: relative;
  padding-left: 16px;
}
/* X-Logo accent before section titles */
.section-title::before {
  content: "";
  position: absolute;
  left: -4px; top: 50%; transform: translateY(-50%);
  width: 0.5em;
  height: 0.5em;
  background: url('assets/img/graphics/xb_x_solo_black_favicon.svg') center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(19%) sepia(98%) saturate(5000%) hue-rotate(358deg) brightness(105%) contrast(110%);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }

.tile {
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--glass-border);
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.tile:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
/* Corner decoration */
.tile::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 var(--radius) 0;
}
.tile h3 {
  margin: 0.1rem 0 0.4rem;
  font-size: 0.9rem;
  word-break: break-word;
  color: var(--text-0);
}
.tile p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  word-break: break-word;
}

/* ===== Form elements ===== */
input, textarea, select {
  width: 100%; max-width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 8, 15, 0.8);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--neon-1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 20px rgba(255, 255, 255, 0.1);
}
select option {
  background-color: #0d0f1a;
  color: #e8eaf0;
}
select option:disabled {
  color: rgba(232, 234, 240, 0.35);
}
input::placeholder, textarea::placeholder {
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* ===== Footer ===== */
footer {
  padding: 32px 16px 40px;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-1), var(--neon-2), transparent);
  opacity: 0.4;
}

/* ===== Cyberpunk Decorative Elements ===== */

/* Animated corner brackets for important containers */
.cyber-corners {
  position: relative;
}
.cyber-corners::before,
.cyber-corners::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--neon-1);
  border-style: solid;
  opacity: 0.4;
}
.cyber-corners::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.cyber-corners::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

/* Glitch text effect (apply sparingly) */
@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 var(--neon-2), -2px 0 var(--neon-1); }
  25% { text-shadow: -2px 0 var(--neon-2), 2px 0 var(--neon-1); }
  50% { text-shadow: 2px 2px var(--neon-2), -2px -2px var(--neon-1); }
  75% { text-shadow: -2px 2px var(--neon-2), 2px -2px var(--neon-1); }
}
.glitch-text:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Horizontal rule / divider */
.cyber-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-1), transparent);
  margin: 24px 0;
  opacity: 0.3;
}

/* Data label style (for tags, categories) */
.data-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-1);
  opacity: 0.7;
}

/* ===== Desktop tweaks ===== */
@media (min-width: 760px) {
  .rail { grid-auto-columns: 48%; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1040px) {
  .wrap { width: min(92%, 1160px); }
  .hero h1 { font-size: 2.8rem; }
  .rail { grid-auto-columns: 36%; }
}

/* show burger on small screens */
@media (max-width: 759.98px) {
  .hide-mobile { display: none; }
  .burger { display: inline-flex; }
}

/* Mobile optimizations for 350px-600px */
@media (max-width: 600px) {
  h1, h2, h3, h4, h5, h6 { text-align: center; }
  .section-title {
    text-align: center;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .section-title::before {
    position: static;
    display: block;
    flex-shrink: 0;
    transform: none;
    margin-right: 5px;
  }
  .hero h1 { font-size: clamp(1.1rem, 5vw, 1.8rem); }
  .hero-head { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .hero-head .btn { width: 80%; max-width: 320px; justify-content: center; }
  .btn { padding: 0.65rem 0.9rem; font-size: 0.8rem; }
  .grid { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: clamp(260px, 90%, 100%); }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-card { max-width: 100%; margin: 0 auto; }
  .section-title { font-size: 22px; }
  .tile { padding: 12px; }
  .topbar { padding: 10px 12px; }
  .brand-name { font-size: 0.85rem; }
}

/* Extra small screens 350px */
@media (max-width: 400px) {
  :root { --grid-gap: 10px; }
  .wrap { padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); }
  .hero h1 { font-size: clamp(1rem, 5.5vw, 1.6rem); line-height: 1.2; }
  .hero p { font-size: 0.85rem; }
  .btn { padding: 0.55rem 0.75rem; font-size: 0.75rem; }
  .rail { grid-auto-columns: clamp(240px, 95%, 100%); gap: 10px; }
  .prod-card .meta { padding: 0.5rem 0.6rem; }
  .prod-card .meta .name { font-size: 0.85rem; }
  .prod-card .meta .cat, .prod-card .meta .details { font-size: 0.8rem; }
  .section-title { font-size: 20px; }
  .tile h3 { font-size: 0.85rem; }
  .tile p { font-size: 0.85rem; }
  .topbar { padding: 8px 10px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-name { font-size: 0.8rem; }
  .catbar { gap: 6px; }
  .chip { padding: 0.4rem 0.65rem; font-size: 0.75rem; }
}

/* ===== Mobile Navigation Menu ===== */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 48;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(5, 8, 14, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 255, 255, 0.04);
}
.mobile-links a {
  display: block;
  width: 100%;
  padding: 18px 24px;
  text-align: center;
  color: var(--text-0);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition), background var(--transition);
}
.mobile-links a:last-child { border-bottom: none; }
.mobile-links a:hover,
.mobile-links a[aria-current="page"] {
  color: var(--neon-1);
  background: rgba(255, 255, 255, 0.04);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* ─── Particle Background Zone ─── */
.particle-zone {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .particle-zone {
    display: none !important;
  }
}
