/* Discounted Products Section */
.discounted-products-section {
  padding: 60px 0;
  background: #f9f3f0; /* Soft peach background */
}

.discounted-products-section .section-title {
  color: #d23c3c; /* Reddish tone for emphasis */
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
}

.discounted-products-section .section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #d23c3c;
  margin: 10px auto;
}

.discounted-products-section p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Discounted Product Cards */
.discounted-product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(210, 60, 60, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #ffd6d6;
  position: relative;
}

.discounted-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(210, 60, 60, 0.2);
}

.discounted-product-image {
  position: relative;
  display: block;
  overflow: hidden;
  height: 250px;
}

.discounted-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.discounted-product-card:hover .discounted-product-image img {
  transform: scale(1.1);
}

.discount-ribbon {
  position: absolute;
  top: 10px;
  right: -30px;
  background: #d23c3c;
  color: white;
  padding: 5px 40px;
  font-size: 14px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.discounted-product-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.discounted-product-title {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.discounted-product-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.discounted-product-title a:hover {
  color: #d23c3c;
}

.discounted-product-brand {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}

.discounted-product-price {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.discounted-current-price {
  font-weight: bold;
  color: #d23c3c;
  font-size: 20px;
  margin-right: 10px;
}

.discounted-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 16px;
}

.discounted-save {
  width: 100%;
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

.discounted-product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.discounted-product-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s;
}

.discounted-product-actions .btn-primary {
  background: #d23c3c;
  border-color: #d23c3c;
}

.discounted-product-actions .btn-primary:hover {
  background: #b83232;
  border-color: #b83232;
  transform: translateY(-2px);
}

.discounted-product-actions .btn-outline-secondary {
  border-color: #d23c3c;
  color: #d23c3c;
}

.discounted-product-actions .btn-outline-secondary:hover {
  background: #d23c3c;
  color: white;
  transform: translateY(-2px);
}

.view-all-btn {
  background: #d23c3c;
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  transition: all 0.3s;
  margin-top: 20px;
}

.view-all-btn:hover {
  background: #b83232;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(210, 60, 60, 0.3);
}

@media (max-width: 767px) {
  .discounted-product-image {
    height: 200px;
  }
  
  .discounted-products-section .section-title {
    font-size: 2rem;
  }
}
