/**
 * Special Offers Module CSS
 * مسیر: modules/specialoffers/views/css/specialoffers.css
 */

.special-offers-list {
  padding: 20px 0;
}

.product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  min-height: 40px;
}

.product-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.product-title a:hover {
  color: #2fb5d2;
}

.product-prices {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.final-price {
  font-size: 22px;
  font-weight: bold;
  color: #ff4444;
}

.offer-dates {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 13px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.date-item:last-child {
  margin-bottom: 0;
}

.date-item i {
  font-size: 16px;
  color: #666;
}

.date-label {
  font-weight: 600;
  color: #555;
  min-width: 90px;
}

.date-value {
  color: #333;
  font-weight: 500;
}

.product-info .btn {
  margin-top: auto;
  padding: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s;
}

.product-info .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 181, 210, 0.3);
}

/* RTL Support */
[dir="rtl"] .discount-badge {
  right: auto;
  left: 10px;
}

[dir="rtl"] .date-item {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
  .product-image img {
    height: 200px;
  }

  .product-title {
    font-size: 14px;
    min-height: auto;
  }

  .final-price {
    font-size: 18px;
  }
}
