/* ====================================
   LUXURY CART ANIMATIONS - Premium Effects
   Advanced animations for floating cart system
   ==================================== */

/* ========== ADD TO CART ANIMATIONS ========== */

/* Falling ball animation when product added to cart */
@keyframes ballDrop {
  0% {
    transform: translate(-50%, -50%) translateY(-100px) scale(0.3) rotate(0deg);
    opacity: 0;
    box-shadow: 0 5px 15px rgba(245, 183, 84, 0.6);
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) translateY(0) scale(1) rotate(180deg);
    box-shadow: 0 8px 25px rgba(245, 183, 84, 0.8),
                0 0 30px rgba(245, 183, 84, 0.6);
  }
  70% {
    transform: translate(-50%, -50%) translateY(10px) scale(1.05) rotate(270deg);
    box-shadow: 0 10px 30px rgba(245, 183, 84, 0.9);
  }
  85% {
    transform: translate(-50%, -50%) translateY(-5px) scale(0.95) rotate(340deg);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1) rotate(360deg);
    opacity: 0;
    box-shadow: 0 0 50px rgba(245, 183, 84, 1);
  }
}

.cart-ball-drop {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f5b754, #e6a643);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(245, 183, 84, 0.6),
              inset 0 -2px 8px rgba(0, 0, 0, 0.2),
              inset 0 2px 8px rgba(255, 255, 255, 0.6);
  animation: ballDrop 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  z-index: 99999;
}

.cart-ball-drop::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  animation: ballShine 1.2s ease-in-out;
}

@keyframes ballShine {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Cart button bounce on add */
@keyframes cartBounce {
  0%, 100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.15) rotate(-5deg);
  }
  20% {
    transform: scale(1.1) rotate(5deg);
  }
  30% {
    transform: scale(1.15) rotate(-5deg);
  }
  40% {
    transform: scale(1.1) rotate(3deg);
  }
  50% {
    transform: scale(1.05) rotate(-3deg);
  }
  60% {
    transform: scale(1.08) rotate(2deg);
  }
  70% {
    transform: scale(1.03) rotate(-1deg);
  }
  80% {
    transform: scale(1.02) rotate(1deg);
  }
  90% {
    transform: scale(1.01) rotate(-0.5deg);
  }
}

.floating-cart-button.cart-bounce {
  animation: cartBounce 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Ripple effect on cart button */
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.cart-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 183, 84, 0.6) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: ripple 1s cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Centered ripple effect for fixed position animations */
@keyframes rippleCentered {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.cart-ripple-centered {
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 183, 84, 0.8) 0%, rgba(245, 183, 84, 0.4) 50%, transparent 70%);
  box-shadow: 0 0 20px rgba(245, 183, 84, 0.6),
              0 0 40px rgba(245, 183, 84, 0.4),
              inset 0 0 20px rgba(255, 255, 255, 0.3);
  animation: rippleCentered 1.2s cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
}

/* Glow pulse effect */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(245, 183, 84, 0.4),
                0 0 0 0 rgba(245, 183, 84, 0.7),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 8px 40px rgba(245, 183, 84, 0.8),
                0 0 0 15px rgba(245, 183, 84, 0),
                inset 0 0 30px rgba(255, 255, 255, 0.4);
  }
}

.floating-cart-button.glow-pulse {
  animation: glowPulse 0.6s ease-out;
}

/* ========== DELETE CONFIRMATION MODAL ========== */

.luxury-delete-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
  to { opacity: 1; }
}

.luxury-delete-modal.closing {
  animation: modalFadeOut 0.3s forwards;
}

@keyframes modalFadeOut {
  to { opacity: 0; }
}

.delete-modal-content {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(245, 183, 84, 0.3);
  transform: scale(0.7) translateY(-50px);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
  position: relative;
}

@keyframes modalSlideIn {
  to {
    transform: scale(1) translateY(0);
  }
}

.luxury-delete-modal.closing .delete-modal-content {
  animation: modalSlideOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes modalSlideOut {
  to {
    transform: scale(0.7) translateY(50px);
    opacity: 0;
  }
}

/* Modal header with gradient */
.delete-modal-header {
  background: linear-gradient(135deg, #f5b754 0%, #e6a643 100%);
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
}

.delete-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.delete-modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #dc3545;
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
  animation: iconPulse 1s infinite alternate;
  position: relative;
  z-index: 1;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5);
  }
}

