.site-header {
  background-color: #030280;
  min-height: 0;
  display: block;
}

.site-header__inner {
  height: 80px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 310px;
  grid-template-areas: "logo nav actions";
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
  position: relative;
}

.site-header__logo-wrap {
  grid-area: logo;
  align-self: start;
  position: relative;
  top: 18px;
}

.site-header__inner.gp-container,
.site-header__utility-strip-inner.gp-container {
  width: min(100% - 48px, 1344px);
  max-width: 1344px;
}

@media (min-width: 1025px) {
  .site-header__inner.gp-container,
  .site-header__utility-strip-inner.gp-container {
    width: calc(100% - 96px);
    max-width: 1344px;
    margin: 0 auto;
  }
}

.site-header__utility-strip {
  height: 40px;
  background: #df8c66;
}

.site-header__utility-strip-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-header__utility-strip-text {
  margin: 0;
  width: 336px;
  height: 22px;
  text-align: right;
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}

.site-header__logo img {
  width: 300px;
  height: 37px;
  display: block;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation {
  grid-area: nav;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 50;
}

.main-navigation > ul,
.main-navigation .menu {
  display: flex;
  align-items: stretch;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
  height: 100%;
  min-height: 0;
}

.main-navigation .menu-link {
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
}

.main-navigation .menu-item {
  position: relative;
}

.main-navigation .menu-item > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #030280;
  padding: 16px;
  z-index: 30;
  /* TODO: Confirm mega-menu spacing, hover timing, and submenu background shades. */
}

.main-navigation .menu-item:hover > .sub-menu,
.main-navigation .menu-item:focus-within > .sub-menu {
  display: grid;
}

.mega-menu-columns {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
}

.site-header__utilities {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  align-self: center;
}

.site-header__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__icon img{
  width: 30px;
  height: 30px;
}

.site-header__icon--cart {
  position: relative;
  margin-right: 10px;
}

.site-header__cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  background: #df8c66;
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
  box-sizing: border-box;
}

.site-header__cart-badge.is-empty {
  display: none;
}

.site-header__icon--button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.site-header__icon--search {
  position: relative;
}

.site-header__icon--search img {
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header__icon--search::before,
.site-header__icon--search::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: #fff;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header__icon--search.is-open img {
  opacity: 0;
  transform: scale(0.72);
}

.site-header__icon--search.is-open::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header__icon--search.is-open::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.gp-header-search {
  grid-area: nav;
  position: relative;
  z-index: 90;
  align-self: stretch;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #030280;
  opacity: 0;
  transform: translateX(18px) scaleX(0.94);
  transform-origin: right center;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.gp-header-search[hidden],
.gp-header-search__results[hidden] {
  display: none !important;
}

.gp-header-search.is-open {
  opacity: 1;
  transform: translateX(0) scaleX(1);
  pointer-events: auto;
}

.gp-header-search__form {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.gp-header-search__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.gp-header-search__input {
  width: 100%;
  min-width: 0;
  height: 56px;
  margin: 0;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 400;
  appearance: none;
}

.gp-header-search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.gp-header-search__input::-webkit-search-cancel-button {
  filter: brightness(0) invert(1);
  cursor: pointer;
}

.gp-header-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 95;
  max-height: min(520px, 68vh);
  overflow-y: auto;
  border: 1px solid rgba(3, 2, 128, 0.2);
  border-top: 0;
  background: #fff;
  box-shadow: 0 18px 42px rgba(3, 2, 128, 0.16);
  color: #030280;
}

.gp-header-search__status {
  margin: 0;
  padding: 18px 20px;
  color: #5c5c72;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.gp-header-search__status:empty {
  display: none;
}

.gp-header-search__list {
  display: grid;
}

.gp-header-search__result {
  display: grid;
  gap: 4px;
  padding: 15px 20px;
  border-top: 1px solid rgba(3, 2, 128, 0.14);
  color: #030280;
  text-decoration: none;
  transition: background-color 160ms ease, padding-left 160ms ease;
}

.gp-header-search__result:first-child {
  border-top: 0;
}

.gp-header-search__result:hover,
.gp-header-search__result:focus,
.gp-header-search__result.is-active {
  outline: 0;
  background: #f5f5f0;
  padding-left: 25px;
}

.gp-header-search__result-title {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

.gp-header-search__result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #5c5c72;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gp-header-search__result-type {
  color: #df8c66;
  font-family: Poppins, sans-serif;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .gp-header-search,
  .site-header__icon--search img,
  .site-header__icon--search::before,
  .site-header__icon--search::after,
  .gp-header-search__result {
    transition: none;
  }
}

.site-header__cta {
  width: 180px;
  min-height: 40px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 1360px) {
  .main-navigation {
    justify-self: right;
    align-self: stretch;
  }
}

@media (min-width: 1025px) and (max-width: 1255px) {
  .site-header__inner {
    grid-template-columns: 230px minmax(0, 1fr) 230px;
    gap: 12px;
  }

  .site-header__logo img {
    width: 230px;
    height: auto;
  }

  .site-header__utilities {
    gap: 6px;
  }

  .main-navigation > ul,
  .main-navigation .menu,
  .gp-header-menu--desktop {
    gap: 12px;
  }

  .main-navigation .menu-link,
  .gp-header-menu__link,
  .site-header__cta {
    font-size: 13px;
    line-height: 18px;
  }

  .site-header__cta {
    width: 132px;
  }
}

@media (min-width: 1025px) and (max-width: 1039px) {
  .main-navigation .menu-link,
  .gp-header-menu__link,
  .site-header__cta {
    font-size: 12px !important;
    line-height: 17px !important;
  }
}

/* Shared badge for desktop/mobile menus. */
.gp-menu-badge-new {
  margin-left: 6px;
  text-transform: uppercase;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 28px;
  color: var(--gp-menu-badge-color, #df8c66); /* TODO: confirm badge color from final design source */
}

/* New header menu renderer (desktop). */
.gp-header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-header-menu--desktop {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  height: 100%;
  min-width: 0;
}

/* Top-level items fill nav row height (hover bridge + consistent vertical align). */
.gp-header-menu--desktop > .gp-header-menu__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Standard dropdowns need a positioning context on the parent <li>. */
.gp-header-menu__item.has-children:not(.is-mega-root) {
  position: relative;
  z-index: 60;
}

/*
 * Mega root: same stretch as siblings (hit area). Mega panel positions against
 * .main-navigation so left:50% + translateX(-50%) centers in the nav column, not on the label.
 */
.gp-header-menu__item.is-mega-root {
  position: static;
}

.gp-header-menu__link {
  border: 0;
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
}

.gp-header-menu__item.has-children > .gp-header-menu__link.depth-0 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gp-header-menu__item.has-children > .gp-header-menu__link.depth-0::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.18s ease;
}

.gp-header-menu__item.has-children:hover > .gp-header-menu__link.depth-0::after,
.gp-header-menu__item.has-children:focus-within > .gp-header-menu__link.depth-0::after {
  transform: translateY(1px) rotate(-135deg);
}

.gp-header-menu__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  transform: none;
  min-width: 280px;
  width: max-content;
  max-width: 460px;
  background: #f2f2ea;
  padding: 14px 16px;
  box-sizing: border-box;
  list-style: none;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(3, 2, 128, 0.12);
}

