.vc-fav-heart-wrap {
	display: inline-flex;
	line-height: 0;
}

.vc-fav-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 1px solid #e53935 !important;
	border-radius: 50%;
	background: #fff !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.vc-fav-heart__svg {
	display: block;
	width: 18px;
	height: 18px;
	overflow: visible;
}

.vc-fav-heart--on .vc-fav-heart__svg path {
	fill: #e53935;
}

.vc-fav-heart.vc-fav-heart--pulse {
	animation: vc-fav-heart-pop 0.45s ease;
}

@keyframes vc-fav-heart-pop {
	0% {
		transform: scale(1);
	}
	35% {
		transform: scale(1.28);
	}
	70% {
		transform: scale(0.94);
	}
	100% {
		transform: scale(1);
	}
}

/* Loop: cuore in alto a sinistra sulla thumbnail (non wrappare l'img). */
.woocommerce ul.products li.product {
	position: relative;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
	position: relative !important;
	display: block;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	position: relative;
	display: block;
}

/* Legacy: se resta un anchor vuoto/errato, non creare il quadratino. */
.woocommerce ul.products li.product .vc-fav-heart-loop-anchor {
	position: static !important;
	top: auto !important;
	left: auto !important;
	display: contents !important;
	pointer-events: none;
}

.woocommerce ul.products li.product .vc-fav-heart-loop-anchor > img {
	position: static !important;
	width: 100% !important;
	height: auto !important;
}

.woocommerce ul.products li.product .tinv-wraper,
.woocommerce ul.products li.product .tinvwl-loop-button-wrapper,
.woocommerce ul.products li.product .vc-fav-heart-loop-anchor .tinv-wraper {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	z-index: 30 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
	pointer-events: auto;
}

.woocommerce ul.products li.product .tinvwl-tooltip {
	display: none !important;
}

/* Nascondi badge "In vendita!" / "Offerta!" + eventuali quadratini bianchi */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .ast-onsale-card,
.woocommerce ul.products li.product .ast-on-card-button.ast-onsale-card,
.woocommerce ul.products li.product .ast-on-card-button:not(.ast-quick-view-trigger),
.woocommerce span.onsale,
.wc-block-grid__product-onsale {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
	background: transparent !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	background: transparent !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img.size-woocommerce_thumbnail {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	margin: 0 !important;
}

.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button .ftinvwl,
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button img,
.single-product .tinvwl_add_to_wishlist_button .ftinvwl,
.single-product .tinvwl_add_to_wishlist_button img {
	display: none !important;
}

.single-product .vc-fav-heart-wrap {
	margin-left: 8px;
	vertical-align: middle;
}

.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

body.vc-private-myaccount-shell .vc-mobile-wcfm-profile__row[href*="wishlist"] .vc-mobile-wcfm-profile__icon {
	color: #e53935;
}

body.woocommerce-account .wishlist_table .product-remove a {
	min-width: 44px;
	min-height: 44px;
}

@media (max-width: 782px) {
	.vc-fav-heart {
		width: 38px;
		height: 38px;
	}

	.vc-fav-heart__svg {
		width: 19px;
		height: 19px;
	}

	.vc-fav-heart-loop-anchor,
	.woocommerce ul.products li.product .tinv-wraper,
	.woocommerce ul.products li.product .tinvwl-loop-button-wrapper {
		top: 6px;
		left: 6px;
		z-index: 30;
	}
}
