/* BASIC css start */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 72px 12px;
  margin: 0 auto;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-img-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
}

.badge-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-color: #f3e5f5;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.2;
  color: #333;
  text-align: center;
}

.badge-circle span {
  font-weight: bold;
  font-size: 9px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
}

.product-title {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
  word-break: keep-all; 
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.original-price {
  font-size: 18px;
  color: #bbb;
  text-decoration: line-through;
}

.btn-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  border: 1px solid #DBDBDB;
  border-radius: 5px;
  background-color: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  transition: border-color 0.2s;
}

.btn-cart:hover {
  border-color: #bbb;
}

.icon-bag {
  width: 14px;
  height: 14px;
}
@media screen and (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 6px;
  }
  
  .product-title {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }
  
  .current-price {
    font-size: 15px;
  }
  
  .original-price {
    font-size: 13px;
  }
  
  .btn-cart {
    height: 30px;
    border-radius: 4px;
    font-size: 12px;
    gap: 4px;
  }

  .product-img-wrap {
    margin-bottom: 16px;
  }

  .product-info {
    gap: 8px;
    margin-bottom: 20px;
  }

  .product-price {
    gap: 4px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) { 
  .product-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 8px;
  }

} 
/* BASIC css end */

