/**
 * Shop page hero banner — Figma overlay layout.
 *
 * Single <img> with object-fit: cover (no CSS background-image — that caused
 * vertical tiling/repeat in the Elementor editor when height was increased).
 */

.anabelis-shop-banner {
	--anabelis-shop-banner-inset: clamp(16px, 2.5vw, 28px);
	--anabelis-banner-focal-y: 12%;
	--anabelis-banner-media-height: 586px;
	width: 100%;
	background: #ffffff;
	color: #111111;
	box-sizing: border-box;
}

/*
 * Woodmart "overlap content" header (whb-overcontent / wd-header-overlap) sits
 * on top of the first content block with z-index ~390. Without offset, the top
 * of the banner image is hidden under the header. Push the image down using
 * Woodmart's --wd-header-h; header styling/behavior is unchanged.
 */
body.wd-header-overlap.anabelis-shop-presentation .anabelis-shop-banner__media {
	height: calc(var(--anabelis-banner-media-height, 586px) + var(--wd-header-h, 0px)) !important;
}

body.wd-header-overlap.anabelis-shop-presentation .anabelis-shop-banner__image {
	top: var(--wd-header-h, 0px);
	height: var(--anabelis-banner-media-height, 586px);
}

body.wd-header-overlap.anabelis-shop-presentation .anabelis-shop-banner__shadow {
	bottom: 0;
}

.anabelis-shop-banner__media {
	position: relative;
	width: 100%;
	height: 586px;
	overflow: hidden;
	background-color: #ffffff;
}

.anabelis-shop-banner__image {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center var(--anabelis-banner-focal-y, 12%);
}

.anabelis-shop-banner__shadow {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: clamp(160px, 38%, 280px);
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.25) 28%,
		rgba(255, 255, 255, 0.88) 72%,
		#ffffff 100%
	);
	pointer-events: none;
}

.anabelis-shop-banner__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	background: transparent;
	padding: 0 0 clamp(24px, 3vw, 36px);
	box-sizing: border-box;
}

.anabelis-shop-banner__content--no-image {
	position: static;
	background: #ffffff;
	padding: clamp(32px, 4vw, 40px) 0 clamp(24px, 3vw, 32px);
	line-height: normal;
}

.anabelis-shop-banner__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-left: var(--anabelis-shop-banner-inset);
	padding-right: var(--anabelis-shop-banner-inset);
	box-sizing: border-box;
	text-align: left;
	line-height: normal;
}

.anabelis-shop-banner__title {
	margin: 0 0 10px;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
	color: #111111;
	text-align: left;
	font-family: 'Satoshi', 'Santoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.anabelis-shop-banner__lead {
	margin: 0;
	max-width: 680px;
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.65;
	color: #555555;
	text-align: left;
	font-family: 'Satoshi', 'Santoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Elementor editor + frontend — keep img filling the media box */
.elementor-widget-anabelis_shop_banner .anabelis-shop-banner__media {
	overflow: hidden;
}

.elementor-widget-anabelis_shop_banner .anabelis-shop-banner__image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

body.wd-header-overlap.anabelis-shop-presentation .elementor-widget-anabelis_shop_banner .anabelis-shop-banner__image {
	top: var(--wd-header-h, 0px) !important;
	height: var(--anabelis-banner-media-height, 586px) !important;
}

@media (max-width: 767px) {
	.anabelis-shop-banner {
		--anabelis-shop-banner-inset: 12px;
		--anabelis-banner-focal-y: 18%;
		--anabelis-banner-media-height: clamp(320px, 72vw, 420px);
	}

	.anabelis-shop-banner__media {
		height: clamp(320px, 72vw, 420px);
	}

	body.wd-header-overlap.anabelis-shop-presentation .anabelis-shop-banner__media {
		height: calc(var(--anabelis-banner-media-height, clamp(320px, 72vw, 420px)) + var(--wd-header-h, 0px)) !important;
	}

	body.wd-header-overlap.anabelis-shop-presentation .anabelis-shop-banner__image {
		height: var(--anabelis-banner-media-height, clamp(320px, 72vw, 420px));
	}

	.anabelis-shop-banner__shadow {
		height: clamp(120px, 42%, 200px);
	}

	.anabelis-shop-banner__title {
		margin-bottom: 8px;
		font-size: clamp(1.5rem, 6vw, 1.85rem);
	}

	.anabelis-shop-banner__lead {
		line-height: 1.55;
		font-size: 0.95rem;
	}
}
