/* Tech Specs labels inside WoodMart .product-labels (shop/archive/carousel thumbnails) */

.product-labels .product-label.tech-specs-product-label {
	text-transform: none;
	font-weight: 600;
	white-space: nowrap;
}

.product-labels .product-label.tech-specs-sale-discount,
.product-labels:has(.tech-specs-product-label) .tech-specs-sale-discount {
	position: absolute;
	top: 7px;
	inset-inline-start: 7px;
	inset-inline-end: auto;
	bottom: auto;
	z-index: 3;
	min-width: 66px;
	min-height: 19px;
	padding: 2px 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-family: 'Roboto', 'Roboto Flex', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: linear-gradient(90deg, #f40000 0%, #b20002 100%);
	border: none;
	text-transform: none;
	white-space: nowrap;
	pointer-events: none;
}

/* Spread top/bottom slots across the image area instead of stacking top-left */
.product-labels:has(.tech-specs-product-label) {
	top: 0;
	inset-inline: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
	flex-direction: unset;
	gap: 0;
	pointer-events: none;
}

.product-labels:has(.tech-specs-product-label) .tech-specs-product-label {
	position: absolute;
	pointer-events: auto;
	z-index: 2;
}

.product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-top {
	top: 10px;
	inset-inline-start: 10px;
	inset-inline-end: auto;
	bottom: auto;
}

.product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-bottom {
	bottom: 10px;
	inset-inline-end: 10px;
	inset-inline-start: auto;
	top: auto;
}

.wd-product.wd-hover-info .product-labels:has(.tech-specs-product-label),
.wd-product.wd-hover-info .product-labels:has(.tech-specs-product-label)[class*="labels-rounded"] {
	inset-inline: 0;
	align-items: unset;
	max-width: none;
}

/* Grid gallery slider (archive/carousel): labels above .wd-product-grid-slider-nav (z-index 4) */
.product-image-link:has(.wd-product-grid-slider) .product-labels:has(.tech-specs-product-label),
.product-element-top:has(.wd-product-grid-slider) .product-labels:has(.tech-specs-product-label) {
	z-index: 5;
}

.product-image-link:has(.wd-product-grid-slider) .product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-top,
.product-element-top:has(.wd-product-grid-slider) .product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-top {
	top: 10px;
	inset-inline-start: 10px;
}

.product-image-link:has(.wd-product-grid-slider) .product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-bottom,
.product-element-top:has(.wd-product-grid-slider) .product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-bottom {
	bottom: 7px;
	inset-inline-end: 7px;
}

/* Keep bottom label clear of slider pagination dots when visible */
.product-image-link:has(.wd-product-grid-slider-pagin) .product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-bottom {
	bottom: 14px;
}

@media (max-width: 576px) {
	.product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-top {
		top: 5px;
		inset-inline-start: 5px;
	}

	.product-labels .product-label.tech-specs-sale-discount,
	.product-labels:has(.tech-specs-product-label) .tech-specs-sale-discount {
		top: 5px;
		inset-inline-start: 5px;
	}

	.product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-bottom {
		bottom: 5px;
		inset-inline-end: 5px;
	}

	.product-image-link:has(.wd-product-grid-slider-pagin) .product-labels:has(.tech-specs-product-label) .tech-specs-product-label.label-bottom {
		bottom: 12px;
	}
}
