/* main content */
.header-container {
  /* position: fixed;
    left: 50%;
    transform: translateX(-50%); */
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-container::before {
  content: "";
  position: absolute;
  background-color: var(--white1);
  border-bottom: 1px solid var(--greyBorder1);
  height: 100%;
  width: 100vw;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
/* header upper part */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;

  /* logo */
  .header-logo {
    display: block;
    width: 158px;
    height: 40px;
    transition: all 0.4s ease;
  }
  .header-logo img {
    width: 100%;
    height: 100%;
  }
  .hamburger-menu {
    display: none;
    height: 30px;
    width: 30px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    transition: all 0.4s ease;

    .icon {
      position: absolute;
      transition: all 0.4s ease;
    }
    .hide {
      opacity: 0;
      pointer-events: none;
    }
    .show {
      opacity: 1;
      pointer-events: auto;
    }
  }
  .header-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .header-top-right {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.4s ease;

    .header-top-right-links {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    a:not(.btn-component) {
      color: var(--greyText1);
      transition: all 0.4s ease;
    }
    a:not(.btn-component):hover {
      color: var(--black1);
    }
    .header-top-account {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      height: 100%;
      /* cursor: pointer; */
      color: var(--greyText1);
      transition: all 0.4s ease;

      a {
        display: flex;
        justify-content: center;
        height: 100%;
        width: 100%;
      }

      svg {
        display: none;
      }
    }
    .header-top-account:hover {
      color: var(--black1);
    }
  }
  .header-top-right-mobile {
    display: none;
  }
}
/* header bottom-part */
.header-bottom {
  display: flex;
  gap: 16px;
  padding: 14px 0 20px;
  position: relative;

  .header-bottom-btns {
    display: flex;
    gap: 16px;
    transition: flex-direction 0.4s ease;

    .btn-component {
      padding: 0 24px;
      width: max-content;
      flex-direction: row-reverse;
      transition: all 0.4s ease;
    }
    .btn-primary-blue {
      .btn-component.is-open {
        background-color: var(--hoverBlue1);
      }
    }

    .icon-close {
      display: none;
    }
  }

  .header-bottom-search {
    position: relative;
    width: 100%;
    /* height: fit-content; */
    height: 50px;

    input {
      all: unset;
      height: 50px;
      width: 100%;
      box-sizing: border-box;
      background: var(--greyBackground1);
      color: var(--greyText1);
      border: 1px solid transparent;
      padding: 0 16px;
      border-radius: 8px;
      transition: border-color 0.4s ease, color 0.4s ease;
    }
    input:hover {
      border-color: var(--greyBorder1);
    }
    input:focus {
      color: var(--black1);
      border-color: var(--blue1);
    }
    input:not(:placeholder-shown) {
      color: var(--black1);
    }
    .search-btn {
      all: unset;
      position: absolute;
      right: 16px;
      top: 25%;
      width: 24px;
      height: 24px;
      color: var(--greyText1);
      cursor: pointer;
      transition: all 0.4s ease;
    }
    .search-btn svg {
      width: 24px;
      height: 24px;
    }
    &:focus-within {
      .search-btn {
        color: var(--black1);
      }
    }
  }

  /* desktop extend menu */
  .desktop-extend-menu-wrapper {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translate(-50%);
    width: 100vw;
    background: var(--white1);
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    /* max-height: 100vh; */
    max-height: calc(100vh - 164px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .desktop-extend-menu-wrapper.open {
    opacity: 1;
    pointer-events: auto;
  }
  .desktop-extend-menu {
    max-width: 1440px;
    margin: 0 auto;
    display: none;
    gap: 40px;
    padding: 50px 50px;
    grid-template-columns: repeat(4, 1fr) minmax(180px, 300px);
  }
  .desktop-extend-menu.open {
    display: grid;
    pointer-events: auto;
  }
  .desktop-extend-menu-adv {
    position: relative;
    grid-column: 5;
    grid-row: 1 / span 2;
    overflow: hidden;
    border-radius: 6px;
    color: var(--white1);

    img {
      position: absolute;
      height: 100%;
      width: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .extend-menu-adv-content {
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
      align-items: center;
      text-align: center;
      justify-content: end;
      padding: 32px 20px;
      z-index: 2;

      .body6 {
        padding-bottom: 8px;
      }
      .body3 {
        padding-bottom: 24px;
      }
    }
  }
  .desktop-extend-menu-adv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      360deg,
      #2a375e 0%,
      rgba(42, 55, 94, 0.3) 50%,
      rgba(42, 55, 94, 0.3) 100%
    );
    z-index: 1;
  }
  /* mobile extend menu */
  .mobile-menu-wrapper {
    /* display: none; */
    opacity: 0;
    visibility: hidden;
    background: white;
    pointer-events: none;
    /* height: 100vh; */
    position: absolute;
    top: -70px;
    bottom: 0;
    right: 0;
    left: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;

    .body1 {
      display: flex;
      min-height: 70px;
      justify-content: center;
      align-items: center;
      padding: 20px 0;
      border-bottom: 1px solid var(--greyBorder1);
    }
    .mobile-menu-btns {
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;

      .btn-component {
        flex-direction: row-reverse;
        justify-content: flex-end;
        justify-content: start;
        padding: 0 24px;
        width: 100%;
      }
    }
  }
  .header-top-account {
    transition: all 0.4s ease;

    a {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100%;
      width: 100%;
    }
  }
}
.category-container {
  .body6 {
    display: flex;
    gap: 8px;
    /* align-items: center; */
    padding-bottom: 24px;
  }
  .body6 img {
    height: 24px;
    width: 24px;
    margin-bottom: auto;
  }
  .body6 a {
    color: var(--blue1);
  }
  .button1 {
    padding-bottom: 18px;
  }
  .button1 a {
    color: var(--black1);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
    transition: all 0.4s ease;
  }
  .button1:hover a {
    color: var(--blue1);
    text-decoration-color: var(--hoverYellow1);
  }
}
/* shop container */
.header-bottom-shop {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 36px;
  color: var(--black1);
  transition: all 0.4s ease;

  .header-bottom-favorites {
    justify-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    order: 1;
  }
  .header-bottom-favorites svg path {
    transition: all 0.4s ease;
  }
  .header-bottom-basket {
    all: unset;
    justify-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    order: 2;
    text-align: center;
  }
  .image-basket-wrapper {
    position: relative;

    .items-count {
      position: absolute;
      background: var(--yellow1);
      border-radius: 50px;
      min-width: 16px;
      width: fit-content;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      top: 0;
      left: 15px;
    }
  }
  .header-bottom-favorites:hover,
  .header-bottom-favorites:hover svg path,
  .header-bottom-basket:hover {
    color: var(--blue1);
  }
  .header-bottom-favorites:focus,
  .header-bottom-favorites:focus svg path,
  .header-bottom-basket:focus,
  .header-bottom-favorites:active,
  .header-bottom-favorites:active svg path,
  .header-bottom-basket:active {
    color: var(--blue1);
  }
}
/* overlay */
.menu-overlay {
  position: fixed;
  top: 200px;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  /* pointer-events: none; */
  /* display: none; */
}
/* menu */
.mobile-extend-menu {
  display: none;
}
.subcategory-name {
  display: none;
}
.category-name {
  display: block;
}

/* Mini header */
/* logo */
.login-upper {
  width: 197px;
  height: 50px;
  transition: all 0.4s ease;
}
.login-upper img {
  width: 100%;
  height: 100%;
}
/* header-mini */
.header-mini {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
}
/* basket open\close */
.basket-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.basket-overlay.open {
  display: block;
}
.basket-overlay.show {
  opacity: 1;
}
.basket-content {
  position: fixed;
  display: none;
  top: 0;
  right: 0;
  height: 100vh;
  width: 600px;
  background: var(--white1);
  transform: translateX(100%);
  transition: transform 0.4s ease, width 0.4s ease;
  z-index: 1000;
}
.basket-content.open {
  display: flex;
  padding: 30px 24px;
  flex-direction: column;
  overflow: hidden;
}

.widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

ul.woocommerce-mini-cart {
  flex: 1;
  overflow-y: auto;
}

.basket-bottom .woocommerce-mini-cart__total.total {
  display: flex;
  justify-content: space-between;
}
.basket-bottom .woocommerce-mini-cart__total.total .price-value {
  display: flex;
  align-items: center;
  gap: 4px;
}
.basket-bottom .woocommerce-mini-cart__total.total .price-value .body4 {
  color: var(--greyText1);
}
.basket-bottom .woocommerce-mini-cart__buttons.buttons > a {
  width: 100%;
  display: block;
}

.basket-content.show {
  transform: translateX(0);
}
.basket-top {
  padding: 16px 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  position: relative;
}
.basket-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 100vw;
  background: var(--greyBorder1);
}

#basket-close {
  cursor: pointer;
  transition: all 0.4s ease;
  svg {
    background: var(--white1);
    border-radius: 500px;
    transition: all 0.4s ease;
  }
  rect {
    color: var(--greyBorder1);
    transition: all 0.4s ease;
  }
  path {
    color: var(--greyText1);
    transition: all 0.4s ease;
  }
}
#basket-close:hover {
  svg {
    background: var(--blue1);
  }
  rect {
    color: transparent;
  }
  path {
    color: var(--white1);
  }
}

