//-- ADMIN BAR ADJUSTMENTS
// body.admin-bar {
//   .header-one {
//     @media screen and (min-width: $bp-phablet + 1) {
//       top: 32px;
//     }
//     @media screen and (max-width: $bp-phablet) {
//       top: 46px;
//     }
//   }
// }

.pre-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;

  p {
    margin-bottom: 0;
    max-width: 350px;
  }
}

//-- HEADER
#main-header {
  border: none;
  position: relative;
  padding-bottom: 0;
  padding: 15rem 0 1.5rem 0;

  .user-info {
    display: none;
  }
  .user-cart a.with-icon {
      position: relative;
      z-index: 0;
  
      svg {
        height: 4rem;
        width: auto;
      }
  
      span.count {
            position: absolute;
      top: -25px;
      right: 0;
      background-color: #d0be4e;
      color: #fff;
      -moz-border-radius: 100%;
      border-radius: 100%;
      height: 2rem;
      width: 2rem;
      font-size: 1.25rem;
      line-height: 2.25rem;
      text-align: center;
          margin-left: 1rem;
      margin-right: 1rem;
      font-weight: 900;
      }
    }
  
  @media screen and(max-width: $bp-phablet) {
    margin-left: -4rem;
    margin-right: -4rem;
  }
  @media screen and(max-width: $bp-phablet) {
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 10rem 0 0rem;
  }
  &:after {
    content:'';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid $gray-light;
  }
  .logo-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    transition: all 0.4s $easing;
    img {
      max-width: 8rem;
      transition: all 0.4s $easing;
      @media screen and($bp-larger-than-mobile) {
        max-width: 11rem;
      }
    }
  }
  > .row {
    display: flex;
    align-items: center;
    text-align: center;
  }
  .header-area {
    position: absolute;
    top: 1.5rem;
    font-weight: 100;

    .user-access {
      display: none;
    }

    a, label {
      font-weight: 100;
      font-size: .97em;
    }
    &.left {
      left: 0;
      @media screen and(max-width: $bp-phablet) {
        display: none;
      }
      a.with-icon {
        position: relative;
        z-index: 0;
        &:before {
          content:'';
          position: absolute;
          left: .1rem;
          top: .75rem;
          transform: translate(50%, 0);
          z-index: -1;
          height: .75rem;
          width: .75rem;
          border-radius: 100%;
          background-color: $primary-color;
          transition: all .4s $easing;
        }
        img {
          max-width: 1.75rem;
          display: inline-block;
          vertical-align: middle;
          margin-right: 1rem;
        }
        &:hover {
          &:before {
            background-color: $black;
          }
        }
      }
      label {
        margin-bottom: 0;
      }
    }
    &.right {
      right: 0;
      text-align: right;
      min-width: 17.5rem;

      @media screen and(max-width: $bp-phablet) {
        display: flex;
        justify-content: flex-end;
        padding-right: 15px;

        a.with-icon {
          margin-right: 0 !important;
          width: 35% !important;

          svg {
            height: 3rem;
          }

          span.count {
            top: -5px;
            right: -5px;
          }
        }

        .user-img {
          img {
            height: 3rem;
          }
        }

        .user-access {
            display: block;

            .header-greetings {
              display: none;
            }
          }

        .lang-menu {
          opacity: 0;
          position: fixed;
          z-index: -1;
          justify-content: center;
          align-items: center;
          margin: 0;
          height: 50px;
          display: flex;
          background-color: $primary-color;
          bottom:0;
          left: 0;
          right: 0;
          width: 100%;

          transition: all 0.2s ease-in-out;

          &.active {
            opacity: 1;
            z-index: 99999999;
          }

          li {
            a {
              color: white;
            }

            .divider {
              color: black;
            }
            
            &.active {
              a {
                color: black;
              }
            }
          }
        }
      }

      .register-block {
        margin-bottom: 2rem;
        color: $primary-color;
        text-align: right;
        position: relative;
        display: inline-block;
        @media screen and(max-width: $bp-phablet) {
          display: none;
        }
        .login-panel {
          position: absolute;
          top: 150%;
          right: 0;
          width: 30rem;
          background-color: $white;
          border: 1px solid $gray-light;
          z-index: 100;
          padding: 2.5rem 2.5rem 1.5rem;
          text-align: left;
          display: none;
          form {
            padding: 0 !important;
          }
          .woocommerce-form-row {
            margin-bottom: 0rem;
          }
          .woocommerce-LostPassword {
            margin-bottom: 0;
            small {
              color: $gray-darker;
              display: block;
            }
            a {
              color: $primary-color;
              text-decoration: underline;
              letter-spacing: 1px;
              font-weight: 500;
            }
          }
          input {
            width: 100%;
          }
          label {
            color: $gray-dark !important;
            font-size: .9em !important;
            letter-spacing: 0 !important;
            font-weight: 100 !important;
          }
          .btn {
            width: 100%;
            min-width: 1px;
            margin-top: 2.5rem;
            span {
              color: $white;
              font-weight: 300;
            }
          }
        }
      }
      a {
        color: $black;
        span {
          margin-left: 1rem;
          margin-right: 1rem;
          color: $primary-color;
          font-weight: 900;
          &.count {
            position: absolute;
            top:0;
            right: 0;
            background-color: $primary-color;
            color: $white;
            border-radius: 100%;
            height: 2rem;
            width: 2rem;
            font-size: 1.25rem;
            line-height: 2.25rem;
            text-align: center;
            // font-weight: 100;
          }
        }
        img, svg  {
          height: 4rem;
          width: auto;
          path {
            transition: all .4s $easing;
          }
        }
        &.with-icon {
          float: right;
          width: 50%;
          position: relative;
          @media screen and(max-width: $bp-phablet) {
            float: right;
            margin-right: 20px;
          }
          label {
            font-size: .625em;
          }
        }
        &:hover {
          svg {
            .box {
              fill: $primary-color;
            }
            .diamond {
              fill: $black;
            }
            .wheel {
              fill: $primary-color;
            }
          }
        }
      }
    }
  }
}

//-- SEARCHFORM
form[role="search"] {
  position: relative;
  display: inline-block;
  margin-left: 5rem;
  margin-bottom: 0;
  padding-top: .5rem;
  #searchinput {
    border: none;
    border-bottom: 1px solid $gray-light;
    border-radius: 0;
    padding-bottom: .5rem;
    padding-left: 2rem;
    height: auto;
  }
  .search-toggle {
    position: absolute;
    left: 0;
    top: 1rem;
    // transform: translateY(-50%);
    img {
      max-width: 1.5rem;
    }
  }
  .search-submit {
    display: none;
  }
}

//-- BURGER
.hamburger {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0;
  .hamburger-inner {
    &:after {
      display: none;
    }
  }
  &:focus {
    outline: none;
  }
  @media screen and (min-width: $bp-phablet + 1){
    display: none !important;
  }
}
