/* =========================================
   🛒 Added-to-Cart Popup (Top Floating Version)
   Modern animated glassy popup
   ========================================= */

.added-to-cart-popup {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%) scale(0.98);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 99999;
}

/* ✅ Show animation (slide down + glow) */
.added-to-cart-popup.show {
  top: 35px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  animation: popupGlow 0.8s ease-out;
}

/* ✨ Subtle glow pulse */
@keyframes popupGlow {
  0% { box-shadow: 0 0 0 rgba(0, 255, 133, 0); }
  40% { box-shadow: 0 0 20px rgba(0, 255, 133, 0.4); }
  100% { box-shadow: 0 0 0 rgba(0, 255, 133, 0); }
}

/* ✅ Hide animation (slide up) */
.added-to-cart-popup.hide {
  top: -120px;
  opacity: 0;
  transform: translateX(-50%) scale(0.96);
}

/* ========== Internal Layout ========== */
.added-to-cart-popup .checkmark {
  background: linear-gradient(135deg, #00ff85, #00ffa6);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 133, 0.5);
}

.added-to-cart-popup .popup-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.added-to-cart-popup .popup-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}

.added-to-cart-popup .popup-title {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.added-to-cart-popup .popup-success {
  font-size: 13px;
  color: #00ff85;
  opacity: 0.9;
}

.added-to-cart-popup .view-cart-btn {
  margin-top: 4px;
  background: linear-gradient(135deg, #00ff85, #00ffa6);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.added-to-cart-popup .view-cart-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #4dffaa, #00ffcc);
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .added-to-cart-popup {
    width: calc(100% - 30px);
    left: 50%;
    transform: translateX(-50%);
    justify-content: flex-start;
    padding: 14px 18px;
    border-radius: 14px;
  }

  .added-to-cart-popup .popup-img {
    width: 45px;
    height: 45px;
  }

  .added-to-cart-popup .popup-title {
    font-size: 14px;
  }
}
