/* ============================================================
   V3.12 SAMURAI — NeoPlay Header CSS
   Yellow nav bar + per-platform mega menu accent colors
   White fill sweep hover on all interactive elements
   Font: Exo (matches live site)
   ============================================================ */

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --neo-yellow: #FCEE0A;
  --neo-red: #ff003c;
  --neo-cyan: #00f0ff;
  --neo-bg-dark: #0a0a0a;
  --neo-bg-surface: #141414;
  --neo-border: #2a2a2a;
  --neo-font: 'Exo', sans-serif;
}

/* ============================================================
   HEADER — 90px sticky, transparent with blur
   ============================================================ */
.neo-header {
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 90px;
  display: flex !important;
  align-items: center;
  padding: 0 30px;
  background: transparent !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  overflow: visible !important;
  isolation: isolate;
  /* Reset parent theme transitions */
  transition: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Cyberpunk glowing color-changing top border */
.neo-border-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--neo-cyan);
  box-shadow:
    0 0 12px currentColor,
    0 0 25px currentColor,
    0 0 40px currentColor;
  z-index: 5;
  pointer-events: none;
  animation:
    neoBorderColorShift 8s linear infinite,
    neoBorderGlitch 12s steps(1) infinite;
}

/* Color-shifting animation through cyberpunk palette */
@keyframes neoBorderColorShift {
  0% {
    background: #00f3ff; /* Cyan */
    color: rgba(0, 243, 255, 0.8);
  }
  25% {
    background: #b829f5; /* Purple */
    color: rgba(184, 41, 245, 0.8);
  }
  50% {
    background: #ff006a; /* Hot pink */
    color: rgba(255, 0, 106, 0.8);
  }
  75% {
    background: #fcee0a; /* Yellow */
    color: rgba(252, 238, 10, 0.8);
  }
  100% {
    background: #00f3ff; /* Back to cyan */
    color: rgba(0, 243, 255, 0.8);
  }
}

/* Glitch effect - occasional disruptions */
@keyframes neoBorderGlitch {
  0%, 19%, 21%, 39%, 41%, 79%, 81%, 100% {
    transform: translateX(0) scaleY(1);
    opacity: 1;
    filter: none;
  }
  20% {
    transform: translateX(-3px) scaleY(1.5);
    opacity: 0.8;
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translateX(4px) scaleY(0.7);
    opacity: 0.9;
    filter: hue-rotate(-45deg);
  }
  80% {
    transform: translateX(-2px) scaleY(1.3);
    opacity: 0.85;
    filter: hue-rotate(180deg);
  }
}

/* Yellow-tinted bottom border */
.neo-border-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(252,238,10,0.15);
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   LOGO
   ============================================================ */
.neo-logo-area {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
  margin-right: 28px;
}

.neo-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  cursor: pointer;
}

.neo-logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(252, 238, 10, 0.15));
  animation: neoLogoIdleGlitch 8s steps(1) infinite;
}

@keyframes neoLogoIdleGlitch {
  0%, 90%, 100% {
    transform: translate(0,0);
    filter: drop-shadow(0 0 4px rgba(252, 238, 10, 0.15));
  }
  91% {
    transform: translate(-1px, 0);
    filter: drop-shadow(-2px 0 0 rgba(255, 0, 60, 0.5)) drop-shadow(2px 0 0 rgba(252, 238, 10, 0.5));
  }
  92% {
    transform: translate(2px, 0);
    filter: drop-shadow(-2px 0 0 rgba(255, 0, 60, 0.6)) drop-shadow(2px 0 0 rgba(252, 238, 10, 0.6));
  }
  93% {
    transform: translate(0,0);
    filter: drop-shadow(0 0 4px rgba(252, 238, 10, 0.15));
  }
}

.neo-logo-link:hover .neo-logo-img {
  animation: neoLogoHoverGlitch 0.4s steps(3) forwards;
}