.gp-header-menu__item.has-children:hover > .gp-header-menu__submenu,
.gp-header-menu__item.has-children:focus-within > .gp-header-menu__submenu {
  display: block;
}

.gp-header-menu__submenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-header-menu__submenu > li + li {
  margin-top: 4px;
}

.gp-header-menu__submenu .gp-header-menu__link {
  color: #030280;
  text-transform: uppercase;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.gp-header-menu__submenu .gp-header-menu__link.is-placeholder {
  cursor: default;
}

.gp-header-menu__submenu-nested {
  margin: 6px 0 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.gp-header-menu__submenu-nested .gp-header-menu__link {
  color: #030280;
  text-transform: none;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 28px;
  letter-spacing: 0;
}

.gp-header-menu__submenu-nested > li + li {
  margin-top: 0;
}

.gp-header-menu__submenu > li.has-children > .gp-header-menu__link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid #030280;
  border-bottom: 1px solid #030280;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.gp-header-mega-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  width: 100%;
  max-width: none;
  min-height: 548px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #f2f2ea;
  z-index: 55;
  box-shadow: 0 8px 24px rgba(3, 2, 128, 0.12);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.gp-header-menu__item.is-mega-root:hover > .gp-header-mega-menu,
.gp-header-menu__item.is-mega-root:focus-within > .gp-header-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .gp-header-mega-menu {
    transition-duration: 0.01ms;
    transform: none;
  }

  .gp-header-menu__item.is-mega-root:hover > .gp-header-mega-menu,
  .gp-header-menu__item.is-mega-root:focus-within > .gp-header-mega-menu {
    transform: none;
  }
}

.gp-header-mega-menu__subgroup + .gp-header-mega-menu__subgroup {
  margin-top: 28px;
}

.gp-header-mega-menu__inner {
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.gp-header-mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.gp-header-mega-menu__column-title {
  margin: 0 0 14px;
  /* width: 170px; */
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #030280;
}

.gp-header-mega-menu__column-title a,
.gp-header-mega-menu__column-title span {
  color: inherit;
  text-decoration: none;
}

.gp-header-mega-menu__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-header-mega-menu__link {
  color: #030280;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 28px;
}

.site-header__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  background: transparent;
  padding: 8px 7px;
  cursor: pointer;
}

.site-header__mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.gp-header-mobile-menu {
  display: none;
}

@media (max-width: 767px){
  /* .site-header__logo-wrap {
    top: 21px;
  }
  .site-header__icon, .site-header__icon img {
    width: 30px;
    height: 30px;
  }
  .site-header__utilities {
      gap: 5px;
  } */
}





/* =========================================================
   GP CLINIC — DESKTOP HEADER FLUID RESPONSIVE FIX v2
   Tik top-level meniu mažinamas.
   Mega menu gali normaliai laužyti tekstą.
   Sutvarkyta hover zona tarp PASLAUGOS ir dropdown.
   ========================================================= */

@media (min-width: 1025px) {

    /* -----------------------------------------------------
       HEADER GRID
       ----------------------------------------------------- */

    .site-header__inner {
        grid-template-columns:
            clamp(230px, calc(16.87vw + 57px), 300px)
            minmax(0, 1fr)
            clamp(230px, calc(19.28vw + 32px), 310px) !important;

        column-gap: clamp(
            12px,
            calc(4.5vw - 34px),
            40px
        ) !important;
    }


    /* -----------------------------------------------------
       LOGO
       ----------------------------------------------------- */

    .site-header__logo,
    .site-header__logo img {
        width: clamp(
            230px,
            calc(16.87vw + 57px),
            300px
        ) !important;

        max-width: 100% !important;
        height: auto !important;
    }


    /* -----------------------------------------------------
       TOP LEVEL NAVIGATION
       ----------------------------------------------------- */

    .main-navigation {
        min-width: 0 !important;
        width: 100% !important;

        /*
         * Svarbu hover problemai:
         * navigacija užima visą 80px header aukštį.
         */
        height: 100% !important;
        align-self: stretch !important;
    }

    .gp-header-menu--desktop {
        width: 100% !important;
        height: 100% !important;

        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;

        gap: clamp(
            10px,
            calc(2.4vw - 14px),
            24px
        ) !important;

        flex-wrap: nowrap !important;
    }

    /*
     * Kiekvienas TOP LEVEL <li> užima visą header aukštį.
     *
     * Dabar vedant pelę nuo "PASLAUGOS" žemyn
     * hover nenutrūksta iki pat mega menu.
     */
    .gp-header-menu--desktop > .gp-header-menu__item {
        height: 100% !important;
        min-width: 0 !important;

        display: flex !important;
        align-items: center !important;
    }

    /*
     * LABAI SVARBU:
     * fluid font-size ir nowrap taikomas TIK depth-0.
     *
     * Nebetaikome:
     * .main-navigation a
     * .gp-header-menu__link
     *
     * nes jie paliesdavo ir mega menu.
     */
    .gp-header-menu--desktop
        > .gp-header-menu__item
        > .gp-header-menu__link.depth-0 {

        display: inline-flex !important;
        align-items: center !important;

        font-size: clamp(
            13px,
            calc(0.72vw + 5.6px),
            16px
        ) !important;

        line-height: 1.25 !important;

        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }


    /* -----------------------------------------------------
       RIGHT SIDE / ICONS / REGISTRATION
       ----------------------------------------------------- */

    .site-header__utilities {
        min-width: 0 !important;

        gap: clamp(
            5px,
            0.65vw,
            10px
        ) !important;
    }

    .site-header__cta {
        width: clamp(
            130px,
            calc(12.05vw + 6.5px),
            180px
        ) !important;

        min-width: 0 !important;

        padding-left: clamp(10px, 1vw, 16px) !important;
        padding-right: clamp(10px, 1vw, 16px) !important;

        font-size: clamp(
            13px,
            calc(0.72vw + 5.6px),
            16px
        ) !important;

        line-height: 1.25 !important;
        white-space: nowrap !important;
    }


    /* =====================================================
       MEGA MENU
       ===================================================== */

    /*
     * Mega menu tekstams GRĄŽINAME galimybę persikelti.
     */
    .gp-header-mega-menu,
    .gp-header-mega-menu * {
        white-space: normal;
    }

    .gp-header-mega-menu__columns {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: clamp(
            20px,
            2.8vw,
            40px
        ) !important;
    }

    /*
     * Grid children privalo galėti susitraukti.
     * Kitaip ilgas tekstas gali plėsti stulpelį.
     */
    .gp-header-mega-menu__column,
    .gp-header-mega-menu__subgroup,
    .gp-header-mega-menu__links,
    .gp-header-mega-menu__links li {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .gp-header-mega-menu__link,
    .gp-header-mega-menu__link.depth-2,
    .gp-header-mega-menu__link span {
        white-space: normal !important;

        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;

        max-width: 100% !important;
    }

    /*
     * Mega menu antraštės irgi turi tilpti stulpelyje.
     */
    .gp-header-mega-menu__column-title,
    .gp-header-mega-menu__column-title span,
    .gp-header-mega-menu__column-title a {
        width: auto !important;
        max-width: 100% !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* =========================================================
   GP CLINIC — MEGA MENU SCROLLBAR
   ========================================================= */

.gp-header-mega-menu {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #030280 #f2f2ea;
}

/* Chrome / Edge / Safari */
.gp-header-mega-menu::-webkit-scrollbar {
    width: 6px;
}

.gp-header-mega-menu::-webkit-scrollbar-track {
    background: #f2f2ea;
}

.gp-header-mega-menu::-webkit-scrollbar-thumb {
    background: #030280;
    border-radius: 0;
}

.gp-header-mega-menu::-webkit-scrollbar-thumb:hover {
    background: #15149a;
}