/*
Theme Name:  Tema Child Elementor
Description:  Child Theme
Author:  Andrealeti
Template:  hello-elementor
Version:  1.0
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/


.custom-products-grid {
  display: flex;
  gap: 1.5%;
  flex-flow: wrap;
}

.custom-product-card {
  background: #fff;
  text-align: center;
  transition: all .3s ease;
  width: 32%;
  padding: 0;
  border: none;
  border-radius: 0;
  margin-bottom: 30px;
  text-align: left;
}

.custom-product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.custom-product-card img {
  border-radius: 10px;
}

.product-title {
  text-align: left;
  font-family: 'Medel', sans-serif;
  font-weight: 900;
  font-size: 25px;
  margin: 10px 0 5px 0;
  color: #ec671b;
}

.product-rating {
  display: flex;
  align-items: center;
  justify-content: left;
  margin: 0 !important;
  gap: 6px;
}

span.rating-text {
  font-family: 'Lato', sans-serif;
}

.product-rating .star-rating {
  color: #ffba00;
}

.product-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin: 10px 0;
}

.product-excerpt p {
  font-size: 16px;
  color: #000;
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  margin: 0 0 0 0 !important;
}

.product-price {
  font-weight: 600;
  margin: 12px 0;
  font-size: 1.1rem;
  color: #000;
}

.product-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.product-buttons .view-product {
  flex: 4 !important;
  background-color: #EC671B !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 0 !important;
  font-weight: 600 !important;
  transition: background 0.3s !important;
  text-align: center !important;
  font-size: 20px !important;
  font-family: 'Lato', sans-serif !important;
}

.product-buttons .view-product:hover {
  background-color: #d55814 !important;
}

.product-buttons .add_to_cart_button {
  flex: 1 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
  color: white !important;
}

.product-buttons .add_to_cart_button:hover {
  background: #555 !important;
}

.content-riquadro {
  padding: 0 20px 10px;
}

.custom-product-card img {
  border-radius: 10px !important;
}

/**/
/* Stato "loading" (mentre aggiunge) */
.custom-product-card .add_to_cart_button.loading i {
  animation: spin 1s linear infinite !important;
  color: #EC671B !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Stato "added" (aggiunto con successo) */
.custom-product-card .add_to_cart_button.added {
  background-color: #4CAF50 !important;
  /* verde conferma */
}

.custom-product-card .add_to_cart_button.added i {
  color: #fff !important;
  content: "\f00c" !important;
  /* icona check */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transform: scale(1.2);
}

a.added_to_cart.wc-forward {
  display: none;
}

/* ===== Checkout - Cart ===== */
input#coupon_code {
  height: 50px;
  background: #fff;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: normal;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px;
}

button.button.e-apply-coupon {
  height: 50px;
  font-family: "Lato", Sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: #ec671b !important;
  border: 1px solid #ec671b !important;
}

td.product-name img {
  border-radius: 10px;
  margin-right: 12px;
}

td.product-name {
  display: flex;
  align-items: center;
  max-width: 300px !important;
}

span.checkout-product-name {
  width: auto;
}

strong.product-quantity {
  width: auto;
}

p#billing_email_field {
  width: 48%;
  float: left;
  clear: none;
}

p#billing_phone_field {
  width: 48%;
  float: right;
  clear: none;
}

p#billing_address_2_field {
  display: none !important;
}

p#billing_postcode_field {
  width: 48%;
  float: left;
  clear: none;
}

p#billing_city_field {
  width: 48%;
  float: right;
  clear: none;
}


span#select2-billing_country-container,
span#select2-billing_state-container {
  height: 50px;
  line-height: 35px;
}



.woocommerce-billing-fields__field-wrapper label {
  margin-bottom: -10px !important;
  position: relative;
  z-index: 2;
  background: #fff;
  display: inline-block !important;
  padding: 2px 10px;
  border-radius: 10px;
  width: auto;
  margin-left: 10px;
}


#billing_address_1_field {
  margin-bottom: 25px !important;
}


@media only screen and (max-width: 639px) {
  .custom-product-card {
    width: 100%;
  }

  .review-popup-glass {
    background: rgba(0, 0, 0, .1) !important;
    width: 95%;
    left: 50% !important;
    transform: translate(-50%, 0%) !important;
  }
}