@keyframes neoLogoHoverGlitch {
  0%   { transform: translate(0,0);   filter: drop-shadow(0 0 4px rgba(252, 238, 10, 0.15)); }
  15%  { transform: translate(-2px, 1px);  filter: drop-shadow(-2px 0 0 rgba(255, 0, 60, 0.7)) drop-shadow(2px 0 0 rgba(252, 238, 10, 0.7)); }
  30%  { transform: translate(2px, -1px);  filter: drop-shadow(-2px 0 0 rgba(255, 0, 60, 0.8)) drop-shadow(2px 0 0 rgba(252, 238, 10, 0.8)); }
  50%  { transform: translate(-1px, 0);    filter: drop-shadow(-1px 0 0 rgba(255, 0, 60, 0.4)) drop-shadow(1px 0 0 rgba(252, 238, 10, 0.4)); }
  100% { transform: translate(0,0);        filter: drop-shadow(0 0 8px rgba(252, 238, 10, 0.4)); }
}

/* ============================================================
   GLITCH ANIMATION (shared: nav + mega menu category links)
   ============================================================ */
@keyframes neoCplGlitch {
  0%, 33.9% {
    text-shadow: 3px 0 0 var(--neo-yellow), -3px 0 0 var(--neo-red);
    transform: translateX(4px) skewX(-2deg);
  }
  34%, 66.9% {
    text-shadow: -3px 0 0 var(--neo-red), 2px 0 0 var(--neo-yellow);
    transform: translateX(-4px) skewX(2deg);
  }
  67%, 99.9% {
    text-shadow: 2px 0 0 var(--neo-yellow), -2px 0 0 var(--neo-red);
    transform: translateX(3px) skewX(-1deg);
  }
  100% {
    text-shadow: none;
    transform: none;
  }
}

@keyframes neoCplGlitchDupe {
  0%, 33.9% {
    opacity: 0.9;
    clip-path: polygon(0 38%, 100% 38%, 100% 100%, 0 100%);
    color: var(--neo-yellow);
    text-shadow: -3px 0 0 var(--neo-red);
    transform: translateX(-4px);
  }
  34%, 66.9% {
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 0 55%);
    color: var(--neo-red);
    text-shadow: 2px 0 0 var(--neo-yellow);
    transform: translateX(4px);
  }
  67%, 99.9% {
    opacity: 0.7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 55%, 100% 55%, 100% 38%, 0 38%);
    color: var(--neo-yellow);
    text-shadow: -2px 0 0 var(--neo-red);
    transform: translateX(-2px);
  }
  100% { opacity: 0; }
}

/* ============================================================
   NAV — chamfered panels, yellow borders, white fill on hover
   ============================================================ */
.neo-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  flex: 1;
  z-index: 2;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.neo-nav-item {
  display: flex;
  align-items: center;
}

.neo-nav-item--has-mega {
  position: static;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.neo-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--neo-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  background: rgba(252,238,10,0.05);
  border: 1px solid rgba(252,238,10,0.12);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  white-space: nowrap;
}

/* White fill sweep */
.neo-nav-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%; height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.neo-nav-link:hover {
  color: var(--neo-bg-dark) !important;
  border-color: #ffffff;
  background: transparent;
  text-shadow: none;
  animation: neoCplGlitch 0.25s linear;
}

.neo-nav-link:hover::before { width: 100%; }

/* Glitch duplicate layer */
.neo-nav-link::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 18px;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.neo-nav-link:hover::after {
  animation: neoCplGlitchDupe 0.25s linear;
}

/* Platform nav icons */
.neo-nav-icon {
  width: 18px;
  height: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s;
  position: relative;
  z-index: 1;
}

.neo-nav-link:hover .neo-nav-icon {
  opacity: 1;
  filter: brightness(0);
}

.neo-nav-link span {
  position: relative;
  z-index: 1;
}

/* ============================================================
   ICON PANEL (search, wishlist, cart, account)
   ============================================================ */
.neo-icon-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  z-index: 2;
  flex-shrink: 0;
}

.neo-neon-divider {
  width: 1px;
  height: 40px;
  background: rgba(252,238,10,0.2);
  margin: 0 16px;
  flex-shrink: 0;
}

.neo-icon-btn {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent !important;
  border: 1px solid var(--neo-border) !important;
  color: #ffffff !important;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  overflow: hidden;
  text-decoration: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* White fill sweep */
.neo-icon-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%; height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.neo-icon-btn:hover {
  color: var(--neo-bg-dark) !important;
  border-color: #ffffff !important;
  background: transparent !important;
  animation: neoCplGlitch 0.25s linear;
}

.neo-icon-btn:hover::before { width: 100%; }

.neo-icon-btn svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

/* Cart badge */
.neo-cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--neo-red);
  z-index: 2;
  color: #fff;
  font-family: var(--neo-font);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  box-shadow: 0 0 8px var(--neo-red), 0 0 16px rgba(255,0,60,0.5);
  animation: neoBadgePulse 2s ease-in-out infinite;
}

