.product-container{
  padding: 0.8rem 10% 1.5rem;
  background-color: #F7F8F9;
}
.product-type-list{
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.product-type-item{
  display: inline-block;
}
.product-type-btn{
  display: inline-block;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  background: #FFFFFF;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.45rem;
  color: #1A1A1A;
  line-height: 0.6rem;
  transition: all 0.3s;
}
.product-type-btn:hover {
  background: rgba(192, 25, 31, 1);
  color: #fff;
}
.product-type-item:not(:first-child) {
  margin-left: 0.8rem;
}
.product-type-item.active >.product-type-btn {
  background: rgba(192, 25, 31, 1);
  color: #fff;
}


.product{
  margin-top: 1rem;
}
.product-list{
  display: flex;
  flex-wrap: wrap;
  margin-top: -0.7rem;
}
.product-item{
  width: 23%;
  margin-top: 0.7rem;
  box-sizing: border-box;
  padding: 0.75rem;
  background: #FFFFFF;
  border-radius: 0.4rem;
}
.product-item:not(:nth-child(4n)) {
  margin-right: calc(8% / 3);
}
.product-item-box{
  display: flex;
  justify-content: center;
  align-self: center;
  width: 100%;
  padding: 0.85rem;
  overflow: hidden;
}
.product-item-img{
  max-width: 100%;
  transition: 0.3s all;
}
.product-item-title{
  text-align: center;
  font-weight: 500;
  font-size: 0.5rem;
  color: #1A1A1A;
  line-height: 0.8rem;
  transition: 0.3s all;
  margin-top: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-item:hover .product-item-img {
  transform: scale(1.2);
}
.product-item:hover .product-item-title {
  transform: translateY(-0.05rem);
  color: #C0191F;
}

@media screen and (max-width: 1000px) {
  .product-item {
    width: 32%;
  }
  .product-item:not(:nth-child(4n)) {
    margin-right: 0;
  }
  .product-item:not(:nth-child(3n)) {
    margin-right: calc(4% / 2);
  }
}

@media screen and (max-width: 500px) {
  .product-container {
    padding: 1rem 5%;
  }
  .product-list{
    justify-content: space-between;
  }
  .product-item {
    width: 47%;
  }
  .product-item:not(:nth-child(4n)) {
    margin-right: 0;
  }
  .product-item:not(:nth-child(3n)) {
    margin-right: 0;
  }

}