/* Prodotti esauriti: scala di grigi (liste e scheda prodotto) */
li.product.outofstock .product-media img,
li.product.outofstock .product-media .second-thumbnail,
.product-single.outofstock .woocommerce-product-gallery img {
	filter: grayscale(1);
	opacity: .65;
}

/* Etichetta "Esaurito" sulle card (.product-media è già position:relative nel tema) */
li.product.outofstock .product-media::after {
	content: "Esaurito";
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 3;
	padding: 4px 10px;
	border-radius: 3px;
	background: #b32d2e;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.4;
	text-transform: uppercase;
	pointer-events: none;
}

/* Pulsanti WhatsApp nella scheda prodotto */
.bcws-request {
	margin: 14px 0 0;
}

.bcws-request[hidden] {
	display: none !important;
}

.bcws-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid #128c4a;
	border-radius: 4px;
	background: #fff;
	color: #0b6b37 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}

.bcws-btn:hover,
.bcws-btn:focus {
	background: #128c4a;
	color: #fff !important;
}

.bcws-btn svg {
	flex: none;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Link WhatsApp dentro l'avviso rosso di stock insufficiente */
.woocommerce-error a[href^="https://wa.me/"] {
	color: #fff !important;
	font-weight: 600;
	text-decoration: underline;
}

/* Icona WhatsApp laterale; "torna su" del tema spostato sopra */
.bcws-fab {
	position: fixed;
	right: 12px;
	bottom: 16px;
	z-index: 349;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}

.bcws-fab:hover,
.bcws-fab:focus {
	transform: scale(1.08);
}

.bcws-fab svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.scrollToTop {
	right: 18px !important;
	bottom: 80px !important;
}

@media (prefers-reduced-motion: reduce) {
	.bcws-fab,
	.bcws-btn {
		transition: none;
	}
}