.neo-cart-badge:empty {
  display: none;
}

@keyframes neoBadgePulse {
  0%, 100% { box-shadow: 0 0 6px var(--neo-red), 0 0 12px rgba(255, 0, 60, 0.3); }
  50%       { box-shadow: 0 0 10px var(--neo-red), 0 0 20px rgba(255, 0, 60, 0.5); }
}

/* Wishlist badge — same style as cart badge */
.neo-wishlist-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--neo-red);
  z-index: 2;
  color: #fff;
  font-family: var(--neo-font);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  box-shadow: 0 0 8px var(--neo-red), 0 0 16px rgba(255,0,60,0.5);
  animation: neoBadgePulse 2s ease-in-out infinite;
}

.neo-wishlist-badge:empty {
  display: none;
}



/* Watermark */
.neo-watermark {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--neo-font);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(252, 238, 10, 0.08);
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   MEGA MENU — slide-down with glitch
   ============================================================ */
.neo-mega-menu {
  position: absolute;
  top: 90px;
  left: 50%;
  margin-left: -380px;
  width: 760px;
  background: var(--neo-bg-surface);
  border: 1px solid var(--neo-border);
  border-top: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  overflow: hidden;
  transition: opacity 0.1s, visibility 0.1s;
}

.neo-nav-item--has-mega:hover .neo-mega-menu {
  opacity: 1;
  visibility: visible;
  animation: neoMenuSlideIn 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes neoMenuSlideIn {
  0%  { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);     transform: translateY(-4px); }
  10% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 20%, 0 18%); transform: translateX(-2px); }
  20% {             clip-path: polygon(0 0, 100% 0, 100% 45%, 0 42%); transform: translateX(1px); }
  35% {             clip-path: polygon(0 0, 100% 0, 100% 70%, 0 68%); transform: translateX(-1px); }
  50% {             clip-path: polygon(0 0, 100% 0, 100% 90%, 0 88%); transform: translateX(0); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; opacity: 1; }
}

/* Per-platform accent variables */
.neo-mega--pc       { --accent: #00f0ff; --accent-rgb: 0, 240, 255; }
.neo-mega--ps       { --accent: #006FCD; --accent-rgb: 0, 111, 205; }
.neo-mega--xbox     { --accent: #2DB82D; --accent-rgb: 45, 184, 45; }
.neo-mega--nintendo { --accent: #ff003c; --accent-rgb: 255, 0, 60; }

/* Top accent line */
.neo-mega-edge {
  position: relative;
  height: 2px;
  z-index: 2;
}

.neo-mega-edge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  box-shadow: 0 0 4px rgba(var(--accent-rgb), 0.3);
}

/* Terminal bar */
.neo-cmd-bar {
  display: flex;
  align-items: center;
  padding: 10px 30px;
  border-bottom: 1px solid var(--neo-border);
  position: relative;
  z-index: 2;
}

.neo-cmd-path {
  font-family: var(--neo-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.neo-cmd-path .dim { color: rgba(var(--accent-rgb), 0.35); }

.neo-cmd-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  margin-left: 4px;
  animation: neoBlink 0.8s steps(1) infinite;
  vertical-align: middle;
}

@keyframes neoBlink {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.neo-cmd-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.neo-cmd-stat {
  font-family: var(--neo-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #666666;
}

.neo-cmd-stat span { color: var(--accent); font-weight: 700; }

/* Category grid */
.neo-mega-content {
  position: relative;
  z-index: 2;
}

.neo-cat-grid {
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  align-content: start;
}

.neo-cat-section-label {
  grid-column: 1 / -1;
  font-family: var(--neo-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #666666;
  padding: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.neo-cat-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neo-border), transparent);
}

.neo-cat-section-label--prepaid::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), transparent);
}

.neo-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--neo-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  overflow: hidden;
}

/* White fill sweep */
.neo-cat-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%; height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.neo-cat-link:hover {
  color: var(--neo-bg-dark) !important;
  border-color: #ffffff;
  text-shadow: none;
  background: transparent;
  animation: neoCplGlitch 0.25s linear;
}

.neo-cat-link:hover::before { width: 100%; }

/* Glitch dupe for category links */
.neo-cat-link::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 42px;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.neo-cat-link:hover::after {
  animation: neoCplGlitchDupe 0.25s linear;
}

/* Category icons */
.neo-cat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
  object-fit: contain;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
  position: relative;
  z-index: 1;
}

