/*
Elenco dei prodotti
*/

.product {
  display: flex;
  margin-bottom: 20px;
}

.product:nth-child(even) {
  background-color: #F3F3F3; /* Grigio chiaro per gli elementi pari */
}

.product:nth-child(odd) {
  background-color: #fff; /* Bianco per gli elementi dispari */
}

.product-image {
  flex: 1;
  padding: 10px;
}

.product-image img {
  max-width: 100%;
  height: auto;
}

.product-details {
  flex: 2;
  padding: 10px;
}

.product-details h2 {
  font-size: 24px;
  margin-top: 0;
}

.product-details p {
  margin: 10px 0;
  font-size: 14px;
}

.product-details p.prezzo {
  margin: 10px 0;
  font-size: 18px;
}

.product-details label {
  display: block;
  margin-top: 10px;
}

.product-details select {
  width: 80px;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  height: 40px; /* Altezza fissa */
  vertical-align: middle; /* Allineamento verticale al centro */
}

/*
Bottoni del negozio
*/

.add-to-cart, .cart-process {
  background-color: #00991A;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s;
  height: 40px; /* Altezza fissa */
  vertical-align: middle; /* Allineamento verticale al centro */
}

.add-to-cart:hover {
  background-color: #00B31E;
}

.cart-process {
  width: 100%;
  text-align: center;
  background-color: #F5B800;
  color: #222;
}

.cart-process:hover {
  background-color: #FFC30F;
}

/*
Carrello
*/

.carrello-item, .carrello-vuoto {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #fff;
}

.carrello-item {
  display: flex;
}

.carrello-item-image img {
  max-width: 100px; /* Dimensione massima dell'immagine */
  margin-right: 10px; /* Spazio tra l'immagine e i dettagli */
  width: 75px;
  height: auto;
}

.carrello-item-details {
  flex: 1; /* Flessibilità per riempire lo spazio rimanente */
}

.carrello-item-details h5 {
  font-size: 14px;
  margin-bottom: 5px;
}

.carrello-item-details p {
  font-size: 12px;
  margin-bottom: 5px;
}

.carrello-tot {
  font-size: 22px;
  margin-bottom: 10px;
}

.remove-from-cart {
  background: #EEE;
  border: 0;
  border-radius: 2px;
  color: #777;
  font-size: 12px;
  cursor: pointer;
}

.remove-from-cart > i {
  color: #333;
  font-size: 14px;
}

.remove-from-cart:hover {
  color: #555;
}

.small-info {
  margin-top: 5px;
  font-size: 13px;
  line-height: 18px;
}

/*
Calendario
*/

.datepicker table tr td.disabled {
  background: #F3F3F3 !important;
  color: #CCC !important;
}
.datepicker table tr td.day.focused,
.datepicker table tr td.day:hover {
  background-color: #F5B800 !important;
  color: #222 !important;
}

/*
Notifiche
*/

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  color: #222;
  display: none;
}

.notification.success {
  background-color: #CCFFCC;
}

.notification.error {
  background-color: #FFCCCC;
}

/*
Responsive
*/

/* Mostra il carrello su schermi desktop */
#shopping-cart {
  display: block;
}

#shopping-cart .close-cart-button {
  display: none;
}

/* Nascondi il pulsante flottante su schermi desktop */
#mobile-cart-buttons {
  display: none;
}

@media (max-width: 767px) {

  /* Stili di base per l'overlay del carrello */
  #shopping-cart-overlay {
    display: none; /* Inizialmente nascosto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Sfondo semitrasparente */
    z-index: 1000; /* Posizionato sopra gli altri elementi */
  }

  /* Stili per il contenuto del carrello */
  #shopping-cart {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 90%; /* Imposta la larghezza del carrello come preferisci */
    max-width: 600px; /* Imposta la larghezza massima del carrello come preferisci */
    margin: 20px auto 0;
  }

  /* Stile per il pulsante "Chiudi carrello" nell'overlay */
  #shopping-cart .close-cart-button {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
  }

  /* Aggiungi stili ai bottoni a fondo pagina */
  #mobile-cart-buttons {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    z-index: 999;
  }

  #mobile-cart-buttons button {
    flex: 1;
    margin: 0 5px;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
  }

  #mobile-cart-buttons .open-cart-button {
    background-color: #00991A;
    color: #fff;
  }

  #mobile-cart-buttons .open-cart-button:hover {
    background-color: #00B31E;
  }

  #mobile-cart-buttons .checkout-button {
    background-color: #F5B800;
    color: #222;
  }

  #mobile-cart-buttons .checkout-button:hover {
    background-color: #FFC30F;
  }

  .notification {
    bottom: 82px;
  }

}