/**
 * Sitewide product-card hover: cart control centered on the photo,
 * product image stays visible (no white flash).
 *
 * Covers EAEL Woo Product Carousel (all presets) and Astra/Woo product loops.
 */

/* -------------------------------------------------------------------------- */
/* EAEL Woo Product Carousel — center icons on the image                      */
/* -------------------------------------------------------------------------- */

.eael-woo-product-carousel-container .product-image-wrap,
.eael-woo-product-carousel-container .eael-product-carousel .product-image-wrap {
	position: relative !important;
}

/* Keep primary photo visible on hover */
.eael-woo-product-carousel-container .product-image-wrap .image-wrap,
.eael-woo-product-carousel-container .product-image-wrap .image-wrap img,
.eael-woo-product-carousel-container .eael-product-carousel:hover .product-image-wrap .image-wrap img {
	opacity: 1 !important;
	visibility: visible !important;
}

/* Hover layer: soft dim only — never solid white covering the bike */
.eael-woo-product-carousel-container .product-image-wrap .image-hover-wrap {
	position: absolute !important;
	inset: 0 !important;
	z-index: 2 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: transparent !important;
	background-color: transparent !important;
	pointer-events: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		background-color 0.25s ease !important;
}

.eael-woo-product-carousel-container .eael-product-carousel:hover .product-image-wrap .image-hover-wrap,
.eael-woo-product-carousel-container .product-image-wrap:hover .image-hover-wrap {
	opacity: 1 !important;
	visibility: visible !important;
	background-color: rgba(15, 23, 42, 0.28) !important;
}

.eael-woo-product-carousel-container .product-image-wrap .image-hover-wrap a,
.eael-woo-product-carousel-container .product-image-wrap .image-hover-wrap button,
.eael-woo-product-carousel-container .product-image-wrap .image-hover-wrap li,
.eael-woo-product-carousel-container .product-image-wrap .icons-wrap,
.eael-woo-product-carousel-container .product-image-wrap .icons-wrap a,
.eael-woo-product-carousel-container .product-image-wrap .icons-wrap button {
	pointer-events: auto !important;
}

/*
 * Force cart/icons dead-center on the photo.
 * Overrides EAEL block-style bottom:0 / bottom:-50px / translateY hacks.
 */
.eael-woo-product-carousel-container .icons-wrap,
.eael-woo-product-carousel-container .icons-wrap.box-style,
.eael-woo-product-carousel-container .icons-wrap.block-style,
.eael-woo-product-carousel-container .eael-product-carousel:hover .icons-wrap,
.eael-woo-product-carousel-container .eael-product-carousel:hover .icons-wrap.box-style,
.eael-woo-product-carousel-container .eael-product-carousel:hover .icons-wrap.block-style,
.eael-woo-product-carousel-container .eael-woo-product-carousel.eael-hover-buttons .eael-product-carousel:hover .icons-wrap.block-style,
.eael-woo-product-carousel-container .eael-woo-product-carousel.eael-static-buttons .eael-product-carousel .icons-wrap.block-style,
.eael-woo-product-carousel-container.preset-1 .icons-wrap,
.eael-woo-product-carousel-container.preset-2 .icons-wrap,
.eael-woo-product-carousel-container.preset-3 .icons-wrap,
.eael-woo-product-carousel-container.preset-4 .icons-wrap {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	width: auto !important;
	max-width: calc(100% - 1.5rem) !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translate(-50%, -50%) !important;
	-webkit-transform: translate(-50%, -50%) !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	z-index: 9 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	grid-template-columns: none !important;
}

.eael-woo-product-carousel-container .icons-wrap li,
.eael-woo-product-carousel-container .icons-wrap.block-style li,
.eael-woo-product-carousel-container .eael-product-carousel:hover .icons-wrap li {
	flex: 0 0 auto !important;
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	transform: none !important;
	-webkit-transform: none !important;
}

.eael-woo-product-carousel-container .icons-wrap li a,
.eael-woo-product-carousel-container .icons-wrap li button,
.eael-woo-product-carousel-container .icons-wrap li a.button,
.eael-woo-product-carousel-container .icons-wrap li a.add_to_cart_button,
.eael-woo-product-carousel-container .icons-wrap.block-style li a,
.eael-woo-product-carousel-container .icons-wrap.box-style li a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.4rem !important;
	min-width: 3rem !important;
	min-height: 3rem !important;
	width: auto !important;
	height: auto !important;
	padding: 0.65rem 1rem !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: #008afd !important;
	background-color: #008afd !important;
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28) !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

.eael-woo-product-carousel-container .icons-wrap li a:hover,
.eael-woo-product-carousel-container .icons-wrap li a:focus,
.eael-woo-product-carousel-container .icons-wrap li a.button:hover,
.eael-woo-product-carousel-container .icons-wrap.block-style li a:hover,
.eael-woo-product-carousel-container .icons-wrap.box-style li a:hover {
	background: #0070cc !important;
	background-color: #0070cc !important;
	color: #fff !important;
}

.eael-woo-product-carousel-container .icons-wrap li a svg,
.eael-woo-product-carousel-container .icons-wrap li a:hover svg {
	fill: #fff !important;
}

/* -------------------------------------------------------------------------- */
/* Astra / Woo product loops (categories, related, upsells)                   */
/* -------------------------------------------------------------------------- */

