/*
 * MODALITÀ VETRINA – animalls.test
 *
 * Questo file gestisce tutti gli override CSS per la modalità vetrina.
 * È caricato da vetrina-mode.php (incluso in functions.php).
 *
 * PER DISATTIVARE: commenta il require_once di vetrina-mode.php in functions.php
 * PER RIATTIVARE E-COMMERCE: decommenta il require_once in functions.php
 *
 * @version 1.0.0
 * @date    2026-02-25
 */

/* ==============================================================
   HEADER: Carrello, Mini-cart, Wishlist, Account
   ============================================================== */

/* Icona carrello e mini-cart Porto */
.header-cart,
.porto-header-cart,
#porto-cart-toggle,
.cart-toggle,
.porto-minicart,
.mini-cart,
.cart-dropdown,
.woocommerce-menu-bar-cart,
#menu-cart,
li.cart-item,
li.woocommerce-menu-bar-cart,
/* Plugin WooCommerce Menu Bar Cart */
li.woo-nav-cart,
/* Header wishlist */
.header-wishlist,
.porto-header-wishlist,
.porto-wishlist,
/* Header account / dropdown user */
.header-account,
.porto-header-account,
.user-dropdown,
.account-dropdown,
.header-login,
/* Link generici nell'header verso e-commerce */
header a[href*="/cart"],
header a[href*="/carrello"],
header a[href*="/my-account"],
header a[href*="/il-mio-account"],
header a[href*="/lista-dei-desideri"],
header a[href*="/wishlist"],
/* Sticky header remnants */
.sticky-header .cart-toggle,
.sticky-header .header-cart,
.sticky-header .header-wishlist,
/* Mini-cart widget ovunque */
.widget_shopping_cart,
.woocommerce.widget_shopping_cart { display: none !important; }

/* Elementi header specifici – identificati da DOM inspection (Elementor-generated classes) */
a.my-account,
a.my-wishlist,
[class*="custom-cart"],
/* Promo bar "Sconti fino al 50%" – riga intera */
.elementor-element-99875bd,
/* Badge "Spedizione Gratuita" – solo il badge, NON il contenitore padre che ospita anche la nav */
.elementor-element-024f36a { display: none !important; }

/* ==============================================================
   PRODOTTI: Badge (Onsale, Esaurito, Top, Nuovo)
   ============================================================== */

.onsale,
.sale-badge,
.badge-sale,
.out-of-stock-badge,
.product-badge,
.badge-top,
.badge-new,
span.badge,
.woocommerce-badge,
mark.sale,
.loop-product-categories .onsale,
.product .onsale { display: none !important; }

/* ==============================================================
   PRODOTTI: Prezzi
   ============================================================== */

.woocommerce-Price-amount,
bdi, /* spesso wrappa il prezzo */
.price ins,
.price del,
.price > span:not(.screen-reader-text),
.product-price,
.porto-price,
.woo-price,
p.price,
span.price,
.woocommerce-variation-price,
.summary .price { display: none !important; }

/* ==============================================================
   PRODOTTI: Pulsanti Add-to-cart residui
   ============================================================== */

.add_to_cart_button,
.single_add_to_cart_button,
.btn-cart,
.button.product_type_simple,
.button.product_type_variable,
.button.product_type_grouped,
.button.product_type_external,
.woocommerce form.cart,
.variations_form .single_add_to_cart_button,
.porto-product-box .btn-cart { display: none !important; }

/* ==============================================================
   PRODOTTI: Wishlist (YITH) button ovunque
   ============================================================== */

.yith-wcwl-add-to-wishlist,
.add_to_wishlist,
.yith-wcwl-wishlistexistsbrowse,
.yith-wcwl-wishlistaddedbrowse,
.yith-wcwl-shortcode,
a.add_to_wishlist { display: none !important; }

/* ==============================================================
   HOMEPAGE: Banner sconti, CTA Shop Now, Marquee spedizione
   ============================================================== */

/* Marquee / announcement bar */
.porto-marquee,
.porto-free-shipping,
.porto-announcement-bar,
.elementor-widget-porto-marquee,
.promo-bar,
.announcement-bar,
.porto-ticker,
.free-shipping-bar { display: none !important; }

/* CTA Shop Now / Acquista ora nei banner (RevSlider e Elementor) */
.rs-layer a[href*="shop"],
.tp-caption a[href*="shop"],
.elementor-button-wrapper a[href*="shop"],
.elementor-widget-button a[href*="/shop"],
a.porto-btn[href*="shop"],
a.btn[href*="/shop"]:not([href*="brand"]):not([href*="chi-siamo"]) { display: none !important; }

/* Banner sconti (classi tipiche Porto/Elementor) */
.porto-promo-box,
.porto-countdown,
.elementor-widget-countdown { display: none !important; }

/* ==============================================================
   FOOTER: Link e-commerce (nasconde link, non widget)
   ============================================================== */

footer a[href*="/cart"],
footer a[href*="/carrello"],
footer a[href*="/checkout"],
footer a[href*="/order-tracking"],
footer a[href*="/traccia-ordine"],
footer a[href*="/my-account"],
footer a[href*="/il-mio-account"],
footer a[href*="/login"],
footer a[href*="/wishlist"],
footer a[href*="/lista-dei-desideri"] { display: none !important; }

/* Nasconde il <li> padre quando contiene solo link e-commerce */
footer li:has(> a[href*="/cart"]),
footer li:has(> a[href*="/carrello"]),
footer li:has(> a[href*="/checkout"]),
footer li:has(> a[href*="/order-tracking"]),
footer li:has(> a[href*="/my-account"]),
footer li:has(> a[href*="/login"]),
footer li:has(> a[href*="/wishlist"]) { display: none !important; }
