.gibilaro_pr_labels {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 10;
	text-align: center;
}
.gibilaro_pr_labels .gibilaro_pr_label {
	display: inline-block;
	width: 58px;
	height: 30px;
	line-height: 30px;
	font-size: 13px;
	color: #ffffff;
	text-align: center;
	position: relative;
}
.gibilaro_pr_labels .gibilaro_pr_label:after {
	content: "";
	position: absolute;
	top: 100%;
	right: 0;
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
}
.gibilaro_pr_labels .gibilaro_pr_label.out-of-stock {
	background: #d61d1d;
}
.gibilaro_pr_labels .gibilaro_pr_label.out-of-stock:after {
	border-top: 5px solid #d61d1d;
}

/*
 * Elementor Pro Loop Grid renders each product card from a custom Loop Item
 * template, which never calls WooCommerce's woocommerce_sale_flash hook (the
 * PHP badge above only fires on a classic WooCommerce product loop). WordPress
 * core already stamps the "archive"/"sold" category straight onto the Loop Item
 * wrapper as a `product_cat-archive`/`product_cat-sold` class, so the badge is
 * applied here in pure CSS instead of chasing Elementor's render pipeline.
 */
[data-elementor-type="loop-item"].product_cat-archive,
[data-elementor-type="loop-item"].product_cat-sold {
	position: relative;
}
[data-elementor-type="loop-item"].product_cat-archive::before,
[data-elementor-type="loop-item"].product_cat-sold::before {
	content: "SOLD";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	padding: 18px 28px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.5px;
	color: #ffffff;
	background: #d61d1d;
	border-top-left-radius: 7px;
	border-bottom-right-radius: 7px;
}
