/**
 * Related / upsells product cards on single product (same PLP card as test3 archives).
 */

body.single-product .related-wrapper .related.products > h2,
body.single-product .related-wrapper .upsells.products > h2 {
	text-align: left;
}

/* Category label */
body.single-product .related.products ul.products li.product p.product__categories,
body.single-product .upsells.products ul.products li.product p.product__categories {
	position: relative;
	margin: 0 0 0.25rem;
	color: #444;
	font-size: clamp(0.625rem, 0.5615rem + 0.2033vw, 0.6875rem);
	line-height: 1.4;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-align: center;
	-webkit-font-smoothing: antialiased;
}

body.single-product .related.products ul.products li.product p.product__categories a,
body.single-product .upsells.products ul.products li.product p.product__categories a {
	color: #444;
	text-decoration: none;
}

body.single-product .related.products ul.products li.product:hover,
body.single-product .upsells.products ul.products li.product:hover {
	z-index: 2;
}

body.single-product .related.products ul.products li.product img,
body.single-product .upsells.products ul.products li.product img {
	display: block;
	width: 100%;
	margin: 0;
	transition: all 0.2s ease-in-out;
}

@media (min-width: 993px) {
	body.single-product .related.products ul.products li.product:not(.product-category):not(:has(.gallery-image)):hover img,
	body.single-product .upsells.products ul.products li.product:not(.product-category):not(:has(.gallery-image)):hover img {
		transform: scale(0.98);
	}
}

body.single-product .related.products ul.products li.product .woocommerce-image__wrapper,
body.single-product .upsells.products ul.products li.product .woocommerce-image__wrapper {
	position: relative;
	width: 100%;
	transition: all 0.2s ease-in-out;
}

@media (min-width: 993px) {
	body.single-product .related.products ul.products li.product:not(.product-category):not(:has(.gallery-image)):hover .woocommerce-image__wrapper,
	body.single-product .upsells.products ul.products li.product:not(.product-category):not(:has(.gallery-image)):hover .woocommerce-image__wrapper {
		transform: scale(0.982);
	}

	body.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image),
	body.single-product .upsells.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) {
		transition: none;
	}
}

body.single-product .related.products ul.products li.product .woocommerce-card__header,
body.single-product .upsells.products ul.products li.product .woocommerce-card__header {
	clear: both;
	padding-top: 0.75rem;
	text-align: center;
}

body.single-product.product-align-center .related-wrapper .related.products ul.products li.product,
body.single-product.product-align-center .related-wrapper .upsells.products ul.products li.product {
	text-align: center;
}

