/* Woodmart Custom Badges – Frontend */

/* Stellt sicher, dass die Badges relativ zum Produktbild positioniert werden. */
.woocommerce ul.products li.product .product-element-top,
.wd-product .product-element-top,
.product-grid-item .product-element-top,
.woocommerce ul.products li.product a.product-image-link,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	position: relative;
}

/* Container, der das Produktbild überlagert. */
.wcb-badges {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 6;
}

.wcb-badges .wcb-corner {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 92%;
}

.wcb-badges .wcb-top-left {
	top: 8px;
	left: 8px;
	align-items: flex-start;
}

.wcb-badges .wcb-top-right {
	top: 8px;
	right: 8px;
	align-items: flex-end;
}

.wcb-badges .wcb-bottom-left {
	bottom: 8px;
	left: 8px;
	align-items: flex-start;
}

.wcb-badges .wcb-bottom-right {
	bottom: 8px;
	right: 8px;
	align-items: flex-end;
}

/* Das eigentliche Badge. */
.wcb-badge {
	display: inline-block;
	line-height: 1.35;
	letter-spacing: 0.2px;
	white-space: nowrap;
	text-align: center;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
