.dropmenu {
  margin: 0;
  padding: 0;

  li {
    margin: 0;
    float: left;
    list-style: none;
  	position: relative;
    &:hover {
      background-color: transparent;
      > ul {
      	display: block;
      }
    }
    a {
    	display: block;
    	padding: 0;
      font-weight: 400;
      @extend .custom-underline;
      // font-size: .85em;
      letter-spacing: .025em;
    }
    > a:hover, > a:focus, &.open > a {
      color: $black;
    }
    &.current-menu-item {
      a {
        color: $primary-color;
        &:after {
          background-color: $primary-color;
        }
      }
      > a:hover, > a:focus, &.open > a {
        color: $primary-color;
      }
    }
    ul {
      margin: 0!important;
      @media screen and (min-width: $bp-phablet) {
        margin: 0;
        display: none !important;
        position: absolute;
        left: 0;
        top: 100%;
        width: 10em;
        z-index: 999;
        background-color: $gray-lighter;
      }
      li {
        float: none;

        &:first-child {
          margin-top: 7px !important;
          border-top: 2px solid $gray-lighter !important;
          padding-top: 7px !important;
        }

        @media screen and (max-width: $bp-phablet) {
          border-bottom: 0 !important;
          font-size: 1.15em;
          padding: 3px !important;
        }
        ul {
          left: 100%;
          top: 0;

          li {
          }
        }
      }
    }
  }
  &:after {
  	content: "";
  	display: table;
  	clear: both;
  }
}

.menu-main-menu-container,
.menu-menu-container {
  width: 100%;
}

@media screen and(max-width: $bp-phablet) {
  #shop-panel {
      display: none !important;
  } 

  #main-header {
    &::after {
      display: none;
    }
  }
}

#main-menu {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  
  @media screen and(max-width: 769px) {
    position: fixed;
    top: 100px;
    overflow-x: hidden !important;
    padding-bottom: 20rem;
    bottom: 0;
    height: 0;
    opacity: 0;
    left: 0;
    right: 0;
    display: flex;
    overflow: auto;
    flex-direction: column;
    background-color: white !important;
    z-index: -1 !important;
    transition: all .3s linear;

    &.is-active {
      height: 100%;
      opacity: 1;
      z-index: 99999 !important;
      display: flex !important;
    }

    .panel-toggler {
      order: -1;
    }

    li {
      &:first-child {
        border-top: none;
      }
    }
  }

  @media screen and($bp-larger-than-phablet) {
    width: 85%;
  }
  li {
    display: inline-block;
    float: none;
    text-align: center;
    padding: 0 2.5rem;
    @media screen and(max-width: $bp-phablet) {
      display: block;
      padding: 1rem 2.5rem;
      border-bottom: 2px solid $gray-lighter;
      margin: 0 -1.5rem;
      a {
        font-weight: 500;
        font-size: 1.25em;
        display: inline-block;
      }
      &:last-of-type {
        padding-bottom: 0;
        border: none;
      }
    }
    .dropdown-menu {
      border: 0;
      padding: 0;
      li {
        a {

        }
      }
    }
  }
  @media screen and(min-width: 769px) {
    display: table;
  }
}

// Flexible Layout Navigation
#flex-nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  display: block;
  list-style: none;
  transform: translateY(-50%);
  .nav-item {
    margin-bottom: 2rem;
    a {
      height: 2rem;
      width: 2rem;
      border-radius: 100%;
      display: block;
      background-color: $gray-light;
      transition: all 0.4s $easing;
    }
    &.current {
      a {
        background-color: $primary-color;
      }
    }
  }
}

// SHOP PANEL
#shop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: $white;
  // border-top: none;
  z-index: 9990;
  padding-top: 3.5rem;
  display: none;
  .inner-wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
    width: 100%;
    #sub-menu {
      padding-bottom: 5rem;
      display: table;
      text-align: center;
      width: 100%;
      li {
        display: block;
        float: none;
        text-align: center;
        padding: 0 5rem;
        a {
          display: block;
          padding: 0;
          @extend .custom-underline;
          // font-size: .9em;
          letter-spacing: .025em;
        }

        @media screen and($bp-larger-than-phablet) {
          display: inline-block;
        }
      }
    }
  }
  .panel-block {
    a {
      display: inline-block;
      height: 100%;
      width: 100%;
      position: relative;
      overflow: hidden;
      background-color: $primary-color;
      img {
        @extend .centered;
        width: 100%;
        height: 100%;
        object-fit: cover;
        font-family: 'object-fit:cover';
        transition: all .4s $easing;
      }
      h5 {
        position: absolute;
        bottom: 3.5rem;
        font-family: $font-family-sans-serif;
        letter-spacing: .05rem;
        font-size: calc(.65em + .65vw);
        font-weight: 500;
        transition: all .4s $easing;
      }
      &:hover {
        img {
          opacity: .25;
          transform: translate(-50%, -50%) scale(1.05);
        }
        h5 {
          color: $black;
        }
      }
    }
    &.left {
      display: none;
      h5 {
        left: 7.5rem;
        color: $white;
      }
    }
    &.right {
      h5 {
        left: 50%;
        transform: translateX(-50%);
        color: $black;
      }
    }
    @media screen and($bp-larger-than-phablet) {
      height: 50rem;
      &.left {
        display: block;
      }
    }
  }

  @media screen and($bp-larger-than-phablet) {
    .inner-wrapper {
      padding: 5rem;
      border: 1px solid $gray-light;
    }
  }
}