body.single-product .related.products ul.products li.product .woocommerce-LoopProduct-link,
body.single-product .upsells.products ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	color: #2c2d33;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .related.products ul.products li.product h2,
body.single-product .upsells.products ul.products li.product h2 {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	margin: 0;
	text-align: left;
	color: #444;
	font-size: clamp(0.9375rem, 0.8105rem + 0.2033vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.4;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title a,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

body.single-product .related.products ul.products li.product .price,
body.single-product .upsells.products ul.products li.product .price {
	display: block;
	margin-bottom: 0.75rem;
	color: #111 !important;
	font-size: clamp(0.75rem, 0.623rem + 0.4065vw, 0.875rem);
	text-align: center;
}

body.single-product .related.products ul.products li.product .price .woocommerce-Price-amount,
body.single-product .upsells.products ul.products li.product .price .woocommerce-Price-amount,
body.single-product .related.products ul.products li.product .price ins,
body.single-product .upsells.products ul.products li.product .price ins {
	color: #111;
	font-weight: 700;
}

body.single-product .related.products ul.products li.product .woocommerce-card__header .button,
body.single-product .upsells.products ul.products li.product .woocommerce-card__header .button,
body.single-product .related.products ul.products li.product .woocommerce-card__header .added_to_cart,
body.single-product .upsells.products ul.products li.product .woocommerce-card__header .added_to_cart {
	display: block;
	position: relative;
	z-index: 1;
	bottom: auto;
	width: 100%;
	max-width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	background-color: var(--hq-color-primary, #e0cee5);
	color: #fff !important;
	font-family: inherit;
	font-size: clamp(0.75rem, 0.623rem + 0.4065vw, 0.875rem);
	font-weight: 600;
	line-height: 40px;
	text-align: center;
	text-decoration: none;
	opacity: 1;
	box-shadow: none;
	transition: background-color 0.15s ease;
}

body.single-product .related.products ul.products li.product .woocommerce-card__header .button:hover,
body.single-product .upsells.products ul.products li.product .woocommerce-card__header .button:hover,
body.single-product .related.products ul.products li.product .woocommerce-card__header .button:focus-visible,
body.single-product .upsells.products ul.products li.product .woocommerce-card__header .button:focus-visible {
	background-color: var(--hq-color-primary-hover, #d9b2e4);
	color: #fff !important;
}

body.single-product .related.products ul.products li.product .button.added,
body.single-product .upsells.products ul.products li.product .button.added {
	display: none;
}

@media (min-width: 993px) {
	body.single-product .related.products ul.products li.product:not(.product-category),
	body.single-product .upsells.products ul.products li.product:not(.product-category) {
		padding-bottom: 0;
		align-self: flex-start;
	}
}

@media (max-width: 992px) {
	body.single-product .related-wrapper section.related.products ul.products.columns-4,
	body.single-product .related-wrapper section.upsells.products ul.products.columns-4 {
		display: flex;
		overflow-x: scroll;
		flex-wrap: nowrap;
		width: calc(100% + 30px);
		margin-left: -15px;
		padding-top: 5px;
		padding-right: 1em;
		padding-bottom: 20px;
		padding-left: 0;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}

	body.single-product .related.products ul.products li.product:not(.product-category),
	body.single-product .upsells.products ul.products li.product:not(.product-category) {
		display: flex;
		flex-direction: column;
		float: none;
		width: auto;
		max-width: 320px;
		min-width: 320px;
		scroll-snap-align: center;
		padding: 0 15px;
	}

	body.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-card__header,
	body.single-product .upsells.products ul.products li.product:not(.product-category) .woocommerce-card__header {
		display: flex;
		flex-direction: column;
		flex: 1;
		box-shadow: 0 0 10px rgb(0 0 0 / 10%);
		padding: 15px;
	}

	body.single-product .related.products ul.products li.product .woocommerce-card__header .button,
	body.single-product .upsells.products ul.products li.product .woocommerce-card__header .button {
		margin-top: auto;
		height: auto;
		line-height: inherit;
		padding: 8px 12px;
	}

	body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
	body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
		font-size: clamp(0.8125rem, 0.749rem + 0.2033vw, 0.875rem);
	}

	body.single-product .related.products ul.products li.product .woocommerce-image__wrapper,
	body.single-product .upsells.products ul.products li.product .woocommerce-image__wrapper {
		aspect-ratio: 1;
		overflow: hidden;
		flex-shrink: 0;
	}

	body.single-product .related.products ul.products li.product .woocommerce-image__wrapper img,
	body.single-product .upsells.products ul.products li.product .woocommerce-image__wrapper img {
		height: 100%;
		object-fit: cover;
	}
}

/* Gallery image slide (product-card-hover.css) */
body.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image),
body.single-product .upsells.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) {
	overflow: hidden;
}

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

body.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper,
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper,
	body.single-product .upsells.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper {
		height: 100%;
	}

	body.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
	body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .gallery-image,
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image),
body.single-product .upsells.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image),
body.single-product .related.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image),
body.single-product .upsells.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image),
body.single-product .related.products ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image),
body.single-product .upsells.products ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) {
	transform: none;
}

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

body.single-product .related.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.single-product .upsells.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.single-product .related.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.single-product .upsells.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-image-wrapper > img:not(.gallery-image),
body.single-product .related.products 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.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--pagination,
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot,
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category) .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.single-product .upsells.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.single-product .related.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.single-product .upsells.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.single-product .related.products ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot.active,
body.single-product .upsells.products 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.single-product .related.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.single-product .upsells.products ul.products li.product:not(.product-category):hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.single-product .related.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.single-product .upsells.products ul.products li.product:not(.product-category):focus-within .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.single-product .related.products ul.products li.product:not(.product-category).hq-plp-image-hover .woocommerce-image__wrapper:has(.gallery-image) .shoptimizer-plp-carousel--dot:not(.active),
body.single-product .upsells.products 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;
}
