/* Both product pages intentionally share this exact switcher geometry. */
.site-header,
.menubar {
  position: relative;
  height: 66px;
  min-height: 66px;
  box-sizing: border-box;
}

.app-shell { padding-top: 12px; }

.site-header .product-nav,
.menubar .desktop-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 226px;
  height: 46px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--product-nav-border, rgba(255, 255, 255, .12));
  border-radius: 999px;
  color: var(--product-nav-text, rgba(255, 255, 255, .72));
  background: var(--product-nav-bg, rgba(11, 18, 14, .88));
  box-shadow: var(--product-nav-shadow, 0 10px 28px rgba(11, 24, 50, .13));
  transform: translate(-50%, -50%);
  backdrop-filter: none;
}

.site-header .product-nav a,
.menubar .desktop-nav a {
  min-width: 0;
  height: 36px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--product-nav-text, rgba(255, 255, 255, .72)) !important;
  background: transparent !important;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}

.site-header .product-nav a.is-active,
.menubar .desktop-nav a.is-active,
body.theme-blue .site-header .product-nav a.is-active {
  color: var(--product-nav-active-text, #fff) !important;
  background: var(--product-nav-active-bg, rgba(255, 255, 255, .14)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
  transform: none;
}

.site-header .product-nav a:hover:not(.is-active),
.menubar .desktop-nav a:hover:not(.is-active) {
  color: var(--product-nav-hover-text, var(--product-nav-text, #536987)) !important;
  background: var(--product-nav-hover-bg, rgba(255, 255, 255, .12)) !important;
  box-shadow: none;
  transform: none;
}

body.theme-blue .site-header .product-nav {
  --product-nav-bg: rgba(235, 243, 255, .94);
  --product-nav-text: #536987;
  --product-nav-active-bg: var(--brand, #2f6dff);
  --product-nav-active-text: #fff;
  --product-nav-hover-bg: rgba(47, 109, 255, .1);
  --product-nav-hover-text: #2458c9;
  border-color: rgba(47, 109, 255, .18);
  box-shadow: 0 10px 28px rgba(47, 109, 255, .13);
}

@media (max-width: 820px) {
  .site-header .product-nav,
  .menubar .desktop-nav {
    width: 196px;
    height: 42px;
  }
  .site-header .product-nav a,
  .menubar .desktop-nav a {
    height: 32px;
    font-size: 11px;
  }
}

@media (max-width: 540px) {
  .site-header .product-nav,
  .menubar .desktop-nav {
    width: 176px;
  }
  .menubar .desktop-nav a:first-child {
    display: grid;
  }
}
