/* Lite Product Badge - WoodMart-first ultra-lightweight styles */

.lpb-img-wrap {
	position: relative;
	display: block;
}

/* Ensure WoodMart product image containers serve as positioning anchors */
.product-element-top,
.product-element-top .product-image-link,
.woocommerce-product-gallery__image {
	position: relative;
}

.lpb-corner {
	position: absolute;
	z-index: 15;
	display: flex;
	flex-direction: column;
	gap: 5px;
	pointer-events: none;
	max-width: calc(100% - 16px);
}

.lpb-pos-top-left,
.lpb-pos-bottom-left {
	align-items: flex-start;
}

.lpb-pos-top-right,
.lpb-pos-bottom-right {
	align-items: flex-end;
}

.lpb-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	line-height: 1.25;
	letter-spacing: 0.02em;
	white-space: nowrap;
	box-sizing: border-box;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.lpb-countdown {
	font-variant-numeric: tabular-nums;
	display: inline-block;
}

.lpb-badge-image {
	box-shadow: none;
	background: transparent;
}

.lpb-badge-image img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.lpb-shape-circle {
	aspect-ratio: 1 / 1;
	min-width: 44px;
	text-align: center;
	white-space: normal;
	padding: 6px !important;
}

.lpb-shape-ribbon {
	border-radius: 2px !important;
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%);
	padding-right: 16px !important;
}

.lpb-pos-top-right .lpb-shape-ribbon,
.lpb-pos-bottom-right .lpb-shape-ribbon {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6px 50%);
	padding-left: 16px !important;
	padding-right: 10px !important;
}

/* Optional lightweight CSS animations */
@keyframes lpb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}
.lpb-anim-pulse {
	animation: lpb-pulse 1.8s ease-in-out infinite;
}

@keyframes lpb-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}
.lpb-anim-bounce {
	animation: lpb-bounce 1.6s ease-in-out infinite;
}

@keyframes lpb-shake {
	0%, 60%, 100% { transform: translateX(0); }
	15%, 45% { transform: translateX(-3px); }
	30% { transform: translateX(3px); }
}
.lpb-anim-shake {
	animation: lpb-shake 2.2s ease-in-out infinite;
}

@media (max-width: 767px) {
	.lpb-hide-mobile {
		display: none !important;
	}
	.lpb-corner {
		transform: scale(var(--lpb-mobile-scale, 0.85));
	}
	.lpb-pos-top-left {
		transform-origin: top left;
	}
	.lpb-pos-top-right {
		transform-origin: top right;
	}
	.lpb-pos-bottom-left {
		transform-origin: bottom left;
	}
	.lpb-pos-bottom-right {
		transform-origin: bottom right;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lpb-anim-pulse,
	.lpb-anim-bounce,
	.lpb-anim-shake {
		animation: none;
	}
}