/* language switcher */
.header-top-right,
.header-mini {
  .language-container {
    position: relative;
    a {
      color: var(--greyText1);
      text-decoration: none;
      transition: all 0.4s ease;
    }
    a:hover {
      color: var(--black1);
    }
  }
  .language-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
  }
  .language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    position: absolute;
    /* padding: 10px 0 10px 31px; */
    background: var(--white1);
    border-radius: 8px;
    left: 15%;
    top: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    a {
      width: fit-content;
    }
    a.active {
      color: var(--black1);
    }
  }
  .language-list.open {
    display: block;
    height: fit-content;
    opacity: 1;
    pointer-events: auto;
    z-index: 8;
  }
  .language-switcher:hover .language-list {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .language-switcher:hover .current-language {
    color: var(--black1);
  }
  .language-switcher:hover .current-language::before {
    background-image: url(../icons/language_active.svg);
  }
  .language-switcher:hover .current-language::after {
    transform: rotate(180deg);
    background-image: url(../icons/arrow_down_active.svg);
  }
  .current-language {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--greyText1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;

    &::after {
      content: "";
      background-image: url(../icons/arrow_down_passive.svg);
      background-repeat: no-repeat;
      background-position: center;
      height: 14px;
      width: 14px;
      transition: all 0.4s ease;
    }
    &::before {
      content: "";
      background-image: url(../icons/language_passive.svg);
      background-repeat: no-repeat;
      background-position: center;
      height: 20px;
      width: 20px;
      transition: all 0.4s ease;
    }
  }
  .language-switcher:hover .current-language {
    color: var(--black1);
  }
  .language-switcher:hover .current-language::before {
    background-image: url(../icons/language_active.svg);
  }
  .language-switcher:hover .current-language::after {
    transform: rotate(180deg);
    background-image: url(../icons/arrow_down_active.svg);
  }
}

