.nav-inner {
  position: relative;
  padding: 3rem 0;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, auto);
  gap: 2.4rem;
  justify-content: space-between;
  border-bottom: 0.1rem solid $black;
  z-index: 2;

  &.mobile {
    min-height: 10rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    justify-content: space-between;

    .nav-mid {
      position: absolute;
      left: 0;
      top: 3rem;
    }
    .search-wrap {
      position: absolute;
      right: 8rem;
      top: 3rem;
    }
    .lang-wrap {
      position: absolute;
      right: 0;
      top: 3rem;
    }
  }
}

.search {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 0.1rem solid $gray-dark;
  border-radius: 0.5rem;
  input {
    padding: 1rem 1.4rem;
    font-size: 1.6rem;
    color: $black;
  }

  div {
    pointer-events: none;
    position: absolute;
    left: 1.4rem;
    top: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;

    span {
      font-size: 1.6rem;
      color: $gray-dark;
    }
  }
}

.nav-left {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 4rem;
}

.nav-right {
  ul {
    display: flex;
    align-items: center;
    gap: 2.4rem;
  }

  a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: $black;

    svg {
      fill: $black;
    }
  }
}

.language {
  padding: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: $black;
  border-radius: 0.5rem;
}

.language-dropdown {
  z-index: 2;
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  width: 100%;
  background: $white;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border: 0.1rem solid $gray;

  li {
    button {
      padding: 1.4rem 1rem;
      font-size: 1.6rem;
      background: $white;
      width: 100%;
      cursor: pointer;
    }
  }
  box-shadow: 0rem 0rem 0.4rem rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
}

.subnav-inner {
  padding: 1.6rem 0;
  width: 100%;
  overflow-x: auto;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  justify-content: space-between;

  li {
    color: $black;
    width: 100%;
    border-radius: 0.4rem;
  }
  a {
    border-radius: 0.4rem;
    text-align: center;
    text-transform: capitalize;
    display: block;
    white-space: nowrap;
    padding: 1rem;
    font-size: 1.6rem;
    color: inherit;
    @include raleway;

    -webkit-user-drag: none;
  }

  /* width */
  &::-webkit-scrollbar {
    height: 0.5rem;
  }

  /* Track */
  &::-webkit-scrollbar-track {
    background: $gray;
  }

  /* Handle */
  &::-webkit-scrollbar-thumb {
    background: $gray-dark;
  }

  /* Handle on hover */
  &::-webkit-scrollbar-thumb:hover {
    background: $body;
  }
}

.nav-burger {
  display: none;
  position: relative;
}

// Media
@media screen and (max-width: 850px) {
  .nav-right {
    display: none;
  }

  .nav-left {
    justify-content: flex-end;
    padding-right: 0;
  }

  .search {
    input {
      width: 100%;
      padding: 1rem 0.8rem;
    }

    div {
      left: 0.8rem;

      img {
        width: 100%;
        height: 100%;
      }
      span {
        white-space: nowrap;
      }
    }
  }

  .nav-inner {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.6rem;
    justify-content: space-between;
    padding: 2.4rem 0;
    border-bottom: none;
  }
  .subnav-inner {
    gap: 0.8rem;
    padding: 0.8rem 0;
    padding-top: 0;

    a {
      padding: 0.8rem;
      font-size: 1.4rem;
    }
  }
}
