/* One cart indicator system shared by every ZENVIBE page. */
.cart-trigger {
  position: relative !important;
}

.cart-trigger .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, .8);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.cart-trigger.has-items .cart-badge {
  opacity: 1;
  transform: scale(1);
}

.is-cart-flashing {
  animation: zenvibeCartButtonFlash .42s cubic-bezier(.22, .8, .28, 1) !important;
}

/* Keep the post-add state identical: once the cart drawer is open, the
   source add control is no longer actionable on every page. */
body.cart-open .quick-add,
body.cart-open #addToCart,
body.cart-open .add-button,
body.cart-open [data-related-product] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes zenvibeCartButtonFlash {
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(168, 85, 247, .7); }
  to { transform: scale(1); }
}
