/* Image Popup Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff8dc;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  border: 3px solid #daa520;
}

.modal-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
  cursor: grab;
}

.modal-image:active {
  cursor: grabbing;
}

.modal-image.zoomed {
  cursor: move;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #daa520;
}

.modal-title {
  color: #8b4513;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-price {
  color: #b8860b;
  font-size: 1.2rem;
  font-weight: bold;
}

.close-modal {
  background: #8b4513;
  color: #ffd700;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: #a0522d;
  transform: scale(1.1);
}

.zoom-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #daa520;
}

.zoom-btn {
  background: #b8860b;
  color: #fff8dc;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: #daa520;
  transform: scale(1.1);
}

.zoom-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.zoom-level {
  display: flex;
  align-items: center;
  color: #8b4513;
  font-weight: bold;
  min-width: 80px;
  justify-content: center;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-add-to-cart {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
  color: #fff8dc;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}
