.tf-sw-products .swiper-slide {
  display: flex;
  padding: 1px;
  height: auto;
}
.tf-sw-products .card-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0px 3px -4px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
  margin-bottom: 10px;
}
.tf-sw-products .card-product:hover {
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.card-product-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: left;
  justify-content: center;
}
.card-product-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-product:hover .card-product-wrapper img {
  transform: scale(1.05);
}
.card-product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px;
  text-align: left;
}
.name-product {
  font-size: 15px;
  min-height: 42px;
  line-height: 1.3;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-to-cart-below {
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (max-width: 992px) {
  .card-product-wrapper {
    height: 220px;
  }
}
@media (max-width: 768px) {
  .card-product-wrapper {
    height: 200px;
  }
  .tf-sw-products .card-product {
    border-radius: 10px;
  }
}
@media (max-width: 576px) {
  .card-product-wrapper {
    height: 180px;
  }
  .tf-sw-products .card-product {
    border-radius: 10px;
  }
  .name-product {
    font-size: 14px;
  }
}
/* Product Badges Styling */
.product-badge {
  z-index: 10;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse-badge 1s infinite;
}

.new-badge {
  background: linear-gradient(135deg, #ff0202, #ff4400);
  color: white;
  border: 1px solid #ff6b6b;
}

.top-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #333;
  border: 1px solid #ffd700;
}

.hot-badge {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  border: 1px solid #ff4757;
}

.product-badge .badge-text {
  display: block;
  line-height: 1;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

/* Responsive positioning for different screen sizes */
@media (max-width: 768px) {
  .product-badge {
    padding: 3px 6px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .product-badge {
    padding: 2px 5px;
    font-size: 9px;
  }
}