ul.products li.product .astra-shop-thumbnail-wrap,
ul.products li.product .ast-woo-product-animation,
.related.products ul.products li.product .astra-shop-thumbnail-wrap,
.upsells.products ul.products li.product .astra-shop-thumbnail-wrap {
	position: relative !important;
}

/*
 * Out-of-stock badge inside thumbnail link: own line-height so text
 * does not collapse when parent <a> uses line-height:0 for images.
 */
ul.products li.product .ast-shop-product-out-of-stock,
.related.products ul.products li.product .ast-shop-product-out-of-stock,
.upsells.products ul.products li.product .ast-shop-product-out-of-stock {
	position: absolute !important;
	left: 0.65rem !important;
	right: 0.65rem !important;
	bottom: 0.65rem !important;
	top: auto !important;
	z-index: 5 !important;
	display: block !important;
	margin: 0 !important;
	padding: 0.45rem 0.55rem !important;
	border-radius: 6px !important;
	background: rgba(15, 23, 42, 0.88) !important;
	color: #fff !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-transform: uppercase !important;
	white-space: normal !important;
	pointer-events: none !important;
	box-sizing: border-box !important;
}

/* Keep product image link background clear on hover (image links only) */
ul.products li.product:hover .astra-shop-thumbnail-wrap .woocommerce-loop-product__link,
ul.products li.product:hover .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
ul.products li.product:hover .ast-woo-product-animation .woocommerce-loop-product__link,
ul.products li.product:hover .ast-woo-product-animation a.woocommerce-LoopProduct-link {
	background-color: transparent !important;
}

/* Photo stays visible on hover and after ajax add-to-cart */
ul.products li.product .astra-shop-thumbnail-wrap img,
ul.products li.product .ast-woo-product-animation img,
ul.products li.product:hover .astra-shop-thumbnail-wrap img,
ul.products li.product:hover .ast-woo-product-animation img,
ul.products li.product .astra-shop-thumbnail-wrap .added ~ img,
ul.products li.product .astra-shop-thumbnail-wrap a.added img,
ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link img {
	opacity: 1 !important;
	visibility: visible !important;
}

/*
 * Center Astra modern on-card cart icon on the photo
 * (overrides Astra top:1em / right:1em corner placement).
 */
ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button:not(.ast-onsale-card),
ul.products li.product .ast-woo-product-animation .ast-on-card-button:not(.ast-onsale-card),
ul.products li.product .astra-shop-thumbnail-wrap a.ast-select-options-trigger,
ul.products li.product .ast-woo-product-animation a.ast-select-options-trigger {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 6 !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translate(-50%, -50%) !important;
	-webkit-transform: translate(-50%, -50%) !important;
	background: transparent !important;
	background-color: transparent !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Hide Astra hover tooltip (“In winkelwagen”) on the on-card cart icon */
ul.products li.product .ast-card-action-tooltip,
ul.products li.product .ast-on-card-button .ast-card-action-tooltip,
ul.products li.product .ast-on-card-button:hover .ast-card-action-tooltip,
ul.products li.product .ast-on-card-button:focus .ast-card-action-tooltip {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button .ahfb-svg-iconset,
ul.products li.product .ast-woo-product-animation .ast-on-card-button .ahfb-svg-iconset {
	opacity: 1 !important;
	width: 2.75rem !important;
	height: 2.75rem !important;
	border-radius: 50% !important;
	background: #008afd !important;
	background-color: #008afd !important;
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button svg,
ul.products li.product .ast-woo-product-animation .ast-on-card-button svg {
	fill: #fff !important;
	color: #fff !important;
}

/* Soft dim behind centered cart control on hover */
ul.products li.product .astra-shop-thumbnail-wrap:hover::after,
ul.products li.product .ast-woo-product-animation:hover::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background-color: rgba(15, 23, 42, 0.22);
	transition: background-color 0.25s ease;
}

/*
 * "Bekijk winkelwagen" injected into the thumbnail after ajax add-to-cart:
 * center over the photo — never full-bleed white.
 */
ul.products li.product .astra-shop-thumbnail-wrap a.added_to_cart,
ul.products li.product .ast-woo-product-animation a.added_to_cart {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 7 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	max-width: calc(100% - 1.5rem) !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.65rem 1.1rem !important;
	transform: translate(-50%, -50%) !important;
	-webkit-transform: translate(-50%, -50%) !important;
	border: none !important;
	border-radius: 999px !important;
	background: #008afd !important;
	background-color: #008afd !important;
	color: #fff !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28) !important;
	align-self: auto !important;
}

ul.products li.product .astra-shop-thumbnail-wrap a.added_to_cart:hover,
ul.products li.product .astra-shop-thumbnail-wrap a.added_to_cart:focus,
ul.products li.product .ast-woo-product-animation a.added_to_cart:hover,
ul.products li.product .ast-woo-product-animation a.added_to_cart:focus {
	background: #0070cc !important;
	background-color: #0070cc !important;
	color: #fff !important;
}

/*
 * Legacy / other absolute ATC controls over the thumbnail.
 */
ul.products li.product .astra-shop-thumbnail-wrap .button.add_to_cart_button,
ul.products li.product .astra-shop-thumbnail-wrap a.button.add_to_cart_button,
ul.products li.product .ast-woo-product-animation .button.add_to_cart_button,
ul.products li.product .astra-shop-thumbnail-wrap .icons-wrap,
ul.products li.product .ast-woo-product-animation .icons-wrap {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 5 !important;
	transform: translate(-50%, -50%) !important;
	-webkit-transform: translate(-50%, -50%) !important;
	margin: 0 !important;
}