/* ============================================================
   CONSCIOUSLY UNCONSCIOUS — Global Styles
   Dark carbon-fiber aesthetic · Ghost ambient system
   ============================================================ */

:root {
  --bg-deep: #050505;
  --bg-carbon: #0a0a0a;
  --accent: #8B0000;         /* Deep Blood Red */
  --accent-dim: #5c0000;     /* Muted Blood Red */
  --accent-bright: #B22222;  /* Firebrick / Bright Red */
  --text-primary: #e8e8e8;
  --text-muted: #888;
  --text-ghost: #b0b0b0;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(12, 12, 12, 0.85);
  --glitch-1: #ff003c;
  --glitch-2: #8B0000;
  --font-display: "Courier New", Courier, monospace, sans-serif; /* Industrial tech feel */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ---------- Carbon Fiber Texture ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.2) 2px,
      rgba(0, 0, 0, 0.2) 4px
    ),
    linear-gradient(180deg, #080808 0%, #050505 50%, #0a0a0a 100%);
  pointer-events: none;
}

/* Subtle noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* ---------- Typography & Global Headings / Subtexts ---------- */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Unified Global Headings, Titles, and Subtexts */
h1, h2, h3, h4, h5, h6, .brand-title, .section-title {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-transform: uppercase;
}

p, .subtext, .description, .hero-slide p, .music-hub .intro p {
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ============================================================
   PHASE 1 — LANDING ENTRANCE
   ============================================================ */

#landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.4s ease, visibility 0.4s;
}

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

#logo-canvas {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  margin-bottom: 2.5rem;
  cursor: grab;
}

#logo-canvas:active {
  cursor: grabbing;
}

.enter-btn {
  position: relative;
  padding: 1rem 2.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: transparent;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.enter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.enter-btn:hover {
  color: #fff;
  border-color: var(--accent-bright);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.4);
}

.enter-btn:hover::before {
  transform: scaleX(1);
}

/* Static Fuzz Transition Overlay (Instant Response) */
#glitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  background: #000;
  transition: opacity 0.05s ease;
}

#glitch-overlay.active {
  opacity: 1;
  animation: static-fuzz 0.8s steps(6) forwards;
}

@keyframes static-fuzz {
  0% {
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.8'/%3E%3C/svg%3E");
  }
  20% {
    opacity: 1;
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='1'/%3E%3C/svg%3E");
    transform: scale(1.02) skewX(2deg);
  }
  50% {
    opacity: 0.95;
    background-color: #050505;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.9'/%3E%3C/svg%3E");
    transform: scale(0.98) skewX(-2deg);
  }
  80% {
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.5'/%3E%3C/svg%3E");
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

/* ============================================================
   PHASE 2 — MAIN SITE SHELL
   ============================================================ */

#main-site {
  position: relative;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease 0.3s, visibility 0.5s ease 0.3s;
}

#main-site.visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Ambient Ghost Particles (For dedicated pages like music.html) ---------- */
#ghost-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.ghost-particle {
  position: absolute;
  width: 48px;
  height: 60px;
  opacity: 0.5;
  pointer-events: none;
  animation: ghost-drift linear infinite;
  will-change: transform, opacity;
}

.ghost-particle svg {
  width: 100%;
  height: 100%;
  fill: #dcdcdc !important;
  filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.6));
}

@keyframes ghost-drift {
  0% {
    transform: translate(0, 100vh) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    transform: translate(var(--dx), -20vh) scale(1.1) rotate(10deg);
    opacity: 0;
  }
}

.site-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 2rem;
      position: relative;
      z-index: 100;
      background: #000000 !important;
      border-bottom: 1px solid #1a1a1a;
      overflow: visible !important; /* CRITICAL: Prevents clipping */
    }

.site-header,
.hero,
.section,
.product-grid,
.music-hub,
.site-footer,
.nav-overlay {
  position: relative;
  z-index: 2;
}

