/* ======================================================
   SHOPENGINE – RIMOZIONE ICONA STOCK SVG E STYLING
   ====================================================== */

/* Nascondi tutte le icone SVG per prodotti su ordinazione */
.shopengine-product-stock .stock.made-to-order svg,
.shopengine-product-stock .stock.made-to-order i {
    display: none !important;
}

/* Nascondi anche SVG inline nel HTML */
.stock.made-to-order svg {
    display: none !important;
}

/* Testo semplice per lo stock su ordinazione - dentro widget ShopEngine */
.shopengine-product-stock .stock.made-to-order {
    background: none !important;
    font-size: 14px;
    font-weight: 600;
    color: #b59b00;
    padding: 0;
    line-height: 1.4;
}

/* Applica stile anche fuori dal widget ShopEngine */
.stock.made-to-order {
    background: none !important;
    font-size: 14px;
    font-weight: 600;
    color: #b59b00;
}

/* Sicurezza extra contro pseudo-elementi */
.stock.made-to-order::before,
.stock.made-to-order::after {
    content: none !important;
}

/* ======================================================
   ULTIMATE CAROUSEL – PULSANTE SU ORDINAZIONE
   ====================================================== */

/* Stile per i pulsanti "Prodotto su ordinazione" nel carousel */
.prodotto-su-ordinazione .uc-button-addcart,
.order-button,
a.uc-button-addcart.order-button {
    background-color: #b59b00 !important;
    border-color: #b59b00 !important;
    color: #fff !important;
}

.prodotto-su-ordinazione .uc-button-addcart:hover,
.order-button:hover,
a.uc-button-addcart.order-button:hover {
    background-color: #8f7900 !important;
    border-color: #8f7900 !important;
    color: #fff !important;
}

/* Icona orologio */
.prodotto-su-ordinazione .uc-button-addcart i.fa-clock,
.order-button i.fa-clock,
a.uc-button-addcart.order-button i.fa-clock {
    margin-right: 5px;
}

/* Stile specifico per Ultimate Carousel container */
.uc_image_carousel_content.prodotto-su-ordinazione .uc-button-addcart {
    background-color: #b59b00 !important;
    border-color: #b59b00 !important;
    color: #fff !important;
}

.uc_image_carousel_content.prodotto-su-ordinazione .uc-button-addcart:hover {
    background-color: #8f7900 !important;
    border-color: #8f7900 !important;
}

/* ======================================================
   LOOP PRODOTTI STANDARD WOOCOMMERCE
   ====================================================== */

/* Pulsante su ordinazione nei loop standard */
.prodotto-su-ordinazione .button.add_to_cart_button {
    background-color: #b59b00 !important;
    border-color: #b59b00 !important;
    color: #fff !important;
}

.prodotto-su-ordinazione .button.add_to_cart_button:hover {
    background-color: #8f7900 !important;
    border-color: #8f7900 !important;
}

/* ======================================================
   PAGINA SINGOLA PRODOTTO
   ====================================================== */

/* Stile per il pulsante nella pagina prodotto */
.single-product .prodotto-su-ordinazione .single_add_to_cart_button {
    background-color: #b59b00 !important;
    border-color: #b59b00 !important;
    color: #fff !important;
}

.single-product .prodotto-su-ordinazione .single_add_to_cart_button:hover {
    background-color: #8f7900 !important;
    border-color: #8f7900 !important;
}

/* ======================================================
   FLAG NASCOSTO (NON VISIBILE ALL'UTENTE)
   ====================================================== */
.product-order-flag {
    display: none !important;
    visibility: hidden !important;
}

/* ======================================================
   COMPATIBILITÀ CON TEMI COMUNI
   ====================================================== */

/* Override per temi che usano colori specifici */
body .prodotto-su-ordinazione .uc-button-addcart,
body .order-button {
    background-color: #b59b00 !important;
    border-color: #b59b00 !important;
}

/* Assicura che il testo sia leggibile */
.prodotto-su-ordinazione .uc-button-addcart *,
.order-button * {
    color: inherit !important;
}
