header .current-menu-item > a > span,
header .current-menu-parent > a > span,
header .current_page_item > a > span,
header .current_page_parent > a > span,
header .current-menu-ancestor > a > span {
  color: var(--brand-primary-color) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  border-top: solid 10px var(--brand-primary-color);
}

.header * {
  color: #303030;
}

body.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

.header-mobile {
  --einsa-mobile-admin-bar: 0px;
  position: relative;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0.75rem 1rem;
}

body.admin-bar .header-mobile {
  --einsa-mobile-admin-bar: 46px;
  top: 0;
}

@media (min-width: 783px) {
  body.admin-bar .header-mobile {
    --einsa-mobile-admin-bar: 32px;
  }
}

.logo,
.logo-mobile {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.logo img,
.logo-mobile img {
  max-width: 180px;
  max-height: 48px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-mobile .burger {
  position: relative;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.header-mobile .burger span {
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.header-mobile .burger span:first-child {
  transform: translateY(-7px);
}

.header-mobile .burger span:last-child {
  transform: translateY(7px);
}

.header-mobile .burger.open span:first-child {
  transform: rotate(45deg);
}

.header-mobile .burger.open span:nth-child(2) {
  opacity: 0;
}

.header-mobile .burger.open span:last-child {
  transform: rotate(-45deg);
}

.burger-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(90vw, 420px);
  max-height: calc(100vh - 100% - var(--einsa-mobile-admin-bar));
  max-height: calc(100dvh - 100% - var(--einsa-mobile-admin-bar));
  padding: 1rem 1.25rem 2rem;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.burger-menu.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.burger-menu .btn {
  margin-top: 1rem;
}

.header-desktop > .container {
  width: 100%;
  max-width: 100rem;
  padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
}

.header-desktop .navbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: 78px;
}

.header-desktop .logo {
  flex: 0 0 auto;
}

.header-desktop .logo img {
  max-width: clamp(7rem, 10vw, 9.5rem);
}

.nav-list,
.nav-list .sub-menu,
.nav-list .children,
.mobile-menu,
.mobile-menu .sub-menu,
.mobile-menu .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.875rem, 1.5vw, 2rem);
  flex: 1 1 auto;
}

.nav-list > li {
  position: relative;
  margin-bottom: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.menu-item a span:hover,
.menu-item a:hover span,
.menu-item a:focus-visible span {
  color: var(--brand-primary-color-hover);
}

.nav-list .menu-item-has-children > a{
  padding-right: 25px;
}

.nav-list .menu-item-has-children > a::after {
  content: '';
  background: url(../images/icons/arrow-down-sign-to-navigate.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  right: 0;
  display: block;
  width: 15px;
  height: 15px;
  transition: transform .3s ease;
}

.nav-list .menu-item-has-children:hover > a::after,
.nav-list .menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg) translateY(50%);
  transition: transform .3s ease;
}

.nav-list .sub-menu,
.nav-list .children {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.nav-list .sub-menu .sub-menu,
.nav-list .children .children,
.nav-list .sub-menu .children,
.nav-list .children .sub-menu {
  top: -0.5rem;
  left: calc(100% - 0.25rem);
}

.nav-list li:hover > .sub-menu,
.nav-list li:hover > .children,
.nav-list li:focus-within > .sub-menu,
.nav-list li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-list .sub-menu li,
.nav-list .children li {
  width: 100%;
}

.nav-list .sub-menu a,
.nav-list .children a {
  display: flex;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  white-space: normal;
}

.nav-list .sub-menu a:hover,
.nav-list .sub-menu a:focus-visible,
.nav-list .children a:hover,
.nav-list .children a:focus-visible {
  background: #f4f4f4;
}

.header .menu-item-donate > a {
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: #ad5000;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.header .menu-item-donate > a > span {
  color: inherit !important;
}

.header .menu-item-donate > a:hover {
  background: var(--brand-primary-color-darker, #904a00);
}

.header .menu-item-donate > a:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 3px;
}

.mobile-menu > .menu-item-donate {
  margin-block: 0.75rem;
  border-bottom: 0;
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brand-primary-color-text) !important;
  text-decoration: none;
}

.header-user-icon,
.header-cart > svg {
  font-size: 1.7rem;
  line-height: 1;
}

.header-user-icon {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-cart > svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-user-badge {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--user-badge-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-cart small {
  position: absolute;
  top: -0.15rem;
  right: -0.25rem;
  display: inline-flex;
  min-width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-secondary-color, #328b58);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.header-action:hover,
.header-action:focus-visible {
  color: var(--brand-secondary-color, #328b58) !important;
}

.mobile-account-link {
  display: block;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand-secondary-color, #328b58);
  color: #fff !important;
  text-align: center;
  text-decoration: none;
}

.mobile-menu > li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid rgb(0 0 0 / 12%);
}

.mobile-menu a {
  display: block;
  padding: 0.9rem 2.5rem 0.9rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.mobile-menu .sub-menu,
.mobile-menu .children {
  display: none;
  padding: 0 0 0.5rem 1rem;
}

.mobile-menu .submenu-open > .sub-menu,
.mobile-menu .submenu-open > .children {
  display: block;
}

.mobile-menu .submenu-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303030;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-menu .submenu-toggle.is-open {
  transform: rotate(180deg);
}

@media (width < 1280px) {
  body {
    overflow-x: clip;
  }

  .header-mobile {
    display: flex;
  }

  body:has(> .einsa-social-sidebar) .burger-menu {
    right: 48px;
    width: min(calc(100vw - 48px), 420px);
  }

  .header-desktop {
    display: none;
  }
}

@media (width >= 1280px) {
  .header-mobile {
    display: none;
  }

  .header-desktop {
    display: block;
  }
}




/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */

.header .menu-item-has-children::before{
  content: '';
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 100%;
  height: 20px;
}