.header-wrapper {
  background: #fff;

  border-bottom: 1px solid #edebe9;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.main-header__logo {
  display: flex;
  align-items: center;
}

.main-header__nav {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: start;
  align-items: center;

  @media (min-width: 700px) {
    padding-left: 32px;
  }
}

.main-header__nav-link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #3c3c3d;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
}
.main-header__nav-link:hover,
.main-header__nav-link.active {
  color: #78ad72;
  border-bottom: 2px solid #93ad90;
}

.main-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;

  @media (max-width: 700px) {
    .show-search-link__icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #f5f5f5;
      font-size: 18px;
      color: #3a4a3c;
      cursor: pointer;
      position: relative;
    }

    gap: 5px;
  }
}

.main-header__search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f7f9f6;
  border-radius: 100px;
  padding: 0 12px;

  &:focus-within {
    border: 1px solid #93ad90;
  }

  @media (min-width: 700px) {
    width: 260px;
  }
}
.main-header__search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px !important;
  font-weight: 500;
  padding: 16px 10px !important;
  width: 100%;

  font-size: 16px;

  &:placeholder {
    color: #3c3c3db2;
  }

  &:hover {
    outline: 0;
    border: 0;
    box-shadow: none;
  }

  @media screen and (min-width: 800px) {
    font-size: 12px !important;
  }
}

.main-header__lang,
.main-header__email {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 18px;
  color: #3a4a3c;
  cursor: pointer;

  &:hover,
  &:focus {
    border: 1px solid #93ad90;
  }
}

.main-header__email {
  position: relative;

  .tooltip {
    visibility: hidden;
    opacity: 0;
    width: 175px;
    text-align: center;
    background-color: #93ad90;
    color: var(--Colors-white, white);
    font-size: 12px;
    font-family: Poppins;
    font-weight: 500;
    line-height: 16px;
    word-wrap: break-word;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    position: absolute;
    z-index: 1;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.2s ease-in-out;

    &:before {
      content: "";
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-bottom-color: #93ad90;
    }
  }

  &:hover > .tooltip {
    visibility: visible;
    opacity: 1;
  }
}

.main-header__account,
.main-header__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 18px;
  color: #3a4a3c;
  cursor: pointer;
  position: relative;

  &:hover,
  &:focus {
    border: 1px solid #93ad90;
  }
}

.main-header__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #b64155;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.lang-flags-dropdown {
  position: relative;
}
.lang-flags-dropdown__toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-flags-dropdown__arrow {
  font-size: 12px;
  margin-left: 2px;
}
.lang-flags-dropdown__list {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 48px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 100;
  padding: 4px 0;
  display: none;
}
.lang-flags-dropdown.open .lang-flags-dropdown__list {
  display: block;
}
.lang-flag-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 16px 6px 8px;
  border-radius: 6px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.lang-flag-btn.active,
.lang-flag-btn:hover {
  background: #e6f2e6;
}
.lang-flag-label {
  font-size: 15px;
  margin-left: 8px;
  color: #3a4a3c;
  text-transform: capitalize;
}

.main-search__icon {
  display: none;
  cursor: pointer;
}

.main-search--no-results,
.main-search--has-results {
  .main-search__icon {
    display: block;
  }
}

.main-search__results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  z-index: 100;
  height: 400px;

  border: 1.5px solid #dbe7d6;
  overflow: hidden;
  padding: 8px 0;
}

.main-search__results__products {
  //   padding: 0 18px;
  overflow-y: scroll;
  height: 100%;
  padding: 12px 8px;
}

.main-search-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #e6e6e6;
}

.main-search-result:last-child {
  border-bottom: none;
}

// .main-search-result img {
//   width: 64px;
//   height: 64px;
//   object-fit: contain;
//   border-radius: 8px;
//   background: #f7f7f7;
// }

.main-search-result__info {
  flex: 1;
}

.main-search-result__title {
  font-size: 16px;
  font-weight: 500;
  color: #3a4a3c;
  margin-bottom: 4px;
  line-height: 1.3;
}

.main-search-result__price {
  font-size: 18px;
  font-weight: 700;
  color: #6ca16e;
  margin-right: 8px;
}

.main-search-result__compare {
  font-size: 16px;
  color: #b7b7b7;
  text-decoration: line-through;
  margin-left: 4px;
}

.main-search-result__discount {
  background: #b94a4a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 10px;
  margin-right: 8px;
  display: inline-block;
}

