/**
 * ------------------------------------------------------------------------
 * JA Megafilter Component
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2017 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - Copyrighted Commercial Software
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites:  http://www.joomlart.com -  http://www.joomlancers.com
 * This file may not be redistributed in whole or significant part.
 * ------------------------------------------------------------------------
 */


 @import "variables.less";

 :root {
  --ja-mf-primary:  #2196f3;
  --ja-mf-success:  #2196f3;
  --ja-mf-info:     #2196f3;
  --ja-mf-warning:  #2196f3;

  --ja-mf-border: #dbdbdb;
  
  --ja-mf-spacing: 8px;
  --ja-mf-border-radius: 4px;

  --ja-mf-trans-base: all 0.25s ease;
}

/* --------------------------------------------------------- */
/* GENERIC STYLES                                            */
/* --------------------------------------------------------- */
.ja-megafilter-wrap.row {
  margin-left: -15px;
  margin-right: -15px;
}

.ja-megafilter-wrap,
.ja-megafilter-wrap * {
  box-sizing: border-box;
}

.ja-megafilter-wrap {
  .main-content {
    float: right;
    padding-left: 15px;
    padding-right: 15px;
    width: 75%;
  }

  .sidebar-main {
    padding-left: 15px;
    padding-right: 15px;
    width: 25%;
    float: left;

    .sidebar-toggle {
      display: none;
    }
  }
}

// PROGRESS BAR
// --------------------------------

#myProgress {
  width: 97%;
  margin: 0 auto;

  #myBar {
    width: 0%;
    background-color: #ddd;
    height: 3px;
    transition:width 500ms ease;
  }

  #percentBar {
    text-align: center;
    font-size: 13px;
  }
}

.loading_layer {
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  background: #ffffff;
  opacity: 0.6;
  filter: alpha(opacity=60);
}


#loader {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #16a085;
  animation: spin 1.7s linear infinite;
  z-index: 11;

  &:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    animation: spin-reverse .6s linear infinite;
  }

  &:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    animation: spin 1s linear infinite;
  }
}

// Bourbon mixins
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse  {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}


// SIDEBAR HORIZONTAL
// --------------------------------
.sb-horizontal.ja-mg-sidebar {
    float: none;
    width: auto;

    .filter-options {
      margin-left: -10px;
      margin-right: -10px;
      &:after {
        content: "";
        display: table;
        clear: both;
      }

      .filter-field {
        margin: 0 0 20px;
        float: left;
        width: 33.3%;

        // Tablet
        @media screen and (max-width: 768px) {
          width: 50%;
        }

        // Mobile
        @media screen and (max-width: 640px) {
          width: 100%;
        }

        .filter-options-title {
          margin-bottom: -13px;
          padding-left: 30px;

          span {
            padding-left: 15px;
            padding-right: 15px;

            &:after {
              display: none;
            }

            &:hover {
              cursor: default;
            }
          }
        }

        .filter-options-content {
          background-color: rgba(255, 255, 255, 0.5);
          border: 1px solid #ddd;
          min-height: 150px;
          height: auto;
          margin: 0 10px;
          padding: 30px 20px 20px;

          &:not(.filter-dropdown) {
            overflow-y: auto;
            height: 150px;
          }
        }
      }
    }

    // Style for button
    #jamegafilter-search-btn {
      border-radius: 0;
      box-shadow: none;
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 1px;
    }
  }

.ja-megafilter-wrap.sb-horizontal {
  .main-content {
    float: none;
    width: 100%;
  }
}

.main-content.full-width {
	width: 100% !important;
}

/* --------------------------------------------------------- */
/* TOOLBAR STYLES                                            */
/* --------------------------------------------------------- */

.products-toolbar .pagination {
  margin: 0 0 calc(var(--ja-mf-spacing) * 2) auto;
  overflow: hidden;

  @media (min-width: 768px) {
    margin-bottom: 0;
    margin-left: 0;
  }

  & > li {
    display: block;
    float: left;
    padding: 0 5px;
    overflow: hidden;

    & > span,
    & > a {
      border: 0;
      border-bottom: 2px solid transparent;
      color: @gray-dark;
      display: block;
      float: none;
      line-height: 1;
      margin: 0;
      padding: 8px 2px;
      text-transform: uppercase;

      &:hover, &:focus, &:active {
        background-color: transparent;
        border-color: @gray;
      }
    }

    &.active {
      & > a {
        background-color: transparent;
        border-color: @brand-primary;
        font-weight: bold;

        &:hover, &:focus, &:active {
          color: @brand-primary;
        }
      }
    }

    &:first-child,
    &:last-child {
      a, span {
        border-radius: 0;
      }
    }

    &.disabled {
      a {
        color: #ccc;

        &:hover, &:focus, &:active {
          border-color: transparent;
        }
      }
    }
  }
}

