/* Red & Gold Luxury Theme — selectors, layout, sizing, and responsive structure preserved */
/* Modern Modal Dialog for Cart Operations */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 2, 3, .5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #180507;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .15);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #ddb035;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ecc251;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-body {
  padding: 16px 24px 24px;
}

.modal-message {
  font-size: 16px;
  line-height: 1.5;
  color: #ecc251;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.modal-btn-secondary {
  background: #3f070c;
  color: #ecc251;
  border: 1px solid #ddb035;
}

.modal-btn-secondary:hover {
  background: #3f070c;
  border-color: #ddb035;
}

.modal-btn-danger {
  background: #750911;
  color: #fff7e0;
}

.modal-btn-danger:hover {
  background: #750911;
}

.modal-btn-primary {
  background: #680811;
  color: #fff7e0;
}

.modal-btn-primary:hover {
  background: #680811;
}

.modal-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-icon.danger {
  background: #49080d;
  color: #ff6f69;
}

.modal-icon.warning {
  background: #7d470a;
  color: #ffd35c;
}

.modal-icon.success {
  background: #3f070c;
  color: #ecc251;
}

.modal-icon.info {
  background: #3f070c;
  color: #ecc251;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .modal-dialog {
    margin: 16px;
    max-width: none;
    width: auto;
  }
  
  .modal-header,
  .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-btn {
    flex: none;
  }
}