/* 商品类别（列表）页面样式表 */
/* 类别筛选组件 Start */
.pc-category-filter {
  flex-shrink: 0;
  width: 226px;
  margin-right: 65px;
}
.pc-catefilter-label{
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  line-height: 14px;
  border-top: 1px solid #979797;
  cursor: pointer;
  text-transform: uppercase;
}
.pc-category-sort{
  border-bottom: 1px solid #979797;
}
.pc-category-sort ul{
  padding-bottom: 34px;
}
.pc-catefilter-label::before{
  transform: scale(.8);
}

.pc-catefilter-pricebox{
  display: flex;
  gap:16px;
  padding-bottom: 40px;
}
#sortBy li {
  display: flex;
  align-items: center;
  height: 32px;
  line-height: 32px;
  cursor: pointer;
}
input[type=checkbox]:checked::after{
  background-color: #000;
  padding-bottom: 1px;
}
input[type=radio]::after{
  border-radius: 0;
}
.price-range .price-input,.pc-catefilter-pricebox .price-input {
  width: 100%;
  padding: 0 10px;
  height: 32px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid var(--theme-border-color);
  border-radius: 0;
}
.select-price-inputbox {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.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(--main-color);
  cursor: pointer;
}

.category-controller {
  display: flex;
  justify-content: space-between;
}

.category-controller .select-wrapper {
  flex: 1;
}

.category-controller .select-price,
.category-controller .select-wrapper {
  position: relative;
  width: 200px;
  cursor: pointer;
}

.category-controller .select-price {
  flex: 1;
  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);
  border-radius: var(--theme-border-radius);
  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);
}

.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;
  background-color: #fff;
  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);
}

@media screen and (max-width: 1200px){
  .pc-category-filter{
    margin-right:25px;
  }
}
@media screen and (max-width: 1100px) {
  .pc-category-filter {
      width: 180px;
  }
}

@media screen and (max-width: 767px) {
.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;
  }
  #sortBy li {
    display: block;
    height: 32px;
    line-height: 32px;
    padding: 0 8px;
  }
  #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;
  }
  .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;
  }

  .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);
    background-color: #fff;
    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;
  }
  .price-range>span{
    display: block;
    margin-bottom: 5px;
  }
}

/* 类别筛选组件 End */
.category{
  padding-bottom: var(--section-space);
}
.category nav h1 {
  font-size: inherit;
  font-weight: normal;
}

.category-cover {
  position: relative;
  padding-bottom: 31.25%;
  width: 100%;
  font-size: 0;
  background-color: var(--theme-border-color);
}

 
.category-cover img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.category-container{
  --v-space: 16px;
  --h-space: 16px;
}
.category-top-title{
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.category-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin:2px 0 33px;
}

.category-header .header-right {
  display: flex;
}
.pagination-list{
  width: 100%;
  margin-top: calc(48px - var(--h-space));
}

.product-list .product-item:nth-child(4n) {
  margin-right: 0;
}
.no-products {
  width: 100%;
  padding: 80px 0;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
}
.category-description {
  max-width: 50%;
  max-height: 67px;
  font-size: 14px;
  line-height: 22px;
}
.category-description.content-limit--3 {
  max-height: 66px;
}
.category-description.no-limit {
  max-height: initial;
}
.category-container .content-toggle {
  display: block;
  margin-top: 8px;
}
.content-toggle .button{
  padding: 0;
  border: initial;
  text-decoration: underline;
  font-size: 14px;
  line-height: 14px;
  height: initial;
}
.content-toggle .button:hover{
  background-color: initial !important;
  border-color: initial !important;
  color: initial !important;
}
.category-container-body{
  display: flex;
}
.category-container-body .product-list{
  width: 100%;
}
.auto-product{
  padding-top:0 ;
  padding-bottom: var(--section-space);
}
@media screen and (max-width: 1100px) and (min-width: 768px) {
  .product-list .product-item {
    width: calc(33.3% - var(--v-space) * 2 / 3);
  }

  .product-list .product-item:nth-child(4n) {
    margin-right: var(--v-space);
  }

  .product-list .product-item:nth-child(3n) {
    margin-right: 0;
  }
}
@media screen and (max-width: 767px) {
  .category-top-title {
    margin-top: 9px;
    margin-bottom: 24px;
  }
  .pagination-list {
    margin-top: 16px;
    margin-bottom: 8px;
  }
  .category-description{
    font-size: 12px;
    line-height: 20px;
    max-height: 61px;
    max-width: 100%;
  }
  .category-description.content-limit--3{
    max-height: 60px;
  }
  .category-container .content-toggle{
    margin-bottom: 23px;
  }
  .content-toggle .button{
    font-size: 12px;
    line-height: 14px;
  }
  .category-header {
    flex-direction: column;
    margin-bottom: 23px;
  }
  .category-header .category-summary {
    align-self: flex-start;
    margin-bottom: 14px;
  }
  .category-container-body{
    display: block;
    margin: 0 calc(-1 * var(--side-padding));
  }
  .product-list {
    margin-right: 0;
    margin-bottom: calc(15px - var(--h-space));
  }
  
  .product-list .product-item:nth-child(2n) {
    margin-right: 0;
  }
}

.pagination-item.pagination-button i {
  display: none;
}

.pagination-item.pagination-button {
  height: 32px;
  line-height: 32px;
  width: 107px;
  font-size: 14px;
  color: #fff;
  background-color: #000;
  border-radius: var(--theme-border-radius);
}

.pagination-prev {
  margin-right: var(--pagination-prev-next-padding);
}

.pagination-next {
  margin-left: var(--pagination-prev-next-padding);
}
.pagination-item.current{
  font-weight: 700;
}
@media screen and (max-width: 767px){
  .pagination-item.pagination-button{
    width: 70px;
  }
}
