
/* Nava4D Brand Theme Override */
:root {
  --nava-orange: #f28c1a;
  --nava-orange-dark: #d86b00;
  --nava-orange-deep: #b85300;
  --nava-gold: #ffbf2f;
  --nava-gold-soft: #ffe29b;
  --nava-cream: #fff8eb;
  --nava-cream-2: #fff3db;
  --nava-surface: #fffdf8;
  --nava-text: #3a2208;
  --nava-text-soft: #7a5b3a;
  --nava-border: #f0dcc2;
  --nava-shadow: 0 12px 32px rgba(178, 92, 0, 0.14);
}

/* Modern Modal Dialog for Cart Operations */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.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: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 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 #fff8f0;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #3a2208;
  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: #664a2e;
  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: #fffaf4;
  color: #7a5b3a;
  border: 1px solid #f0dcc2;
}

.modal-btn-secondary:hover {
  background: #fff8f0;
  border-color: #e5c998;
}

.modal-btn-danger {
  background: #e16f00;
  color: white;
}

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

.modal-btn-primary {
  background: #f28c1a;
  color: white;
}

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

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

.modal-icon.danger {
  background: #fff1d6;
  color: #e16f00;
}

.modal-icon.warning {
  background: #fffbeb;
  color: #f28c1a;
}

.modal-icon.success {
  background: #fff8eb;
  color: #f28c1a;
}

.modal-icon.info {
  background: #fff5df;
  color: #f28c1a;
}

/* 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;
  }
}