/* ═══════════════════════════════════════════════════════
   JONAS PARFUMS — Social Proof & Urgency Components
   Compteur stock, badges, avis, livraison gratuite
   ═══════════════════════════════════════════════════════ */

/* ——— Stock Counter (Urgence) ——— */
.stock-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d32f2f;
  margin: 1rem 0;
}

.stock-counter__icon {
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

.stock-counter--low {
  background: rgba(211, 47, 47, 0.12);
  border-color: rgba(211, 47, 47, 0.3);
}

.stock-counter--medium {
  background: rgba(237, 108, 2, 0.08);
  border-color: rgba(237, 108, 2, 0.2);
  color: #ed6c02;
}

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

/* ——— Product Badges (Bestseller, Nouveau, Limité) ——— */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-badge--bestseller {
  background: linear-gradient(135deg, rgba(201, 161, 74, 0.95), rgba(158, 120, 32, 0.95));
  color: #fff;
  box-shadow: 0 2px 8px rgba(201, 161, 74, 0.3);
}

.product-badge--new {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(27, 94, 32, 0.95));
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.product-badge--limited {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.95), rgba(183, 28, 28, 0.95));
  color: #fff;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ——— Free Shipping Progress Bar ——— */
.shipping-progress {
  background: rgba(201, 161, 74, 0.08);
  border: 1px solid rgba(201, 161, 74, 0.2);
  border-radius: 6px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.shipping-progress__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.8rem;
  text-align: center;
}

.shipping-progress__text strong {
  color: var(--gold-d);
}

.shipping-progress__bar-wrap {
  position: relative;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.shipping-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-d), var(--gold));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.shipping-progress__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shipping-progress--complete {
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.2);
}

.shipping-progress--complete .shipping-progress__text {
  color: #2e7d32;
}

.shipping-progress--complete .shipping-progress__bar {
  background: linear-gradient(90deg, #2e7d32, #43a047);
}

/* ——— Live Activity / "X personnes regardent" ——— */
.live-activity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(30, 21, 16, 0.04);
  border: 1px solid rgba(30, 21, 16, 0.08);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  margin: 1rem 0;
}

.live-activity__dot {
  width: 6px;
  height: 6px;
  background: #2e7d32;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(46, 125, 50, 0); }
}

/* ——— Trust Badges (Paiement sécurisé, etc.) ——— */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.03em;
}

.trust-badge__icon {
  font-size: 18px;
  color: var(--gold-d);
}

/* ——— Reviews Stars ——— */
.product-reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.8rem 0;
}

.reviews-stars {
  display: flex;
  gap: 2px;
  font-size: 14px;
  color: var(--gold);
}

.reviews-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.reviews-count a {
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.2s;
}

.reviews-count a:hover {
  color: var(--ink);
}

/* ——— Recently Purchased Popup ——— */
.purchase-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  background: var(--white);
  border: 1px solid var(--line-m);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.purchase-popup.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.purchase-popup__content {
  display: flex;
  gap: 12px;
}

.purchase-popup__img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--off);
}

.purchase-popup__info {
  flex: 1;
}

.purchase-popup__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.purchase-popup__meta {
  font-size: 11px;
  color: var(--muted);
}

.purchase-popup__meta strong {
  color: var(--gold-d);
}

.purchase-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s;
}

.purchase-popup__close:hover {
  color: var(--ink);
}

/* ——— Mobile Adjustments ——— */
@media (max-width: 768px) {
  .trust-badges {
    gap: 0.8rem;
  }

  .trust-badge {
    font-size: 10px;
  }

  .trust-badge__icon {
    font-size: 16px;
  }

  .purchase-popup {
    left: 10px;
    right: 10px;
    max-width: none;
    bottom: 10px;
  }

  .shipping-progress {
    padding: 1rem;
  }

  .shipping-progress__text {
    font-size: 11px;
  }
}
