/* HEADER & NAVIGATION (REPLICATING IRON REPUBLIC STYLE) */

/* Announcement / Top Bar */
.top-bar {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 510;
  overflow: hidden;
}

.top-bar-marquee {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

.top-bar-text {
  color: #e5e5ec;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-text strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* Site Header */
.site-header {
  position: absolute;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-header);
  background: transparent;
  transition: background var(--ease-normal), transform var(--ease-normal), box-shadow var(--ease-normal);
  border-bottom: 1px solid transparent;
}

/* Scrolled state: matches ironrepublic fixed dark header */
.site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: rgba(13, 13, 15, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  animation: headerSlideDown 0.35s ease-out;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-gold-dot {
  color: var(--gold-primary);
}

.logo-sub-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dedee8;
  position: relative;
  padding: 8px 0;
  transition: color var(--ease-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--ease-normal);
}

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

.nav-badge-pill {
  font-size: 0.62rem;
  background: var(--gold-gradient);
  color: #0b0b0e;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 800;
  margin-left: 4px;
}

/* Header Actions (Search, Wishlist, Cart) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.action-btn svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.action-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold-gradient);
  color: #0b0b0e;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Mobile Hamburger */
.mobile-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.mobile-toggle-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--z-drawer);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease-normal), visibility var(--ease-normal);
}

.mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(-100%);
  transition: transform var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
}
.drawer-close-btn:hover {
  color: #ffffff;
  background: var(--bg-card);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e5f0;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.drawer-nav-item a:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.drawer-contact-info {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

@media (max-width: 991px) {
  .header-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .header-logo img {
    height: 40px;
  }
  .logo-main-text {
    font-size: 1.15rem;
  }
}