.delete-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal body */
.delete-modal-body {
  padding: 30px;
  text-align: center;
}

.delete-modal-message {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.delete-product-preview {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.delete-product-preview:hover {
  border-color: #f5b754;
  box-shadow: 0 5px 15px rgba(245, 183, 84, 0.2);
}

.delete-product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.delete-product-info {
  flex: 1;
  text-align: left;
}

.delete-product-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-bottom: 5px;
}

.delete-product-price {
  color: #f5b754;
  font-weight: 700;
  font-size: 14px;
}

/* Modal buttons */
.delete-modal-actions {
  display: flex;
  gap: 15px;
  padding: 0 30px 30px;
}

.delete-modal-btn {
  flex: 1;
  padding: 14px 25px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delete-modal-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.delete-modal-btn:hover::before {
  width: 300px;
  height: 300px;
}

.delete-modal-btn-cancel {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.delete-modal-btn-cancel:hover {
  background: linear-gradient(135deg, #5a6268, #495057);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.delete-modal-btn-confirm {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.delete-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.delete-modal-btn:active {
  transform: translateY(0);
}

.delete-modal-btn i {
  margin-right: 8px;
}

/* ========== DELETE LOADING ANIMATION ========== */

.luxury-cart-item.deleting {
  position: relative;
  pointer-events: none;
}

.luxury-cart-item.deleting::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  z-index: 10;
  border-radius: 12px;
  animation: deletingOverlay 0.3s forwards;
}

@keyframes deletingOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Shake animation while deleting */
@keyframes deleteShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-5px) rotate(-2deg); }
  20% { transform: translateX(5px) rotate(2deg); }
  30% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  50% { transform: translateX(-3px) rotate(-1deg); }
  60% { transform: translateX(3px) rotate(1deg); }
  70% { transform: translateX(-3px) rotate(-1deg); }
  80% { transform: translateX(3px) rotate(1deg); }
  90% { transform: translateX(-1px) rotate(-0.5deg); }
}

.luxury-cart-item.deleting {
  animation: deleteShake 0.6s ease-in-out;
}

/* Loading spinner */
.delete-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 50px;
  height: 50px;
}

.spinner-circle {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(245, 183, 84, 0.2);
  border-top-color: #f5b754;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #f5b754;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
}

/* ========== DELETE SUCCESS ANIMATION ========== */

/* Explosion effect */
@keyframes explode {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
}

.luxury-cart-item.deleted {
  animation: explode 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  transform-origin: center;
}

/* Slide and fade out */
@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(150%);
    opacity: 0;
  }
}

.luxury-cart-item.slide-out {
  animation: slideOutRight 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

/* Flip out effect */
@keyframes flipOut {
  0% {
    transform: perspective(400px) rotateY(0);
    opacity: 1;
  }
  100% {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
}

.luxury-cart-item.flip-out {
  animation: flipOut 0.6s ease-in forwards;
  transform-origin: center left;
}

/* Particle burst on delete */
.delete-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f5b754;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(245, 183, 84, 0.8);
}

@keyframes particleBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

.delete-particle {
  animation: particleBurst 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Success checkmark animation */
.delete-success-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #28a745;
  z-index: 12;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ========== HOVER DELETE TOOLTIP ========== */

.remove-item-btn {
  position: relative;
}

.delete-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.delete-hover-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.delete-hover-tooltip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 10px;
  animation: tooltipShimmer 2s infinite;
}

@keyframes tooltipShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.remove-item-btn:hover .delete-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Pulse effect on hover */
.remove-item-btn:hover {
  animation: buttonPulse 0.6s ease-in-out;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
  .delete-modal-content {
    max-width: 90%;
    margin: 20px;
  }

  .delete-modal-header {
    padding: 20px;
  }

  .delete-modal-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .delete-modal-title {
    font-size: 20px;
  }

  .delete-modal-body {
    padding: 20px;
  }

  .delete-modal-actions {
    flex-direction: column;
    padding: 0 20px 20px;
  }

  .delete-modal-btn {
    width: 100%;
  }
}

/* ========== QUANTITY BUTTON ANIMATIONS ========== */

/* Increase button animations - upward, bright, expanding */
@keyframes qtyIncreasePress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes qtyIncreasePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0),
                0 0 20px rgba(40, 167, 69, 0.5);
  }
}

