/* ═══════════════════════════════════════════════════════════════════
   NAVBAR — top bar, hamburger, categories sidebar
   ═══════════════════════════════════════════════════════════════════ */

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,10,32,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 30px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height 0.3s, background 0.3s;
}
nav.shrunk { height: 55px; background: rgba(8,10,32,0.96); }

/* ── Logo ──────────────────────────────────────────────────────── */
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-wrap {
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(255,45,85,0.55), 0 0 30px rgba(42,140,255,0.35);
  animation: glowPulse 3s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-img {
  width: 50px; height: 50px;
  object-fit: cover; object-position: center;
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 5px var(--red)); }
  50%      { filter: drop-shadow(0 0 20px var(--blue-bright)); }
}
.nav-logo:hover .nav-logo-wrap {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 0 28px rgba(42,140,255,0.85), 0 0 50px rgba(255,45,85,0.6);
}

.nav-brand {
  font-family: 'Orbitron', monospace; font-size: 0.8rem; font-weight: 900;
  color: var(--white); letter-spacing: 2px;
  display: inline-flex; align-items: center;
  direction: ltr; unicode-bidi: bidi-override;
}
.nav-brand span {
  font-weight: 900;
  text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
}
.nav-brand span:nth-of-type(1) { color: #D6002A; }
.nav-brand span:nth-of-type(2) { color: #00B83A; }
.nav-brand span:nth-of-type(3) { color: #1E6FE6; }

/* ── Nav links (cycling brand colors — desktop only) ─────────── */
.nav-links {
  display: flex; gap: 4px; list-style: none; flex-direction: row-reverse;
  max-width: calc(100vw - 280px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 20px;
  white-space: nowrap;
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 18px currentColor;
  transform: translateY(-1px);
}

/* ── Hamburger ─────────────────────────────────────────────────── */
.nav-hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: 4px; z-index: 10;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2.5px;
  background: #fff; border-radius: 2px;
  transition: background 0.3s;
}
.nav-hamburger:hover span { background: var(--blue-bright); }

/* ── Nav cart button ───────────────────────────────────────────── */
.nav-cart-btn {
  background: linear-gradient(135deg, var(--red), var(--blue));
  border: none; border-radius: 25px;
  color: white; font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  padding: 8px 18px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cart-btn:hover { transform: translateY(-2px); box-shadow: var(--glow-red); }
.cart-badge {
  background: white; color: var(--red);
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900;
}

/* ── Categories sidebar ────────────────────────────────────────── */
.cat-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 99990;
  background: rgba(0,0,0,0.6);
}
.cat-sidebar-overlay.open { display: block; }

.cat-sidebar {
  position: fixed; top: 0; right: -300px;
  width: 280px; height: 100%;
  z-index: 99991;
  background: linear-gradient(180deg, #0d0d1a, #1a1a2e);
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: right 0.3s ease;
  overflow-y: auto; padding: 0;
}
.cat-sidebar.open { right: 0; }

.cat-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cat-sidebar-header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.cat-sidebar-header button {
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.cat-sidebar-header button:hover { color: #fff; }

.cat-sidebar-list { padding: 12px 0; }
.cat-sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: #fff;
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: background 0.15s, padding 0.15s;
  cursor: pointer; border: none; background: none;
  width: 100%; font-family: inherit;
}
.cat-sidebar-item:hover { background: rgba(42,140,255,0.12); padding-right: 26px; }
.cat-sidebar-item img {
  width: 36px; height: 36px;
  border-radius: 8px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}
.cat-sidebar-item .cat-sb-name { flex: 1; text-align: right; }
.cat-sidebar-item .cat-sb-count {
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px; border-radius: 10px;
}

.cat-sidebar-contact {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.cat-sidebar-contact-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25d366;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  padding: 10px; border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.cat-sidebar-contact-btn:hover {
  background: rgba(37,211,102,0.25);
  box-shadow: 0 0 14px rgba(37,211,102,0.3);
}
.cat-sidebar-contact-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem; text-decoration: none;
  transition: color 0.2s;
  direction: ltr; unicode-bidi: embed;
}
.cat-sidebar-contact-item:hover { color: #fff; }