.ja-toolbar-wrapper {
  &.toolbar-top {
    margin-bottom: calc(var(--ja-mf-spacing) * 4);
  }
}

.products-toolbar {

  // Pagination
  // ----------
  .pagination-wrap {
    display: flex;
    padding: var(--ja-mf-spacing) 0;
    align-items: center;
    justify-content: space-between;
  
    &::before, &::after {
      display: none;
    }
  }

  // Display number
  // --------------
  .orderby-displaynumber {
    background-color: #f0f0f0;
    padding: calc(var(--ja-mf-spacing) * 1.5) calc(var(--ja-mf-spacing) * 2);
    position: relative;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    @media (min-width: 768px) {
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
    }

    &::before, &::after {
      display: none;
    }

    .limiter {
      display: inline-block;
      width: auto;

      @media (min-width: 768px) {
        margin-left: calc(var(--ja-mf-spacing) * 2);
      }

      .limiter-options {
        display: inline-block;

        @media screen and (max-width: 640px) {
          max-width: 60px;
        }
      }

      .limiter-label {
        span {
          padding-left: 0;
        }
      }
    }

    .toolbar-amount {
      margin-left: 8px;
      margin-top: 0;
      display: none;

      @media (min-width: 768px) {
        display: block;
      }
    }
  }

  label,
  .sorter-options,
  .sorter-action,
  #sorter_chzn,
  #limiter_chzn {
    display: inline-block;
  }

  span {
    height: auto;
    padding: 0 5px;
    vertical-align: middle;
    width: auto;
  }

  label {
    font-weight: normal;
    margin-bottom: 0;
  }

  select {
    border-radius: 0;
    box-shadow: none;
  }

  // Sort
  .toolbar-sorter {
    margin-bottom: var(--ja-mf-spacing);

    @media (min-width: 992px) {
      margin-bottom: 0;
    }

    .sorter-label {
      margin-right: var(--ja-mf-spacing);
    }

    .sorter-action {
      margin-left: var(--ja-mf-spacing);
    }

    .sorter-options {
      @media screen and (max-width: 640px) {
        max-width: 120px;
      }
    }

    .action {
      background-color: #096;
      border: 0;
      color: #fff;
      float: none;
      height: 34px;
      line-height: 30px;
      padding: 0;
      vertical-align: middle;
      text-align: center;
      width: 32px;

      &.sort-asc {
        .fa-long-arrow-up:before {
          content: "\f175";
        }
      }
    }
  }

  // Amount
  .toolbar-amount {
    background: transparent;
    border: 0;
    padding: 0;

    .toolbar-number {
      display: inline-block;
      height: auto;
      line-height: 1;
      padding: 0 5px;
      width: auto;
    }
  }

  // Layout chooser
  // --------------
  .jamg-layout-chooser {
    display: none;
    position: absolute;
    top: calc(var(--ja-mf-spacing) * 1.5);
    right: calc(var(--ja-mf-spacing) * 2);

    @media (min-width: 768px) {
      display: block;
    }

    @media (min-width: 992px) {
      position: relative;
      top: auto;
      right: auto;
      margin-left: auto;
    }

    span {
      background-color: @white;
      border: 1px solid @gray-lighter;
      color: @gray;
      display: inline-block;
      height: 32px;
      line-height: 32px;
      margin-left: 5px;
      text-align: center;
      width: 32px;

      &:hover {
        cursor: pointer;
        color: @gray-dark;
      }

      &.active {
        border-color: @blue;
        color: @blue;
      }
    }
  }
}


// PRODUCTS
// ---------------------------------------
.ja-products-wrapper .product-items {
  display: grid;
  // grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--ja-mf-spacing) * 3);
  align-items: stretch;

  margin-bottom: calc(var(--ja-mf-spacing) * 3);
}

