/* =====================================================
   ZOOM Technologie — Flash Fix
   Cible les vraies classes générées par app.js
   ===================================================== */

/* ── 1. SECTION ── */
.flash-section {
  background: #ffffff;
  padding: 28px 0 24px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

/* ── 2. HEADER ── */
.flash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.flash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0055FF;
}
.flash-title i { color: #FF6B00; font-size: 16px; }

.flash-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF6B00;
  animation: flashPulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes flashPulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:0.4; transform:scale(0.75); }
}

/* ── 3. COMPTE À REBOURS ── */
.flash-countdown {
  background: #FFF4EE;
  color: #FF6B00;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid #FFD0B0;
}

/* ── 4. VOIR TOUT ── */
.flash-see-all {
  margin-left: auto;
  color: #0055FF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
}
.flash-see-all:hover { gap: 8px; }

/* ── 5. GRILLE ── */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 1024px) { .flash-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 640px)  { .flash-grid { grid-template-columns: repeat(2,1fr); } }

/* ── 6. CARTE ── */
.flash-card {
  background: #ffffff;
  border: 0.5px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.flash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

/* ── 7. ZONE IMAGE ── */
.flash-card-img-wrap {
  position: relative;
  height: 110px;
  background: #f5f7fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flash-card-img-inner {
  width: 100%;
  height: 100%;
}
.flash-card-img-inner img,
.flash-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 6px;
  background: #f5f7fa;
  transition: transform 0.3s ease;
}
.flash-card:hover .flash-card-img-wrap img { transform: scale(1.03); }

/* Emoji fallback */
.flash-card-img {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: #f5f7fa;
}

/* ── 8. BADGE ÉTOILÉ DORÉ ── */
.flash-star-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 2;
}
.flash-star-badge svg {
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 46px;
  filter: drop-shadow(0 2px 4px rgba(184,134,11,0.4));
}
.flash-star-badge span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  color: #7A4F00;
  white-space: nowrap;
  line-height: 1;
}

/* ── 9. CORPS CARTE ── */
.flash-card-body {
  padding: 7px 9px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Masquer l'ancien badge discount (remplacé par l'étoile) */
.flash-discount { display: none; }

.flash-card-name {
  font-size: 11px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 10. ANCIEN PRIX — gris barré ── */
.flash-card-old {
  font-size: 10px;
  color: #bbb;
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 3px;
  min-height: 13px;
}

/* ── 11. NOUVEAU PRIX — or foncé uni ── */
.flash-card-price {
  font-size: 13px;
  font-weight: 800;
  color: #B8860B;
  line-height: 1;
  margin-bottom: 6px;
}

/* ── 12. BARRE DE PROGRESSION STOCK ── */
.flash-progress {
  height: 3px;
  background: #eee;
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}
.flash-progress-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #FFD700, #FF6B00);
}

/* ── 13. LIGNE BAS : stock + panier ── */
.flash-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
  gap: 6px;
}

.flash-stock {
  font-size: 9px;
  color: #aaa;
  line-height: 1;
}

/* ── 14. BOUTON PANIER — vert émeraude uni ── */
.flash-cart-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #00A86B;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,168,107,0.30);
  transition: transform 0.15s, background 0.15s;
  padding: 0;
}
.flash-cart-icon-btn:hover  { background: #008f5a; transform: scale(1.08); }
.flash-cart-icon-btn:active { transform: scale(0.95); }
.flash-cart-icon-btn svg {
  width: 15px; height: 15px;
  pointer-events: none;
}

/* Masquer l'ancien bouton texte si présent */
.flash-card .btn-add-cart { display: none; }
