/* products */
.products {
  padding: 20px 0 30px;
}

.products .title {
  line-height: calc(76 / 50);
  margin-bottom: 20px;
}

/* 筛选 */
.products .top-wrap {
  margin-bottom: 30px;
}

.products .filter-wrap {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.products .filter-item {
  position: relative;
}

.products .filter-title {
  padding: 7px 15px;
  line-height: calc(28 / 18);
  border: 1px solid #E1E1E1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.products .filter-title i {
  font-size: .7em;
  line-height: 1;
  margin-left: 10px;
  transform: translateY(2px);
}

.products .filter-title.active i {
  transform: translateY(2px) rotate(180deg);
}

.products .filter-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 20px 0;
  border-right: 1px solid #E1E1E1;
  border-bottom: 1px solid #E1E1E1;
  border-left: 1px solid #E1E1E1;
  background: #FFF;
  box-shadow: 0 4px 4px 0 rgba(64, 64, 64, 0.06);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.products .filter-item.active .filter-list {
  opacity: 1;
  visibility: visible;
}

.products .filter-list li {
  padding: 0 20px;
  cursor: pointer;
}

.products .filter-list>li:not(:last-child) {
  margin-bottom: 10px;
}

.products .list-wrap {
  display: flex;
  justify-content: space-between;
}

.products .list-wrap a, .products .list-wrap span {
  flex: 1;
}

.products .list-wrap i {
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}

.products .list-wrap i.drop {
  transform: rotate(90deg);
}

.products .filter-child {
  font-size: 14px;
  cursor: default;
  padding-top: 10px;
  padding-left: 10px;
  display: none;
}

.products .filter-child>li:not(:last-child) {
  margin-bottom: 10px;
}

/* 搜索 */
.products .filter-seacrh {
  height: 45px;
  position: relative;
}

.products .form-control {
  height: 100%;
  border-radius: 0;
  padding-left: 50px;
  border-color: #E1E1E1;
  font-family: 'Floane-Bold';
}

.products .form-control::-webkit-input-placeholder {
  color: rgba(40, 40, 40, 0.40);
}

.products .form-control:-moz-placeholder {
  color: rgba(40, 40, 40, 0.40);
}

.products .form-control::-moz-placeholder {
  color: rgba(40, 40, 40, 0.40);
}

.products .form-control:-ms-input-placeholder {
  color: rgba(40, 40, 40, 0.40);
}

.products .filter-seacrh .btn {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  padding: 0;
}

/* 筛选内容显示 */
.products .middle-wrap {
  border-top: 1px solid #E1E1E1;
  padding: 20px 0;
  display: none;
}

.products .middle-wrap .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.products .filter-info {
  width: fit-content;
  font-size: 14px;
  line-height: 20px;
  padding: 4px 15px;
  border: 1px solid #E1E1E1;
  background: #F8F8F8;
  display: flex;
  align-items: center;
}

.products .filter-info i {
  font-size: 8px;
  line-height: 1;
  margin-top: 1px;
  margin-left: 12px;
  color: #282828;
  cursor: pointer;
}

/* 产品 */
.products .bottom-wrap {
  padding-top: 32px;
  border-top: 1px solid #E1E1E1;
}

.products .total {
  text-align: right;
  line-height: 22px;
  margin-bottom: 32px;
}

.products .total span {
  font-family: 'Freeserif-Bold';
  color: var(--style-color);
}

.products .row {
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -30px;
}

.products .row>div {
  padding: 0 12px;
  margin-bottom: 30px;
}

.products .block {
  display: block;
}

.products .img {
  position: relative;
}

.products .img img {
  width: 100%;
  aspect-ratio: 342 / 220;
}

.products .img-show {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.products .label-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  gap: 10px;
}

.products .label-wrap span {
  color: #fff;
  line-height: 20px;
  padding: 3px 10px;
  font-family: 'Freeserif-Bold';
}

.products .label-wrap span:first-child {
  background: #535353;
}

.products .label-wrap span:last-child {
  background: #7E7E7E;
}

.products .tit {
  line-height: calc(34 / 22);
  margin-top: 14px;
  margin-bottom: 4px;
}

.products .info {
  line-height: 22px;
}

.products .page-wrap {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.products .page-prve i, .products .page-next i {
  font-size: 14px;
  line-height: 1;
}

.products .page-list li a, .products .page-list li span, .products .page-prve, .products .page-next {
  width: 35px;
  height: 35px;
  font-size: 16px;
  color: var(--style-color);
  line-height: calc(24 / 18);
  border: 1px solid #E1E1E1;
  font-family: 'Floane-Bold';
  display: flex;
  align-items: center;
  justify-content: center;
}

.products .page-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.products .page-list li.active a, .products .page-list li.active span {
  color: #fff;
  background: var(--style-color);
}

@media (min-width: 768px) {
  .products .filter-wrap {
    display: flex;
    gap: 20px;
  }

  .products .filter-item {
    flex: 1;
  }
}

@media (min-width: 1200px) {
  .products {
    padding-bottom: 100px;
  }

  .products .top-wrap {
    display: flex;
    gap: 20px;
  }

  .products .filter-wrap {
    margin-bottom: 0;
  }

  .products .filter-item {
    width: 180px;
  }

  .products .filter-title {
    font-size: 18px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .products .filter-list li {
    position: relative;
  }

  .products .list-wrap:hover {
    color: var(--style-color);
    text-decoration: underline;
  }

  .products .list-wrap i {
    display: none;
  }

  .products .filter-child {
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    display: block;
    padding: 10px 0;
    border-right: 1px solid #E1E1E1;
    border-bottom: 1px solid #E1E1E1;
    border-top: 1px solid #E1E1E1;
    background: #fff;
    z-index: 21;
    opacity: 0;
    visibility: hidden;
  }

  .products .filter-list>li:hover .filter-child {
    opacity: 1;
    visibility: visible;
  }

  .products .filter-child li:hover {
    color: var(--style-color);
    text-decoration: underline;
  }

  .products .filter-seacrh {
    height: 60px;
    flex: 1;
  }

  .products .form-control {
    font-size: 18px;
    padding-left: 70px;
  }

  .products .filter-seacrh .btn {
    left: 40px;
  }

  .products .row {
    margin-bottom: -50px;
  }

  .products .row>div {
    margin-bottom: 50px;
  }

  .products .block:hover .img-show {
    opacity: 1;
  }

  .products .page-wrap {
    margin-top: 70px;
  }

  .products .page-list li a, .products .page-list li span, .products .page-prve, .products .page-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (min-width: 1440px) {
  .products {
    padding-bottom: 100px;
  }

  .products .filter-item {
    width: 240px;
  }

  .products .filter-title {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .products .filter-seacrh {
    height: 74px;
  }
}