/* 商品类别（列表）页面样式表 */
.category-summary {
  font-size: 14px;
  margin-right: 25px;
}

/* background-color */
.category-controller .select-wrapper label,
.price-filter-label {
  background-color: #fff;
}

.collection-detail {
  --collection-section-bottom: 40px;
  --collection-list-pagination-space: 40px;
  --collection-description-text-bottom: 20px;
  --collection-description-btn-bottom: 40px;
}

@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-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;
}

.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(--main-color);
  cursor: pointer;
}

.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: 38px;
}

.price-label-text {
  font-size: 14px;
}

.price-filter-label::after {
  content: "\e7e8";
  font-family: 'iconfont';
  margin-left: 16px;
  font-size: 12px;
  color: var(--theme-font-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-font-color);
}

#sortBy li {
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  cursor: pointer;
}

#sortBy li[selected] {
  color: var(--highlight-bg-color);
}

#sortBy li:hover {
  opacity: 0.7;
  background: #eee;
}

.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;
    margin-top: 15px;
  }

  .category-controller .select-wrapper {
    width: 50%;
  }

  .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-header {
  display: flex;
  justify-content: flex-start;
  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, 24px) * 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;
  }

  .product-list {
    margin-right: 0;
  }

  .product-list .product-item:nth-child(2n) {
    margin-right: 0;
  }
}

/* collection_detail */
.category-container {
  width: 100%;
}

.category-container {
  padding: 20px 15px 0;
  position: relative;
}

.pagination-list-top {
  position: absolute;
  top: 20px;
  right: 15px;
}

.pagination-list-top .pagination-list {
  justify-content: flex-end;
  height: 34px;
}

.m-show-flt {
  width: 50%;
  margin-right: var(--v-space);
  border: var(--border-width) solid var(--theme-border-color);
}

@media screen and (min-width: 767px) {
  .category-search .category-container {
    padding: 20px 15px 0;
  }
}

@media screen and (max-width: 767px) {

  .pagination-list-top .pagination-ellipsis,
  .pagination-list-top .pagination-item {
    display: none;
    --pagination-item-font-color: var(--theme-font-color);
  }

  .pagination-list-top .pagination-button,
  .pagination-list-top .pagination-item.current {
    display: inline-block;
  }

  .pagination-list-top .pagination-last {
    position: relative;
    display: inline-block;
    margin-left: 15px;
  }

  .pagination-list-top .pagination-last.current {
    margin-left: 30px;
  }

  .pagination-list-top .pagination-last::after {
    position: absolute;
    left: -15px;
    content: "for";
  }

  .pagination-list-top .pagination-last.current::before {
    position: absolute;
    content: attr(data-pagination-index);
    left: -26px;
  }

  .pagination-list-top .pagination-item.current {
    background-color: transparent;
    --pagination-item-current-color: var(--theme-font-color);
    height: fit-content;
    line-height: normal;
  }

  .pagination-list-top .pagination-button i {
    font-size: 12px;
  }

  .category-container {
    padding: 0;
    position: relative;
  }

  .pagination-list-top {
    position: static;
    height: 30px;
    margin-bottom: var(--collection-section-bottom);
  }

  .category-controller .m-show-flt {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 5px;
  }

  .category-header .category-summary {
    width: 60%;
    position: absolute;
    top: 66px;
  }
}

/* silder_filter*/
.j-cancel-filter {
  cursor: pointer;
}

.flt-pri-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  padding: 10px;
}

.flt-option-title {
  display: flex;
  flex-direction: column;
}

.flt-options-box {
  position: relative;
  padding-bottom: 25px;
  max-height: 272px;
  overflow-y: hidden;
}

.flt-option-title .iconfont,
.flt-pri-title .iconfont {
  font-size: 12px;
}

.category-sfilterCont {
  display: flex;
}

.flt-option-cont {
  border-top: 1px solid #d5d5d5;
}

.flt-pri-range {
  padding: 10px;
}

