  .category-cover {
    position: relative;
    padding-bottom:var(--collection-cover-pd, 31.25%);
    width: 100%;
    font-size: 0;
    background-color:var(--collection-cover-bg-color, var(--theme-border-color));
  }
  .category-cover img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .pagination-list {
    margin-bottom: var(--collection-section-bottom, 40px);
  }
  .category-description {
    position: relative;
    max-height: 97px;
    margin-bottom:var(--collection-description-bottom,var(--collection-section-bottom,40px));
    overflow-y: hidden;
    font-size: var(--collection-description-size,16px);
    line-height: var(--collection-description-line-height,24px);
    text-overflow: ellipsis;
  }
  .category-description.content-limit--4::after{
    content: "";
    display: block;
    height: 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to top, var(--page-bg-color), rgba(0, 0, 0, 0));
  }
  .product-list {
    margin-bottom: calc(var(--collection-section-bottom,40px) - var(--h-space));
  }
  .no-products {
    padding: 80px 0;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
  }
  .category-description.no-limit {
    max-height: initial;
  }
  .auto-product{
    --section-title-align:var(--section-title-text-align);
    padding:var(--list-auto-product-padding, 0 var(--side-padding) var(--section-space)) ;
  }
  @media screen and (max-width: 767px) {
    .no-products{
      font-size: 20px;
    }
  }

body {
  --theme-font-color: #fff;
  background-color: var(--main-color-dark);
}
.auto-product{
  --list-auto-product-padding:0 var(--side-padding) 40px;
}
.rich-text * {
  color: var(--theme-font-color);
}

.price-range,
.category-sort {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.select-wrapper {
  position: relative;
  width: 117px;
  margin-left: 70px;
  cursor: pointer;
}

.select-wrapper label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 6px 0;
  color: var(--theme-font-color);
  text-align: center;
  pointer-events: none;
  border: 1px solid var(--theme-border-color);
}

.select-wrapper label::after,
.category-price-button::after {
  content: '\e7c2';
  font-family: 'iconfont';
  margin-left: 16px;
  font-size: 12px;
}

#sortBy {
  display: none;
  position: absolute;
  top: 33px;
  right: 0;
  z-index: 11;
  width: 180px;
  padding: 24px 16px;
  text-align: left;
  font-size: 15px;
  background-color: #fff;
  color: var(--main-color-dark);
  cursor: default;
}

#sortBy li {
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  white-space: nowrap;
  cursor: pointer;
}

#sortBy li[selected] {
  background: var(--main-color);
}

#sortBy li:hover {
  opacity: 0.7;
  background: var(--main-color);
}

.category-controller-mask {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
}

.price-range .price-input,
.category-sort .sort-by {
  margin-left: 8px;
  width: 256px;
  height: 32px;
  font-size: 16px;
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.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-font-color);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  pointer-events: none;
}

.price-range .price-input {
  width: 66px;
}

.price-range i {
  transform: scale(0.5);
  color: var(--theme-font-color);
}

.price-range .price-begin {
  margin-right: 4px;
}

.price-range .price-end {
  margin-left: 4px;
}

.price-range .filter-button {
  margin-left: 8px;
  padding: 0 20px;
  height: 32px;
  color: #fff;
  background-color: var(--theme-border-color);
}

.filter-button.valid {
  background-color: var(--main-color);
}

@media screen and (max-width: 767px) {
  #sortBy {
    width: 100%;
  }

  .price-range .price-input {
    width: 100px;
  }

  .category-header .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .category-price-button {
    width: 50%;
    padding: 6px 0;
    text-align: center;
    border: 1px solid #fff;

  }

  .select-wrapper {
    width: 50%;
    margin-left: 10px
  }

  .price-range {
    display: none;
    padding-top: 20px;
    width: 100%;
    text-align: center;
  }

  .price-range label {
    display: none;
  }

  .price-range .price-begin {
    margin: 0;
  }

  .price-range .filter-button {
    margin-left: 6px;
  }

  .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: 768px) {

  .category-controller,
  .category-price-button {
    display: none;
  }
}

.category nav h1 {
  font-size: inherit;
  font-weight: normal;
}

.category-cover {
  position: relative;
  padding-bottom: 31.25%;
  width: 100%;
  font-size: 0;
  max-width: calc(var(--max-width) - 50px);
  margin: auto;
}

@media screen and (max-width: 1370px) and (min-width: 768px) {
  .category-cover {
    width: calc(100% - 50px);
  }
}

.category-cover img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.category-container {
  --v-space:10px;
  --h-space:10px;
  padding: 40px 0 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 {
  --collection-description-size:16px;
  --collection-description-line-height: 24px;
  --collection-description-bottom: 30px;
}


.content-limit--4 {
  max-height: 96px;
}

.category-container .content-toggle {
  display: block;
  margin: 0 auto 20px;
  line-height: 30px;
}

.category-container .content-toggle i {
  color: var(--main-color);
}
@media screen and (max-width: 1200px){
   .category-container {
    padding: 20px 0 0;
  }
  .category-header {
    margin-bottom: 24px;
  }
}
@media screen and (max-width: 767px) {

  .category-container .content-toggle {
    margin: 0 auto 15px;
  }

  .category-description {
    --collection-description-bottom: 15px;
  }

  .category.wrapper,.wrapper.auto-product {
    padding: 9px;
  }

 

  .category-header {
    flex-direction: column;
  }

  .category-header .category-summary {
    align-self: flex-start;
    margin-bottom: 8px;
  }
  .pagination-list {
    margin-bottom: 30px;
  }
}

