// .my-navbars {
//   position: relative;
//   &::after {
//     content: "";
//     width: 100vw;
//     height: 100%;
//     position: absolute;
//     background-color: rgba(255, 255, 255, 0.102);
//     left: 0;
//     right: 0;
//     top: 0;
//   }
// }

.my-navbar {
  overflow: hidden;
  // background-color: #2c2c2c;
  background-color: #00b58d;
  height: 80px;
  @include mq("tablet-wide", max) {
    overflow-y: auto;
    position: absolute;
    width: 84%;
    height: 100%;
    min-height: 100%;
    top: 0;
    // padding-top: 90px;
    padding-top: 110px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transform: translateX(0px);
    left: -100%;
    z-index: 111;
    transition: 0.2s transform ease-out;

    @include mq("phablet", max) {
      min-height: 105%;
    }
  }

  &-active {
    transform: translateX(118%);
  }

  .container {
    height: 100%;
    @include mq("tablet-wide", max) {
      height: auto;
      padding: 0;
    }
    .nav {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      &-item {
        width: calc(100% / 8);

        @include mq("tablet-wide", max) {
          width: 100%;
        }
      }

      @include mq("tablet-wide", max) {
        flex-direction: column;
      }
    }
  }

  .nav-item {
    overflow: hidden;
    list-style-type: none;
    height: 100%;

    & > i {
      display: none;
      width: 50px;
      height: 30px;
      position: absolute;
      top: 5px;
      transform: translateX(-50%);
      right: -15px;
      color: #999;
      // color: #ff621a;
      // color: #00b58d;
      z-index: 11;
      margin-left: 15px;
      padding: 5px;
    }
    @include mq("tablet-wide", max) {
      position: relative;
      border-bottom: 1px solid #00000015;
      padding-left: 10px;

      & > i {
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }

    &.checkout {
      // background-image: linear-gradient(137deg, #f8583d 0%, #f8445a 100%);
      background-image: linear-gradient(137deg, #ff8a52, #ff6319);

      @include mq("tablet-wide", max) {
        background-image: unset;
        a {
          color: $my-orange;
        }
      }
    }
  }

  .nav-item .dropbtn {
    height: 100%;
    border: none;
    outline: none;
    padding: 10px;
    background-color: inherit;
    text-decoration: none;
    font-size: 15px;
    font-family: "ProximaNova", Arial, Helvetica, sans-serif;
    color: rgb(255, 255, 255);
    line-height: 1.333;
    display: flex;
    justify-content: center;
    align-items: center;

    @include mq("tablet-wide", max) {
      justify-content: flex-start;
      color: #000;
      height: auto;
    }
    span {
      text-align: center;
      display: block;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      @include mq("tablet-wide", max) {
        br {
          display: none;
        }

        text-align: left;
        margin: unset;
        width: 80%;
        display: inline-block;
      }
    }
  }

  & a:hover,
  .nav-item:hover .dropbtn {
    background-color: rgba(255, 255, 255, 0.102);
  }
  .nav-item-content {
    overflow-y: auto;
    @include mq("tablet-wide", min) {
      height: 353px;
    }
    @include mq("desktop", min) {
      height: 400px;
    }
    @include mq("desktop-wide", min) {
      height: 503px;
    }

    padding: 30px 0;
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 1111;
    box-shadow: 0px 20px 18px 2px rgba(5, 8, 9, 0.1);
    background-color: rgb(255, 255, 255);
    @include mq("tablet-wide", max) {
      padding: 10px 20px;
      width: 95%;
      max-height: 350px;
      overflow-y: auto;
      margin: 0 auto;
      position: relative;
      display: none;
      box-shadow: unset;
    }
    a {
      text-decoration: none;
      display: block;
      margin: 5px 0;
      text-align: left;
      font-size: 14px;
      font-weight: normal;
      color: rgb(34, 34, 34);

      padding-right: 36px;

      @include mq("tablet", max) {
        padding-right: 12px;
      }

      &:hover {
        color: $my-orange;
      }
    }

    h3,
    h3 a {
      font-size: 16px;
      font-weight: bold;
      color: rgb(34, 34, 34);
      line-height: 1.2;
      @include mq("tablet-wide", max) {
        font-size: 14px;
        font-weight: normal;
      }
    }

    h3 {
      display: flex;
      align-items: center;
      position: relative;
      img {
        position: absolute;
        left: -38px;
        top: 5px;
        width: 30px;
        height: 30px;
        object-fit: cover;
        object-position: center;

        @include mq("desktop", max) {
          left: -30px;
          top: 5px;
          width: 25px;
          height: 25px;
        }
        @include mq("tablet-wide", max) {
          display: none;
        }
      }
      i {
        margin-left: 10px;
        font-size: 14px;
        padding: 5px;

        width: 50px;
        height: 30px;
        position: absolute;
        top: 0px;
        transform: translateX(-50%);
        right: -30px;
        z-index: 11;
        margin-left: 15px;
        padding: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #999;

        @include mq("tablet-wide", min) {
          display: none;
        }
      }
    }

    &__toggle {
      @include mq("tablet-wide", max) {
        display: none;
        padding-left: 10px;
      }
    }
  }

  .nav-item:hover .nav-item-content {
    @include mq("tablet-wide", min) {
      display: block;
    }
  }
}
