/* Header — sticky branded navigation with search bar. */

/* -----------------------------------------------------------------
Site Header
----------------------------------------------------------------- */
body.neverland-wp-shell .site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base);
}

body.neverland-wp-shell .skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: calc(var(--z-modal) + 1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  font-weight: var(--weight-medium);
  transform: translateY(calc(-100% - var(--space-6)));
}

body.neverland-wp-shell .skip-link:focus {
  color: var(--color-text);
  outline: 3px solid var(--color-primary-action);
  outline-offset: 2px;
  transform: translateY(0);
}

body.neverland-wp-shell .site-header--scrolled {
  box-shadow: var(--shadow-md);
}

body.neverland-wp-shell .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

/* -----------------------------------------------------------------
Brand
----------------------------------------------------------------- */
body.neverland-wp-shell .site-header__brand {
  font-family: var(--font-brand);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  color: var(--color-primary-action);
  text-decoration: none;
  line-height: 1.05;
  flex-shrink: 0;

  display: flex;
  align-items: center;
}

body.neverland-wp-shell .site-header__brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

body.neverland-wp-shell .site-header__brand-line {
  display: block;
}

body.neverland-wp-shell .site-header__brand:hover {
  color: var(--color-primary-action-hover);
}

/* -----------------------------------------------------------------
Desktop Search Bar
----------------------------------------------------------------- */
body.neverland-wp-shell .site-header__search {
  display: none;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-4);
  flex: 1;
  max-width: 620px;
  height: 60px;
  transition: box-shadow var(--transition-base);
}

body.neverland-wp-shell .site-header__search:focus-within {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

body.neverland-wp-shell .site-header__search-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-3);
}

body.neverland-wp-shell .site-header__search-field--select {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

body.neverland-wp-shell .site-header__search-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.01em;
  color: var(--color-heading);
  line-height: var(--leading-tight);
  cursor: pointer;
}

body.neverland-wp-shell .site-header__search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  color: var(--color-text-secondary);
  padding: 0;
  width: 100%;
  line-height: var(--leading-tight);
}

body.neverland-wp-shell .site-header__search-input::placeholder {
  color: var(--color-text-secondary);
}

body.neverland-wp-shell select.site-header__search-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: var(--space-5);
}

body.neverland-wp-shell .site-header__search-field--select .site-header__search-label {
  /* label sits above the select naturally in the flex column */
}

body.neverland-wp-shell .site-header__search-chevron {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: var(--space-3);
  height: var(--space-2);
  fill: none;
  stroke: var(--color-text-secondary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Remove number input spinners */
body.neverland-wp-shell .site-header__search-input[type="number"]::-webkit-outer-spin-button,
body.neverland-wp-shell .site-header__search-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.neverland-wp-shell .site-header__search-input[type="number"] {
  -moz-appearance: textfield;
}

body.neverland-wp-shell .site-header__search-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  flex-shrink: 0;
}

body.neverland-wp-shell .site-header__search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-action);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--color-text-inverse);
  transition: background-color var(--transition-base);
}

body.neverland-wp-shell .site-header__search-submit:hover {
  background-color: var(--color-primary-action-hover);
}

/* -----------------------------------------------------------------
User Menu (Desktop)
----------------------------------------------------------------- */
body.neverland-wp-shell .site-header__actions {
  position: relative;
  flex-shrink: 0;
  display: none;
  align-items: center;
  gap: var(--space-3);
}

body.neverland-wp-shell .site-header__favourites-link {
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

body.neverland-wp-shell .site-header__favourites-heart {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

body.neverland-wp-shell .site-header__favourites-count,
body.neverland-wp-shell .mobile-menu__favourites-link [data-favourites-count] {
  display: inline-grid;
  min-width: var(--space-6);
  min-height: var(--space-6);
  place-items: center;
  padding-inline: var(--space-1);
  border-radius: var(--radius-full);
  background: var(--color-primary-action);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
}

body.neverland-wp-shell .mobile-menu__favourites-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

body.neverland-wp-shell .site-header__user-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: box-shadow var(--transition-base);
}

body.neverland-wp-shell .site-header__user-toggle:hover {
  box-shadow: var(--shadow-sm);
}

body.neverland-wp-shell .site-header__icon-user {
  display: block;
  width: 24px;
  height: 24px;
}

/* Dropdown */
body.neverland-wp-shell .site-header__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition-base),
visibility var(--transition-base),
transform var(--transition-base);
z-index: var(--z-dropdown);
}

body.neverland-wp-shell .site-header__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.neverland-wp-shell .site-header__dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.neverland-wp-shell .site-header__dropdown-list li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: background-color var(--transition-fast);
}

body.neverland-wp-shell .site-header__dropdown-list li a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

body.neverland-wp-shell .site-header__dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-2) 0;
}

/* -----------------------------------------------------------------
Mobile Hamburger
----------------------------------------------------------------- */
body.neverland-wp-shell .site-header__mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  flex-shrink: 0;
}

body.neverland-wp-shell .site-header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

