/* Adi Center navigation 0.14.2 — scoped to the native Astra header menu. */
body.adicenter-navigation-active {
  --adicenter-nav-ink: #0c1833;
  --adicenter-nav-text: #303747;
  --adicenter-nav-muted: #667085;
  --adicenter-nav-line: #e6e8ee;
  --adicenter-nav-blue: #1769e8;
  --adicenter-nav-blue-soft: #eaf1fd;
  --adicenter-nav-paper: #fff;
}

/* Astra remains responsible for opening, closing and animating the drawer. */
body.adicenter-navigation-active #ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-inner {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--adicenter-nav-text);
  background: var(--adicenter-nav-paper);
}

body.adicenter-navigation-active #ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-header {
  box-sizing: border-box;
  min-height: 54px;
  margin: 0;
  padding: max(5px, env(safe-area-inset-top)) 10px 5px;
  border: 0;
  border-bottom: 1px solid var(--adicenter-nav-line);
  flex: 0 0 auto;
}

body.adicenter-navigation-active #ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  color: var(--adicenter-nav-ink);
  background: transparent;
}

body.adicenter-navigation-active #ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  fill: currentColor;
}

body.adicenter-navigation-active #ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-content {
  box-sizing: border-box;
  min-height: 0;
  margin: 0;
  padding: 12px max(14px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

/* Astra's alternate dropdown layout uses the same compact visual language. */
body.adicenter-navigation-active #masthead #ast-mobile-header .ast-mobile-header-content {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(78dvh, 720px);
  margin: 6px 12px 0 auto;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 1px solid var(--adicenter-nav-line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgb(12 24 51 / 14%);
  background: var(--adicenter-nav-paper);
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  text-align: start;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .menu-item {
  position: relative;
  float: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 > .menu-item:not(.ac-navigation-search-item) {
  border-bottom: 1px solid var(--adicenter-nav-line);
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .menu-item > .menu-link {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  height: auto;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: var(--adicenter-nav-text);
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .menu-item-has-children > .menu-link {
  padding-inline-end: 52px;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .menu-item > .menu-link:is(:hover, :focus-visible),
body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .current-menu-item > .menu-link {
  color: var(--adicenter-nav-blue);
  background: var(--adicenter-nav-blue-soft);
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .menu-item > .menu-link:focus-visible {
  outline: 2px solid var(--adicenter-nav-blue);
  outline-offset: -2px;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .sub-menu {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 7px;
  padding: 2px 0 4px 12px;
  border: 0;
  border-inline-start: 2px solid var(--adicenter-nav-line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  list-style: none;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .sub-menu .menu-item > .menu-link {
  min-height: 44px;
  padding: 9px 10px;
  color: var(--adicenter-nav-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

/* Remove inherited decorative arrows from links. Only the real submenu toggle remains. */
body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .sub-menu .menu-link::before,
body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .sub-menu .menu-link::after {
  display: none !important;
  content: none !important;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle {
  position: absolute;
  top: 3px;
  inset-inline-end: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 8px;
  outline-offset: -2px;
  box-shadow: none !important;
  color: var(--adicenter-nav-muted);
  background: transparent !important;
  font: inherit;
  cursor: pointer;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle .ast-icon,
body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle svg {
  display: none !important;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle::before {
  display: block !important;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "" !important;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(225deg);
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle:is(:hover, :focus-visible) {
  color: var(--adicenter-nav-blue);
  background: var(--adicenter-nav-blue-soft) !important;
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 .ast-menu-toggle:focus-visible {
  outline: 2px solid var(--adicenter-nav-blue);
}

/* Search belongs to the same scroll flow as the menu; no nested sticky layer. */
body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .adicenter-navigation-0142 > .ac-navigation-search-item {
  position: static;
  z-index: auto;
  margin: 0 0 8px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--adicenter-nav-line);
  background: var(--adicenter-nav-paper);
}

body.adicenter-navigation-active :is(#ast-mobile-popup, #ast-mobile-header) .ac-navigation-search-menu {
  width: 100%;
  min-width: 0;
}

/* Desktop receives only the compact search control; Astra owns all other layout. */
body.adicenter-navigation-active #ast-desktop-header .adicenter-navigation-0142 > .ac-navigation-search-item {
  display: flex;
  align-items: center;
  flex: 0 1 250px;
  width: clamp(190px, 20vw, 270px);
  min-width: 190px;
  margin-inline-start: 12px;
  padding: 0;
  border: 0;
}

body.adicenter-navigation-active #ast-desktop-header .ac-navigation-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  body.adicenter-navigation-active .adicenter-navigation-0142 .ast-menu-toggle::before { transition: none; }
}

/* Compact catalogue drawer; its links are native WordPress menu items. */
body.adicenter-navigation-active #ast-mobile-popup .ast-mobile-popup-header{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:8px 14px}
body.adicenter-navigation-active #ast-mobile-popup .adicenter-drawer-logo{display:block;flex:0 1 150px;padding:0;margin:0 auto 0 0;line-height:1}
body.adicenter-navigation-active #ast-mobile-popup .adicenter-drawer-logo img{display:block;width:150px;max-width:100%;height:auto;max-height:36px;object-fit:contain;object-position:left center}
body.adicenter-navigation-active #ast-mobile-popup .ast-header-account,
body.adicenter-navigation-active #ast-mobile-popup .ast-header-button-1,
body.adicenter-navigation-active #ast-mobile-header .ast-mobile-header-content .ast-header-account,
body.adicenter-navigation-active #ast-mobile-header .ast-mobile-header-content .ast-header-button-1{display:none!important}
body.adicenter-navigation-active :is(#ast-mobile-popup,#ast-mobile-header) .adicenter-navigation-0142 .menu-item>.menu-link{font-size:15px;min-height:46px;padding:10px 8px;line-height:1.35}
body.adicenter-navigation-active :is(#ast-mobile-popup,#ast-mobile-header) .adicenter-navigation-0142 .sub-menu .menu-item>.menu-link{font-size:13.5px;min-height:44px;padding:9px 8px;line-height:1.35}
body.adicenter-navigation-active :is(#ast-mobile-popup,#ast-mobile-header) .adicenter-navigation-0142 .menu-item-has-children>.menu-link{padding-inline-end:48px}
body.adicenter-navigation-active #ast-mobile-popup .ac-navigation-search__label{font-size:12px;margin-bottom:6px}
body.adicenter-navigation-active #ast-mobile-popup .ac-navigation-search input{font-size:16px;min-height:44px;padding:9px 12px}
@media(max-width:1024px){
 body.adicenter-public-ui .adicenter-bottom-nav{z-index:100001}
 body.adicenter-navigation-active #ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-inner{height:calc(100dvh - 68px - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 68px - env(safe-area-inset-bottom,0px))}
 body.adicenter-navigation-active #ast-mobile-popup .ast-mobile-popup-overlay{bottom:calc(68px + env(safe-area-inset-bottom,0px))}
}
/* A native, owner-editable menu item opens the single personalization entry. */
body:not(.wp-admin) .main-header-menu .adicenter-nav-personalize>a.menu-link {background:#FF4D57;color:#0C1833;border-radius:7px;min-height:44px;height:auto;line-height:1.3;margin:8px 4px;padding:12px 14px;display:flex;align-items:center}
body:not(.wp-admin) .main-header-menu .adicenter-nav-personalize>a.menu-link:focus-visible {outline:3px solid #1769E8;outline-offset:3px}
