/* ==========================================================================
   FLASH DEALS & DUAL PROMOTIONAL BANNERS
   Curved hot crimson container with live countdown timer (Plaza / Zitro spec)
   ========================================================================== */

.flash-deals-section {
  margin-bottom: 32px;
}

.flash-deals-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #31103f 40%, #831843 100%);
  border-radius: var(--radius-2xl, 24px);
  padding: 24px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(131, 24, 67, 0.35), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(244, 63, 94, 0.25);
  position: relative;
}

[data-theme="dark"] .flash-deals-box {
  background: linear-gradient(135deg, #130f2e 0%, #200a29 40%, #580c23 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.2), 0 12px 36px rgba(0, 0, 0, 0.6);
}

.flash-deals-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Right-side Callout & Timer */
.flash-callout-sidebar {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flash-callout-title {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flash-callout-symbol {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.9;
  margin: 4px 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live Timer Badges */
.flash-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  margin: 10px 0;
}

.flash-timer-digit {
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Vazirmatn', sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.flash-timer-sep {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  animation: pulse 1s infinite;
}

.flash-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #be123c;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.flash-view-all-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #9f1239;
}

/* Horizontal Flash Product Cards Track */
.flash-products-track {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.flash-products-track::-webkit-scrollbar {
  display: none;
}

/* Flash Product Card */
.flash-product-card {
  width: 230px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-squircle, 22px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  scroll-snap-align: start;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

[data-theme="dark"] .flash-product-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.flash-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: rgba(37, 99, 235, 0.35);
}

.flash-card-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, var(--bg-surface) 40%, var(--bg-surface-muted) 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .flash-card-img-box {
  background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.6) 40%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.flash-card-img-box svg {
  width: 56px;
  height: 56px;
  color: #2563eb;
  filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.18));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flash-product-card:hover .flash-card-img-box svg {
  transform: scale(1.08) translateY(-3px);
}

/* Sales Progress Bar */
.sales-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sales-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-surface-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sales-progress-fill {
  height: 100%;
  background: var(--accent-crimson);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.sales-progress-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

/* Dual Promotional Banners */
.promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.promo-duo-card {
  padding: 24px 28px;
  border-radius: var(--radius-squircle, 22px);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.promo-duo-card h3 {
  color: #ffffff !important;
}

.promo-duo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.25);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 900px) {
  .flash-deals-box {
    flex-direction: column;
    padding: 18px;
  }
  .flash-callout-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 14px;
  }
  .flash-callout-symbol {
    display: none;
  }
  .promo-duo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .flash-deals-box {
    padding: 12px;
    border-radius: var(--radius-xl);
  }
  .flash-callout-sidebar {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
  }
  .flash-callout-title {
    font-size: 1.2rem;
  }
  .flash-product-card {
    width: 190px;
    padding: 10px;
    gap: 8px;
  }
  .promo-duo-card {
    padding: 16px 18px;
    border-radius: var(--radius-xl);
  }
}
