@charset "UTF-8";

/**
 * @copyright     2022 beikeshop.com - All Rights Reserved.
 * @link          https://beikeshop.com
 * @Author        guangda <service@guangda.work>
 * @Date          2022-08-02 19:19:52
 * @LastEditTime  2022-09-16 20:56:05
 */

body.page-categories {
  .col-lg-9.right-column {
    @media (min-width: 992px) {
      flex: 1;
    }
  }

  .col-lg-3.left-column {
    @media (min-width: 992px) {
      max-width: 290px;
    }

    @media (min-width: 1500px) {
      max-width: 340px;
    }

    .card:not(:last-of-type) {
      border-bottom: 1px solid #E6E6E6;
      margin-bottom: 1.4rem;
      padding-bottom: 1.4rem;
    }
  }

  .left-column {
    @media (max-width: 992px) {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: none;
      cursor: pointer;
      z-index: 999;
      background: rgba(0, 0, 0, .4);

      .x-fixed-top {
        position: absolute;
        top: 0;
        height: 100%;
        width: 80%;
        padding: 20px;
        text-align: left;
        overflow-y: auto;
        transform: translateX(100%);
        background-color: #fff;
        transition: all .3s ease-out;
        right: 0;
        &.active {
          transform: translateX(0);
        }
      }
    }
  }

  .children-wrap {
    @media (max-width: 992px) {
      display: none;
    }

    a {
      color: #333;
      margin-right: 4px;

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

  .style-wrap {
    label {
      cursor: pointer;
      &.active {
        svg {
          fill: $primary;
        }
      }

      svg {
        fill: #999;
      }
    }
  }

  .filter-value-wrap {
    .list-group {
      display: block;

      .list-group-item {
        display: inline-block;
        cursor: pointer;
        font-size: 12px;
        background: #f3f3f3;
        border: none;
        color: #666;
        padding: 4px 12px;
        &.delete-all {
          background: $primary;
          color: #fff;
        }

        &:hover {
          background: $primary;
          color: #fff;
        }
      }
    }
  }

  .product-tool {
    @media (min-width: 992px) {
      .order-select {
        min-width: 170px;
      }
    }


    .right-per-page {
      @media (max-width: 768px) {
        flex: 1;
        justify-content: space-between;

        .perpage-select {
          max-width: 60px;
          padding-right: 8px;
        }

        .form-select {
          padding-top: 0.25rem;
          padding-bottom: 0.25rem;
          padding-left: 0.5rem;
          font-size: 0.7rem;
        }
      }
    }
  }

  .ui-widget-content {
    border-radius: 0;
    position: relative;
    border: none;
    margin-right: 4px;
    margin-bottom: 0;
    background: none;
    cursor: pointer;

    .ui-widget-header {
      background: $primary;
      position: absolute;
      top: 50%;
      border-radius: 0;
      height: 3px;
      margin-top: -3px;
    }

    .slider-bg {
      background: #e3e3e3;
      position: absolute;
      top: 50%;
      width: 100%;
      height: 3px;
      margin-top: -3px;
    }

    .ui-slider-handle {
      width: 4px;
      margin-left: 0;
      cursor: ew-resize;
      border: none !important;
      border-radius: 0;
      background: $primary;
      outline: none !important;
    }
  }
}

.sidebar-widget {
  list-style: none;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid #E6E6E6;

  li {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    overflow: hidden;
    width: 100%;
    line-height: 24px;
    // border-bottom: 1px solid #e9ecef;

    &:last-of-type {
      border-bottom: none;
    }

    .category-href {
      position: relative;
      color: #333;
      overflow: hidden;
      text-overflow:ellipsis;
      white-space: nowrap;
      width: calc(100% - 36px);
    }

    &.active {
      > a {
        font-weight: bold;
        color: $primary;
      }
    }
  }

  ul {
    padding-left: 12px;
    list-style: none;
  }

  .toggle-icon {
    float: right;
    font-size: 16px;
    padding: 0;
    width: 24px;
    height: 24px;
    text-align: center;
    i {
      color: #aaa;
    }

    &.collapsed {
      transform: rotate(-180deg);
    }
  }
}

.filter-box {
  .attribute-item {
    .form-check-label {
      cursor: pointer;
      &:hover {
        .form-check-input {
          border-color: $primary;
        }
      }
    }
  }
}