@keyframes qtyIncreaseGlow {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4) drop-shadow(0 0 10px rgba(40, 167, 69, 0.8));
  }
  100% {
    filter: brightness(1);
  }
}

.qty-plus.animating {
  animation: qtyIncreasePress 0.3s ease-out,
             qtyIncreasePulse 0.6s ease-out,
             qtyIncreaseGlow 0.6s ease-out;
}

/* Increase particle burst */
.qty-increase-particle {
  position: fixed;
  font-size: 20px;
  pointer-events: none;
  z-index: 99999;
  animation: qtyIncreaseParticleFloat 1s ease-out forwards;
}

@keyframes qtyIncreaseParticleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-40px) scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.3) rotate(360deg);
  }
}

/* Increase sparkle effect */
.qty-increase-sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #28a745, #20c997);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
}

@keyframes qtyIncreaseSparkle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Increase number animation */
.qty-input.increasing {
  animation: qtyNumberIncrease 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes qtyNumberIncrease {
  0% {
    transform: translateY(0) scale(1);
    color: inherit;
  }
  50% {
    transform: translateY(-10px) scale(1.3);
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
  }
  100% {
    transform: translateY(0) scale(1);
    color: inherit;
  }
}

/* Decrease button animations - downward, fading, shrinking */
@keyframes qtyDecreasePress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes qtyDecreasePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0),
                0 0 20px rgba(220, 53, 69, 0.5);
  }
}

@keyframes qtyDecreaseDim {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.7) drop-shadow(0 0 10px rgba(220, 53, 69, 0.6));
  }
  100% {
    filter: brightness(1);
  }
}

.qty-minus.animating {
  animation: qtyDecreasePress 0.3s ease-out,
             qtyDecreasePulse 0.6s ease-out,
             qtyDecreaseDim 0.6s ease-out;
}

/* Decrease particle fall */
.qty-decrease-particle {
  position: fixed;
  font-size: 16px;
  pointer-events: none;
  z-index: 99999;
  animation: qtyDecreaseParticleFall 1s ease-in forwards;
}

@keyframes qtyDecreaseParticleFall {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: translateY(30px) scale(0.7) rotate(-90deg);
  }
  100% {
    opacity: 0;
    transform: translateY(60px) scale(0.3) rotate(-180deg);
  }
}

/* Decrease smoke effect */
.qty-decrease-smoke {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.4), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  animation: qtySmokeExpand 1s ease-out forwards;
}

@keyframes qtySmokeExpand {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* Decrease number animation */
.qty-input.decreasing {
  animation: qtyNumberDecrease 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes qtyNumberDecrease {
  0% {
    transform: translateY(0) scale(1);
    color: inherit;
  }
  50% {
    transform: translateY(10px) scale(0.8);
    color: #dc3545;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
  }
  100% {
    transform: translateY(0) scale(1);
    color: inherit;
  }
}

/* Ripple effect for both buttons */
.qty-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: qtyRippleExpand 0.6s ease-out forwards;
}

@keyframes qtyRippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* Number input glow when typing */
.qty-input.typing {
  animation: qtyInputGlow 0.3s ease-out;
  box-shadow: 0 0 15px rgba(245, 183, 84, 0.6),
              inset 0 0 10px rgba(245, 183, 84, 0.2);
}

@keyframes qtyInputGlow {
  0%, 100% {
    border-color: #ddd;
  }
  50% {
    border-color: #f5b754;
  }
}

/* Price update animation */
.item-total.updating,
.final-amount.updating {
  animation: priceUpdate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes priceUpdate {
  0% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(1.2);
    color: #f5b754;
    text-shadow: 0 0 10px rgba(245, 183, 84, 0.6);
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}

/* Success flash when quantity changes */
.qty-success-flash {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.2), transparent);
  pointer-events: none;
  z-index: 99997;
  animation: successFlash 0.4s ease-out forwards;
}

@keyframes successFlash {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qty-increase-particle,
  .qty-decrease-particle {
    font-size: 16px;
  }
  
  @keyframes qtyIncreaseParticleFloat {
    100% {
      transform: translateY(-60px) scale(0.3) rotate(360deg);
    }
  }
  
  @keyframes qtyDecreaseParticleFall {
    100% {
      transform: translateY(40px) scale(0.3) rotate(-180deg);
    }
  }
}

/* Updated: 2025-10-12 13:27:17 */

/* Last uploaded: 2025-10-12 13:30:19 */