/* Top Ticker */
.ticker {
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  gap: 4rem;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ticker-item span {
  color: var(--accent-bright);
  margin-right: 0.5rem;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 140px;
}

.nav-right {
  justify-content: flex-end;
}

.menu-toggle {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: color 0.25s;
}

.icon-btn:hover {
  color: var(--accent-bright);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-btn svg {
  stroke: #ffffff;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #8b0000;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
}

/* Index Menu Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 5, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay nav ul {
  text-align: center;
}

.nav-overlay nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 0.18em;
  display: block;
  padding: 0.6rem 0;
  color: var(--text-muted);
  transition: color 0.3s, letter-spacing 0.3s;
}

.nav-overlay nav a:hover {
  color: var(--accent-bright);
  letter-spacing: 0.28em;
}

/* Brand Header */
.brand-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.rem 1.5rem;
  overflow: hidden;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.85rem);
  letter-spacing: 0.28em;
  text-align: center;
  position: relative;
  z-index: 2;
}

.brand-logo .accent {
  color: var(--accent-bright);
}

.brand-ghost {
  position: absolute;
  width: 48px;
  height: 60px;
  opacity: 0.25;
  pointer-events: none;
  animation: brand-ghost-float 6s ease-in-out infinite;
}

.brand-ghost.left {
  left: 8%;
  animation-delay: 0s;
}

.brand-ghost.right {
  right: 8%;
  animation-delay: 1.5s;
  transform: scaleX(-1);
}

@keyframes brand-ghost-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-18px) rotate(4deg);
  }
}

.cart-ghost {
  position: fixed;
  bottom: -220px;
  right: 20px;
  width: 170px;
  height: 180px;
  z-index: 110;
  transition: bottom 0.55s var(--ease-out);
  pointer-events: none;
}

.cart-ghost.visible {
  bottom: -48px;
}

/* Mobile Touch Active State for Cart Ghost */
.cart-ghost.mobile-active {
  bottom: -48px !important;
}

.cart-ghost img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-star {
  position: fixed;
  bottom: -220px;
  left: 20px;
  width: 170px;
  height: 180px;
  z-index: 110;
  transition: bottom 0.55s var(--ease-out);
  pointer-events: none;
}

.nav-star.visible {
  bottom: -48px;
}

/* Mobile Touch Active State for Nav Star */
.nav-star.mobile-active {
  bottom: -48px !important;
}

.nav-star img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */

.hero {
  position: relative;
  height: clamp(380px, 55vh, 620px);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.9s var(--ease-out);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: grayscale(0.3) contrast(1.15);
}

.hero-slide .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-slide .slide-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.hero-slide h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.hero-slide p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.hero-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: var(--accent-bright);
  transform: scale(1.3);
}

/* ============================================================
   SECTIONS — Shared
   ============================================================ */

.section {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

.section-title span {
  color: var(--accent-bright);
}

/* ---------- Product Grid Container & Showroom Constraints (FORCED) ---------- */
.product-grid,
.shop-grid,
.products-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 2rem !important;
  width: 100% !important;
  min-height: 200px !important;
  margin-top: 2rem !important;
}

.product-card {
  background: #0c0c0c !important;
  border: 1px solid var(--border) !important;
  overflow: hidden !important;
  transition: border-color 0.3s, transform 0.35s var(--ease-out) !important;
  position: relative !important;
  max-width: 100% !important;
}

.product-card:hover {
  border-color: rgba(139, 0, 0, 0.6) !important;
  transform: translateY(-4px) !important;
}

.product-card .img-wrap {
  aspect-ratio: 4 / 5 !important;
  max-width: 100% !important;
  background: #141414 !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-card img,  
.product-image img,
.product-card .img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.product-card .img-wrap .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #333;
  background: linear-gradient(145deg, #121212, #0a0a0a);
}

.product-card .info {
  padding: 1.1rem 1.05rem 1.25rem;
}

.product-card .name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.product-card .price {
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 500;
}

.product-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  z-index: 2;
}

