/* --- INTESTAZIONE, BREADCRUMB E NOTIFICHE --- */
.phoenix-product-header {
  margin-top:80px;
}

.phoenix-style-product .onsale,
.phoenix-related-section .onsale {
    display: none !important;
}

.phoenix-style-product .woocommerce-breadcrumb {
  padding: 0;
  margin: 0;
  background: transparent;
  font-size: 12px;
  color: #888;
}
.phoenix-style-product .woocommerce-breadcrumb a {
  color: #555;
  text-decoration: none;
}


/* Stile professionale messaggi WooCommerce */
.phoenix-notices-wrapper .woocommerce-message, 
.phoenix-notices-wrapper .woocommerce-error, 
.phoenix-notices-wrapper .woocommerce-info {
  border: none !important;
  background-color: #f4f9f4 !important; /* Verde chiarissimo pulito */
  color: #1e4620 !important;
  padding: 12px 20px !important;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #2e7d32 !important; /* Linea verde scuro */
  border-radius: 0;
  margin: 15px 0 0 0 !important;
}

.phoenix-notices-wrapper .woocommerce-message .button {
  background-color: #2e7d32 !important;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 15px !important;
  border-radius: 0;
  transition: background 0.2s;
}

.phoenix-notices-wrapper .woocommerce-message .button:hover {
  background-color: #1b5e20 !important;
}

/* Errore (es. nessuna variante selezionata) */
.phoenix-notices-wrapper .woocommerce-error {
  background-color: #fdf2f2 !important;
  color: #9b1c1c !important;
  border-left: 4px solid #f05252 !important;
}

/* --- BOTTONI TAGLIA OVALI --- */
.phoenix-form-purchase-box table.variations select { display: none !important; }
.phoenix-custom-sizes-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.phoenix-size-btn {
  min-width: 45px; height: 32px; padding: 0 12px; border: 1px solid #ccc; background-color: #fff;
  color: #333; font-size: 13px; font-weight: 500; border-radius: 20px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; text-transform: uppercase; transition: all 0.2s;
}
.phoenix-size-btn:hover { border-color: #000; background-color: #f8f9fa; }
.phoenix-size-btn.active { border-color: #000; background-color: #fff; box-shadow: inset 0 0 0 1px #000; font-weight: 700; }
.phoenix-size-btn.disabled { opacity: 0.3; text-decoration: line-through; pointer-events: none; }

.phoenix-form-purchase-box .single_add_to_cart_button {
  width: 100% !important; background-color: #333 !important; color: #fff !important;
  font-weight: bold !important; text-transform: uppercase; height: 50px; font-size: 15px;
  border: none !important; border-radius: 3px !important; margin-top: 15px; transition: background 0.2s;
}
.phoenix-form-purchase-box .single_add_to_cart_button:hover { background-color: #000 !important; }
.phoenix-form-purchase-box .quantity { display: none !important; }

/* Allineamento a destra del prezzo */
.phoenix-price-container {
  text-align: right;
}
.phoenix-price-container del {
  order: 2;
}
.phoenix-price-container ins {
  order: 1;
}
.phoenix-price-container .badge-sconto-rosso {
  order: 3;
  border-radius: 2px;
}

/* --- SEZIONE PRODOTTI CORRELATI --- */
.phoenix-related-section h2 {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 25px;
  letter-spacing: -0.01em;
}

/* Configurazione griglia Phoenix nei correlati */
.phoenix-related-section ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

@media (min-width: 768px) {
  .phoenix-related-section ul.products {
      grid-template-columns: repeat(4, 1fr) !important;
  }
}

.phoenix-related-section ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
}

.phoenix-related-section ul.products li.product a {
  text-decoration: none !important;
  display: block;
}

.phoenix-related-section ul.products li.product img {
  margin-bottom: 12px !important;
  aspect-ratio: 3/4;
  object-fit: cover;
  background-color: #f8f9fa;
  width: 100%;
  height: auto;
}

.phoenix-related-section ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.phoenix-related-section ul.products li.product .price {
  color: #1a1a1a !important;
  font-weight: bold !important;
  font-size: 16px !important;
  margin-bottom: 0 !important;
}

.phoenix-related-section ul.products li.product .price del {
  color: #888 !important;
  font-size: 13px !important;
  margin-right: 6px;
  font-weight: normal;
}

.phoenix-related-section ul.products li.product .price ins {
  text-decoration: none !important;
  color: #b31f24 !important;
}

/* Nascondiamo il tasto aggiungi al carrello rapido dai correlati per pulizia */
.phoenix-related-section ul.products li.product .button {
  display: none !important;
}