/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 10px;
  overflow: auto;
}

/* Popup container */
.popup-container {
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  max-width: 600px;
  width: 100%;
  gap: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: popupShow 0.3s ease-out;
}

/* Image */
.popup-container img {
  width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Info section */
.popup-container h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}
.popup-container p {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #333;
}
.popup-container .price {
  font-weight: bold;
  margin: 10px 0;
  font-size: 1rem;
}

/* Quantity controls */
.qty-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.qty-container button {
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 1rem;
  width: 30px;
  height: 30px;
  transition: background 0.2s;
}
.qty-container button:hover {
  background: #e0e0e0;
}
.qty-container input[type="number"] {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  padding: 2px 5px;
}

/* Add to cart button */
.add-to-cart {
  margin-top: 10px;
  padding: 10px 20px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.2s;
  cursor: pointer;
}
.add-to-cart:hover {
  background: #218838;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .popup-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .popup-container img {
    width: 80%;
    max-width: 200px;
  }
}

/* Animation */
@keyframes popupShow {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
