/* ============================================
   Slider 3: عروض محدودة بعدّاد (Flash Deal)
   Vanilla CSS - قابل لإعادة الاستخدام
   ============================================ */

.fd-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.fd-track {
  display: flex;
  direction: ltr;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fd-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
  background: radial-gradient(circle at 85% 0%, rgba(217, 119, 6, 0.35), transparent 55%),
              linear-gradient(160deg, #3b2417, #1c120b);
  padding: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.fd-badge-row {
  margin-bottom: 12px;
}

.fd-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.fd-dot-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: fdBlink 1.2s ease-in-out infinite;
}

@keyframes fdBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

.fd-body {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.fd-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 14px;
  flex-shrink: 0;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fd-info {
  flex: 1;
  min-width: 0;
}

.fd-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.fd-price-old {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.6;
}

.fd-price-new {
  font-size: 19px;
  font-weight: 900;
  color: #4ade80;
}

.fd-qty-label {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 4px;
}

.fd-qty-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
}

.fd-qty-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 6px;
}

.fd-countdown-live {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.fd-time-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}

.fd-time-num {
  display: block;
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fd-time-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.7;
  margin-top: 1px;
}

.fd-countdown-ended {
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  color: #f87171;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.fd-buy-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: white;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}

.fd-buy-btn:disabled {
  background: #4b5563;
  cursor: not-allowed;
  opacity: 0.7;
}

.fd-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.fd-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.fd-dot-indicator.active {
  background: #dc2626;
  width: 20px;
  border-radius: 5px;
}
