/* MySweet Hero Banner — v1.2.0 */
.msb {
	--msb-h: 520px;
	--msb-h-m: 560px;
	--msb-max: 1200px;
	--msb-radius: 0px;
	--msb-ease: cubic-bezier(.22, .8, .24, 1);
	position: relative;
	overflow: hidden;
	border-radius: var(--msb-radius);
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-y;
	user-select: none;
}
.msb *, .msb *::before, .msb *::after { box-sizing: border-box; }

/* Full width: break out of any boxed theme / Elementor container.
   CSS fallback first; banner.js then measures the exact offset. */
.msb--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
}
.msb--full.is-measured { width: var(--msb-fw); max-width: none; margin-left: var(--msb-fl); margin-right: 0; }
body:has(.msb--full) { overflow-x: clip; }

/* Track: every slide sits in the same grid cell, so the banner takes
   the height of the tallest slide — no jumping, no clipped text. */
.msb__track { display: grid; }
.msb__slide {
	grid-area: 1 / 1;
	position: relative;
	min-height: var(--msb-h);
	display: flex;
	align-items: center;
	color: var(--msb-text, #fff);
	background: var(--msb-bg, #b3242b);
	visibility: hidden;
	transition: transform .8s var(--msb-ease), opacity .8s var(--msb-ease), visibility 0s .8s;
}
.msb__slide.is-active { visibility: visible; transition: transform .8s var(--msb-ease), opacity .8s var(--msb-ease), visibility 0s; z-index: 2; }
.msb__slide.is-leaving { visibility: visible; z-index: 1; }

.msb--slide .msb__slide { transform: translateX(100%); }
.msb--slide .msb__slide.is-active { transform: translateX(0); }

.msb--fade .msb__slide { opacity: 0; }
.msb--fade .msb__slide.is-active { opacity: 1; }
.msb--fade .msb__slide.is-leaving { opacity: 0; }

/* Background layers */
.msb__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.msb__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.msb__bg-overlay { position: absolute; inset: 0; background: var(--msb-bg); opacity: var(--msb-overlay, .35); }
.msb__bg::after { /* soft vignette for depth */
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(120% 90% at 75% 50%, rgba(255,255,255,.14), transparent 55%),
	            linear-gradient(180deg, transparent 60%, rgba(0,0,0,.12));
}

.msb__shapes i { position: absolute; display: block; border-radius: 50%; }
.msb__shapes--bubbles i { background: rgba(255,255,255,.08); }
.msb__shapes--bubbles i:nth-child(1) { width: 520px; height: 520px; right: -140px; top: -180px; }
.msb__shapes--bubbles i:nth-child(2) { width: 260px; height: 260px; left: -90px; bottom: -110px; }
.msb__shapes--bubbles i:nth-child(3) { width: 90px;  height: 90px;  left: 42%; top: 12%; background: rgba(255,255,255,.06); }
.msb__shapes--bubbles i:nth-child(4) { width: 34px;  height: 34px;  left: 8%;  top: 18%; }
.msb__shapes--bubbles i:nth-child(5) { width: 18px;  height: 18px;  left: 48%; bottom: 16%; background: rgba(255,255,255,.18); }
.msb__shapes--dots i { width: 14px; height: 14px; background: rgba(255,255,255,.3); }
.msb__shapes--dots i:nth-child(1) { left: 6%;  top: 20%; width: 22px; height: 22px; }
.msb__shapes--dots i:nth-child(2) { left: 44%; top: 14%; background: rgba(255,240,120,.55); }
.msb__shapes--dots i:nth-child(3) { left: 38%; bottom: 18%; width: 10px; height: 10px; }
.msb__shapes--dots i:nth-child(4) { right: 7%;  top: 24%; width: 26px; height: 26px; background: rgba(255,255,255,.18); }
.msb__shapes--dots i:nth-child(5) { right: 14%; bottom: 14%; background: rgba(255,90,120,.45); }

/* Cheese holes: soft darker circles, like a slice of Swiss */
.msb__shapes--holes i { background: rgba(140, 80, 0, .13); box-shadow: inset 4px 6px 10px rgba(110, 60, 0, .14); }
.msb__shapes--holes i:nth-child(1) { width: 180px; height: 160px; right: 6%;  top: -50px; }
.msb__shapes--holes i:nth-child(2) { width: 120px; height: 110px; left: 4%;  bottom: -30px; }
.msb__shapes--holes i:nth-child(3) { width: 54px;  height: 50px;  left: 44%; top: 14%; }
.msb__shapes--holes i:nth-child(4) { width: 34px;  height: 30px;  left: 10%; top: 16%; }
.msb__shapes--holes i:nth-child(5) { width: 70px;  height: 64px;  right: 3%; bottom: 12%; }

/* Layout */
.msb__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--msb-max);
	margin: 0 auto;
	padding: 56px 64px 72px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
}
.msb__slide--img-left .msb__media { order: -1; }

