/**
 * Product card image hover — horizontal slide (all viewports, test3 shoptimizer-child).
 */

/* Card header stacking (test3 Shoptimizer) */
.woocommerce ul.products li.product .woocommerce-card__header * {
	position: relative;
}

@media (max-width: 992px) {
	.archive.static-cta-buttons ul.products {
		margin-bottom: 2rem;
	}

	.static-cta-buttons ul.products li.product:not(.product-category) {
		margin-bottom: 0;
	}
}

/* Desktop-only: no slide-up card chrome */
@media (min-width: 993px) {
	.product-card__slide ul.products li.product:not(.product-category):before {
		display: none;
	}

	.product-card__slide ul.products li.product:not(.product-category) {
		padding-bottom: 0;
	}

	.product-card__slide ul.products li.product:not(.product-category):hover .woocommerce-card__header,
	.product-card__slide ul.products li.product:not(.product-category) .woocommerce-card__header {
		transform: none;
		transition: none;
		min-height: 0;
	}

	.woocommerce ul.products li.product:not(.product-category) .woocommerce-card__header .button,
	.woocommerce ul.products li.product:not(.product-category) .woocommerce-card__header .added_to_cart {
		position: relative;
		bottom: auto;
		width: 100%;
		height: auto;
		padding: 8px 12px;
		line-height: inherit;
		opacity: 1;
	}
}

/* Gallery slide — desktop hover, mobile touch class, keyboard focus */
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) {
	overflow: hidden;
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel-container, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel-container,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel-container {
	display: block;
	overflow: hidden;
	width: 100%;
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image) {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	opacity: 1;
	transform: translateX(0);
	transition: transform 0.8s ease;
	will-change: transform;
	backface-visibility: hidden;
}

@media (max-width: 992px) {
	body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper,
	body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper {
		height: 100%;
	}

	body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
	body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image) {
		height: 100%;
		object-fit: cover;
	}
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .gallery-image, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .gallery-image {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
	transform: translateX(100%);
	transition: transform 0.8s ease;
	will-change: transform;
	backface-visibility: hidden;
}

	body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image),
	body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image),
	body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image),
	body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image),
	body.tax-product_cat.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image),
	body.tax-product_tag.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) {
		transform: translateZ(0);
	}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .gallery-image, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .gallery-image, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .gallery-image, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .gallery-image {
	transform: translateX(0);
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image) {
	transform: translateX(-100%);
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--pagination, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--pagination,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--pagination {
	position: absolute;
	bottom: 12px;
	left: 50%;
	z-index: 10;
	display: flex;
	gap: 6px;
	justify-content: center;
	align-items: center;
	transform: translateX(-50%);
	pointer-events: none;
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot {
	width: 6px;
	height: 6px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	transition: all 0.4s ease;
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active {
	width: 14px;
	border-radius: 10px;
	background: #fff;
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active, body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active {
	width: 6px;
	background: rgba(255, 255, 255, 0.3);
}

body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.tax-product_cat.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active), body.hq-plp-archive.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.tax-product_tag.woocommerce ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active) {
	width: 14px;
	border-radius: 10px;
	background: #fff;
}