/* Behind the Brand */
.philosophy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.philosophy p {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.75;
  color: var(--text-ghost);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.philosophy .signature {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--accent-bright);
}

/* ============================================================
   SHOP / ARCHIVE PAGE
   ============================================================ */

.page-hero {
  padding: 0.2rem 1.5rem 1rem; /* Dramatically reduced top padding */
  margin-top: -20px;          /* Pulls the whole hero section upward */
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* ============================================================
   CART PAGE STYLES
   ============================================================ */

.cart-main {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 0 20px;
  color: #ffffff;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border, #222);
  padding-bottom: 1rem;
}

.empty-cart-message {
  text-align: center;
  padding: 4rem 0;
  color: #888;
}

.return-shop-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}

.return-shop-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

/* ============================================================
   MUSIC HUB
   ============================================================ */

.music-hub {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.music-hub .intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.music-hub .intro h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: 0.22em;
  margin-bottom: 0.75rem;
}

.music-hub .intro p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.audio-logs .visualizer-container,
.music-hub .visualizer-container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 2.5rem auto;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.audio-logs .visualizer-video,
.music-hub .visualizer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.track-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background-color: #0c0c0c !important;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.track-card:hover {
  border-color: rgba(139, 0, 0, 0.5);
}

.track-art {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #444;
}

.track-info h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.track-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}

.play-btn:hover,
.play-btn.playing {
  border-color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.15);
  color: var(--accent-bright);
}

.play-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.track-card.playing .wave-bars {
  opacity: 1;
}

.wave-bars span {
  width: 3px;
  background: var(--accent-bright);
  animation: wave 0.8s ease-in-out infinite alternate;
}

.wave-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.wave-bars span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.wave-bars span:nth-child(4) { height: 55%; animation-delay: 0.45s; }
.wave-bars span:nth-child(5) { height: 85%; animation-delay: 0.1s; }

@keyframes wave {
  to {
    height: 20%;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
  background: #080808;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--accent-bright);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-ghost);
  padding: 0.25rem 0;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--accent-bright);
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-row a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: border-color 0.25s, color 0.25s;
}

.social-row a:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .site-header {
    padding: 0.9rem 1.1rem;
  }

  .nav-left,
  .nav-right {
    min-width: auto;
  }

  .brand-ghost {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .social-row {
    justify-content: center;
  }

  .track-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .track-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cart-icon-link,  
.cart-icon-link svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.cart-icon-link .cart-count {
  color: #ffffff !important;
  background-color: #8b0000 !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-form {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  margin-right: 0;
}

.search-wrapper.active .header-search-form {
  width: 200px;
  opacity: 1;
  margin-right: 0.5rem;
}

.header-search-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  outline: none;
}

.header-search-form input:focus {
  border-color: #fff;
}

.header-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.hidden {
  display: none !important;
}

.nav-links-inline {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-links-inline.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   SHOWROOM HORIZONTAL CAROUSEL (Absolute Non-Looping Hard Stop)
   ============================================================ */

.showroom-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 100px);
  max-height: 950px;
  min-height: 600px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 40px 0;
  width: 100% !important;
  max-width: 100% !important;
}

.showroom-container {
  width: 100% !important;
  display: block !important;
  overflow-x: scroll !important; /* Forces strict scroll context, blocking any overflow manipulation loops */
  overflow-y: hidden !important;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: 20px 0;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  white-space: nowrap !important;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-x: contain; /* Prevents bounce effects or chaining to window scroll */
}

.showroom-container:active {
  cursor: grabbing;
}

.showroom-container::-webkit-scrollbar {
  display: none;
}

.showroom-track {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 3.5rem !important;
  width: max-content !important;
  padding: 0 5rem !important;
  align-items: center;
  height: 100%;
}

