// Sticky Header
@-webkit-keyframes fixedHeader {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-60px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

@keyframes fixedHeader {
  0% {
    opacity: 0;
    transform: translateY(-60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticky-header {
  &.fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    z-index: 1040;
    -webkit-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-name: fixedHeader;
    animation-name: fixedHeader;

    .porto-icon {
      color: black;

      &:hover {
        color: $primary-color;
      }
    }

    .minicart-icon,
    .minicart-icon::before{
      border-color: $primary-color-dark;
    }

    .main-nav {
      width: auto;
      background-color: transparent;
    }

    .menu {
      > li.float-right {
        > a {
          background-color: transparent;
        }
      }

      > li {
        > a {
          color: black;
          padding-top: .55rem;
          padding-bottom: .55rem;
        }
      }

      > li:hover,
      > li.show,
      > li.active {
        > a {
          color: $primary-color;
        }
      }
    }

    .logo,
    .porto-icon,
    .cart-dropdown {
      display: block;
    }
  }

  &.fixed-nav {
    position: fixed;
    top: 58px;
    right: 0;
    left: 0;
    height: 38px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    overflow: hidden;
    z-index: 1039;
    -webkit-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-name: fixedHeader;
    animation-name: fixedHeader;

    .container {
      margin: 0 auto;
      padding-left: 1.5rem;
    }
  }

  .buy-effect a {
    padding-left: 0;
    padding-right: 0;
  }
}

.scroll {
  margin-right: 17px;
}

@include mq('lg', 'max') {
  .sticky-header.fixed-nav {
    top: 0;
  }
}

@include mq('sm', 'max') {
  .sticky-header.fixed-nav {
    display: none;
  }
}