.ja-products-wrapper {

  // Product item
  // ------------
  .product-item {
    // margin-bottom: var(--ja-mf-spacing);
    min-width: 0;

    .product-item-info {
      background: #fff;
      border: 1px solid var(--ja-mf-border);
      padding: calc(var(--ja-mf-spacing) * 2);
      height: 100%;
      transition: var(--ja-mf-trans-base);

      &:hover {
        border-color: var(--ja-mf-primary);
      }

      table {
        span.color-item-bg {
          border-radius: 2px;
          box-shadow: 0 0 1px rgba(0,0,0,0.2) inset !important;
        }

        img {
          max-width: 100%;
        }
      }

      > h4 {
        font-size: 14px;
        font-weight: 400;
      }
    }

    .item-field {
      margin-bottom: var(--ja-mf-spacing);
    }

    .item-field a {
      word-wrap: break-word;
    }

    // Product image
    a.product-item-photo {
      position: relative;

      img {
        max-width: 100%;
      }

      .product-image-badge {
        position: absolute;
        top: @spacing / 2;
        right: @spacing / 2;
      }
    }

    // Product name
    .name {
      margin-bottom: calc(var(--ja-mf-spacing) * 1.5);
    }

    .product-item-name {
      font-size: 120%;
      font-weight: 500;
      margin: 0;
      line-height: 1.3;
    }

    // Product description
    .desc {
      margin-bottom: calc(var(--ja-mf-spacing) * 1.5);
    }

    .price-box {
      font-weight: 500;
      font-size: 15px;

      .old_price {
        color: @gray;
        margin-right: @spacing / 2;
        text-decoration: line-through;
      }
    }

    // Actions
    .product-item-actions {
      .addtocart-bar {
        overflow: hidden;

        .quantity-input {
          border-radius: 0;
          box-shadow: none;
          display: block;
          float: left;
          height: 36px;
          max-width: 50px;
        }

        .quantity-controls {
          display: inline-block;
          margin-right: 10px;
          margin-left: 2px;
          overflow: hidden;
          width: 17px;

          input {
            background-color: @gray-lighter;
            background-image: url(../images/quantity-bg.png);
            background-repeat: no-repeat;
            border: 1px solid #ddd;
            border-radius: 0;
            height: 17px;
            float: left;
            margin: 0;
            width: 17px;
            -webkit-appearance: none;

            &.quantity-plus {
              background-position: left bottom;
              margin-bottom: 2px;
            }

            &.quantity-minus {
              background-position: -15px -15px;
            }

            &:hover {
              border-color: #333;
            }
          }
        }
      }
    }

    .addtocart-button {
      float: right;

      .btn {
        background-color: @brand-primary;
        border: 0;
        border-radius: 3px;
        color: #fff;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.5px;
        padding: 10px 15px;
        text-transform: uppercase;

        &:hover, &:focus, &:active {
          background-color: darken(@brand-primary, 5%);
        }
      }
    }
  }
}


// LIST VIEW
// -----------------------------------------
.ja-products-wrapper.list {
  .list {
    &.product-items {
      grid-template-columns: repeat(1, 1fr);
    }

    .product-item {
      margin-bottom: 0;

      &:last-child .product-item-info {
        border-bottom: 0;
        padding-bottom: 0;
      }

      .product-item-info {
        border: 0;
        border-bottom: 1px solid #ddd;
        padding-left: calc(var(--ja-mf-spacing) * 23);
        padding-right: 0;
        position: relative;
        overflow: hidden;
        min-height: 200px;

        &:hover {
          box-shadow: none;
        }

        &.no-image {
          padding-left: 0;
        }

        .product-item-details {
          overflow: hidden;
        }

        .thumb {
          position: absolute;
          left: 0;
          top: 20px;
        }

        .product-item-photo {
          background-color: #fff;
          margin-bottom: 0;
          padding: 0;

          img {
            max-width: calc(var(--ja-mf-spacing) * 20);
          }
        }

        .product-item-actions {
          float: left;
        }
      }
    }
  }
}


// PRODUCT ITEM GRID
// -----------------------------------------
// One column
.ja-products-wrapper .cols-1.product-items {
  grid-template-columns: repeat(1, 1fr);
}

// Two columns
.ja-products-wrapper .cols-2.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

// Three columns
.ja-products-wrapper .cols-3.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

// Four columns
.ja-products-wrapper .cols-4.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(4, 1fr);
  }
}

// Five columns
.ja-products-wrapper .cols-5.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ja-products-wrapper .cols-6.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ja-products-wrapper .cols-7.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(7, 1fr);
  }
}

.ja-products-wrapper .cols-8.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(8, 1fr);
  }
}

