/* =============================================
   HRz PITSTOP – Header & Navigation
   ============================================= */

.topline {
  height: 33px;
  background: var(--red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4.5vw;
  font-family: 'Barlow Condensed';
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  height: 82px;
  padding: 0 4.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff1c;
  position: sticky;
  top: 33px;
  z-index: 40;
  width: 100%;
  background: #101114;
  box-shadow: 0 4px 20px #0004;
}

.brand {
  font-family: 'Barlow Condensed';
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
}
.brand span { color: var(--red); font-style: italic; }
.brand i { font-style: normal; font-weight: 500; color: #c8c8c4; }

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
}
.nav-link { transition: .2s; }
.nav-link:hover { color: var(--red2); }
.nav-link.active { color: var(--red2); }
.admin-link { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition: .2s;
}
.icon-button:hover { color: var(--red2); }

.bag {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  padding-left: 11px;
  border-left: 1px solid #ffffff35;
  border: 0;
  border-left: 1px solid #ffffff35;
  background: transparent;
  color: white;
  cursor: pointer;
}
.bag b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 50%;
  font-size: 11px;
  margin-left: 5px;
}

/* Search Autocomplete inside header (used by search.js) */
.search-autocomplete-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
.search-autocomplete-popover.show { display: block; }

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.autocomplete-item:hover { background: var(--steel); }
.autocomplete-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.autocomplete-item strong { display: block; font-size: 14px; }
.autocomplete-item small { color: var(--mute); font-size: 12px; }