.showroom-card {
  display: inline-flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  width: clamp(340px, 32vw, 460px) !important;
  height: auto !important;
  position: relative !important;
  background: #0a0a0a !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  padding: 1.15rem;
  box-sizing: border-box;
  vertical-align: top;
  white-space: normal;
  transform: translateZ(0);
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.showroom-card .img-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  background: #141414 !important;
  display: block !important;
}

.showroom-card .img-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
  -webkit-user-drag: none;
  transform: translateZ(0);
  transition: transform 0.5s ease !important;
}

.showroom-card:hover .img-wrap img {
  transform: scale(1.03) translateZ(0) !important;
}

.showroom-caption {
  display: block !important;
  padding: 0.85rem 0 0 0 !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 1.5px !important;
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 0.85rem;
  background: transparent !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showroom-owner {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35); /* Subtle gray */
  margin-top: 0.25rem;
  text-transform: lowercase;
  letter-spacing: 1px;
}

/* ============================================================
   ADD TO CART FILL EFFECT & CART PULSE/WIGGLE ANIMATIONS
   ============================================================ */
.add-to-cart-btn {
     position: relative;
     overflow: hidden;
     width: 100%;
     background: #8b0000 !important;
     color: #fff !important;
     font-family: 'Courier New', Courier, monospace;
     font-size: 0.85rem;
     letter-spacing: 0.15em;
     padding: 0.75rem 0;
     border: 1px solid #8b0000;
     cursor: pointer;
     text-transform: uppercase;
     z-index: 2;
     display: flex;
     align-items: center;
     justify-content: center;
     box-sizing: border-box;
    }

    .add-to-cart-btn span {
     position: relative;
     z-index: 3;
     display: inline-block;
     text-align: center;
     font-family: 'Courier New', Courier, monospace;
     letter-spacing: inherit;
     line-height: normal;
     transition: color 0.3s ease, transform 0.2s ease;
     white-space: nowrap;
    }

    /* Shifts the longer text slightly left to compensate for its length */
    .add-to-cart-btn span.shifted {
     transform: translateX(-45px); 
    }
    .add-to-cart-btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: #fff;
     z-index: 1;
    }

    .add-to-cart-btn.animating::before {
     animation: fillAndReverse 3.0s ease-in-out forwards;
    }

    @keyframes fillAndReverse {
     0% { transform: translateX(0); }
     30% { transform: translateX(100%); }
     70% { transform: translateX(100%); }
     100% { transform: translateX(0); }
    }

#add-to-cart span {
  position: relative;
  z-index: 2;
}