body.neverland-wp-shell .site-header__mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.neverland-wp-shell .site-header__mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

body.neverland-wp-shell .site-header__mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------------------------------------------
Mobile Menu Overlay
----------------------------------------------------------------- */
body.neverland-wp-shell .mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: var(--z-overlay);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-slow),
opacity var(--transition-slow),
visibility var(--transition-slow);
}

body.neverland-wp-shell .mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

body.neverland-wp-shell .mobile-menu__inner {
  padding: var(--space-6);
  max-width: 480px;
  margin: 0 auto;
}

/* Mobile search */
body.neverland-wp-shell .mobile-menu__search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

body.neverland-wp-shell .mobile-menu__search-input {
  flex: 1;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  background: var(--color-bg);
  outline: none;
}

body.neverland-wp-shell .mobile-menu__search-input:focus {
  border-color: var(--color-primary-action);
}

body.neverland-wp-shell .mobile-menu__search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-action);
  border: none;
  cursor: pointer;
  color: var(--color-text-inverse);
  flex-shrink: 0;
}

/* Quick-search chips under the burger-menu search box */
body.neverland-wp-shell .mobile-menu__quick-searches {
  margin: calc(var(--space-6) * -1) 0 var(--space-8);
}

body.neverland-wp-shell .mobile-menu__quick-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

body.neverland-wp-shell .mobile-menu__quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

body.neverland-wp-shell .mobile-menu__quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: var(--space-1) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

body.neverland-wp-shell .mobile-menu__quick-chip:hover {
  border-color: var(--color-primary-action);
  color: var(--color-primary-action);
}

/* Homepage sticky search bar (mobile only) */
body.neverland-wp-shell .home-mobile-search {
  display: none;
}

@media (max-width: 767px) {
  body.neverland-wp-shell .home-mobile-search {
    display: block;
    position: sticky;
    top: var(--header-height);
    z-index: calc(var(--z-header) - 1);
    padding: var(--space-2) var(--container-pad);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
  }

  body.neverland-wp-shell .home-mobile-search__form {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  body.neverland-wp-shell .home-mobile-search__input {
    flex: 1;
    min-width: 0;
    min-height: 2.75rem;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    font-size: var(--text-base);
    outline: none;
  }

  body.neverland-wp-shell .home-mobile-search__input:focus {
    border-color: var(--color-primary-action);
  }

  body.neverland-wp-shell .home-mobile-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-primary-action);
    color: var(--color-text-inverse);
    cursor: pointer;
    flex-shrink: 0;
  }
}

/* Mobile nav links */
body.neverland-wp-shell .mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.neverland-wp-shell .mobile-menu__list li a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast);
}

body.neverland-wp-shell .mobile-menu__list li a:hover {
  color: var(--color-primary-action-hover);
}

body.neverland-wp-shell .mobile-menu__list li:last-child a {
  border-bottom: none;
}

/* -----------------------------------------------------------------
Responsive
----------------------------------------------------------------- */
@media (min-width: 768px) {
body.neverland-wp-shell .site-header__search {
    display: flex;
  }

body.neverland-wp-shell .site-header__actions {
    display: flex;
  }

body.neverland-wp-shell .site-header__mobile-toggle {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  body.neverland-wp-shell .site-header__search-field:last-of-type {
    flex-grow: 1.35;
  }
}

@media (min-width: 1024px) {
  body.neverland-wp-shell .site-header__favourites-link {
    display: flex;
  }
}

/* Shared search picker: custom desktop menus, native mobile selection. */
body.neverland-wp-shell .search-picker { position: relative; }
body.neverland-wp-shell .search-picker__options {
  position: absolute;
  z-index: 110;
  top: calc(100% + 12px);
  left: 0;
  width: max(100%, 230px);
  max-width: calc(100vw - 40px);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-heading);
  box-shadow: var(--shadow-lg);
  font: 400 15px/1.4 var(--font-body);
  text-align: left;
}
body.neverland-wp-shell .search-picker__options[hidden] { display: none; }
body.neverland-wp-shell .search-picker__options [role="option"] {
  padding: 12px;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
}
body.neverland-wp-shell .search-picker__options [role="option"]:hover,
body.neverland-wp-shell .search-picker__options .is-active,
body.neverland-wp-shell .search-picker__options [aria-selected="true"] {
  background: var(--color-primary-light);
}
body.neverland-wp-shell .search-picker:focus-within {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (min-width: 768px) {
  body.neverland-wp-shell .search-picker__native { display: none; }
}
@media (max-width: 767px) {
  body.neverland-wp-shell .search-picker__desktop,
  body.neverland-wp-shell .search-picker__options { display: none; }
  body.neverland-wp-shell select.search-picker__native {
    display: block;
    appearance: auto;
    -webkit-appearance: menulist;
    min-height: 44px;
    font-size: 16px;
    color: var(--color-heading);
    padding-right: 8px;
  }
  body.neverland-wp-shell .search-picker .hero-premium__search-chevron { display: none; }
}
