/*

==========================
  Main Header style
==========================

*/

.header-area {
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
  transition: 0.2s;
  @media(max-width: 575px){
    padding: 15px;
  }
  &.sticky-header {
    background: $cl-blue;
    padding: 10px 0;
    @media(max-width: 575px){
      padding: 15px;
    }
  }
  .main-menu {
    padding-left: 0;
    padding-right: 0;
    ul {
      li {
        margin-right: 25px;
        &:last-child {
          margin-right: 0px;
        }
        &:hover {
          a {
            color: $cl-primary;
          }
        }
        a {
          color: $cl-white;
          font-weight: 700;
          font-family: $main-font;
        }
        &:nth-last-of-type(1),&:nth-last-of-type(2),&:nth-last-of-type(3) {
          .dropdown-menu {
            .dropdown-menu {
              left: -100%;
              top: 0;
            }
          }
        }
      }
    }
    .header-btn {
      a {
        margin-left: 10px;
        @media(max-width: 991px){
          margin-left: 0;
          margin-right: 5px;
        }
      }
    }
  }
}

.header-btn {
  a {
    margin-left: 10px;
    @media(max-width: 991px){
      margin-left: 0;
      margin-right: 5px;
    }
  }
}





/** Custom Select **/
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  user-select: none;
  margin-left: 10px;
  @media(max-width: 991px){
    margin-left: 0px;
    margin-bottom: 15px;
  }
}
  .custom-select-wrapper select {
    display: none;
  }
  .custom-select-2 {
    position: relative;
    display: inline-block;
  }
    .custom-select-trigger {
      position: relative;
      display: block;
      font-size: 14px;
      color: #fff;
      cursor: pointer;
      width: 100px;
      padding: 6px 0;
      border: 2px solid #fff;
      padding-left: 10px;
      border-radius: 50px;
    }
      .custom-select-trigger:after {
        position: absolute;
        display: block;
        content: '';
        width: 7px; height: 7px;
        top: 50%; 
        right: 10px;
        margin-top: -3px;
        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
        transform: rotate(45deg) translateY(-50%);
        transition: all .4s ease-in-out;
        transform-origin: 50% 0;
      }
      .custom-select-2.opened .custom-select-trigger:after {
        margin-top: 3px;
        transform: rotate(-135deg) translateY(-50%);
      }
  .custom-options {
    z-index: 1;
    position: absolute;
    display: block;
    top: 100%; left: 0; right: 0;
    min-width: 100%;
    margin: 15px 0;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 2px 1px rgba(0,0,0,.07);
    background: $cl-mint;
    transition: all .4s ease-in-out;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
  }
  .custom-select-2.opened .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }
    .custom-options:before {
      position: absolute;
      display: block;
      content: '';
      bottom: 100%; right: 25px;
      width: 7px; height: 7px;
      margin-bottom: -4px;
      border-top: 1px solid $cl-blue;
      border-left: 1px solid $cl-blue;
      background: $cl-mint;
      transform: rotate(45deg);
      transition: all .4s ease-in-out;
    }
    .option-hover:before {
      background: #f9f9f9;
    }
    .custom-option {
      position: relative;
      display: block;
      padding: 0 22px;
      font-weight: 600;
      color: $cl-white;
      line-height: 35px;
      cursor: pointer;
      transition: all .4s ease-in-out;
    }
    .custom-option:first-of-type {
      border-radius: 4px 4px 0 0;
    }
    .custom-option:last-of-type {
      border-bottom: 0;
      border-radius: 0 0 4px 4px;
    }
    .custom-option:hover,
    .custom-option.selection {
      background: $cl-mint;
    }





.navbar-brand img {
  height: 26px;
  width: auto;
}



ul.dropdown-menu li a {
  text-transform: capitalize;
}
  

li.nav-item.dropdown .dropdown-toggle {
  position: relative;
}

li.nav-item.dropdown .dropdown-toggle:before {
  position: absolute;
  content: "\f107";
  font-family: 'FontAwesome';
  font-size: 16px;
  font-weight: normal;
  right: -7px;
  top: 48%;
  transform: translateY(-48%);
  @media(max-width: 991px){
    display: none;
  }
}


.dropdown-menu li.nav-item.dropdown:before {
  position: absolute;
  content: "\f107";
  font-family: 'FontAwesome';
  font-size: 16px;
  right: 15px;
  top: 48%;
  transform: translateY(-48%) rotate(-90deg);
  color: $cl-black;
}



.dropdown a {
  transition: 0.4s;  
}