@keyframes cartPulseWiggle {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.2) rotate(-8deg); }
  40% { transform: scale(1.2) rotate(8deg); }
  60% { transform: scale(1.1) rotate(-4deg); }
  80% { transform: scale(1.05) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.cart-icon-animate {
  animation: cartPulseWiggle 0.5s ease-in-out;
  color: #ff0033 !important;
}

.ticker, .ticker-track {
    box-sizing: border-box;
}



.ticker-container { /* or whatever class wraps your top text */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px; /* give it a explicit height */
    z-index: 1000; /* keep it above everything */
}

.showroom-hero, .page-hero {
    margin-top: 2rem;
}

.cart-hero, .page-hero {
    margin-top: 2rem;
}

/* Force philosophy right-hand image card border to dark red */
.philosophy-graphic-col {
    border: 1px solid var(--accent) !important;
}

.philosophy-graphic-col:hover {
    border-color: var(--accent-bright) !important;
}

/* Fullscreen Navigation Overlay */
.nav-overlay, .fullscreen-menu {
    background-color: #000000 !important; /* Solid black blackout */
    z-index: 9999; /* Keeps it strictly on top of everything */
}

/* Make nav titles pure white */
.nav-overlay a, .fullscreen-menu a, .nav-links a {
    color: #ffffff !important;
}

.nav-overlay a:hover, .fullscreen-menu a:hover {
    color: var(--accent) !important; /* Optional: switches to red on hover */
}

/* Style the red 'U' inside the nav overlay */
.nav-overlay a span, .fullscreen-menu a span {
    color: #8b0000 !important; /* Deep blood red */
}

/* Ensure the close / hamburger toggle stays pinned and visible above the blackout */
.menu-toggle, .nav-overlay .menu-toggle, .site-header .menu-toggle {
    position: relative;
    z-index: 10000 !important;
}

/* Force the header and the toggle to stay above the overlay */
.site-header {
    z-index: 10001 !important;
}

.menu-toggle {
    z-index: 10002 !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Ensure the spans inside the toggle remain visible and white when open */
.menu-toggle span {
    background-color: var(--text-primary) !important;
}

/* Force corner mascots to sit above the black nav overlay */
.mascot-star-corner,
.mascot-ghost-corner,
.nav-star,
.cart-ghost {
    z-index: 10005 !important;
}

/* --- RED RONIN ROULETTE WHEEL --- */
.ronin-wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.ronin-modal {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 440px;
  padding: 1.5rem 2rem 2.8rem; /* Extended vertical padding to give the box more height */
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #fff;
  position: relative;
  border-radius: 2px;
}

.ronin-close-btn {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.25rem;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
}
.ronin-close-btn:hover {
  color: #fff;
}

.ronin-modal h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.2rem; /* Pulled all the way up */
}

.ronin-modal h3 span {
  color: #cc0000;
}

.ronin-modal p {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 0.6rem; /* Tighter bottom margin to hug the title and clear the wheel */
  text-transform: uppercase;
}

/* Wheel Container with balanced vertical spacing */
.ronin-wheel-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2.8rem auto 2.8rem;
}

/* Roulette Design Background */
.ronin-roulette-base {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #111 0deg 90deg,
    #8b0000 90deg 180deg,
    #111 180deg 270deg,
    #8b0000 270deg 360deg
  );
  border: 3px solid #222;
  box-shadow: 0 0 20px rgba(204, 0, 0, 0.2);
}

/* Inner dark matte ring plate */
.ronin-roulette-base::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: #000;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Prizes: Left/Right mirrored cleanly off the wheel edges */
.roulette-segment {
  position: absolute;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #fff;
  font-weight: bold;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  background: rgba(0, 0, 0, 0.9);
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  white-space: nowrap;
}

.seg-1 { 
  top: -26px; 
  left: 50%; 
  transform: translateX(-50%); 
  border-color: rgba(255, 255, 255, 0.2); 
  color: #fff; 
}

.seg-2 { 
  left: calc(100% + 12px); /* Starts right at the wheel's edge on the right side */
  top: 50%; 
  transform: translateY(-50%); 
}

.seg-3 { 
  bottom: -26px; 
  left: 50%; 
  transform: translateX(-50%); 
}

.seg-4 { 
  right: calc(100% + 12px); /* Mirrors the left side cleanly from the wheel's edge */
  top: 50%; 
  transform: translateY(-50%); 
}

/* Large Spinning Ronin Wheel Layer */
.ronin-spinning-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 4.5s cubic-bezier(0.15, 0.85, 0.15, 1);
  box-shadow: 0 0 15px rgba(0,0,0,0.9);
  z-index: 5;
}

.ronin-spinning-wheel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Email & Spin Form Inputs */
.ronin-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ronin-form input {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 2px;
  outline: none;
}
.ronin-form input:focus {
  border-color: #fff;
}

.ronin-action-btn {
  background: #cc0000;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  width: 100%;
  padding: 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.ronin-action-btn:hover {
  background: #b30000;
}

.ronin-reward-box {
  display: none;
}

.ronin-reward-box input {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.75rem;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  width: 100%;
  margin-bottom: 0.75rem;
  letter-spacing: 3px;
}


.header-left {
  display: flex;
  align-items: center;
  gap: 15px; /* Spacing between the hamburger and the wheel */
}

.header-wheel-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.header-wheel-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-wheel-trigger:hover {
  opacity: 1;
  transform: rotate(90deg); /* Adds a cool subtle spin effect when hovered */
}

header img, .logo img {
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  header, .header-container {
    flex-wrap: wrap;
    padding: 10px 15px;
  }
  header img, .logo img {
    max-width: 140px;
    height: auto;
    flex-shrink: 1;
  }
  /* Ensure navigation icons and hamburger stay aligned */
  .nav-icons, .icons-right {
    gap: 15px;
  }
}

#cart-ghost.instant-start {
  transition: none !important;
}