.flt-pri-range button {
  height: 30px;
  width: 100%;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.flt-pri-range .price-input {
  width: 100%;
  padding: 0 10px;
  height: 30px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid var(--theme-border-color);
}

.silder-filter-box {
  width: 100%;
  max-width: 230px;
  height: fit-content;
  padding: 15px;
  background-color: var(--theme-filter-bg, #f5f6f8);
}

.silder-filter-box h2 {
  font-size: 14px;
}

.j-flt-title h2 {
  cursor: pointer;
  font-size: 14px;
}

/* 勾选框 */
.flt-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}

.flt-checkbox:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  left: 0px;
  background: 0 0;
  border-radius: 50%;
  border: 1px solid #b5b5b5;
  flex-shrink: 0;
}

.flt-checkbox span {
  font-size: 14px;
  letter-spacing: 1px;
}

.selections-flt-top {
  padding: 10px;
  font-size: 14px;
  color: #3863A3;
}

.selections-flt-top .filter-conds-label {
  margin-bottom: 4px;
}

.selections-flt-top h2 {
  color: var(--theme-font-color);
  padding: 10px 0;
}

.filter-conds-label,
.label-price {
  display: flex;
  align-items: center;
}

.filter-conds-label .icon-chadiao,
.label-price .icon-chadiao {
  font-size: 24px;
  color: #091f40;
  margin-right: 10px;
}

.flt-options-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.j-ftr-options {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px;
  font-size: 14px;
  margin-bottom: 2px;
  cursor: pointer;
}

.j-ftr-options:hover {
  box-shadow: none;
  background-color: var(--main-color);
  color: #fff;
}

.ftr-selected-hide:hover{
  background-color: transparent;
  color: var(--theme-font-color);
}

.j-ftr-options::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: 0 0;
  border-radius: 30%;
  border: 1px solid #b5b5b5;
  flex-shrink: 0;
}

.ftr-selected::before {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  margin-left: 2px;
  box-shadow: 0 0 0 2px #b5b5b5;
  background: var(--main-color);
}

.ftr-selected .selected-color-block {
  box-shadow:0 0 0 1px #ffffff, 0 0 0 2px #b5b5b5;
}

.ftr-selected-hide::before {
  display: none;
}

.ftr-selected-hide {
  flex-direction: column;
  gap: 0;
  padding: 0;
  width: 33.33%;
  margin-bottom: 10px;
  padding-top: 3px;
}

.ftr-selected-hide span:nth-child(2) {
  width: 100%;
  word-wrap: break-word;
  display: inline-block;
  text-align: center;
}

.selected-color-block {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.j-ftr-options:hover::before {
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
}

.flt-btn-opticon {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #f5f6f8;
  height: 28px;
  line-height: 28px;
  z-index: 10;
  font-size: 14px;
}

.ft-show-opticon {
  max-height: initial;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-jiazaizhong {
  display: none;
  margin-left: 20px;
  animation: rotate 2s linear infinite;
}

.loading-overlay {
  display: none;
  position: absolute;
  background-color: #ffffff;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: .7;
  z-index: 9;
}

@media screen and (max-width: 767px) {
  .flt-selector-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  .silder-filter-box h2 {
    font-size: 16px;
  }
  .flt-btn-opticon {
    background-color: var(--theme-filter-bg, #fff);
  }
  .j-flt-title h2 {
    font-size: 16px;
  }
  .filter-mask {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .6);
    z-index: 396;
  }

  .silder-filter-box {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: none;
    height: unset;
    z-index: 398;
    padding: 0;
    background-color: var(--theme-filter-bg, #fff);
    overflow-y: scroll;
  }

  .flt-options-box {
    display: none;
  }

  .m-flt-back {
    display: flex;
    padding: 10px;
    font-size: 18px;
  }

  .m-flt-close {
    font-size: 22px;
    box-shadow: -0.1875rem 0.1875rem 0.1875rem rgba(0, 0, 0, .3);
    padding: 8px;
    position: absolute;
    top: 0px;
    right: 0px;
    border-bottom-left-radius: 0.4375rem;
  }

  .silder-option-cont {
    max-height: 80%;
    overflow-y: auto;
  }

  .m-silder-box {
    width: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
    padding-bottom: 20px;
  }

  .m-silder-box .m-clear-filters{
    margin-right: 25px;
    font-size: 15px;
    border-bottom: 1px solid var(--theme-font-color);
  }
  .m-silder-close {
    background-color: #000;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 40px;
    border-radius: 50px;
  }
}