
.call-btn {
  background-color: #0ea5e9;
}
.out-stock-btn {
  background-color: #dc3545;
}
.add-to-cart-btn {
  background-color: #fd7e14;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
  font-size: 14px;
}
.add-to-cart-btn:hover {
  background-color: #ff9242;
  box-shadow: 0 6px 16px rgba(253, 126, 20, 0.4);
}

.add-to-cart-btn-call {
  background-color: #2F78F8;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(47, 120, 248, 0.2);
  font-size: 14px;
}
.add-to-cart-btn-call:hover {
  background-color:#2365DB;
  box-shadow: 0 6px 16px rgba(47, 120, 248, 0.35);
}

.out-of-stock-notify {
  background-color: #ED3C3F;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(237, 60, 63, 0.3);
  font-size: 14px;
}
.out-of-stock-notify:hover {
  background-color: #D12C2E;
  box-shadow: 0 6px 16px rgba(237, 60, 63, 0.4);
}
    
.btn-increase,
.btn-decrease {
  background-color: #fd7e14;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(253, 126, 20, 0.3);
}

.btn-increase:hover,
.btn-decrease:hover {
  background-color: #ff9540;
}

.item-count{
	padding: 15px;
	font-size: 18px;
	font-weight: bold;
}


.success-cart-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-cart-modal .modal-content {
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  font-size: 16px;
  animation: popIn 0.3s ease forwards;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.success-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
 /* background-color: rgba(0, 0, 0, 0.3); /* پس‌زمینه نیمه‌شفاف */
	background-color:rgba(255,255,255,0.73);
  backdrop-filter: blur(2px);           /* افکت بلور */
  z-index: 1;
}

.box-animation {
  background: rgba(255, 255, 255, 0.85); /* زمینه‌ی سفید با شفافیت ملایم */
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
	min-width: 360px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: flyToCart 1s ease-out forwards;
  text-align: center;
}

.added-message {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333; /* واضح‌تر روی پس‌زمینه‌ی سفید */
  animation: showMessage 1s ease-out forwards 0.6s;
}


.product-icon {
  font-size: 48px;
  animation: shrink 0.5s ease-out forwards;
  text-align: center;
	
}

.big-cart-icon {
  font-size: 48px;
  color: #444;
  animation: cartPop 0.6s ease-out;
}
/*
@keyframes cartPop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}*/

@keyframes cartPop {
  0% {
    transform: scale(1.3) translateY(0);
    opacity: 0;
  }
  30% {
    transform: scale(1.1) translateY(30px);
    opacity: 1;
  }
  70% {
    transform: scale(0.9) translateY(60px);
    opacity: 1;
  }
  100% {
    transform: scale(0.7) translateY(100px);
    opacity: 0;
  }
}

/* انیمیشن‌ها */
@keyframes flyToCart {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
  }
}
/*
@keyframes shrink {
  from { transform: scale(1); }
  to { transform: scale(0.5); }
}*/

@keyframes shrink {
  0% {
    transform: scale(1.3) translateY(0);
    opacity: 0;
  }
	 40% {
    transform: scale(1) translateY(10px);
    opacity: 1;
  }
 80% {
    transform: scale(1) translateY(60px);
    opacity: 1;
  }
  90% {
    transform: scale(0.9) translateY(80px);
    opacity: 1;
  }
	95% {
    
    opacity: .5;
  }
	98% {
    
    opacity: .3;
  }
  100% {
    transform: scale(0.7) translateY(100px);
    opacity: 0;
  }
}

@keyframes showMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

