/* V2-05.4R.3 — Ellipse Header Lock
   Restores the full catalogue header as one centred horizontal ellipse.
   The header remains a structural grid row above content, never an overlay. */

body.is-catalogue-route {
  --catalogue-header-expanded-height: 86px;
  --catalogue-header-compact-height: 72px;
}

body.is-catalogue-route #site-header {
  width: calc(100% - 32px) !important;
  max-width: none !important;
  height: calc(100% - 12px) !important;
  min-height: 60px !important;
  margin: 6px 16px !important;
  justify-self: center;
  align-self: center;
  overflow: visible !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 30px rgba(17, 17, 17, 0.075) !important;
  -webkit-backdrop-filter: blur(22px) saturate(132%) !important;
  backdrop-filter: blur(22px) saturate(132%) !important;
}

body.is-catalogue-route #site-header::before {
  inset: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
}

body.is-catalogue-route #site-header .site-header__primary--catalogue-worlds {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding-inline: clamp(22px, 3vw, 46px) !important;
  border-radius: inherit;
}

body.is-catalogue-route #site-header .header-world-navigation {
  border-radius: 999px !important;
}

body.is-catalogue-route #site-header .header-search-panel {
  top: calc(100% + 8px) !important;
  width: min(1180px, calc(100vw - 48px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(17, 17, 17, 0.12);
}

@media (max-width: 760px) {
  body.is-catalogue-route #site-header {
    width: calc(100% - 20px) !important;
    margin: 5px 10px !important;
    min-height: 58px !important;
  }

  body.is-catalogue-route #site-header .site-header__primary--catalogue-worlds {
    padding-inline: 14px !important;
  }
}