.ja-products-wrapper .cols-9.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(9, 1fr);
  }
}

.ja-products-wrapper .cols-10.product-items {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(10, 1fr);
  }
}


.ja-products-wrapper .product-item-details {
  background: none;
  padding: 0;
  border: 0;
  float: none;
  display: block;
  min-width: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.7142; /* 20px when font size = 14px */
}

.ja-products-wrapper .product-item-details:hover {
  color: inherit;
  background: none;
}

.ja-products-wrapper .product-item-photo {
  display: block;
  border-bottom: 0;
  margin-bottom: 20px;

  .product-image-container {
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  .product_label {
    position: absolute;
    top: 0;
    right: 0;
  }
}

.ja-products-wrapper .product-item-actions {
  margin-top: 20px;
  overflow: hidden;
}

.ja-products-wrapper .addtocart-bar {
  text-align: left;
}

/* Product reviews summary */
.ja-products-wrapper .product-reviews-summary .rating-summary,
.ja-products-wrapper .product-reviews-summary .reviews-actions {
  display: inline-block;
}

.ja-products-wrapper .product-reviews-summary {
  margin-bottom: 10px;
}

.ja-products-wrapper .product-reviews-summary .rating-summary {
  line-height: 1;
  padding-top: 5px;
  padding-bottom: 5px;
}

.ja-products-wrapper .product-reviews-summary .rating-summary > span {
  margin-right: 5px;
}

.filter-items .rating-result,
.ja-products-wrapper .rating-result {
  background: url("../images/color-stars.png") repeat-x 0 bottom;
  text-align: left;
  height: 12px;
  width: 60px;
  display: inline-block;
  position: relative;
}

.filter-items .rating-result span,
.ja-products-wrapper .rating-result span {
  background: url("../images/color-stars.png") repeat-x 0 0;
  height: 12px;
  position: absolute;
  left: 0;
}

.filter-items .rating-result {
  margin: 3px 3px 0 3px;
  top: 1px;
}


/* Stock */
.ja-products-wrapper .stock.unavailable {
  color: red;
}

.ja-products-wrapper .stock.available {
  color: green;
}


// Toolbar bottom
// --------------------------
div.toolbar-bottom {
  border-top: 1px solid #ddd;
  padding-top: 20px;

  span {
    height: auto;
  }
}

/* --------------------------------------------------------- */
/* FILTER STYLES                                             */
/* --------------------------------------------------------- */
.ja-filter-wrapper .filter-content {
  background-color: @gray-lighter;
  padding: @spacing;

  // Select filter
  .selected-filters {
    ol {
      list-style: none;
      padding-left: 0;
      padding-right: 0;

      li.item {
        padding: 5px;

        label {
          font-weight: 400;
        }

        .filter-label {
          opacity: 0.6;
        }

        .filter-value {
          .img-selected {
            border-radius: 2px;
            max-width: 40px;
          }
        }
      }
    }
  }

  .block-subtitle {
    border-bottom: 1px solid lighten(@gray-light, 10%);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 @spacing;
    padding: 0 0 (@spacing / 2);
    text-transform: uppercase;
  }

  input[type="checkbox"],
  input[type="radio"] {
    margin-top: 0;
    margin-right: 3px;
    margin-left: 3px;
    margin-bottom: 3px;
    vertical-align: middle;
  }

  .input-text {
    border-radius: 0;
    box-shadow: none;
    width: 100%;

    &.jafrom,
    &.jato {
      padding-right: 15px;
    }
  }

  .filter-items {
    box-shadow: none;
    border-radius: 0;
    width: 100%;

    .item.lv-2 {
      background: url(../images/tree-bg.png) no-repeat 0px center;
      padding-left: 20px;
    }

    .item.lv-3 {
      background: url(../images/tree-bg.png) no-repeat 20px center;
      padding-left: 40px;
    }

    .item.lv-4 {
      background: url(../images/tree-bg.png) no-repeat 40px center;
      padding-left: 60px;
    }

    .item.lv-5 {
      background: url(../images/tree-bg.png) no-repeat 60px center;
      padding-left: 80px;
    }
  }

  .filter-options-title {
    margin-bottom: @spacing / 1.5;

    span {
      background-color: darken(@gray-lighter, 5%);
      border-radius: 2px;
      display: inline-block;
      font-size: 12px;
      letter-spacing: 1px;
      padding: 5px 10px 5px 28px;
      position: relative;
      text-transform: uppercase;

      &:hover {
        cursor: pointer;

        &:after {
          color: @gray-dark;
        }
      }

      &:after {
        content: "\f146";
        color: @gray;
        display: block;
        font-family: FontAwesome;
        font-size: 14px;
        position: absolute;
        top: 5px;
        left: 8px;
      }
    }

    &.collapsed span:after {
      content: "\f0fe";
    }
  }

  // Filter option content
  .filter-range .filter-options-content {
    padding-left: 0;
    padding-right: 20px;

    label {
      font-weight: normal;
    }

    .ui-widget-content {
      background: none;
    }

    .ui-slider-horizontal {
      background-color: @brand-primary;
      border-radius: 0;
      border: 0;
      height: 6px;
      margin-left: 0;
      margin-right: 0;
      width: 100%;

      .ui-slider-range {
        background-color: @gray;
        border: 0;
        border-radius: 0;
        height: 6px;
      }

      .ui-slider-handle {
        background: @white;
        border: 1px solid @gray-light;
        border-radius: 50%;
        box-shadow: 0 0 3px rgba(0,0,0,0.2);
        height: 14px;
        margin-left: 0;
        margin-right: 0;
        width: 14px;
      }
    }
  }

  .filter-items {
    li {
      padding: 3px 0;

      &:first-child {
        padding-top: 0;
      }
    }

    label {
      margin-bottom: 0;
      font-weight: normal;
    }
  }

  // Filter colors
  .color-item {
    float: left;
    margin: 2px;
    padding: 0 !important;

    span.color-item-bg {
      border: 1px solid rgba(0,0,0,0.1);
      border-radius: 2px;
      display: block;
      position: relative;
      min-height: 28px;
      line-height: 28px;
      min-width: 28px;
      text-align: center;
      transition: all 0.35s;

      &:hover {
        border: 1px solid rgba(0,0,0,0.3);
        cursor: pointer;
        opacity: 0.8;
      }

      &.color-active {
        &:before {
          background: #fff;
          border: 1px solid rgba(0,0,0,0.2);
          border-radius: 50%;
          display: block;
          content: "";
          height: 10px;
          position: absolute;
          top: 8px;
          left: 8px;
          width: 10px;
        }
      }
    }
  }

  // Media item
  // ----------
  .filter-items .media-item {
    padding: 5px !important;
    float: left;
    width: 25%;

    img {
      border: 1px solid #ddd;
      border-radius: 2px;
      max-width: 100%;

      &.media-active {
        border: 1px solid #096;
      }
    }
  }
}

.ja-filter-wrapper .filter-content .filter-field + .filter-field {
  margin-top: 20px;
}

.ja-filter-wrapper .filter-options-title {
  margin-bottom: 10px;
}

/* Range */
.ja-filter-wrapper .filter-range .filter-options-content  {
  padding: 0 0.6em;
}

.ja-filter-wrapper .range-value {
  margin-top: 10px;
}

.ja-filter-wrapper .range-max {
  float: right;
}

/* Filter Selected */
.ja-filter-wrapper ol,
.ja-filter-wrapper ul {
  padding-left: 20px;
  margin-left: 0;
}

.ja-filter-wrapper dd {
  margin-left: 0;
}

.ja-filter-wrapper select,
.ja-filter-wrapper input[type="text"] {
  max-width: 100%;
  min-height: 28px;
}

.ja-filter-wrapper ul.filter-items {
  padding-left: 0;
  list-style: none;
  overflow: hidden;
}

.ja-filter-wrapper ol.items .clear-filter .filter-label {
  margin-right: 5px;
}

.ja-filter-wrapper ol.items li.item {
  border-radius: 2px;
  padding: 2px 5px;
}

.ja-filter-wrapper ol.items li.item:hover {
  background-color: #fff;
}

.ja-filter-wrapper ol.items .clear-filter.remove {
  position: relative;
  padding-right: 20px;
  display: block;
  margin-bottom: 0;
}

.ja-filter-wrapper ol.items .clear-filter.remove:after {
  content: "\f1f8";
  font-family: FontAwesome;
  position: absolute;
  right: 5px;
  top: 0;
  cursor: pointer;
  color: #999;
  transition: all 0.35s;
}

.ja-filter-wrapper ol.items .clear-filter.remove:hover:after {
  color: #096;
}

.ja-filter-wrapper ol.items li:hover {
}

.ja-filter-wrapper .filter-actions {
  text-align: right;
}

/* Overide Jquery UI */
.ui-widget-header a {
  border-bottom: 0;
}

.ui-datepicker .ui-datepicker-title select {
  display: inline-block;
  border-width: 1px;
}

.ui-datepicker .ui-datepicker-title select + select {
  margin-left: 5px;
}


// OVERRIDE FOR JSHOPPING COMPONENT
// --------------------------------------------------
.ja-megafilter-wrap.jshopping {
  .product-item-actions {
    overflow: hidden;

    .addtocart-area {
      float: left;
    }

    .view-detail {
      float: right;

      .btn-default {
        border: 1px solid transparent;
        border-radius: 3px;
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        padding: 9px 10px;

        &:hover, &:focus, &:active {
          background: transparent;
          border-color: @gray-light;
        }
      }
    }
  }
}


// OVERRIDE FOR DOCMAN COMPONENT
// --------------------------------------------------
.chzn-container-single .chzn-single > span,
.chosen-container-single .chosen-single > span {
  display: flex;
  align-items: center;

  > span {
    margin-right: 6px;
    display: inline-block;
  }
}



// STYLE FOR RTL LANGUAGE
// --------------------------------------------------------
*[dir="rtl"] {
  .ja-filter-wrapper .filter-actions {
    margin-bottom: 20px;
  }

  .ja-filter-wrapper ol.items .clear-filter.remove {
    padding-left: 20px;
    padding-right: 0;
  }

  .ja-filter-wrapper ol.items .clear-filter.remove::after {
    right: auto;
    left: 5px;
  }

  .products-toolbar .toolbar-sorter {
    float: right;
  }

  .ja-filter-wrapper .filter-content {
    .filter-items {
      padding-right: 0;

      .item.lv-2 {
        background: url(../images/tree-rtl-bg.png) no-repeat right center;
        padding-right: 20px;
        padding-left: 0;
      }

      .item.lv-3 {
        background: url(../images/tree-rtl-lv2-bg.png) no-repeat right center;
        padding-right: 40px;
        padding-left: 0;
      }

      .item.lv-4 {
        background: url(../images/tree-rtl-lv3-bg.png) no-repeat right center;
        padding-right: 60px;
        padding-left: 0;
      }

      .item.lv-5 {
        background: url(../images/tree-rtl-lv4-bg.png) no-repeat right center;
        padding-right: 80px;
        padding-left: 0;
      }
    }
  }

  .ja-filter-wrapper .filter-content .color-item {
    float: right;
  }
}


// RESPONSIVE STYLE
// --------------------------------------------------------
@media (min-width: 769px) and (max-width: 1024px) {
  .ja-megafilter-wrap.docman {
    .product-item-actions {
      .btn {
        margin-bottom: 10px;
        margin-left: 0 !important;
        width: 100%;
      }
    }
  }
}

.jamega-row-flex {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
}

.jamega-row-flex > div[class*='col-'],
.jamega-row-flex > * {
   margin: 0 -.3px; /* hack adjust for wrapping */
}

// Tablet
@media (max-width: 768px) {
  .ja-megafilter-wrap {
    position: relative;

    // Sidebar
    // -------------
    .ja-mg-sidebar {
      height: 50px;
      overflow: hidden;
      width: 100%;

      &.open {
        height: auto;

        .filter-open {
          display: none;
        }

        .filter-close {
          display: inline-block;
        }
      }

      .filter-close {
        display: none;
      }

      .sidebar-toggle {
        background-color: @gray;
        color: @white;
        display: block;
        height: 50px;
        font-weight: 500;
        line-height: 50px;
        letter-spacing: 1px;
        text-align: center;
        text-transform: uppercase;
        width: 100%;

        &:hover {
          background-color: @brand-primary;
          cursor: pointer;
          text-decoration: none;
        }

        i {
          margin-right: 5px;
          vertical-align: middle;
        }
      }
    }

    // Main content
    // ------------
    .main-content {
      width: 100%;

      .ja-products-wrapper .product-item:nth-child(3n+1) {
        clear: none !important;
      }

      .ja-products-wrapper .product-item:nth-child(2n+1) {
        clear: left !important;
      }
    }
  }
}

// Mobile
@media (max-width: 480px) {
  .ja-megafilter-wrap {
    .main-content {
      .product-item {
        width: 100%;
      }
    }
  }
}


// MISC
// --------------------------------------------------------
.ja-products-wrapper.products-list .product-item-details .row.thumb .col-md-12 {
  position: initial;
}