header {

  position: relative;

  .general-notes{
    background-color: $darkColor;
    color: #fff;
    min-height: 35px;
    max-height: 60px;
    font-size: 14px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: .65rem 1rem !important;
    justify-content: center;
    margin-bottom: 0 !important;
    button{
      width: 25px !important;
      height: 25px !important;
      border-radius: 50%;
      right: 5px !important;
      top: 7px !important;
      background-color: #117893;
      color: #fff !important;
      padding: 0 !important;
      border: 1px solid #000 !important;
      span{
        position: absolute;
        top: -4px;
        font-size: 18px;
      }
    }
  }


  nav,.navbar{
    position: initial;
    ul{
      position: initial;
      li{
        position: initial;
      }
    }
  }
  nav:first-of-type {
    padding: 0;

    .right-part {
      display: inline-flex;
      align-items: center;
      @media (max-width: $maxSm) {
        width: auto;
        margin-right: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
      }

      a {
        display: inline-flex;
        align-items: center;

        .logo {
          display: inline-flex;
          max-width: 120px;
          height: 65px;
          border-radius: 15%;
          overflow: hidden;
          font-size: 19px;
          font-weight: bold;
          justify-content: center;
          align-items: center;
          flex-shrink: 0;

          span {
            font-size: 25px;
            padding: 0;
            font-family: tahoma;
          }

          img {
            width: 100%;
            height: 100%;
            object-fit: contain;
          }
        }

        span {
          font-size: 41px;
          font-weight: bold;
          padding: 0 10px;
          margin-bottom: 8px;

          @media (max-width: $maxSm) {
            font-size: 27px;
            line-height: 1;
            padding: 0 5px;
            margin-bottom: 0;
          }
          @media (max-width: $max460) {
            font-size: 28px;
            line-height: 1;
            padding: 0 5px;
            margin-bottom: 0;
          }
        }

        @media (max-width: $maxSm) {
          display: inline-flex;
          margin-left: 0;
        }
      }

    }

    .left-part {
      align-items: center;
      justify-content: end;
      display: flex;
      margin-bottom: 0;
      .media {
        @extend %media;
        justify-content: left;

        a {
          div {
            @extend %transition;
            margin: 0 4px;
            width: 30px;
            height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;

            svg {
              @extend %transition;
              font-size: 18px;
            }
          }
        }

        @media (max-width: $maxLg) {
          padding: 10px 0 0;
        }

        @media (max-width: $maxSm) {
          justify-content: center;
        }
        @media (max-width: $max460) {
          display: none;
        }
      }
      @media (min-width: $maxSm) and (max-width: $maxMd) {
        position: absolute;
        left: 10px;
      }
    }
    @media (max-width: $maxSm) {
      padding: 0 10px;
    }
  }

  .subnav {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .container-fluid {
      height: inherit;
    }
    .right-part {
      display: inline-flex;
      padding: 0 10px;
      align-items: center;

      @media (max-width: $maxLg) {
        padding: 0;
      }

      @media (max-width: $maxSm) {
        width: auto;
        margin-right: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
      }

      .open-list {
        display: none;
        cursor: pointer;
        font-size: 20px;
        font-weight: bold;

        svg {
          font-size: 30px;
          margin: 0 5px;
        }

        @media (max-width: $maxMd) {
          display: block;
          padding: 5px;
        }
      }

      .logo {
        display: none;
        max-width: 100px;
        height: 50px;
        border-radius: 15%;
        overflow: hidden;
        font-size: 19px;
        font-weight: bold;
        justify-content: center;
        align-items: center;
        a {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          height: 100%;
          width: 100%;

          span {
            font-size: 25px;
            padding: 0;
            font-family: tahoma;
          }

          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }

    form {
      .form-group {
        margin-bottom: 0;
        display: flex;

        input {
          height: 40px;
          width: 700px;
          margin-left: -10px;
          font-size: 13px;
          outline: 0;
          @media (max-width: $maxXl) {
            width: 600px;
          }
          @media (max-width: $maxLg) {
            width: 430px;
          }
          @media (max-width: $maxMd) {
            display: none;
          }
          @media (max-width: $min350px) {
            width: 85%;
          }
        }
        .form-control:focus {
          outline: 0;
          box-shadow: none;
        }
        @media (max-width: $maxXl) {
        }
      }

      .text-center {
        display: inline-block;

        .btn-global {
          text-decoration: none;
          margin: inherit;
          min-width: 30px;
          height: 40px;
          border-radius: 8px;
          display: inline-flex;
          align-items: center;
          padding: 0 21px;
          font-size: 16px;

          @media (max-width: $maxSm) {
            height: 35px;
          }
          @media (max-width: $maxSm) {
            font-size: 14px;
            padding: 0 15px;
          }
        }
      }
    }

    .left-part {
      align-items: center;
      justify-content: end;
      display: flex;
      margin-bottom: 0;

      @media (max-width: $maxMd) {
        position: absolute;
        left: 0;
        top: 0;
      }

      li {
        a {
          width: 100%;
          display: inline-block;
          padding: 0 15px 0 10px;
          height: 50px;
          align-items: center;
          justify-content: center;
          display: inline-flex;

          svg {
            font-size: 30px;
          }

          span {
            font-size: 14px;
            padding: 0 5px;
          }
        }
      }
      .search-icon {
        width: 45px;
        text-decoration: none;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 0 -10px;
        font-size: 18px;
        background-color: transparent;
        @media (max-width: $maxMd) {
          display: block;
        }
        @media (max-width: $maxSm) {
          margin: 0 5px;
          font-size: 16px;
          padding: 0 10px;
        }
      }
    }
  }

  #phone-search {
    display: none;
    width: 100%;
    z-index: 1060;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    @media (min-width: $maxSm) and (max-width: $maxMd) {
      width: 510px;
    }
    .form-group {
      margin-bottom: 0;
      padding: 10px;
      width: 100%;
      display: flex;
      input {
        display: inline-flex;
        flex-shrink: 0;
        height: 40px;
        width: calc(100% - 70px);
        border-radius: 8px;
        margin-left: -10px;
        font-size: 13px;
        outline: 0;

        @media (max-width: $min350px) {
          width: 85%;
        }
      }
      .form-control:focus {
        outline: 0;
        box-shadow: none;
      }
    }

    .text-center {
      display: inline-block;

      .btn-global {
        text-decoration: none;
        margin: inherit;
        min-width: 30px;
        height: 40px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        padding: 0 21px;
        font-size: 16px;
        float: none;

        @media (max-width: $maxSm) {
          font-size: 14px;
          padding: 0 15px !important;
        }
      }
    }

    .mega-box{
      visibility: visible;
      opacity: 1;
    }
    .nav-links li:hover .drop-menu, .nav-links li:hover .mega-box{
      top: initial;
    }
  }
}

.fixed-top {
  height: 60px !important;
  @extend %transition;
  @extend %box-shadow;
  z-index: 1060;
  .logo {
    display: inline-flex !important;
    @extend %transition;
    margin-left: 8px;
  }
  .menu-button {
    height: 60px !important;
  }
  .main-sub-menu {
    top: 60px !important;
  }
  .sub-menu {
    top: -1px !important;
  }

  .left-part {
    li {
      a {
        height: 60px !important;
      }
    }
  }
  .language {
    .dropdown {
      button {
        height: 60px;
      }
      .dropdown-menu {
        top: 59px;
      }
    }
  }
  #phone-search {
    top: 60px;
  }
}
.language {
  .dropdown {
    .dropdown-menu {
      .form-check{
        input{
          display: inline-flex !important;
          margin: initial;
        }
      }
    }
  }
}
.ltr {
  header {
    nav:first-of-type {
      .right-part {
        @media (max-width: $maxSm) {
          margin-left: 0;
        }

        a {
          @media (max-width: $maxSm) {
            margin-left: initial;
            margin-right: 0;
          }
        }
      }

      .left-part {
        .media {
          justify-content: right;
        }
        @media (min-width: $maxSm) and (max-width: $maxMd) {
          left: initial;
          right: 10px;
        }
      }
    }

    .subnav {
      form {
        .form-group {
          input {
            margin-left: 0;
            margin-right: -10px;
          }
        }
      }

      .left-part {
        @media (max-width: $maxMd) {
          left: initial;
          right: 0;
        }

        li {
          a {
            padding: 0 10px 0 15px;
          }
        }
      }
    }
  }
  .search-icon {
    margin: 0 0 0 -10px;
  }

  #phone-search {
    .form-group {
      input {
        margin-left: initial;
        margin-right: -10px;
      }
    }
  }

  .fixed-top {
    .logo {
      margin-left: initial;
      margin-right: 8px;
    }
  }
}