.msb__content { max-width: 540px; }
.msb__slide--img-left .msb__content { justify-self: end; }

.msb__eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.16);
	border: 1px solid rgba(255,255,255,.28);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.2;
	backdrop-filter: blur(4px);
}
.msb__title {
	margin: 0 0 18px;
	color: inherit;
	font-family: var(--msb-font, inherit);
	font-size: clamp(30px, 4.2vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0,0,0,.12);
}
.msb__text {
	margin: 0 0 30px;
	color: inherit;
	opacity: .92;
	font-size: clamp(15px, 1.25vw, 18px);
	line-height: 1.6;
	max-width: 46ch;
}
.msb__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.msb__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 28px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: transform .25s var(--msb-ease), background-color .25s, color .25s, box-shadow .25s;
}
.msb__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--msb-ease); }
.msb__btn:hover svg { transform: translateX(4px); }
.msb__btn--outline { color: var(--msb-btn) !important; border: 2px solid var(--msb-btn); background: transparent; }
.msb__btn--outline:hover { background: var(--msb-btn); color: var(--msb-c1) !important; transform: translateY(-2px); }
.msb__btn--solid { color: var(--msb-c1) !important; background: var(--msb-btn); border: 2px solid var(--msb-btn); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.msb__btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.msb__btn--link { color: inherit !important; padding: 0 2px; min-height: 0; border-bottom: 2px solid rgba(255,255,255,.5); border-radius: 0; }
.msb__btn--link:hover { border-color: currentColor; }
.msb__btn:focus-visible, .msb__arrow:focus-visible, .msb__dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Product image */
.msb__media { position: relative; display: flex; align-items: center; justify-content: center; }
.msb__glow {
	position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 68%);
}
.msb__img {
	position: relative;
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: calc(var(--msb-h) - 110px);
	transform: scale(var(--msb-img-scale, 1));
	filter: drop-shadow(0 26px 30px rgba(0,0,0,.28));
}

/* Entrance animations (run each time a slide becomes active) */
.msb__slide .msb__eyebrow,
.msb__slide .msb__title,
.msb__slide .msb__text,
.msb__slide .msb__actions { opacity: 0; transform: translateY(24px); }
.msb__slide.is-active .msb__eyebrow,
.msb__slide.is-active .msb__title,
.msb__slide.is-active .msb__text,
.msb__slide.is-active .msb__actions { animation: msb-up .8s var(--msb-ease) forwards; }
.msb__slide.is-active .msb__eyebrow { animation-delay: .25s; }
.msb__slide.is-active .msb__title   { animation-delay: .35s; }
.msb__slide.is-active .msb__text    { animation-delay: .48s; }
.msb__slide.is-active .msb__actions { animation-delay: .6s; }
@keyframes msb-up { to { opacity: 1; transform: none; } }

.msb__slide .msb__media { opacity: 0; transition: opacity .6s .3s; }
.msb__slide.is-active .msb__media { opacity: 1; }
.msb__slide--anim-float.is-active .msb__img { animation: msb-float 6s ease-in-out .9s infinite; }
.msb__slide--anim-zoom.is-active .msb__img  { animation: msb-zoom 1s var(--msb-ease) .3s both; }
@keyframes msb-float {
	0%, 100% { transform: scale(var(--msb-img-scale, 1)) translateY(0) rotate(0); }
	50%      { transform: scale(var(--msb-img-scale, 1)) translateY(-14px) rotate(-1.5deg); }
}
@keyframes msb-zoom {
	from { transform: scale(calc(var(--msb-img-scale, 1) * .7)) rotate(-6deg); opacity: 0; }
	to   { transform: scale(var(--msb-img-scale, 1)) rotate(0); opacity: 1; }
}

