/* Discount and Price Styling for Product Cards */

.sales-price-wrapper {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.sales-price {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
}

.sales-uvp {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 3px;
}

.price-crossed {
  text-decoration: line-through;
  opacity: 0.7;
}

.sales-savings {
  font-size: 0.85em;
  color: #28a745;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Card adjustments for better discount display */
.card-body-angebote {
  position: relative;
  overflow: visible;
}

.sales-image-quadrat {
  position: relative;
}

/* Optional: Add a small sale indicator on the image */
.has-sale .sales-image-quadrat::after {
  content: "ANGEBOT";
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #dc3545;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}
