/* =============================================
   Header & Navigation
   ============================================= */

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  text-align: center;
  padding: 11px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.announcement-bar__sep {
  color: rgba(255,255,255,0.2);
}

.announcement-bar__item {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .announcement-bar {
    font-size: 10px;
    letter-spacing: 1.2px;
    gap: 8px;
    padding: 8px 12px;
  }
  .announcement-bar__sep { display: none; }
}

/* ---------- Header ---------- */
.header {
  background: rgba(14, 18, 24, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* ---------- Logo ---------- */
.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.header__logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--white);
}

.header__logo-text span {
  color: var(--cyan);
}

/* ---------- Nav Links ---------- */
.nav {
  display: flex;
  gap: 40px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* ---------- Dropdown ---------- */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  border-radius: var(--radius-md);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--gray-300);
  transition: all var(--transition);
}

.nav__dropdown-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Nav Actions ---------- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  border: none;
  position: relative;
}

.header__action-btn:hover {
  color: #fff;
}

.header__action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.header__cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #fff;
  color: #0e1218;
  font-size: 10px;
  font-weight: 800;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark-900);
}

/* ---------- Mobile Menu Toggle ---------- */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.header__menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark-800);
    border-bottom: 1px solid var(--dark-600);
    padding: 20px 24px;
    gap: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--dark-600);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--dark-800);
    padding: 0 0 0 16px;
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__logo img {
    height: 26px;
    max-width: 140px;
  }
}