.neo-cat-link:hover .neo-cat-icon {
  opacity: 1;
  transform: scale(1.15);
  filter: brightness(0);
}

.neo-cat-count {
  margin-left: auto;
  font-family: var(--neo-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.neo-cat-link:hover .neo-cat-count { color: var(--neo-bg-dark); }

/* Tags */
.neo-cat-tag {
  margin-left: auto;
  font-family: var(--neo-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
  position: relative;
  z-index: 1;
}

.neo-cat-tag--hot  { color: #fff;    background: var(--neo-red); }
.neo-cat-tag--new  { color: #0a0a0a; background: var(--neo-yellow); }
.neo-cat-tag--sale { color: #0a0a0a; background: var(--neo-cyan); }

.neo-cat-link:hover .neo-cat-tag { opacity: 0.7; }

/* Mega bottom bar */
.neo-mega-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  border-top: 1px solid var(--neo-border);
  position: relative;
  z-index: 2;
}

.neo-mega-viewall {
  font-family: var(--neo-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.neo-mega-viewall:hover {
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
  letter-spacing: 2.5px;
}

.neo-mega-bottom .neo-cmd-stat span { color: var(--accent); }

/* ============================================================
   HAMBURGER — hidden on desktop, visible ≤1077px
   ============================================================ */
.neo-hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent !important;
  border: 1px solid var(--neo-border) !important;
  color: #ffffff !important;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  z-index: 2;
  margin-left: auto;
}

.neo-hamburger::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%; height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.neo-hamburger:hover { border-color: #ffffff !important; color: var(--neo-bg-dark) !important; }
.neo-hamburger:hover::before { width: 100%; }

.neo-hamburger-line {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.neo-hamburger.active .neo-hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.neo-hamburger.active .neo-hamburger-line:nth-child(2) { opacity: 0; }
.neo-hamburger.active .neo-hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE DRAWER — slide-in from right
   ============================================================ */
.neo-mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--neo-bg-dark);
  border-left: 1px solid var(--neo-border);
  z-index: 10000;
  transform: translateX(calc(100% + 10px));
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  display: none;
}

.neo-mobile-drawer.open { transform: translateX(0); }

.neo-mobile-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--neo-yellow);
  box-shadow: 0 0 12px rgba(252,238,10,0.6);
}

/* Drawer header */
.neo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--neo-border);
}

.neo-drawer-logo { height: 36px; width: auto; filter: drop-shadow(0 0 4px rgba(252, 238, 10, 0.15)); }

.neo-drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--neo-border);
  color: #ffffff;
  cursor: pointer;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.neo-drawer-close::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0%; height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.neo-drawer-close:hover { border-color: #ffffff; color: var(--neo-bg-dark); }
.neo-drawer-close:hover::before { width: 100%; }

.neo-drawer-close svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  position: relative; z-index: 1;
}

/* Drawer nav */
.neo-drawer-nav { padding: 12px 0; }

.neo-drawer-item { border-bottom: 1px solid rgba(255,255,255,0.04); }

.neo-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--neo-font);
  font-size: 14px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
}

.neo-drawer-link::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0%; height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.neo-drawer-link:hover { color: var(--neo-bg-dark) !important; }
.neo-drawer-link:hover::before { width: 100%; }

.neo-drawer-link img,
.neo-drawer-link svg,
.neo-drawer-link span { position: relative; z-index: 1; }

.neo-drawer-link img { filter: brightness(0) invert(1); transition: filter 0.3s; }
.neo-drawer-link:hover img { filter: brightness(0); }

.neo-drawer-sub { padding: 0 20px 12px; display: none; }
.neo-drawer-item.expanded .neo-drawer-sub { display: block; }

.neo-drawer-sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none !important;
  font-family: var(--neo-font);
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  border-left: 2px solid var(--neo-border);
  transition: all 0.3s ease;
}

.neo-drawer-sub-link:hover { color: var(--neo-yellow) !important; border-left-color: var(--neo-yellow); }