html.has-cart-items #cart-subtitle {
  display: none !important;
}



/* ============================================================

   ANCHORED BROODING JACK-O'-LANTERN (CLEAN HOVER & CONTAINED GLOW)

   ============================================================ */

.footer-jackolantern {

  position: absolute;

  top: -198px; 

  right: 18%;

  width: 160px;

  height: auto;

  z-index: -10;

  cursor: pointer;

  /* Removed transform scaling/translation on hover */

}



/* REMOVED HOVER SCALE/LIFT EFFECT */

.footer-jackolantern:hover {

  transform: none;

}



/* Orange breathing glow contained strictly inside the face paths */

.pumpkin-glow {

  fill: #ff5500;

  animation: orangeEmber 3s ease-in-out infinite alternate, orangeEyeTwitch 7s ease-in-out infinite;

  transform-origin: center;

  transition: fill 0.2s ease;

}



@keyframes orangeEmber {

  0% { 

    fill: #cc3300; 

    opacity: 0.75; 

    filter: drop-shadow(0 0 2px #ff5500); 

  }

  50% { 

    fill: #ff4400; 

    opacity: 0.9; 

    filter: drop-shadow(0 0 6px #ff6600); 

  }

  100% { 

    fill: #ff6600; 

    opacity: 1; 

    filter: drop-shadow(0 0 10px #ff7700); 

  }

}



@keyframes orangeEyeTwitch {

  0%, 90%, 100% { opacity: 1; }

  92% { opacity: 0.25; transform: scaleX(0.96); }

  94% { opacity: 0.95; }

  96% { opacity: 0.5; }

  98% { opacity: 1; }

}



/* Subtle rising orange embers drifting from the stem */

.footer-jackolantern::after {

  content: "";

  position: absolute;

  top: 10px;

  left: 53%;

  width: 3px;

  height: 3px;

  background: #ff5500;

  box-shadow: 0 0 4px #ff5500, 12px -25px 0 0 rgba(255, 85, 0, 0.7), -10px -40px 0 0 rgba(255, 85, 0, 0.5);

  border-radius: 50%;

  pointer-events: none;

  opacity: 0;

  animation: emberRise 4s linear infinite;

}



@keyframes emberRise {

  0% { transform: translateY(0px) translateX(0px); opacity: 0; }

  20% { opacity: 0.8; }

  80% { opacity: 0.4; }

  100% { transform: translateY(-70px) translateX(8px); opacity: 0; }

}



/* CLICK ANIMATION: HEAVY ANGRY HEAD SHAKE & SMOLDERING RED (DARKENED) */

.footer-jackolantern.angry-shake {

  animation: heavyHeadShake 0.8s ease-in-out;

}



.footer-jackolantern.angry-shake .pumpkin-glow {

  animation: faceScrunch 0.8s ease-in-out !important;

  /* Shifts the light to a deep, smoldering blood-red when angry */

  fill: #aa0000 !important;

  filter: drop-shadow(0 0 4px #550000);

}



@keyframes heavyHeadShake {

  0%, 100% { transform: translateX(0) rotate(0deg); }

  20% { transform: translateX(-9px) rotate(-6deg); }

  40% { transform: translateX(8px) rotate(5deg); }

  60% { transform: translateX(-6px) rotate(-3deg); }

  80% { transform: translateX(4px) rotate(2deg); }

}



@keyframes faceScrunch {

  0%, 100% { transform: scale(1); }

  50% { transform: scale(0.82) scaleY(0.88); }

}