/* Modal de confirmare adăugare în coș */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: #fff;
  border-radius: 0.5rem;
  max-width: 400px;
  width: 90%;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Butonul de închidere */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
}

/* Header-ul cardului */
.modal-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.modal-header img {
  width: 1.75rem; /* ~28px */
  height: 1.75rem;
  margin-right: 0.5rem;
}

.modal-header h2 {
  font-size: 0.95rem; /* puțin mai mic */
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
}

/* Body-ul modalului: două coloane */
.modal-body {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-body .left-col {
  flex: 1;
}

.modal-body .left-col img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
}

.modal-body .right-col {
  flex: 2;
  text-align: left;
  font-size: 0.875rem;
  color: #374151;
}

.modal-body .right-col .row {
  margin-bottom: 0.5rem;
}

/* Divider și sumarul adăugării */
.modal-divider {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Footer-ul modalului */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-footer button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #1a355b;
}

.btn-secondary {
  background-color: #d1d5db; /* gray-300 */
  color: #374151;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}