/* Container principale per ciascuna card del carosello */
.carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

/* Immagine del prodotto */
.carousel-card img {
  max-height: 225px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

/* Corpo della card */
.carousel-card .card-body {
  width: 100%;
  padding: 0 1rem;
}

/* Testo descrittivo sopra le varianti */
.carousel-card .card-text {
  color: #6c757d; /* Bootstrap text-muted */
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Stile del contenitore per le varianti */
.carousel-card .form-check {
  margin-bottom: 0.75rem;
}

/* Radio button */
.carousel-card .form-check-input {
  margin-right: 0.5rem;
  cursor: pointer;
}

/* Label della variante */
.carousel-card .form-check-label {
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}

/* Highlight su hover */
.carousel-card .form-check:hover {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  /* padding: 0.25rem; */
}

.product-options-modal-carousel {
  display: flex;
  justify-content: end;
}

/* Contenitore della modale */
.modal {
  /* background-color: rgba(0, 0, 0, 0.5) !important; */
  z-index: 1050 !important;
}

/* Modale centrata e grande */
.modal-dialog {
  margin: 7.75rem auto !important;
}

.modal-xl {
  max-width: 1140px !important;
  width: 100% !important;
}

/* Contenuto della modale */
.modal-content {
  background-color: #fff !important;
  border-radius: 1rem !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2) !important;
  padding: 1.5rem !important;
  border: none !important;
  overflow: visible !important;
}

/* Header della modale */
.modal-header {
  border-bottom: 1px solid #dee2e6 !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.modal-header .modal-title {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

/* Corpo della modale */
.modal-body {
  font-size: 1rem !important;
  color: #333 !important;
}

/* Footer della modale */
.modal-footer {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #eee !important;
}

/* Pulsanti */
.modal-footer .btn {
  padding: 0.5rem 1rem !important;
  font-size: 1rem !important;
}

/* Label e Select */
.modal-content label {
  font-weight: 500 !important;
  margin-top: 1rem !important;
  display: block !important;
}

.modal-content select {
  width: 100% !important;
  padding: 0.5rem !important;
  margin-top: 0.25rem !important;
  border: 1px solid #ccc !important;
  border-radius: 0.375rem !important;
}

/* Tabella wrapper */
.product-variations-table-wrapper {
  margin-top: 1.5rem !important;
  overflow-x: auto !important;
}

/* Responsive */
@media (max-width: 767.98px) {
  .modal-xl {
    max-width: 95vw !important;
    margin: 1rem !important;
  }

  .modal-content {
    padding: 1rem !important;
  }
}

.product-filters {
  display: flex !important;
  gap: 2rem !important;
  flex-wrap: wrap !important;
  margin-bottom: 1.5rem !important;
}

.filter-group {
  flex: 1 1 200px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.filter-label {
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  color: #333 !important;
  font-size: 1rem !important;
}

.filter-select {
  padding: 0.5rem 0.75rem !important;
  font-size: 1rem !important;
  border: 1px solid #ccc !important;
  border-radius: 0.375rem !important;
  background-color: #fff !important;
  color: #333 !important;
  appearance: none !important;
  width: 100% !important;
}

.filter-select:focus {
  outline: none !important;
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.combination-image {
  width: 3rem;
}

.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* opzionale se vuoi responsività */
  margin-top: 1rem;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
}

.custom-file {
  position: relative;
  display: block;
  width: 100%;
  height: 2.625rem;
  margin-top: 1.25rem;
  line-height: 2.625rem;
  color: #7a7a7a;
  text-indent: .625rem;
  background: #f6f6f6;
}