/* Controls */
.msb__arrow {
	position: absolute; top: 50%; z-index: 5;
	width: 48px; height: 48px; margin-top: -24px; padding: 0;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.16);
	color: #fff; cursor: pointer;
	backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .3s, background-color .25s, transform .25s;
}
.msb:hover .msb__arrow, .msb__arrow:focus-visible { opacity: 1; }
.msb__arrow:hover { background: rgba(255,255,255,.3); transform: scale(1.06); }
.msb__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.msb__arrow--prev { left: 20px; }
.msb__arrow--next { right: 20px; }

.msb__dots {
	position: absolute; left: 50%; bottom: 22px; z-index: 5;
	display: flex; gap: 6px; transform: translateX(-50%);
}
.msb__dot {
	position: relative; overflow: hidden;
	width: 10px; height: 10px; padding: 0; min-width: 0;
	border: 0; border-radius: 999px;
	background: rgba(255,255,255,.4); cursor: pointer;
	transition: width .4s var(--msb-ease), background-color .3s;
}
.msb__dot::before { content: ""; position: absolute; inset: -12px -4px; } /* bigger tap target */
.msb__dot.is-active { width: 34px; background: rgba(255,255,255,.4); }
.msb__dot span { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.msb__dot.is-active span { transform: scaleX(1); }
.msb--progress.is-playing .msb__dot.is-active span { animation: msb-progress var(--msb-delay) linear forwards; }
.msb--progress.is-paused .msb__dot.is-active span { animation-play-state: paused; }
@keyframes msb-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Tablet */
@media (max-width: 1024px) {
	.msb__inner { padding: 48px 40px 68px; gap: 24px; }
	.msb__shapes--bubbles i:nth-child(1) { width: 380px; height: 380px; }
}

/* Mobile: stack image + text, centre everything */
@media (max-width: 768px) {
	.msb__slide { min-height: var(--msb-h-m); align-items: stretch; }
	.msb__inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		align-content: center;
		gap: 8px;
		padding: 28px 22px 64px;
		text-align: center;
	}
	.msb__content, .msb__slide--img-left .msb__content { max-width: 520px; margin: 0 auto; justify-self: center; }
	.msb__slide--m-top .msb__media { order: -1; }
	.msb__slide--m-bottom .msb__media { order: 2; }
	.msb__slide--m-hide .msb__media { display: none; }
	.msb__img { max-height: 240px; max-width: 78% !important; }
	.msb__glow { width: 70%; }
	.msb__eyebrow { margin-bottom: 12px; font-size: 11px; }
	.msb__title { font-size: clamp(28px, 8vw, 38px); margin-bottom: 12px; }
	.msb__text { font-size: 15px; margin: 0 auto 22px; }
	.msb__actions { justify-content: center; }
	.msb__btn--outline, .msb__btn--solid { min-height: 48px; padding: 0 26px; }
	.msb__arrow { display: none; }
	.msb__dots { bottom: 20px; }
	.msb__shapes--bubbles i:nth-child(1) { width: 300px; height: 300px; right: -120px; top: -120px; }
	.msb__shapes--bubbles i:nth-child(3), .msb__shapes--bubbles i:nth-child(5) { display: none; }
}
@media (max-width: 380px) {
	.msb__img { max-height: 200px; }
	.msb__text { font-size: 14px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	.msb__slide, .msb__slide.is-active { transition: opacity .2s linear, visibility 0s; transform: none !important; }
	.msb__slide:not(.is-active) { opacity: 0; }
	.msb__slide .msb__eyebrow, .msb__slide .msb__title, .msb__slide .msb__text, .msb__slide .msb__actions { opacity: 1; transform: none; animation: none !important; }
	.msb__slide.is-active .msb__img { animation: none !important; }
}