.nav-links li{
  list-style: none;
}
.navbar .nav-links li > a{
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 9px 15px;
  transition: all 0.3s ease;
  height: 65px;
}
.nav-links li a:hover{
  border-bottom:2px solid #000;
}
.nav-links .mobile-item{
  display: none;
}
.nav-links .drop-menu{
  position: absolute;
  background: #fff;
  width: 180px;
  line-height: 45px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box{
  transition: all 0.3s ease;
  top: 70px;
  opacity: 1;
  visibility: visible;
}
.drop-menu li a{
  width: 100%;
  display: block;
  padding: 0 0 0 15px;
  font-weight: 400;
  border-radius: 0px;
}
.mega-box{
  position: absolute;
  left: 0;
  width: 100%;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}
.mega-box .content{
  background: #fff;
  padding: 25px 20px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.mega-box .content .row{
  line-height: 45px;
}
.content .row img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content .row header{
  color: #181616;
  font-size: 20px;
  font-weight: 500;
}
.content .row .mega-links{
  width: 100%;
  display: inline-block;
  border-left: 1px solid rgba(255,255,255,0.09);
}
.row .mega-links li{
  padding: 0 20px;
}
.row .mega-links li a{
  padding: 0 20px;
  color: #000;
  font-size: 17px;
  display: block;
  height: initial;
}
.new-mega .btn{
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.new-mega .btn.close-btn{
  position: absolute;
  right: 30px;
  top: 10px;
}

@media screen and (max-width: 970px) {
  .new-mega .btn{
    display: block;
  }
  .new-mega .nav-links{
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    top: 0;
    left: -100%;
    background: #242526;
    display: block;
    padding: 50px 10px;
    line-height: 50px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
  }
  /* custom scroll bar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #242526;
  }
  ::-webkit-scrollbar-thumb {
    background: #3A3B3C;
  }
  #menu-btn:checked ~ .nav-links{
    left: 0%;
  }
  #menu-btn:checked ~ .btn.menu-btn{
    display: none;
  }
  #close-btn:checked ~ .btn.menu-btn{
    display: block;
  }
  .nav-links li{
    margin: 15px 10px;
  }
  .nav-links li a{
    padding: 0 20px;
    display: block;
    font-size: 20px;
  }
  .nav-links .drop-menu{
    position: static;
    opacity: 1;
    top: 65px;
    visibility: visible;
    padding-left: 20px;
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
  }
  #showDrop:checked ~ .drop-menu,
  #showMega:checked ~ .mega-box{
    max-height: 100%;
  }
  .nav-links .desktop-item{
    display: none;
  }
  .nav-links .mobile-item{
    display: block;
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
    padding-left: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  .nav-links .mobile-item:hover{
    background: #3A3B3C;
  }
  .drop-menu li{
    margin: 0;
  }
  .drop-menu li a{
    border-radius: 5px;
    font-size: 18px;
  }
  .mega-box{
    position: static;
    top: 65px;
    opacity: 1;
    visibility: visible;
    padding: 0 20px;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .mega-box .content{
    box-shadow: none;
    flex-direction: column;
    padding: 20px 20px 0 20px;
  }
  .mega-box .content .row{
    width: 100%;
    margin-bottom: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mega-box .content .row:nth-child(1),
  .mega-box .content .row:nth-child(2){
    border-top: 0px;
  }
  .content .row .mega-links{
    border-left: 0px;
    padding-left: 15px;
  }
  .row .mega-links li{
    margin: 0;
  }
  .content .row header{
    font-size: 19px;
  }
}
nav input{
  display: none;
}

.has-mega-menu{
.mega-links{
  li{
    padding: 0 !important;
    a{
      padding: 0 !important;
    }
  }
}
}

.new-mega-search{
  padding-top: 30px;
  background-color: #fff;
  ul{
    li{
      &:hover{
        border: none;
        padding: 0;
        margin: 0;
      }
    }
  }
  .item{
   section{
     .img-box{
       height: 260px !important;
     }
   }
  }
.mega-links{
  li{
    padding: 0;
    a{
      padding: 0;
    }
  }
}
}