/**
 * Product Hover - Lifestyle Image
 *
 * Slide-in from bottom effect on product card hover.
 * Pure CSS, no JS needed. 300ms ease transition.
 *
 * @package WayfinderProductExtras
 */

/* Lifestyle hover image for WooCommerce default loop (non-custom-card contexts) */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	position: relative;
	overflow: hidden;
}

.wayfinder-lifestyle-image {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translateY(101%);
	opacity: 0;
	transition: transform 300ms ease, opacity 300ms ease;
	z-index: 2;
}

.woocommerce ul.products li.product:hover .wayfinder-lifestyle-image {
	transform: translateY(0);
	opacity: 1;
}

/* NEW Badge Styles */
.wayfinder-new-badge,
.product-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 4px 8px;
	font-family: var(--font-body, 'Roboto', sans-serif);
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	background-color: var(--color-teal, #1BC7BA);
	border-radius: 50%;
	z-index: 3;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.product-card__lifestyle-image,
	.wayfinder-lifestyle-image,
	.product-card__image,
	.woocommerce ul.products li.product img {
		transition: none;
	}

	.product-card:hover .product-card__lifestyle-image,
	.product-card__image-wrapper:hover .product-card__lifestyle-image,
	.woocommerce ul.products li.product:hover .wayfinder-lifestyle-image {
		transform: none;
		opacity: 1;
	}
}