/* language switcher in mobile menu */
.lang-back-btn.visible {
  display: none;
}
.lang-back-btn {
  padding: 16px;
  cursor: pointer;
  background: var(--blue2);
  color: var(--blue1);
  align-items: center;
  gap: 8px;
  display: none;
}
.lang-back-btn::before {
  content: "";
  background-image: url(../icons/mobile-menu-back-blue.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 20px;
  width: 20px;
  display: block;
}

/* favorites */
.header-bottom-favorites a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.4s ease;
}
.header-bottom-favorites a:hover {
  color: var(--blue1);
}
.header-bottom-favorites.active a {
  color: var(--blue1);

  svg {
    color: var(--blue1);
    fill: var(--blue1);
  }
}

/* Fault registration */
.fault-registration {
  display: flex;
  justify-content: center;
  padding: 15px;
  background-color: var(--black1);
  color: var(--white1);
  align-items: center;
}

.fault-registration div {
  display: flex;
}

.fault-registration img {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}
.fault-registration p {
  margin-right: 8px;
}

.fault-registration a {
  color: var(--white1) !important;
}

/* responsive */
@media (max-width: 1250px) {
  .header-bottom {
    .desktop-extend-menu {
      grid-template-columns: repeat(3, 1fr) minmax(180px, 300px);
    }
    .desktop-extend-menu-adv {
      grid-column: 4;
    }
  }
}
@media (max-width: 1200px) {
  /* header bottom part */
  .header-bottom {
    .header-bottom-shop {
      padding-left: 0;
      gap: 16px;
    }
  }
}
@media (max-width: 1100px) {
  .header-bottom {
    .desktop-extend-menu {
      grid-template-columns: repeat(2, 1fr) minmax(180px, 300px);
    }
    .desktop-extend-menu-adv {
      grid-column: 3;
    }
  }
}
@media (max-width: 1050px) {
  /* header bottom-part */
  .header-bottom {
    .header-bottom-btns {
      .btn-component {
        justify-content: start;
        justify-content: flex-end;
      }
    }
  }
}
@media (max-width: 950px) {
  .header-container.container {
    padding: 0 20px;
  }
  /* main content */
  .header-top {
    .hamburger-menu {
      display: block;
    }
    .hamburger-menu:hover {
      color: var(--greyText1);
    }
    .header-top-right {
      gap: 12px;

      a:not(.btn-component) {
        height: 24px;
        width: 24px;
        color: var(--black1);
      }
      .header-top-right-links {
        display: none;
      }
      .header-top-account {
        svg {
          display: flex;
        }
      }
      .header-bottom-favorites {
        width: 24px;
        height: 24px;
      }
      .header-bottom-basket {
        height: 24px;
        width: 24px;
        .items-count {
          right: -8px;
        }
      }
      .header-bottom-basket svg {
        transition: all 0.4s ease;
      }
      .header-top-account:hover a,
      .header-bottom-favorites:hover svg path,
      .header-bottom-basket:hover svg {
        color: var(--blue1);
      }
      .header-bottom-shop {
        gap: 12px;
        padding-left: 0;
      }
      .my-acc-text {
        display: none;
      }
      .button4 {
        display: none;
      }
    }
  }
  .header-bottom {
  padding: 0 0 20px;
  flex-wrap: wrap;
  gap: 10px;

  .header-bottom-btns {
    display: none;
  }

  .header-bottom-search {
    width: 100%;
    flex: 0 0 100%;
  }

  .header-b2b-btn {
    width: 100%;
    flex: 0 0 100%;
  }

  .header-b2b-btn .btn-component {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
    /* extend menu desktop */
    .desktop-extend-menu {
      display: none;
    }
    .desktop-extend-menu.open {
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
    }
    /* extend menu mobile */
    .mobile-menu-wrapper.open {
      display: flex;
      flex-direction: column;
      top: -70px;
      bottom: 0;
      right: 0;
      left: 0;
      pointer-events: auto;
      opacity: 1;
      visibility: visible;
      z-index: 800;
      height: 100vh;
      overflow-x: hidden;
      overflow-y: auto;
      scrollbar-width: none;
      margin-left: -20px;
      margin-right: -20px;
      transition: all 0.4s ease;
    }
    .mobile-header-links {
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      overflow-y: auto;
      stroke-width: none;
      padding-bottom: 94px;

      .body9 {
        padding: 12px 20px;
        border-bottom: 1px solid var(--greyBorder1);
      }
      a {
        width: 100%;
        padding: 18px 20px;
        color: var(--greyText1);
        border-bottom: 1px solid var(--greyBorder1);
        transition: all 0.4s ease;
      }
      a:hover {
        color: var(--black1);
      }
      .language-container {
        border-bottom: 1px solid var(--greyBorder1);
        .language-switcher {
          padding: 18px 20px;
        }
      }
    }
  }

  .mobile-menu-wrapper {
    background: var(--white1);

    .language-switcher {
      align-items: start;
    }
  }
  .mobile-extend-menu {
    display: flex;
    flex-direction: column;
    background: inherit;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 94px;

    z-index: 10;

    .back-button {
      padding: 16px;
      cursor: pointer;
      background: var(--blue2);
      color: var(--blue1);
      align-items: center;
      gap: 8px;
    }
    .back-button::before {
      content: "";
      background-image: url(../icons/mobile-menu-back-blue.svg);
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      height: 20px;
      width: 20px;
      display: block;
    }
    .title {
      padding: 28px 20px 12px;
      border-bottom: 1px solid var(--greyBorder1);
    }
    .mobile-category-container {
      width: 100%;
      /* cursor: pointer; */

      .category-name {
        width: 100%;
      }
      .category-name a {
        display: flex;
        padding: 16px 20px;
        border-bottom: 1px solid var(--greyBorder1);
        width: 100%;
        justify-content: space-between;
      }
      .subcategory-name {
        width: 100%;
      }
      .subcategory-name a {
        display: flex;
        padding: 16px 20px;
        border-bottom: 1px solid var(--greyBorder1);
        width: 100%;
        justify-content: space-between;
      }
      a {
        color: var(--blue1);
        transition: all 0.4s ease;
      }
      .category-name:hover a,
      .subcategory-name:hover a {
        color: var(--black1);
      }
      .category-name a::after,
      .subcategory-name a::after {
        content: "";
        background-image: url(../icons/mobile-menu-next-blue.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 20px;
        width: 20px;
        display: block;
      }
    }
  }
  /* language */
  .mobile-header-links {
    .language-list {
      position: absolute;
      /* top: 100%; */
      top: 70px;
      left: 0;
      bottom: 0;
      /* display: flex; */
      flex-direction: column;
      width: 100vw;
    }
    .language-container a {
      border-bottom: 1px solid var(--greyBorder1);
    }
    .current-language {
      display: flex;
      gap: 12px;
      align-items: center;
      color: var(--greyText1);
      cursor: pointer;
      z-index: 10;
      transition: all 0.4s ease;
      &::before {
        content: "";
        background-image: url(../icons/language_passive.svg);
        background-repeat: no-repeat;
        background-position: center;
        height: 20px;
        width: 20px;
        transition: all 0.4s ease;
      }
    }
    .language-switcher:hover .current-language {
      color: var(--black1);
    }
    .language-switcher:hover .current-language::before {
      background-image: url(../icons/language_active.svg);
    }
    .switcher-item.active {
      color: var(--blue1);
    }
    .switcher-item:hover {
      color: var(--black1);
    }
    .language-list {
      /* opacity: 0;
            pointer-events: none;
            transition: all 0.4s ease; */
      display: none;
    }
    .language-list.open {
      /* opacity: 1;
            pointer-events: auto; */
      background: var(--white1);
      display: flex;
    }
  }
  /* Language  back button */
  .lang-back-btn.visible {
    display: flex;
  }
  /* mobile-menu-bottom-part */
  .mobile-menu-account {
    background: var(--white1);
    position: fixed;
    padding: 20px;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    z-index: 10;

    .header-top-right-links {
      display: none;
    }
    .header-top-right {
      display: flex;
      justify-content: space-between;
      width: 100%;
    }
    .header-top-account {
      display: flex;
      order: 1;
      justify-content: end;
      align-items: center;
      flex-direction: column;
      cursor: pointer;
      color: var(--black1);
      transition: all 0.4s ease;
    }
    .header-bottom-basket {
      .items-count {
        right: 5px;
      }
    }
    .header-bottom-shop {
      order: 3;
      gap: 0;
    }
    .header-bottom-favorites {
      order: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .header-top-account a {
      transition: all 0.4s ease;
    }
    .header-top-account:hover a {
      color: var(--blue1);
    }
  }
}
@media (max-width: 767px) {
  /* main content */
  .header-top {
    /* logo */
    .header-logo {
      width: 110px;
      height: 28px;
    }
  }
  /* Mini header */
  /* logo */
  .login-upper {
    width: 126px;
    height: 32px;
    /* margin-bottom: 80px; */
  }
  /* language */
  .language-switcher {
    justify-content: start;
    /* margin-top: 5px; */
  }
  /* extend menu mobile */
  .header-bottom {
    .mobile-menu-wrapper.open {
      margin-left: -20px;
      margin-right: -20px;
    }
  }
  /* basket */
  .basket-content {
    width: 100%;
  }

  /* Fault registration */
  .fault-registration {
    display: flex;
    justify-content: center;
    padding: 15px;
    background-color: var(--black1);
    color: var(--white1);
  }

  .fault-registration div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .fault-registration img {
    margin-right: 4px;
    width: 16px;
    height: 16px;
    margin-top: 0;
    margin-bottom: auto;
  }
  .fault-registration a {
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    text-decoration: underline;
  }
}
