.hp-topbar {
  background: #f8f5ee; /* off-white like Hims */
  color: #111;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  z-index: 10;
}
.hp-topbar__inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 48px;
  padding: 0 40px;
  width: 100%;
}
.hp-topbar__label {
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding-right: 16px;
  flex-shrink: 0;
}
.hp-topbar__label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
}
.hp-topbar__marquee {
  position: relative;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
  flex: 1;
}
.hp-topbar__track {
  display: flex;
  gap: 48px;
  align-items: center;
  will-change: transform;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  line-height: 1;
  height: 100%;
  padding: 0 24px;
}
.hp-topbar__tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.hp-topbar__tile svg {
  color: #111;
  opacity: 0.82;
  display: block; /* Remove any svg whitespace */
  margin: auto; /* Center vertically */
}
/* allow horizontal swipes; keep vertical page scroll working */
.hp-topbar__track {
  touch-action: pan-x;
}

/* prevent unexpected inline overscroll feedback */
.hp-topbar__track {
  overscroll-behavior-inline: contain;
}

/* ensure GPU compositing for super-smooth transforms */
.hp-topbar__track {
  will-change: transform;
  transform: translateZ(0);
}

/* Removed arrow navigation */

@media (max-width: 768px) {
  .hp-topbar {
    font-size: 14px;
  }
  .hp-topbar__inner {
    flex-direction: row;
    gap: 8px;
    padding: 8px 16px;
    min-height: auto;
    justify-content: center;
    align-items: center;
  }
  .hp-topbar__label {
    padding-right: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
  }
  .hp-topbar__label::after {
    display: none;
  }
  .hp-topbar__marquee {
    height: 36px;
    width: 100%;
    max-width: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the track */
  }
  .hp-topbar__track {
    gap: 20px;
    padding: 0;
    align-items: center;
    white-space: nowrap;
    position: absolute; /* Take out of flow for animation */
    left: 0;
    right: 0;
    margin: 0 auto; /* Center horizontally */
  }
  .hp-topbar__tile {
    flex-shrink: 0;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    margin: 0;
    padding: 0;
  }
  .hp-topbar__tile svg {
    width: 14px;
    height: 14px;
    display: block;
    margin: auto;
  }
  .hp-topbar__nav {
    display: none; /* Hide nav buttons on mobile */
  }
}

/* Reduced motion: stop animation, allow manual nav only */
@media (prefers-reduced-motion: reduce) {
  .hp-topbar__track {
    transform: none !important;
  }
}