.main-search__results-all-link {
  display: block;
  padding: 12px 0 30px;
  border-top: 1px solid #e6e6e6;
  margin-top: 12px;
  color: var(--Colors-Green-green-hard, #4a6656);
  font-size: 14px;
  font-family: Poppins;
  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
}

.main-search__results-all-link:hover {
  text-decoration: underline;
}

.main-search__results {
  /* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #93ad90 #ffffff;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 7px;
  }

  *::-webkit-scrollbar-track {
    background: #e6e7e8;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #93ad90;
    border-radius: 10px;
    border: 3px solid #e6e7e8;
  }

  .block-inner-inner {
    display: flex !important;
    justify-content: center;
    flex-direction: row;
    align-items: center;

    .image-cont {
      width: 64px;
      height: 64px;
      margin-right: 6px;
      flex: 0 0 64px;
    }

    .product-block__detail {
      margin-bottom: 0;
      margin-top: 0;
    }
  }

  .product-block__title {
    color: var(--Text-hyperlink, #78ad72);
    font-size: 12px;
    font-family: Poppins;
    font-weight: 500;
    text-decoration: underline;
    line-height: 16px;
    word-wrap: break-word;
  }

  .product-grid {
    row-gap: 12px;
  }

  .price__current {
    color: var(--Colors-Green-green-hard, #4a6656);
    font-size: 14px;
    font-family: Poppins;
    font-weight: 700;
    line-height: 20px;
    word-wrap: break-word;
  }

  .total-results {
    color: var(--Text-body-text-dark, #3c3c3d);
    font-size: 14px;
    font-family: Poppins;
    font-weight: 700;
    line-height: 20px;
    word-wrap: break-word;
    padding: 6px 0 12px;
    border-bottom: 1px solid #e6e6e6;
  }
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
}

.mobile-search-drawer__close {
  border-radius: 100px;
  background: var(--Background-icon-bg, #f6f5f4) !important;
  padding: 4px !important;
}

.mobile-navigation-drawer {
  .navigation__link {
    color: var(--Text-body, #3c3c3d);
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500 !important;
    line-height: 20px; /* 142.857% */
  }

  .navigation__tier-1 {
    .navigation__link {
      text-transform: uppercase;
    }
  }

  .navigation__tier-2 {
    .navigation__link {
      text-transform: none !important;
    }
  }

  .mobile-navigation-drawer__footer-text-link a {
    color: var(--Text-body-text-dark, #3c3c3d) !important;
    font-family: Poppins;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important; /* 142.857% */
  }
}

@media screen and (min-width: 700px) {
  .navigation-popover {
    &.popover-two-columns {
      .container ul {
        grid-template-columns: 1fr 1fr;
      }
    }
    .container ul {
      display: grid;

      // grid-template-columns: 1fr 1fr;

      // &.popover-three-columns {
      //   grid-template-columns: 1fr 1fr 1fr;
      // }

      gap: 8px;

      .navigation__item {
        display: flex;
        color: var(--Text-body-text-dark, #3c3c3d);
        font-family: Poppins;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px; /* 142.857% */
        left: 0;

        a {
          transition: all 0.3s;

          &:hover {
            text-decoration: underline;

            color: #78ad72;
            // left: 32px;
          }
        }

        .navigation-leaf {
          width: 0;
          height: 8px;
          margin-right: 4px;
          transition: all 0.3s;
        }

        &:hover {
          .navigation-leaf {
            width: 8px;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .navigation__item {
    a {
      transition: all 0.3s;

      &:hover {
        text-decoration: underline;

        color: #78ad72;
        // left: 32px;
      }
    }

    .navigation-leaf {
      width: 8px;
      height: 8px;
      margin-right: 12px;
      transition: all 0.3s;
    }

    &:hover {
      .navigation-leaf {
        width: 8px;
      }
    }
  }
}

.main-search__empty-message {
  color: var(--Text-body-text-dark, #3c3c3d);
  text-align: center;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 142.857% */
}

.main-search-result {
  img {
    transform: scale(1.3);
  }
}

#main-nav > div > div > ul > li:nth-child(5) {
  @media screen and (min-width: 758px) {
    display: none;
  }
}

#main-nav > div > div > ul > li:nth-child(6) {
  @media screen and (max-width: 758px) {
    display: none;
  }
}

// body
//   > div.mobile-navigation-drawer
//   > div.navigation.navigation--main
//   > div
//   > ul
//   > li:nth-child(6) {
//   @media screen and (max-width: 758px) {
//     display: none;
//   }
// }

#NavigationTier2-5-mobMobileNav > div > ul > li:nth-child(3) {
  display: none;
}
