/**
 * Product list / category archive banners (diy mapping).
 */

/* Hide remaining CTA chrome on archive Elementor banners */
body.archive.woocommerce .elementor-location-archive .banner-button,
body.archive.woocommerce .elementor-location-archive .button-wrap,
body.tax-product_cat .elementor-location-archive .banner-button,
body.tax-product_cat .elementor-location-archive .button-wrap,
body.post-type-archive-product .elementor-location-archive .banner-button,
body.post-type-archive-product .elementor-location-archive .button-wrap,
body.archive.woocommerce .elementor-8590 .banner-button,
body.archive.woocommerce .elementor-8590 .button-wrap,
body.tax-product_cat .elementor-8590 .banner-button,
body.tax-product_cat .elementor-8590 .button-wrap,
body.post-type-archive-product .elementor-8590 .banner-button,
body.post-type-archive-product .elementor-8590 .button-wrap {
	display: none !important;
}

/* Height follows the image; never force a crop box that stretches the bitmap */
body.archive.woocommerce .elementor-location-archive .elementor-widget-banner .banner,
body.tax-product_cat .elementor-location-archive .elementor-widget-banner .banner,
body.post-type-archive-product .elementor-location-archive .elementor-widget-banner .banner,
body.archive.woocommerce .elementor-8590 .elementor-widget-banner .banner,
body.tax-product_cat .elementor-8590 .elementor-widget-banner .banner,
body.post-type-archive-product .elementor-8590 .elementor-widget-banner .banner {
	border-radius: 10px;
	overflow: hidden;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	line-height: 0;
	background: transparent;
	align-self: flex-start;
	flex: 0 0 auto;
}

body.archive.woocommerce .elementor-location-archive .elementor-widget-banner .banner img,
body.tax-product_cat .elementor-location-archive .elementor-widget-banner .banner img,
body.post-type-archive-product .elementor-location-archive .elementor-widget-banner .banner img,
body.archive.woocommerce .elementor-8590 .elementor-widget-banner .banner img,
body.tax-product_cat .elementor-8590 .elementor-widget-banner .banner img,
body.post-type-archive-product .elementor-8590 .elementor-widget-banner .banner img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	/* cover (not unset): if any min-height still leaks, crop instead of stretch */
	object-fit: cover !important;
	object-position: center center;
	/* Fansidea category art ~1400×496 — locks ratio when empty results shorten the page */
	aspect-ratio: 1400 / 496;
}

body.archive.woocommerce .elementor-8590 .elementor-widget-banner,
body.tax-product_cat .elementor-8590 .elementor-widget-banner,
body.post-type-archive-product .elementor-8590 .elementor-widget-banner {
	align-self: flex-start;
	height: auto !important;
	min-height: 0 !important;
}

/* Beat Elementor archive template tablet/mobile min-height (400px / 380px) */
@media (max-width: 1024px) {
	body.archive.woocommerce .elementor-8590 .elementor-element.elementor-element-23886edb .banner img,
	body.tax-product_cat .elementor-8590 .elementor-element.elementor-element-23886edb .banner img,
	body.post-type-archive-product .elementor-8590 .elementor-element.elementor-element-23886edb .banner img,
	body.archive.woocommerce .elementor-8590 .elementor-widget-banner .banner img,
	body.tax-product_cat .elementor-8590 .elementor-widget-banner .banner img,
	body.post-type-archive-product .elementor-8590 .elementor-widget-banner .banner img {
		min-height: 0 !important;
		max-height: none !important;
		height: auto !important;
		object-fit: cover !important;
		aspect-ratio: 1400 / 496;
	}
}

/* Hide leftover Marseille text overlays (image already has its own CTAs) */
body.archive.woocommerce .elementor-location-archive .elementor-widget-banner .banner-content,
body.tax-product_cat .elementor-location-archive .elementor-widget-banner .banner-content,
body.post-type-archive-product .elementor-location-archive .elementor-widget-banner .banner-content,
body.archive.woocommerce .elementor-8590 .elementor-widget-banner .banner-content,
body.tax-product_cat .elementor-8590 .elementor-widget-banner .banner-content,
body.post-type-archive-product .elementor-8590 .elementor-widget-banner .banner-content {
	display: none !important;
}
