/**
 * PC Precision — sfondo pagine bianco (modalità prova)
 *
 * Attivato da body.pcp-light-pages (PCP_LIGHT_PAGES in functions.php).
 * Carica DOPO pcp-contrast-fix.css — vince sul tema scuro globale.
 *
 * REVERT: in functions.php impostare define( 'PCP_LIGHT_PAGES', false );
 */

/* =============================================================================
   Tokens + canvas
   ============================================================================= */
body.pcp-light-pages {
	--pcp-g-bg: #ffffff;
	--pcp-g-bg-soft: #f8f9fa;
	--pcp-g-surface: #ffffff;
	--pcp-g-surface-2: #f3f4f6;
	--pcp-g-border: rgba(0, 0, 0, 0.08);
	--pcp-g-border-strong: rgba(0, 0, 0, 0.14);
	--pcp-g-text: #1a1a1a;
	--pcp-g-text-muted: #444444;
	--pcp-g-text-subtle: #666666;
	--pcp-cat-bg: #f8f9fa;
	--wd-main-bgcolor: #ffffff;
	--wd-text-color: #444444;
	--wd-title-color: #1a1a1a;
	--wd-entities-title-color: #1a1a1a;
	--wd-entities-title-color-hover: #000000;
	--wd-link-color: #1a1a1a;
	--wd-link-color-hover: var(--pcp-primary, #2563eb);
	--bgcolor-white: #ffffff;
	--bgcolor-gray-100: #f8f9fa;
	--bgcolor-gray-200: #f3f4f6;
	--bgcolor-gray-300: #e5e7eb;
	--color-gray-800: #1a1a1a;
	--color-gray-900: #111111;
	/* global-color-scheme-light inverts form tokens → invisible fields on white */
	--wd-form-color: #1a1a1a !important;
	--wd-form-bg: #ffffff !important;
	--wd-form-brd-color: #e4e4e7 !important;
	--wd-form-brd-color-focus: #1e40af !important;
	--wd-form-placeholder-color: #888888 !important;

	background-color: #ffffff !important;
	color: #444444 !important;
}

body.pcp-light-pages :is(
	.website-wrapper,
	.wd-page-wrapper,
	.wd-page-content,
	.main-page-wrapper,
	.wd-content-layout,
	.site-content,
	.wd-content-area,
	#main-content
) {
	background-color: #ffffff !important;
	color: #444444 !important;
}

/* Catalogo: leggero grigio per distinguere card */
body.pcp-light-pages.pcp-catalog-active {
	background: #f8f9fa !important;
}

body.pcp-light-pages.pcp-catalog-active :is(
	.site-content,
	.content-area,
	.wd-content-area,
	.wd-page-content,
	.main-page-wrapper
) {
	background-color: #f8f9fa !important;
}

/* =============================================================================
   Titoli + testo contenuto (esclusi header, footer, hero)
   ============================================================================= */
body.pcp-light-pages .main-page-wrapper :is(
	.wd-content-area :is(
		h1:not(.pcp-catalog-header__title),
		h2:not(.pcp-catalog-filters__title),
		h3, h4, h5, h6
	),
	.entry-content > :is(h1:not(.pcp-catalog-header__title), h2, h3, h4, h5, h6),
	.entry-title:not(.wd-page-title .entry-title),
	.elementor-widget-heading .elementor-heading-title,
	.elementor-widget-wd_title .title,
	.elementor-widget-wd_section_title .title,
	.woodmart-title-container .title,
	.wd-info-box .info-box-title,
	.elementor-widget-text-editor :is(h1, h2, h3, h4, h5, h6)
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

/* Hero / CTA scuri info-page — titoli e ghost button bianchi (vince su regola sopra) */
body.pcp-light-pages .main-page-wrapper :is(
	.pcp-acquisto__hero,
	.pcp-guida__hero,
	.pcp-garanzia__hero,
	.pcp-special__hero,
	.pcp-email__hero,
	.pcp-build__hero,
	.pcp-acquisto__cta-box,
	.pcp-guida__cta-box,
	.pcp-garanzia__cta-box,
	.pcp-special__cta-box,
	.pcp-email__cta-box,
	.pcp-build__cta-box,
	.pcp-wd-hero,
	.pcp-wd-section--dark
) :is(h1, h2, h3, h4, [class*="__title"]) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.pcp-light-pages .main-page-wrapper :is(
	.pcp-acquisto__hero,
	.pcp-guida__hero,
	.pcp-garanzia__hero,
	.pcp-special__hero,
	.pcp-email__hero,
	.pcp-build__hero,
	.pcp-acquisto__cta-box,
	.pcp-guida__cta-box,
	.pcp-garanzia__cta-box,
	.pcp-special__cta-box,
	.pcp-email__cta-box,
	.pcp-build__cta-box,
	.pcp-wd-hero,
	.pcp-wd-section--dark
) a[class*="__btn--ghost"] {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.pcp-light-pages .main-page-wrapper :is(
	.wd-content-area,
	.entry-content,
	.elementor-widget-text-editor,
	.elementor-widget-wd_text_block,
	.wd-info-box,
	.elementor-widget-wd_infobox,
	.elementor-widget-wd_info_box
) {
	color: #444444 !important;
}

body.pcp-light-pages .main-page-wrapper .entry-content :is(
	p, li, ul, ol, dd, dt, blockquote, span:not([class*="__badge"]):not(.product-label):not(.onsale), label:not([class*="__badge"]), strong, em
):not(:is(
	[class*="pcp-"] *,
	.pcp-classic-page--raw *,
	.pcp-catalog-header *,
	.pcp-wm-home__hero *,
	.pcp-drako-hero *
)) {
	color: #444444 !important;
	-webkit-text-fill-color: #444444 !important;
}

body.pcp-light-pages .main-page-wrapper .entry-content a:not(
	.pcp-classic-btn,
	[class*="__btn"],
	.button,
	.wd-add-btn a
) {
	color: var(--pcp-primary, #2563eb) !important;
	-webkit-text-fill-color: var(--pcp-primary, #2563eb) !important;
}

body.pcp-light-pages .main-page-wrapper .entry-content a:not(
	.pcp-classic-btn,
	[class*="__btn"],
	.button,
	.wd-add-btn a
):hover {
	color: #005c32 !important;
	-webkit-text-fill-color: #005c32 !important;
}

/* =============================================================================
   Breadcrumb — testo scuro su sfondo chiaro
   ============================================================================= */
body.pcp-light-pages .main-page-wrapper :is(
	.wd-breadcrumbs,
	.woocommerce-breadcrumb,
	.wd-breadcrumbs a,
	.wd-breadcrumbs span,
	.woocommerce-breadcrumb a,
	.wd-breadcrumbs .breadcrumb-last,
	.wd-breadcrumbs .last,
	.wd-breadcrumbs li:last-child,
	.wd-breadcrumbs li:last-child a
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages .main-page-wrapper :is(
	.wd-breadcrumbs a:hover,
	.woocommerce-breadcrumb a:hover
) {
	color: var(--pcp-primary, #2563eb) !important;
	-webkit-text-fill-color: var(--pcp-primary, #2563eb) !important;
}

/* =============================================================================
   Page title strip (Woodmart) — chiaro con titolo verde
   ============================================================================= */
body.pcp-light-pages .wd-page-title {
	background: #f8f9fa !important;
	border-bottom: 3px solid var(--pcp-primary, #2563eb) !important;
}

body.pcp-light-pages .wd-page-title :is(
	.entry-title,
	.page-title,
	h1
) {
	color: var(--pcp-primary, #2563eb) !important;
	-webkit-text-fill-color: var(--pcp-primary, #2563eb) !important;
}

body.pcp-light-pages .wd-page-title :is(
	.title-subtitle,
	.wd-title-subtitle
) {
	color: #666666 !important;
	-webkit-text-fill-color: #666666 !important;
}

/* =============================================================================
   Shop generico (senza catalog layout) — toolbar + card chiare
   ============================================================================= */
body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat):not(.pcp-catalog-active) :is(
	.woocommerce-result-count,
	.wd-shop-tools,
	.wd-shop-tools .wd-tools-element > a,
	.wd-show-sidebar-btn,
	.wd-sidebar-opener.wd-filter-icon > a
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat):not(.pcp-catalog-active) .woocommerce-result-count strong {
	color: var(--pcp-primary, #2563eb) !important;
	-webkit-text-fill-color: var(--pcp-primary, #2563eb) !important;
}

body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat):not(.pcp-catalog-active) :is(
	.woocommerce-ordering select,
	.wd-shop-tools select
) {
	background: #ffffff !important;
	border-color: #dde3ea !important;
	color: #1a1a1a !important;
}

body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat):not(.pcp-catalog-active) .page-numbers {
	border-color: #dde3ea !important;
	color: #1a1a1a !important;
}

body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat):not(.pcp-catalog-active) :is(
	.wd-product,
	.product-grid-item,
	ul.products li.product
) {
	--wd-text-color: #444444 !important;
	--wd-title-color: #1a1a1a !important;
	--wd-entities-title-color: #1a1a1a !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-color: #dde3ea !important;
	color: #444444 !important;
}

body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat):not(.pcp-catalog-active) :is(
	.wd-product .wd-entities-title a,
	.wd-product .price .woocommerce-Price-amount,
	ul.products li.product .woocommerce-loop-product__title,
	ul.products li.product h2,
	ul.products li.product .price
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

/* Sidebar filtri shop */
body.pcp-light-pages:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	[class*="wd-col-offcanvas"],
	.wd-sidebar:not(.wd-side-hidden),
	.sidebar-container,
	.wd-shop-sidebar,
	.elementor-widget-wd_sidebar
) {
	background: #ffffff !important;
	color: #1a1a1a !important;
}

/* =============================================================================
   Pagine info — pannelli classici (già chiari, allinea al canvas)
   ============================================================================= */
body.pcp-light-pages :is(
	.pcp-classic-page:not(.pcp-classic-page--raw),
	.pcp-woodmart-page .pcp-wd-section:not(.pcp-wd-section--dark)
) {
	background-color: #ffffff !important;
	color: #1a1a1a !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* =============================================================================
   ESCLUSIONI — header, footer, hero (non toccare)
   ============================================================================= */

/* Header Woodmart resta scuro */
body.pcp-light-pages :is(
	.whb-header,
	.whb-main-header,
	.whb-row,
	.whb-sticky-header,
	.whb-top-bar,
	.wd-header,
	.wd-tools-element,
	#pcpCasekingNav,
	.pcp-ck-header
) {
	/* ereditano stili esistenti — nessun override bg */
}

/* Footer resta scuro — mai ereditare il bianco del body */
body.pcp-light-pages :is(
	.pcp-footer-wrap,
	.pcp-footer,
	.pcp-drako-footer-wrap,
	footer.site-footer,
	.footer-container,
	.footer-page
) {
	background-color: #0a0a0a !important;
	color: rgba(255, 255, 255, 0.72) !important;
}

body.pcp-light-pages .pcp-footer__trust,
body.pcp-light-pages .pcp-drako-footer-trust {
	background-color: #111111 !important;
}

body.pcp-light-pages .pcp-drako-footer-wrap {
	--pcp-df-bg: #0a0a0a;
	--pcp-df-bg-soft: #111111;
}

/* Homepage hero / slider — immagini e overlay invariati */
body.pcp-light-pages :is(
	.pcp-wm-home__hero,
	.pcp-drako-hero,
	.pcp-wm-hero-slide,
	.wd-slider,
	.wd-slide-container
) {
	background-color: transparent !important;
}

/* Catalog header — testo scuro su sfondo chiaro (stile Drako) */
body.pcp-light-pages.pcp-catalog-active .pcp-catalog-header,
body.pcp-light-pages.pcp-catalog-active .pcp-catalog-header__inner {
	color: var(--pcp-cat-text, #1a1a1a) !important;
	--wd-title-color: var(--pcp-cat-text, #1a1a1a) !important;
	--wd-text-color: var(--pcp-cat-muted, #5c6578) !important;
}

body.pcp-light-pages.pcp-catalog-active .main-page-wrapper .pcp-catalog-header h1.pcp-catalog-header__title,
body.pcp-light-pages.pcp-catalog-active .main-page-wrapper .pcp-catalog-header .pcp-catalog-header__title,
body.pcp-light-pages.pcp-catalog-active .pcp-catalog-header :is(h1, .pcp-catalog-header__title) {
	color: var(--pcp-cat-text, #1a1a1a) !important;
	-webkit-text-fill-color: var(--pcp-cat-text, #1a1a1a) !important;
	text-shadow: none;
}

body.pcp-light-pages.pcp-catalog-active .pcp-catalog-header__lead {
	color: var(--pcp-cat-muted, #5c6578) !important;
	-webkit-text-fill-color: var(--pcp-cat-muted, #5c6578) !important;
}

/* Header filtri catalogo (barra scura) — vince su titoli h2 generici */
body.pcp-light-pages.pcp-catalog-active .pcp-catalog-filters__header,
body.pcp-light-pages.pcp-catalog-active .main-page-wrapper .pcp-catalog-filters__header {
	background: #1a1a1a !important;
	color: #ffffff !important;
}

body.pcp-light-pages.pcp-catalog-active .main-page-wrapper .wd-content-area .pcp-catalog-filters__header :is(
	h2.pcp-catalog-filters__title,
	.pcp-catalog-filters__title,
	.pcp-catalog-filters__close,
	.pcp-catalog-filters__close svg
) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	fill: currentColor;
}

body.pcp-light-pages.pcp-catalog-active .pcp-catalog-toolbar__filters,
body.pcp-light-pages.pcp-catalog-active .pcp-catalog-toolbar__filters :is(span, svg) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.pcp-light-pages.pcp-catalog-active .pcp-catalog-active-filters__chip,
body.pcp-light-pages.pcp-catalog-active .pcp-catalog-active-filters__chip :is(span, a) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* =============================================================================
   MOBILE TOOLBAR + FOOTER — vince sui token chiari del body (carica per ultimo)
   ============================================================================= */
@media (max-width: 1024px) {
	body.pcp-light-pages .wd-toolbar,
	body.pcp-light-pages.pcp-wm-home-native .wd-toolbar {
		--bgcolor-white: #0a0a0a !important;
		--wd-text-color: #e5e7eb !important;
		--wd-link-color: #e5e7eb !important;
		background-color: #0a0a0a !important;
		color: #e5e7eb !important;
	}

	body.pcp-light-pages .wd-toolbar :is(a, .wd-toolbar-label, .wd-tools-icon::before) {
		color: #e5e7eb !important;
		-webkit-text-fill-color: #e5e7eb !important;
	}
}

body.pcp-light-pages .pcp-footer-wrap :is(.pcp-footer__col-title, h3, h4) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.pcp-light-pages .pcp-footer-wrap .pcp-footer__links a {
	color: #e5e7eb !important;
	-webkit-text-fill-color: #e5e7eb !important;
}

body.pcp-light-pages .pcp-footer-wrap .pcp-footer__tagline {
	color: rgba(255, 255, 255, 0.62) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.62) !important;
}

body.pcp-light-pages .pcp-footer-wrap .pcp-footer__trust-title {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.pcp-light-pages .pcp-footer-wrap .pcp-footer__trust-subtitle {
	color: rgba(255, 255, 255, 0.62) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.62) !important;
}

/* =============================================================================
   Homepage product cards — reinforce white card + readable text (loads last)
   ============================================================================= */
body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card,
body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card .pcp-home-products__body,
body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card .pcp-home-products__image-link {
	--bgcolor-white: #ffffff !important;
	--wd-text-color: #444444 !important;
	--wd-title-color: #1a1a1a !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #444444 !important;
}

body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card :is(
	.pcp-home-products__title,
	.pcp-home-products__title a
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card :is(
	.pcp-home-products__price,
	.pcp-home-products__price .woocommerce-Price-amount
) {
	color: var(--pcp-primary, #2563eb) !important;
	-webkit-text-fill-color: var(--pcp-primary, #2563eb) !important;
}

body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card :is(
	.pcp-home-products__sku,
	.pcp-home-products__meta
) {
	color: #666666 !important;
	-webkit-text-fill-color: #666666 !important;
}

/* Stock status text only — green / red */
body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__stock--in,
body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card .pcp-home-products__stock--in {
	color: #16a34a !important;
	-webkit-text-fill-color: #16a34a !important;
}

body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__stock--out,
body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__card .pcp-home-products__stock--out {
	color: #dc2626 !important;
	-webkit-text-fill-color: #dc2626 !important;
}

body.pcp-light-pages.pcp-wm-home-native .pcp-home-products__stock--in::before {
	background: #16a34a !important;
}

/* =============================================================================
   Homepage — reinforce mobile promo hide (loads last)
   ============================================================================= */
@media (max-width: 1024px) {
	body.pcp-light-pages.pcp-wm-home-native .pcp-drako-hero__promo,
	body.pcp-light-pages.pcp-wm-home-native.pcp-drako-hero-active .pcp-wm-home__hero .pcp-drako-hero__promo,
	body.pcp-light-pages.pcp-wm-home-native .pcp-drako-hero__promo .pcp-home-promo-slider,
	body.pcp-light-pages.pcp-wm-home-native .pcp-wm-home > .pcp-home-promo-slider {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		margin: 0 !important;
		padding: 0 !important;
		pointer-events: none !important;
	}
}

/* =============================================================================
   Single product — related/upsells cards (reinforce white card, loads last)
   Beats tema-globale .wd-products.wd-loop-builder-on dark cards (v2.0.61).
   ============================================================================= */
body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
).wd-loop-builder-on .wd-product,
body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
) :is(
	.wd-product,
	.product-grid-item,
	ul.products li.product,
	.wd-product-wrapper,
	.wd-product .wd-dir-col,
	.wd-product .wd-dir-row
) {
	--pcp-shop-card-bg: #ffffff !important;
	--bgcolor-white: #ffffff !important;
	--wd-prod-bg: #ffffff !important;
	--wd-text-color: #444444 !important;
	--wd-title-color: #1a1a1a !important;
	--wd-entities-title-color: #1a1a1a !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-color: #dde3ea !important;
	color: #444444 !important;
}

body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
) :is(
	.wd-product .wd-entities-title a,
	.wd-product .wd-loop-prod-title a,
	.product-grid-item .wd-entities-title a,
	ul.products li.product .woocommerce-loop-product__title
) {
	color: var(--pcp-primary, #1e40af) !important;
	-webkit-text-fill-color: var(--pcp-primary, #1e40af) !important;
}

body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
) :is(
	.wd-product .price .woocommerce-Price-amount,
	.wd-product .price .amount,
	.product-grid-item .price .woocommerce-Price-amount
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
) :is(
	.wd-product .wd-product-cats,
	.wd-product .wd-product-cats a
) {
	color: var(--pcp-primary, #1e40af) !important;
	-webkit-text-fill-color: var(--pcp-primary, #1e40af) !important;
}

body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
) :is(
	.wd-product .price del .woocommerce-Price-amount
) {
	color: #666666 !important;
	-webkit-text-fill-color: #666666 !important;
}

body.pcp-light-pages.single-product:not(.pcp-catalog-active) :is(
	.related-products,
	.upsells-products,
	.upsells,
	.cross-sells,
	.products.related,
	.woocommerce .related.products
) .wd-product :is(
	.wd-loop-prod-thumb,
	.wd-product-thumb,
	.wd-368dd130,
	.product-element-top,
	.product-image-link,
	.wd-product-img-link,
	.wd-product-card-bg,
	.content-product-imagin,
	.product-image-link img,
	.wd-product-img-link img,
	.wd-loop-prod-thumb img,
	.wd-product-thumb img
) {
	background: #f3f4f6 !important;
	background-color: #f3f4f6 !important;
}

/* Cart / checkout — correlati bianchi come negozio */
body.pcp-light-pages:is(.woocommerce-cart, .woocommerce-checkout):not(.pcp-catalog-active) :is(
	.cross-sells,
	.related-products,
	.upsells-products,
	.upsells,
	.related.products,
	.wd-carousel-container .wd-products.wd-loop-builder-on,
	.wd-products.wd-loop-builder-on
) :is(
	.wd-product,
	.product-grid-item,
	.wd-product .product-element-bottom,
	.wd-product .product-information
) {
	--pcp-shop-card-bg: #ffffff !important;
	--bgcolor-white: #ffffff !important;
	--wd-prod-bg: #ffffff !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-color: #dde3ea !important;
	color: #444444 !important;
}

body.pcp-light-pages:is(.woocommerce-cart, .woocommerce-checkout):not(.pcp-catalog-active) :is(
	.cross-sells,
	.related-products,
	.wd-carousel-container .wd-products,
	.wd-products.wd-loop-builder-on
) :is(
	.wd-product .wd-entities-title a,
	.wd-product .wd-loop-prod-title a,
	.wd-product .wd-product-cats a
) {
	color: var(--pcp-primary, #1e40af) !important;
	-webkit-text-fill-color: var(--pcp-primary, #1e40af) !important;
}

body.pcp-light-pages:is(.woocommerce-cart, .woocommerce-checkout):not(.pcp-catalog-active) :is(
	.cross-sells,
	.related-products,
	.wd-carousel-container .wd-products,
	.wd-products.wd-loop-builder-on
) :is(
	.wd-product .price .woocommerce-Price-amount,
	.wd-product .price .amount
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages .create-account-button,
body.pcp-light-pages a.create-account-button {
	background-color: var(--pcp-primary, #1e40af) !important;
	border-color: var(--pcp-primary, #1e40af) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* Product description Elementor — force light (loads last, wins #000) */
body.pcp-light-pages.single-product :is(
	#tab-description,
	.woocommerce-Tabs-panel--description,
	.woocommerce-Tabs-panel,
	.wc-tab-inner.wd-entry-content
) :is(
	.e-con,
	.elementor-element.e-con,
	.elementor-element[class*="color-scheme-light"],
	[class*="color-scheme-light"]
) {
	--bgcolor-white: #ffffff !important;
	--wd-main-bgcolor: #ffffff !important;
	--wd-text-color: #444444 !important;
	--wd-title-color: #1a1a1a !important;
	background-color: #ffffff !important;
	color: #444444 !important;
}

body.pcp-light-pages.single-product :is(
	#tab-description,
	.woocommerce-Tabs-panel--description,
	.woocommerce-Tabs-panel,
	.wc-tab-inner.wd-entry-content
) :is(
	.woodmart-title-container,
	.title,
	.wd-text-block,
	h1, h2, h3, h4, h5, h6,
	p, li
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

/* =============================================================================
   Single product — main summary + tabs (loads last)
   ============================================================================= */
body.pcp-light-pages.single-product .summary,
body.pcp-light-pages.single-product .woocommerce-tabs,
body.pcp-light-pages.single-product .woocommerce-Tabs-panel {
	color: #444444 !important;
}

body.pcp-light-pages.single-product :is(
	.product_title,
	.summary .price .woocommerce-Price-amount,
	.woocommerce-Tabs-panel :is(h2, h3, p, li, td, th, label)
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages.single-product .woocommerce-product-details__short-description,
body.pcp-light-pages.single-product .woocommerce-Tabs-panel p {
	color: #444444 !important;
	-webkit-text-fill-color: #444444 !important;
}

body.pcp-light-pages.single-product .woocommerce-tabs .tabs li.active a {
	color: var(--pcp-primary, #2563eb) !important;
	-webkit-text-fill-color: var(--pcp-primary, #2563eb) !important;
}

/* =============================================================================
   Cart / checkout / account — reinforce light canvas text
   ============================================================================= */
body.pcp-light-pages:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(
	.woocommerce,
	.entry-content,
	.wd-content-area
) {
	color: #444444 !important;
}

body.pcp-light-pages:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(
	h1, h2, h3,
	.woocommerce table.shop_table .product-name a,
	.order-total .amount
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	textarea,
	select
):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
	background: #ffffff !important;
	border: 1px solid #e4e4e7 !important;
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	color-scheme: light;
	opacity: 1 !important;
}

body.pcp-light-pages.woocommerce-account :is(
	.woocommerce-EditAccountForm,
	form.edit-account
) :is(
	button[type="submit"],
	.woocommerce-Button,
	button.button,
	input.button
) {
	background-color: var(--pcp-primary, #1e40af) !important;
	border-color: var(--pcp-primary, #1e40af) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* =============================================================================
   BADGES — white text on colored backgrounds (loads last, wins span bleed)
   ============================================================================= */
body.pcp-light-pages :is(
	.onsale,
	.product-label.onsale,
	.product-label.new,
	.product-label.featured,
	.product-label.hot,
	.wd-product-label.onsale,
	.wd-product-label.new,
	.wd-product-label.featured,
	.product-labels .product-label:not(.out-of-stock):not(.attribute-label),
	.woocommerce span.onsale,
	.pcp-home-products__badge,
	.pcp-home-products__badge--nuovo,
	.pcp-home-products__badge--promo,
	.pcp-nexus-badge,
	.pcp-catalog-toolbar__badge
) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* NUOVO / PROMO / new / featured — dark blue bg (loads last, wins over red bleed) */
body.pcp-light-pages :is(
	.product-label.new,
	.product-label.featured,
	.product-label.hot,
	.wd-product-label.new,
	.wd-product-label.featured,
	.pcp-home-products__badge,
	.pcp-home-products__badge--nuovo,
	.pcp-home-products__badge--promo,
	.pcp-nexus-badge--new,
	.pcp-nexus-badge--hot
) {
	background-color: var(--pcp-primary, #1e40af) !important;
}

body.pcp-light-pages .pcp-home-products__badge--bestseller,
body.pcp-light-pages .pcp-home-products__badge--hot {
	background-color: #b45309 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.pcp-light-pages :is(
	.product-label.out-of-stock,
	.product-label.attribute-label
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

/* Stock status text only — Disponibile green / Esaurito red */
body.pcp-light-pages :is(
	.stock.in-stock,
	.wd-product-stock.in-stock,
	p.stock.in-stock
) {
	color: #16a34a !important;
	-webkit-text-fill-color: #16a34a !important;
}

body.pcp-light-pages :is(
	.stock.out-of-stock,
	.wd-product-stock.out-of-stock,
	p.stock.out-of-stock
) {
	color: #dc2626 !important;
	-webkit-text-fill-color: #dc2626 !important;
}

/* =============================================================================
   v2.0.62 — light-pages last word: Elementor products + single-product cards
   v2.0.64 — match Negozio: black price, blue category (single-product only)
   Beats tema-globale anthracite on .elementor-widget-wd_products .wd-product
   ============================================================================= */
body.pcp-light-pages.single-product:not(.pcp-homepage-elementor-layout):not(.pcp-homepage-home2) :is(
	.elementor-widget-wd_products,
	.elementor-widget-wd_products_tabs
) :is(
	.wd-product,
	.wd-product-wrapper,
	.wp-block-wd-container.wd-dir-col,
	.wp-block-wd-container.wd-dir-row
) {
	--pcp-shop-card-bg: #ffffff !important;
	--bgcolor-white: #ffffff !important;
	--wd-prod-bg: #ffffff !important;
	--wd-text-color: #444444 !important;
	--wd-title-color: #1a1a1a !important;
	--wd-entities-title-color: #1a1a1a !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-color: #dde3ea !important;
	color: #444444 !important;
}

body.pcp-light-pages.single-product:not(.pcp-homepage-elementor-layout):not(.pcp-homepage-home2) :is(
	.elementor-widget-wd_products,
	.elementor-widget-wd_products_tabs
) :is(
	.wd-entities-title a,
	.wd-loop-prod-title a
) {
	color: var(--pcp-primary, #1e40af) !important;
	-webkit-text-fill-color: var(--pcp-primary, #1e40af) !important;
}

body.pcp-light-pages.single-product:not(.pcp-homepage-elementor-layout):not(.pcp-homepage-home2) :is(
	.elementor-widget-wd_products,
	.elementor-widget-wd_products_tabs
) :is(
	.price .woocommerce-Price-amount,
	.price .amount
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-light-pages.single-product:not(.pcp-homepage-elementor-layout):not(.pcp-homepage-home2) :is(
	.elementor-widget-wd_products,
	.elementor-widget-wd_products_tabs
) :is(
	.wd-product-cats,
	.wd-product-cats a
) {
	color: var(--pcp-primary, #1e40af) !important;
	-webkit-text-fill-color: var(--pcp-primary, #1e40af) !important;
}

body.pcp-light-pages.single-product:not(.pcp-homepage-elementor-layout):not(.pcp-homepage-home2) :is(
	.elementor-widget-wd_products,
	.elementor-widget-wd_products_tabs
) :is(
	.price del .woocommerce-Price-amount
) {
	color: #666666 !important;
	-webkit-text-fill-color: #666666 !important;
}

body.pcp-light-pages.single-product:not(.pcp-homepage-elementor-layout):not(.pcp-homepage-home2) :is(
	.elementor-widget-wd_products,
	.elementor-widget-wd_products_tabs
) .wd-product :is(
	.wd-loop-prod-thumb,
	.wd-product-thumb,
	.wd-368dd130,
	.product-element-top,
	.product-image-link,
	.wd-product-img-link,
	.wd-product-card-bg,
	.content-product-imagin,
	.product-image-link img,
	.wd-product-img-link img,
	.wd-loop-prod-thumb img,
	.wd-product-thumb img
) {
	background: #f3f4f6 !important;
	background-color: #f3f4f6 !important;
}

/* Description black kill — loads last */
body.pcp-light-pages.single-product #tab-description .e-con,
body.pcp-light-pages.single-product #tab-description .elementor-element.e-con,
body.pcp-light-pages.single-product .elementor-31496 .elementor-element-8610603 {
	background-color: #ffffff !important;
	background-image: none !important;
	color: #1a1a1a !important;
}

body.pcp-light-pages.single-product #tab-description :is(
	.woodmart-title-container,
	.title,
	.wd-text-block,
	h1, h2, h3, h4, p, li
) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

/* =============================================================================
   v2.0.86 — light-pages last word: custom labels + light card tokens
   ============================================================================= */
body.pcp-light-pages.pcp-catalog-active,
body.pcp-light-pages.single-product,
body.pcp-light-pages.woocommerce-cart,
body.pcp-light-pages.woocommerce-checkout {
	--pcp-shop-card-bg: #ffffff !important;
	--pcp-shop-card-text: #1a1a1a !important;
	--pcp-shop-card-muted: #444444 !important;
	--pcp-shop-card-subtle: #666666 !important;
}

body.pcp-light-pages :is(
	.product-labels .wd-custom-label,
	.wd-loop-prod-labels .wd-custom-label,
	.woocommerce-product-gallery .wd-custom-label,
	.wd-custom-label
) {
	display: flex !important;
	align-items: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-color: #414141 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border-radius: 15px !important;
	padding: 5px 10px !important;
	gap: 5px !important;
	z-index: 5 !important;
}

body.pcp-light-pages .wd-custom-label.wd-label-31644 {
	background-color: #2a2626 !important;
}

body.pcp-light-pages .wd-custom-label :is(
	.wp-block-wd-paragraph,
	.wp-block-paragraph,
	p,
	span
) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	margin: 0 !important;
	background: transparent !important;
}

body.pcp-light-pages .wd-custom-label :is(img, .wp-block-wd-icon img) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 12px !important;
	height: 12px !important;
	background: transparent !important;
}

body.pcp-light-pages .create-account-button,
body.pcp-light-pages a.create-account-button {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
