.filter-wrap {
  padding: 60px 0;
}
.filter-wrap .header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #333333;
  margin-bottom: 30px;
}
.filter-wrap .header small {
  font-size: 30px;
}
.filter-wrap .header h2 {
  font-weight: bold;
  font-size: 40px;
  margin: unset;
  line-height: 1;
  margin: 15px 0 0;
}
.filter-wrap .header .search {
  display: flex;
}
.filter-wrap .header .search .btn {
  width: 60px;
  height: 48px;
  background: linear-gradient(to right, #5A2CD8, #3433C6, #3C92CA);
  margin-left: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.filter-wrap .header .search .btn img {
  width: 28px;
  height: 28px;
}
.filter-wrap .tabs-wrap {
  width: 100%;
  overflow-y: auto;
  white-space: nowrap;
  height: 125px;
}
.filter-wrap .tabs-wrap a {
  display: inline-block;
  margin-left: 16px;
  background: #fff;
  padding: 10px 20px 15px;
  width: 10%;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  border: 1px solid #dfdfdf;
  transition: border-color .3s ease;
}
.filter-wrap .tabs-wrap a:hover,
.filter-wrap .tabs-wrap a.active {
  border: 1px solid var(--main-color);
}
.filter-wrap .tabs-wrap a::after {
  content: "";
  width: 0;
  height: 0;
  border: 10px solid transparent;
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  transition: border-color .3s ease;
}
.filter-wrap .tabs-wrap a:first-child {
  margin-left: unset;
}
.filter-wrap .tabs-wrap a .icon {
  height: 33px;
}
.filter-wrap .tabs-wrap a .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.filter-wrap .tabs-wrap a p {
  margin: 10px 0 0;
}
.filter-wrap .category-wrap a {
  display: inline-block;
  padding: 0 35px;
  background: #F5F5F5;
  border-radius: 30px;
  line-height: 43px;
  margin-right: 13px;
  color: #333;
  cursor: pointer;
  margin-bottom: 13px;
  transition: color .3s ease, background .3s ease;
}
.filter-wrap .category-wrap a.active,
.filter-wrap .category-wrap a:hover {
  background: var(--main-color);
  color: #fff;
}
.filter-wrap .total-wrap {
  color: #666;
  margin-bottom: 20px;
}
.filter-wrap .list-wrap {
  display: flex;
  flex-wrap: wrap;
}
.filter-wrap .list-wrap .col {
  margin-bottom: 30px;
}
.filter-wrap .list-wrap .col .wrap {
  border: 1px solid #dfdfdf;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  padding: 0 30px 15px;
  text-align: center;
  position: relative;
}
.filter-wrap .list-wrap .col .wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(34, 87, 179, 0.6), rgba(34, 87, 179, 0.1), transparent, transparent, transparent, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.filter-wrap .list-wrap .col .wrap:hover::after {
  opacity: 1;
}
.filter-wrap .list-wrap .col .wrap .cover {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center
}
.filter-wrap .list-wrap .col .wrap p {
  color: #333;
  transition: color .3s ease;
}
.filter-wrap .list-wrap .col .wrap .cover img {
  display: block;
  max-width: 90%;
  transition: transform .3s ease;
}
.filter-wrap .list-wrap .col .wrap:hover .cover img {
  transform: scale(1.1);
}
.filter-wrap .list-wrap .col .wrap:hover p {
  color: var(--main-color);
}


@media screen and (max-width: 640px) {
  .filter-wrap {
    padding: 30px 0;
  }
  .filter-wrap .header {
    display: block;
    margin-bottom: 15px;
  }
  .filter-wrap .header small {
    font-size: 20px;
  }
  .filter-wrap .header h2 {
    font-size: 24px;
    margin-top: 6px;
  }
  .filter-wrap .header .input-wrap {
    flex: 1;
  }
  .filter-wrap .header .search {
    margin-top: 20px;
  }

  .filter-wrap .tabs-wrap {
    height: 90px;
  }
  .filter-wrap .tabs-wrap a {
    width: 33.33%;
    padding: 5px 10px 10px;
    margin-left: 10px;
  }
  .filter-wrap .tabs-wrap a p {
    font-size: 12px;
    margin-top: 5px;
  }
  .filter-wrap .category-wrap a {
    font-size: 14px;
    padding: 0 20px;
    line-height: 35px;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .filter-wrap .list-wrap .col .wrap .cover {
    height: 240px;
  }
}