.neo-drawer-arrow {
  margin-left: auto;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.neo-drawer-item.expanded .neo-drawer-arrow { transform: rotate(180deg); }

/* Drawer overlay */
.neo-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.neo-drawer-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   MOBILE BOTTOM ICONS BAR — fixed bottom, ≤567px only
   ============================================================ */
.neo-mobile-icons-bar {
  display: none !important;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  height: 60px;
  background: var(--neo-bg-dark);
  border-top: 1px solid var(--neo-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.neo-mobile-icons-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(252,238,10,0.2);
}

.neo-mobile-icon-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  font-family: var(--neo-font);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.3s;
  position: relative; cursor: pointer;
  background: none; border: none;
  padding: 0;
}

.neo-mobile-icon-item:hover,
.neo-mobile-icon-item.active { color: var(--neo-yellow) !important; }

.neo-mobile-icon-item svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.neo-mobile-icon-item .neo-mobile-badge {
  position: absolute;
  top: 6px; right: calc(50% - 16px);
  width: 16px; height: 16px;
  background: var(--neo-red); color: #fff;
  font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neo-red);
}

.neo-mobile-icon-item .neo-mobile-badge:empty { display: none; }

/* ============================================================
   RESPONSIVE — TABLET (≤1077px)
   ============================================================ */
@media (max-width: 1077px) {
  .neo-header { padding: 0 16px; }
  .neo-nav { display: none !important; }
  .neo-neon-divider { display: none; }
  .neo-hamburger { display: flex !important; }
  .neo-mobile-drawer { display: block; }
  .neo-icon-panel { gap: 4px; margin-left: 12px; }
  .neo-logo-area { margin-right: 12px; }
  .neo-watermark { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤567px)
   ============================================================ */
@media (max-width: 567px) {
  .neo-header { height: 70px; padding: 0 12px; }
  .neo-logo-img { height: 36px; }
  .neo-logo-area { margin-right: 8px; }
  .neo-icon-panel { display: none !important; }
  .neo-mobile-icons-bar { display: flex !important; }
  .neo-hamburger { width: 40px; height: 40px; }
  .neo-hamburger-line { width: 18px; }
  .neo-border-top { height: 2px; }
}

/* Admin bar offset */
.admin-bar .neo-header { top: var(--cpl-admin-bar__height, 32px); }

/* ============================================================
   SCROLLED STATE — solid black background on scroll
   ============================================================ */
.neo-header {
  transition: background 0.3s ease !important;
}

.neo-header.neo-scrolled {
  background: #141414 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6) !important;
}

/* ============================================================
   FONT AWESOME icons inside mega menus
   ============================================================ */
i.neo-cat-icon {
  font-size: 13px;
  width: 16px;
  height: 16px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s, transform 0.3s;
  opacity: 0.85;
}

.neo-cat-link:hover i.neo-cat-icon {
  color: var(--neo-bg-dark);
  transform: scale(1.15);
  opacity: 1;
}

/* ============================================================
   LOGO — defensive visibility (prevent parent theme conflicts)
   ============================================================ */
.neo-logo-area {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.neo-logo-img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================================================
   LOGO FIX — Force dimensions on all pages
   Prevents WooCommerce CSS from collapsing logo to zero width
   ============================================================ */
.neo-logo-img,
img.neo-logo-img {
  min-width: 120px !important;
  min-height: 40px !important;
  width: auto !important;
  height: 50px !important;
  max-width: 300px !important;
  max-height: 100px !important;
}

.neo-logo-area,
.neo-logo-link {
  min-width: 120px !important;
  min-height: 40px !important;
}

/* Add to cart button - red variant of nav link */
.neo-nav-link.neo-add-to-cart {
  width: 100%;
  max-width: 600px;
  height: 72px;
  background: var(--neo-red, #ff003c);
  border-color: var(--neo-red, #ff003c);
}

/* Override parent theme .button pseudo-elements - use nav link pattern instead */
button.neo-nav-link.neo-add-to-cart::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0% !important;
  height: 100% !important;
  background: #ffffff !important;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  z-index: -1 !important;
  clip-path: none !important;
  inset: auto !important;
}

button.neo-nav-link.neo-add-to-cart:hover::before {
  width: 100% !important;
}

button.neo-nav-link.neo-add-to-cart::after {
  display: none !important;
}
