/* 商品类别（列表）页面样式表 */
.category-search .wrapper{
  padding: 25px 0;
}
.category nav h1 {
  font-size: inherit;
  font-weight: normal;
  color: var(--theme-color-font-secondary);
}

.category-cover {
  position: relative;
  padding-bottom: 31.25%;
  width: 100%;
  font-size: 0;
  background-color: var(--theme-sub-color);
}

.category-cover img {
  position: absolute;
  height: 100%;
  width: 100%;
}

.category-container {
  padding: 40px 0;
  margin-top: 12px;
}

.category-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 54px;
}

.category-header .header-right {
  display: flex;
}

.category-description {
  margin: 26px 0 8px;
  overflow-y: hidden;
  text-overflow: ellipsis;
}
.content-toggle{
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.content-toggle:after {
  content: '\e756';
  font-family: 'iconfont';
  font-size: 13px;
  font-weight: 400;
}

.price-range, #sortBy {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 11;
  width: 100%;
  padding: 22px;
  text-align: left;
  background: #fff;
  box-shadow: 0px 0px 6px 0px rgba(51, 51, 51, 0.18);
  cursor: default;
}
.price-range>span:first-child{
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
}
.price-range .price-input {
  width: 100%;
  height: 33px;
  margin-bottom: 14px;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid #ccc;
}



.price-range .filter-button {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  background-color: var(--main-bg-color-sub);
  cursor: pointer;
}


.product-list-card{
  width: calc(25% - 18px);
  height: auto;
}
.no-products {
  padding: 80px 0;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
}

.content-limit--4 {
  max-height: 102px;
}

.category-container .content-toggle {
  display: block;
  margin: 24px auto 0;
  line-height: unset;
}
.category-controller {
  display: flex;
  justify-content: space-between;
  margin: auto;
}
 .category-controller .select-wrapper {
   flex: 1;
   margin: 8px 12px;
   border-bottom: 1px solid var(--theme-sub-color);
 }
 .category-controller .select-price,.category-controller .select-wrapper{
  position: relative;
  width: 220px;
  height: 40px;
  cursor: pointer;
 }
 .category-controller .select-price {
   flex: 1;
   margin: 8px 12px;
   font-size: 16px;
   font-weight: 600;
   text-align: center;
   color: var(--theme-color-font);
   border-bottom: 1px solid var(--theme-sub-color);
 }
 .select-price::before{
  content:'\e74b';
  font-family: 'iconfont';
  margin-right: 16px;
 }

.category-controller .select-wrapper label {
  display: inline-block;
  height: 100%;
  width: 100%;
  color: var(--theme-color-font);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  background-color: #fff;
  pointer-events: none;
}
.select-wrapper label::before{
  content: '\e751';
  font-family: 'iconfont';
  margin-right: 16px;
  
}
#sortBy li{
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  cursor: pointer;
}
#sortBy li[selected]{
  background: var(--main-bg-color);
}
#sortBy li:hover{
  opacity: 0.7;
  background: var(--main-bg-color);
}
.price-row::before {
    content: "From";
    display: inline-block;
    width: 41px;
    height: 27px;
    color: #333;
    font-size: 16px;
  }


@media screen and (max-width: 768px) {
.product-list-card .product-card-add {
    transform: translateY(-190%);
  }
  .category-container {
    padding: 20px 0;
  }
  .category-header {
    flex-direction: column;
    margin-bottom: 24px;
  }
  .category-header .category-summary {
    align-self: flex-start;
    margin-bottom: 8px;
  }
  .product-list {
    margin-right: 0;
  }
  .product-list-card{
    width: 100%;
  }
  
  .product-list-card:nth-child(even) {
    margin-right: 0;
  }
  .category-controller {
    position: relative;
    width: 100%;
  }
  .category-header .header-right {
    width: 100%;
  }
  .price-range {
    top: 49px;
    width: 100%;
    text-align: center;
    transform: none;
  }
  #sortBy{
    top:49px
  }
  .price-range .price-input{
    width: 100px;
    border-color: var(--theme-sub-color);
  }

  .price-range .price-begin {
    margin-left: 0;
  }
  
  
  .content-toggle{
    font-size: 14px;
  }
  .content-toggle:after{
    font-size: 12px;
  }
}

