/* 商品类别（列表）页面样式表 */
.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-sub-color);
}

.category-cover img {
  position: absolute;
  height: 100%;
  width: 100%;
}

.category-container {
  padding: 40px 0;
  margin-top: 12px;
  border-top: 1px solid var(--theme-border-color);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 54px;
}

.category-header .header-right {
  display: flex;
}

.category-description {
  margin-top: 40px;
  overflow-y: hidden;
  text-overflow: ellipsis;
}

.price-range,
.category-sort {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.category-sort {
  position: relative;
  justify-content: space-between;
  margin-left: 20px;
}

.price-range .price-input,
.category-sort .sort-by {
  margin-left: 16px;
  width: 256px;
  height: 40px;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid var(--theme-border-color);
}

.category-sort .sort-by {
  padding: 0 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.category-sort i {
  position: absolute;
  top: calc(50% - 12px);
  right: 12px;
  color: var(--theme-color-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  pointer-events: none;
}

.price-range .price-input {
  width: 128px;
}

.price-range i {
  color: var(--theme-color-font);
}

.price-range .price-begin {
  margin-right: 8px;
}

.price-range .price-end {
  margin-left: 8px;
}

.price-range .filter-button {
  margin-left: 16px;
  padding: 0 8px;
  height: 40px;
  color: #fff;
  font-size: 20px;
  background-color: var(--theme-border-color);
}

.filter-button.valid {
  background-color: var(--main-bg-color);
}

.product-list {
  margin-bottom: 16px;
}

.no-products {
  padding: 80px 0;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
}

.content-limit--4 {
  max-height: 100px;
}

.category-container .content-toggle {
  display: block;
  margin: 24px auto 0;
  line-height: unset;
}

.category-container .content-toggle i {
  color: var(--main-bg-color);
}

@media screen and (max-width: 768px) {
  .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 .product-item {
    margin-right: 8px;
    width: calc(50% - 4px);
  }
  .product-list .product-item:nth-child(even) {
    margin-right: 0;
  }
  .category-controller {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--theme-border-color);
  }
  .category-controller .select-wrapper {
    position: relative;
    flex: 1;
  }
  .category-controller .select-wrapper label {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    height: 100%;
    width: 100%;
    color: var(--theme-color-font);
    font-size: 16px;
    line-height: 50px;
    text-align: center;
    background-color: #fff;
    pointer-events: none;
  }
  .category-controller .select-wrapper i {
    color: var(--theme-color-font);
    font-size: 12px;
    font-weight: 600;
  }
  .category-controller .select-wrapper select {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: transparent;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
  }
  .category-controller button {
    flex: 1;
    margin: 12px 0;
    font-size: 16px;
    color: var(--theme-color-font);
  }
  .category-controller button.current,
  .category-controller button.current i {
    color: var(--theme-color-font-secondary);
  }
  .category-controller button:last-child {
    border-left: 1px solid var(--theme-border-color);
  }
  .category-controller button i {
    font-size: 12px;
    color: var(--theme-color-font);
    font-weight: 600;
  }
  .category-header .header-right {
    width: 100%;
  }
  .price-range,
  .category-sort {
    display: none;
    padding-top: 20px;
  }
  .category-sort {
    margin: auto;
  }
  .category-sort label {
    display: none;
  }
  .price-range {
    width: 100%;
    text-align: center;
  }
  .price-range label {
    display: none;
  }
  .price-range .price-begin {
    margin-left: 0;
  }
  .price-range .filter-button {
    margin-left: 12px;
  }
  .category-sort label {
    line-height: 40px;
  }
  .category-sort .sort-by {
    margin-left: 0;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    border-width: 1px;
  }
  .category-sort i {
    top: calc(50% - 2px);
  }
}

@media screen and (min-width: 769px) {
  .category-controller {
    display: none;
  }
}

