/* ============================================================
   VARIABLES
   — Defined here so navbar.css works on any page even without
     a shared style.css.
   ============================================================ */
:root {
  --cyan:     #00F0FF;
  --dark-bg:  #080B10;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* --- Logo --- */
.nav-logo {
  font-family: 'Porter Sans Block', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}


/* --- Home icon link --- */
.nav-home-btn {
  display: flex;
  align-items: center;
  padding: 8px;
}

.nav-home-btn .nav-icon {
  width: 22px;
  height: 22px;
}

/* --- Links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

/* Underline slides in from center on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


/* --- Icons --- */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.3s;
}

.nav-icon-btn:hover {
  color: var(--cyan);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: block;
}


/* --- Cart badge --- */
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   NAV STRIP — horizontal scrollable nav for tablet / mobile
   ============================================================ */
.nav-strip {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  padding: 0 8px;
  text-align: center;
}

.nav-strip::-webkit-scrollbar { display: none; }

.nav-strip-link {
  display: inline-block;
  padding: 12px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 2px solid transparent;
}

.nav-strip-link:hover,
.nav-strip-link.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}


/* ============================================================
   HAMBURGER — not used, hidden everywhere
   ============================================================ */
.nav-toggle  { display: none; }
.nav-overlay { display: none; }


/* ============================================================
   RESPONSIVE — tablet / mobile (≤1023px) shows strip
   ============================================================ */
@media (max-width: 1023px) {
  .navbar         { height: auto; }
  .nav-container  { padding: 0 24px; height: 72px; }
  .nav-links      { display: none; }
  .nav-strip      { display: block; }
  body            { padding-top: 114px !important; }
}


/* ============================================================
   RESPONSIVE — small mobile (≤640px) tighter spacing
   ============================================================ */
@media (max-width: 640px) {
  .nav-container  { padding: 0 16px; }
  .nav-logo       { font-size: 22px; letter-spacing: 0.08em; }
  .nav-icons      { gap: 6px; }
  .nav-icon-btn   { padding: 6px; }
  .nav-icon       { width: 22px; height: 22px; }
  .nav-strip-link { padding: 10px 10px; font-size: 11px; letter-spacing: 0.04em; }
}

@media (max-width: 480px) {
  .nav-strip-link { padding: 8px 7px; font-size: 10px; letter-spacing: 0.02em; }
}
