@keyframes cart-badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.55); }
  72% { transform: scale(.92); }
  100% { transform: scale(1); }
}

.cart-badge-pop {
  animation: cart-badge-pop .52s cubic-bezier(.16, 1, .3, 1) !important;
}

.cart-toast-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 107, 0, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .16), inset 0 1px rgba(255, 255, 255, .82);
  opacity: 0;
  transform: translate3d(calc(100% + 48px), 0, 0) scale(.96);
  transition: opacity .28s ease, transform .48s cubic-bezier(.16, 1, .3, 1);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.cart-toast-notification.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-theme='dark'] .cart-toast-notification,
body.dark-mode .cart-toast-notification {
  border-color: rgba(251, 146, 60, .28);
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .06);
  color: #fff;
}

.cart-toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a00, #f57224 62%, #e75608);
  box-shadow: 0 9px 22px rgba(245, 114, 36, .32);
  color: #fff;
  font-size: 17px;
}

.cart-toast-content { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.cart-toast-title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.cart-toast-desc { margin: 0; color: #64748b; font-size: 13px; line-height: 1.35; }
[data-theme='dark'] .cart-toast-desc,
body.dark-mode .cart-toast-desc { color: #cbd5e1; }

.add-to-cart-btn.added,
.add-to-cart.added {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 9px 24px rgba(16, 185, 129, .3) !important;
  color: #fff !important;
}

.dw-cart-flight {
  position: fixed;
  top: var(--flight-top);
  left: var(--flight-left);
  z-index: 2147482998;
  width: var(--flight-size);
  height: var(--flight-size);
  pointer-events: none;
  will-change: transform;
  animation: dw-cart-flight-x var(--flight-duration, .98s) cubic-bezier(.35, .05, .25, 1) forwards;
  contain: layout style;
  overflow: visible;
}

.dw-cart-flight::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(245, 114, 36, .58);
  border-radius: 24px;
  background: radial-gradient(circle, rgba(255, 138, 0, .24), rgba(245, 114, 36, .06) 58%, transparent 72%);
  box-shadow: 0 0 0 6px rgba(245, 114, 36, .08), 0 15px 40px rgba(245, 114, 36, .28);
  animation: dw-cart-flight-halo var(--flight-duration, .98s) ease-out forwards;
}

.dw-cart-flight-payload {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .98);
  border-radius: 20px;
  outline: 2px solid rgba(245, 114, 36, .68);
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .34), 0 9px 24px rgba(245, 114, 36, .38);
  will-change: transform, opacity;
  transform-origin: center;
  animation: dw-cart-flight-y var(--flight-duration, .98s) cubic-bezier(.3, .08, .24, 1) forwards;
}

.dw-cart-flight-payload::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, .62), transparent 42%, rgba(245, 114, 36, .16));
}

.dw-cart-flight-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@keyframes dw-cart-flight-x {
  to { transform: translate3d(var(--flight-x), 0, 0); }
}

@keyframes dw-cart-flight-y {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-2deg) scale(.92); }
  16% { opacity: 1; transform: translate3d(0, -14px, 0) rotate(2deg) scale(1.08); }
  54% { opacity: 1; transform: translate3d(0, var(--flight-arc-y), 0) rotate(-5deg) scale(.96); }
  84% { opacity: 1; }
  100% { opacity: .18; transform: translate3d(0, var(--flight-y), 0) rotate(var(--flight-turn, 8deg)) scale(.22); }
}

@keyframes dw-cart-flight-halo {
  0% { opacity: 0; transform: scale(.72); }
  14% { opacity: 1; transform: scale(1.06); }
  72% { opacity: .74; transform: scale(.9); }
  100% { opacity: 0; transform: scale(.35); }
}

.dw-cart-target-pop,
.dw-cart-target-pop-reduced {
  transform-origin: center;
}

.dw-cart-target-pop {
  animation: dw-cart-target-pop .72s cubic-bezier(.16, 1, .3, 1) both !important;
}

.dw-cart-target-pop-reduced {
  animation: dw-cart-target-pop-reduced .34s ease-out both !important;
}

@keyframes dw-cart-target-pop {
  0% { filter: drop-shadow(0 0 0 rgba(245, 114, 36, 0)); transform: scale(1) rotate(0); }
  34% { filter: drop-shadow(0 7px 14px rgba(245, 114, 36, .56)); transform: scale(1.34) rotate(-8deg); }
  66% { transform: scale(.94) rotate(3deg); }
  100% { filter: drop-shadow(0 0 0 rgba(245, 114, 36, 0)); transform: scale(1) rotate(0); }
}

@keyframes dw-cart-target-pop-reduced {
  50% { opacity: .72; transform: scale(1.1); }
}

.dw-cart-arrival {
  position: fixed;
  top: var(--arrival-y);
  left: var(--arrival-x);
  z-index: 2147482997;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(245, 114, 36, .84);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: dw-cart-arrival-ring .7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.dw-cart-arrival::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: #f57224;
  box-shadow: 0 -18px #ffb34d, 16px -8px #fb923c, 16px 9px #f97316, 0 18px #fdba74, -16px 9px #f97316, -16px -8px #fb923c;
  transform: translate(-50%, -50%);
  animation: dw-cart-arrival-sparks .65s ease-out forwards;
}

@keyframes dw-cart-arrival-ring {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.8); }
}

@keyframes dw-cart-arrival-sparks {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.72); }
}

@media (max-width: 640px) {
  .cart-toast-notification {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    max-width: none;
    transform: translate3d(0, 28px, 0) scale(.97);
  }

  .cart-toast-notification.show { transform: translate3d(0, 0, 0) scale(1); }
  .dw-cart-flight::before { inset: -8px; border-radius: 20px; }
  .dw-cart-flight-payload { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dw-cart-flight,
  .dw-cart-arrival { display: none !important; }

  .cart-toast-notification {
    transition-duration: .01ms;
  }
}
