
@import "./../../../theme_variables";
@import "./../../../vendor_variables";

/*** ESSENTIAL STYLES ***/
.sf-contener {
  clear: both;
  float: left;
  width: 100%;
}
.sf-right {}
.sf-menu,
.sf-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-menu {
  position: relative;
  padding: 0;
  width: 100%;
  @media (max-width: $screen-xs-max) { // max 767px
    display: none;
  }
}
.sf-menu ul {
  position: absolute;
  top: -999em;
  background: #fff;
  @media (max-width: $screen-xs-max) { // max 767px
    position: relative;
  }
}
.sf-menu ul li {
  width: 100%;
}
.sf-menu li:hover {
  visibility: inherit; /* fixes IE7 'sticky bug' */
}
.sf-menu > li {
  float: left;
  @media (max-width: $screen-xs-max) { // max 767px
    float: none;
    position: relative;
    border-right: none;
    span {
      position: absolute;
      right: 3px;
      top: 6px;
      width: 30px;
      height: 30px;
      z-index: 2;
      &:after {
        font-family: $font-icon;
        content: "\f067";
        font-size: 20px;
        color: $brand-primary;
      }
      &.active {
        &:after {
          content: "\f068";
        }
      }
    }
  }
  > a {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;
    color: $gray-darker;
    display: block;
    padding: 10px 20px;
    letter-spacing: 3px;
  }
  &.sfHover > a,
  > a:hover,
  &.sfHoverForce > a {
    background: #333;
    border-bottom-color: #666666;
    color: #fff;
  }
}
.sf-menu li li li a {
  display: inline-block;
  position: relative;
  color: $gray-darker;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  padding-bottom: 10px;
  &:before {
    content: "\f0da";
    display: inline-block;
    font-family: $font-icon;
    padding-right: 10px;
  }
}
.sf-menu li ul {
  display: none;
  left: 0;
  top: 59px; /* match top ul list item height */
  z-index: 99;
  padding: 12px 0px 18px 0px;
  @include box-shadow(rgba(black, 0.20) 0px 5px 13px);
  @media (max-width: $screen-xs-max) { // max 767px
    top: 0;
  }
}
.sf-menu li li ul {
  position: static;
  display: block !important;
  opacity: 1 !important;
  background: none;
  @include box-shadow(rgba(black, 0) 0px 0px 0px);
}
.sf-menu li li li ul {
  padding: 0 0 0 20px;
}
.sf-menu li li li ul {
  width: 220px;
}
ul.sf-menu li:hover li ul,
ul.sf-menu li.sfHover li ul {
  top: -999em;
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
  left: 200px; /* match ul width */
  top: 0;
}
ul.sf-menu li li:hover li ul,
ul.sf-menu li li.sfHover li ul {
  top: -999em;
}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
  left: 200px; /* match ul width */
  top: 0;
}
.sf-menu > li > ul {
  padding: 26px 30px 31px;
  width: 100%;
  > li {
    > a {
      text-transform: uppercase;
      font-weight: 600;
      font-size: 16px;
      line-height: 20px;
      &:hover {
        color: $link-hover-color;
      }
    }
  }
}
.sf-menu > li > ul > li {
  float: left;
  width: 20%;
  padding-right: 15px;
  @media (max-width: $screen-xs-max) { // max 767px
    width: 50%;
  }
  @media (max-width: $screen-xs - 1) { // max 479px
    width: 100%;
    padding-bottom: 20px;
  }
}
.sf-menu > li > ul > li.category-thumbnail {
  width: 100% !important;
  float: none;
  clear: both;
  overflow: hidden;
  padding-right: 0;
  > div {
    float: left;
    padding-left: 10px;
    width: 33.333%;
    @media (max-width: $screen-xs - 1) { // max 479px
      width: 100%;
      padding-left: 0;
      padding-top: 10px;
      text-align: center;
    }
    &:first-child {
      padding-left: 0;
    }
    img {
      max-width: 100%;
      display: block;
    }
  }
}
.cat-title {
  display: none;
  @media (max-width: $screen-xs-max) { // max 767px
    display: block;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: $gray-darker;
    display: block;
    padding: 17px 20px;
    background: #f4f4f4;
    position: relative;
    &:hover {
      background: #333;
      color: #fff;
    }
    &:after {
      display: block;
      font-family: $font-icon;
      content: "\f067";
      position: absolute;
      right: 15px;
      top: 18px;
      font-size: 26px;
    }
    &.active:after{
      content: "\f068";
    }
  }
}

.sf-menu {
  li.sf-search{
    border: none;
    input{
      display: inline;
      padding: 0 13px;
      height: 30px;
      line-height: 30px;
      background: $input-bg;
      margin: 13px 10px 0 0;
      font-size: 13px;
      color: $input-color;
      border: 1px solid $input-border;
    }
  }
}

#block_top_menu {
  .category-thumbnail {
    clear: both;
    width:100%;
    float:none;
    div {
      float: left;
      width: 100 / 3 * 1%;
      img {
        max-width: 100%;
      }
    }
  }
  li.category-thumbnail {
    padding-right: 0;
  }
}
