/* Animation "vol vers le panier" au clic sur Ajouter au panier. */
.oms-fly-bubble {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: visible;
  z-index: 2147483000;
  pointer-events: none;
  will-change: transform, opacity;
}

.oms-fly-bubble__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.28),
    0 0 0 2px #fff,
    0 0 0 3px rgba(15, 23, 42, 0.08);
}

.oms-fly-bubble__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oms-fly-bubble__photo--empty {
  background: var(--brand-primary, #2563eb);
}

.oms-fly-bubble__badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-primary, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

@keyframes oms-cart-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.32);
  }
  60% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.cart-icon.oms-cart-pulse i,
.cart-icon.oms-cart-pulse .ph-handbag {
  display: inline-block;
  animation: oms-cart-pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-icon.oms-cart-pulse .cart-quantity {
  animation: oms-cart-pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .oms-fly-bubble {
    transition: opacity 0.25s ease !important;
    animation: none !important;
  }
  .cart-icon.oms-cart-pulse i,
  .cart-icon.oms-cart-pulse .ph-handbag,
  .cart-icon.oms-cart-pulse .cart-quantity {
    animation: none !important;
  }
}
