/**
 * Product list / category archive banners (Fansidea 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 {
	display: none !important;
}

/* Height follows the image; no forced crop / letterbox */
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 {
	border-radius: 10px;
	overflow: hidden;
	height: auto !important;
	min-height: 0 !important;
	line-height: 0;
	background: transparent;
}

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 {
	display: block;
	width: 100%;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	object-fit: unset !important;
	object-position: center center;
	aspect-ratio: auto;
}

/* Override Elementor archive template min-height + cover (tablet/mobile) */
body.archive.woocommerce .elementor-8590 .elementor-element-23886edb .banner img,
body.tax-product_cat .elementor-8590 .elementor-element-23886edb .banner img,
body.post-type-archive-product .elementor-8590 .elementor-element-23886edb .banner img {
	min-height: 0 !important;
	max-height: none !important;
	height: auto !important;
	object-fit: unset !important;
}

/* 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 {
	display: none !important;
}
