/* 商品类别（列表）页面样式表 */
/* background-color */
.category-controller .select-wrapper label,
.price-filter-label,.category-controller .select-price {
  background-color: #fff;
}
.collection-detail{
  --collection-section-bottom: 40px;
  --collection-list-pagination-space: 40px;
  --collection-description-text-bottom: 20px;
  --collection-description-btn-bottom: 40px;--collection-description-size: 16px;
  --collection-description-line-height: 24px;
}
@media screen and (max-width: 1200px){
  .collection-detail {
    --collection-section-bottom: 30px;
    --collection-list-pagination-space: 20px;
    --collection-description-text-bottom: 20px;
    --collection-description-btn-bottom: 30px;
    --collection-description-size: 14px;
    --collection-description-line-height: 22px;
  }
}
/* 类别筛选组件 Start */
.price-range,
#sortBy {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 11;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #fff;
  cursor: default;
  border: 1px solid #eee;
}
.category-controller {
  display: flex;
  justify-content: space-between;
}

.category-controller .select-price,
.category-controller .select-wrapper {
  position: relative;
  width: 200px;
  cursor: pointer;
}
/* price */
.select-price-text{
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 22px;
}
.select-price-remove{
  margin-left: 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  transform: scale(0.8);
  cursor: pointer;
}
.m-price-sortBy-txt{
  display: block;
  margin-bottom: 5px;
}
.select-price-inputbox{
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.price-range .price-input {
  width: 100%;
  padding: 0 10px;
  height: 30px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid var(--theme-border-color);
}
.price-input-line{
  padding: 0 8px;
  font-size: 12px;
  color: var(--theme-border-color);
}
.price-range .filter-button {
  width: 100%;
  height: 40px;
  color: #fff;
  font-size: 16px;
  background-color: var(--theme-font-color);
  cursor: pointer;
}
.category-controller .select-price {
  margin-right: 40px;
  font-size: 16px;
  text-align: center;
  color: var(--theme-font-color);
}
.price-filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: var(--border-width) solid var(--theme-border-color);
  height: 40px;
}
.price-label-text{
  font-size: 14px;
}
.price-filter-label::after {
  content: "\e7e8";
  font-family: 'iconfont';
  margin-left: 16px;
  font-size: 12px;
  color: var(--theme-border-color);
}
/* sort by */
.category-controller .select-wrapper label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 6px 14px;
  color: var(--theme-font-color);
  font-size: 16px;
  text-align: center;
  border: var(--border-width) solid var(--theme-border-color);
  pointer-events: none;
}

.select-wrapper label::after {
  content: "\e7e8";
  font-family: 'iconfont';
  margin-left: 16px;
  font-size: 12px;
  color: var(--theme-border-color);
}

#sortBy li {
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  cursor: pointer;
}

#sortBy li[selected] {
  background: var(--highlight-bg-color);
}

#sortBy li:hover {
  opacity: 0.7;
  background: var(--highlight-bg-color);
}

.category-controller-mask {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
}

@media screen and (max-width: 767px) {
  .category-controller {
    position: relative;
    width: 100%;
    max-width: 400px;
  }
  .category-controller .select-price,
  .category-controller .select-wrapper {
    width: 50%;
  }

  .category-controller .select-price {
    margin-right: var(--v-space);
    border: var(--border-width) solid var(--theme-border-color);
  }

  .category-controller .select-price,
  .category-controller .select-wrapper label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
  .select-price>span::after, .select-wrapper label::after{
    content: '';
  }
  .select-price>span::before {
    content: "\e7d9";
    font-family: 'iconfont';
    margin-right: 10px;
  }
  .select-wrapper label::before {
    content: "\e7df";
    font-family: 'iconfont';
    margin-right: 10px;
  }

  .select-price>span {
    justify-content: center;
    align-items: baseline;
    font-size: 14px;
  }
}

/* 类别筛选组件 End */
.category nav h1 {
  font-size: inherit;
  font-weight: normal;
}

.category-container {
  padding-top: 20px;
  border-top: 1px solid var(--theme-border-color);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--collection-section-bottom);
}

.category-header .header-right {
  display: flex;
}
.product-list .product-item:nth-child(4n) {
  margin-right: 0;
}
.category-description.content-limit--4 {
  max-height: calc(var(--collection-description-line-height) * 4);
}

.category-container .content-toggle {
  display: block;
  margin: calc(var(--collection-description-text-bottom) - var(--collection-section-bottom)) auto var(--collection-section-bottom);
  line-height: 30px;
}


@media screen and (max-width: 767px) {
  .category-container .content-toggle{
    margin-bottom: 10px;
  }
  .category-container {
    padding-top: 15px;
  }
  .category-header {
    flex-direction: column;
    margin-bottom: var(--h-space);
  }
  .category-header .category-summary {
    align-self: flex-start;
    margin-bottom: 15px;
  }
  .product-list {
    margin-right: 0;
  }
  .product-list .product-item:nth-child(2n) {
    margin-right: 0;
  }
}