.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
  display: block;
  background: $cl-white;
  margin-top: 23px;
  width: 220px;
  border-radius: 0;
  border: 0;
  -webkit-box-shadow: 0px 7px 20px -14px rgba(34,54,60,0.74);
  box-shadow: 0px 7px 20px -14px rgba(34,54,60,0.74);
}



.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    
    transform: translate3d(0, -5px, 0);
}

.dropdown-menu a {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 14px;
    color: $cl-black !important;
}

.dropdown-menu a:hover {
    background: transparent;
}


.dropdown-menu a:active{
    background: transparent;
}

ul.dropdown-menu li .dropdown-menu {
    left: 100%;
    top: 0;
}
ul.dropdown-menu li .dropdown-menu.show {
  @media(max-width:991px){
    visibility: visible;
    opacity: 1;
  }
}


.main-menu ul li ul li {
  margin-right: 0;
}




.menu-toggle {
  position: relative;
  display: block;
  width: 25px;
  height: 20px;
  background: transparent;
  border-top: 2px solid $cl-white;
  border-bottom: 2px solid $cl-white;
  color: $cl-black;
  font-size: 0;
  -webkit-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}
.menu-toggle:before, .menu-toggle:after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  background:$cl-white;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  transition: -webkit-transform 0.25s ease-in-out;
  -webkit-transition: -webkit-transform 0.25s ease-in-out;
  -o-transition: -webkit-transform 0.25s ease-in-out;
  transition: transform 0.25s ease-in-out;
  -moz-transition: -webkit-transform 0.25s ease-in-out;
  -ms-transition: -webkit-transform 0.25s ease-in-out;
}
span.is-active {
  border-color: transparent;
}
span.is-active:before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}
span.is-active:after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}
span.menu-toggle:hover {
  color: #ffb606;
}
span.is-active {
  border-color: transparent;
}
span.is-active:before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}
span.is-active:after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dropdown-toggle::after {
  display: none;
}
  

.black-bg .menu-toggle {
  border-top: 2px solid $cl-white;
  border-bottom: 2px solid $cl-white;
}

.black-bg .menu-toggle::before, .black-bg .menu-toggle::after {
  background: $cl-white;
}
.black-bg .menu-toggle.is-active {
  border-color: transparent;
} 
  


.main-menu {
  ul {
    li {
      &:nth-last-of-type(1),&:nth-last-of-type(2),&:nth-last-of-type(3) {
        .dropdown-menu {
          .dropdown-menu {
            left: -100%;
            top: 0;
          }
        }
      }
    }
  }
}


@media (max-width: 991px){

  .navbar-brand {
    margin-left: 15px;
  }

  .main-menu ul li {
    margin-right: 0;
    position: relative;
    margin: 3px 0;
  }

  .main-menu ul li.dropdown a {
      z-index: 999;
      position: relative;
      color: $cl-white;
  }
  .main-menu ul li a {
    color: $cl-white;
  }
  .main-menu ul li.dropdown:after {
      position: absolute;
      content: "\f107";
      font-family: FontAwesome;
      right: 0;
      top: 0;
      color: $cl-white;
      line-height: 35px;
      overflow: hidden;
      z-index: 1;
      width: 35px;
      border-radius: 50%;
      text-align: center;
      background: $cl-primary;
  }

  .dropdown-menu {
    display: none;
  }
  .dropdown-menu {
    width: auto;
    margin: 10px 15px 10px 0;
    background: $cl-white;
  }
  
  .navbar-collapse {
    margin-top: 20px;
    padding-left: 15px;
    max-height: 450px;
    overflow: auto;
    background: $cl-mint;
    padding-bottom: 20px;
  }

  .cart-btn {
    margin-left: 0;
    margin-top: 15px;
  }

  li.nav-item.dropdown:before {
    display: none;
  }


}

@media (max-width: 575px){

  .main-menu {
    padding-left: 15px;
    padding-right: 15px;
  }
  .navbar-brand {
    margin-left: 0;
  }
  .navbar-toggler {
    padding-right: 0;
  }
}


.header-area-2 {
  padding: 10px 0;
  background: #373369;
  .dashboard-menu {
    ul {
      li {
        margin: 0 7px;
        a {
          color: $cl-white;
          font-size: 14px;
          font-weight: 700;
        }
        ul.dropdown-menu {
          li {
            margin: 0 10px;
            a {
              font-size: 14px;
              padding: 10px;
            }
          }
        }
      }
    }
  }
}
