/* =========================================================
   CodeByCP Home Slider  —  "Donut Dreams" hero
   https://codebycp.com
   ========================================================= */

.cbhs {
	--cbhs-primary: #ef5d7e;
	--cbhs-bg-a: #fde6ee;
	--cbhs-bg-b: #fcdcb6;
	--cbhs-ink: #6b3a48;
	--cbhs-frame: #e0537a;
	--cbhs-arrow: #f0a23c;
	--cbhs-badge-bg: rgba(255, 255, 255, 0.78);
	--cbhs-badge-color: var(--cbhs-primary);
	--cbhs-font-display: "Fredoka", "Poppins", sans-serif;
	--cbhs-font-script: "Caveat", cursive;
	--cbhs-font-body: "Poppins", system-ui, sans-serif;

	font-family: var(--cbhs-font-body);
	width: 100%;
	padding: 14px;                 /* the pink "frame" gap */
	background: var(--cbhs-frame);
	box-sizing: border-box;
}
.cbhs *,
.cbhs *::before,
.cbhs *::after { box-sizing: border-box; }

/* ---- Swiper shell ---- */
.cbhs-swiper {
	border-radius: 28px;
	overflow: hidden;
	position: relative;
}

.cbhs-slide {
	background: linear-gradient(120deg, var(--cbhs-bg-a) 0%, var(--cbhs-bg-b) 100%);
}

.cbhs-slide__inner {
	position: relative;
	min-height: clamp(440px, 60vw, 720px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px clamp(24px, 5vw, 80px) 64px;
	display: grid;
	place-items: center;
	overflow: hidden;
}

/* ---- Puffy display title ---- */
.cbhs-title {
	margin: 0;
	text-align: center;
	font-family: var(--cbhs-font-display);
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 0.92;
	font-size: clamp(3.2rem, 11vw, 9rem);
	max-width: 12ch;
	color: var(--cbhs-primary);
	background: linear-gradient(180deg, color-mix(in srgb, var(--cbhs-primary) 78%, #fff) 0%, var(--cbhs-primary) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 6px 0 rgba(0, 0, 0, 0.05);
	z-index: 1;
	pointer-events: none;
}

.cbhs-eyebrow {
	position: absolute;
	top: 26px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: color-mix(in srgb, var(--cbhs-primary) 80%, #000 0%);
	opacity: 0.85;
	z-index: 4;
}

/* ---- Centre product image (sits on top of the title) ---- */
.cbhs-image {
	position: absolute;
	left: 50%;
	top: 54%;
	transform: translate(-50%, -50%);
	width: clamp(240px, 38vw, 460px);
	z-index: 2;
	animation: cbhs-float 5.5s ease-in-out infinite;
}
.cbhs-image img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 26px 30px rgba(180, 60, 90, 0.28));
}

/* ---- Handwritten captions + arrows ---- */
.cbhs-caption {
	position: absolute;
	max-width: 240px;
	font-family: var(--cbhs-font-script);
	font-size: clamp(1.25rem, 2.4vw, 1.9rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--cbhs-ink);
	z-index: 3;
}
.cbhs-caption--left  { left: clamp(16px, 4vw, 70px);  bottom: 22%; text-align: left; }
.cbhs-caption--right { right: clamp(16px, 4vw, 70px); top: 18%;    text-align: right; }

.cbhs-arrow {
	width: 88px;
	height: 58px;
	color: var(--cbhs-arrow);
	display: block;
}
.cbhs-caption--left  .cbhs-arrow { margin: 4px 0 0 auto; }
.cbhs-caption--right .cbhs-arrow { margin: 4px auto 0 0; }

/* ---- Rotating ORDER NOW badge ---- */
.cbhs-badge {
	position: absolute;
	right: clamp(18px, 5vw, 80px);
	bottom: clamp(28px, 7vw, 90px);
	width: clamp(96px, 12vw, 132px);
	height: clamp(96px, 12vw, 132px);
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--cbhs-badge-bg);
	backdrop-filter: blur(2px);
	box-shadow: 0 10px 26px rgba(190, 70, 100, 0.22);
	text-decoration: none;
	z-index: 4;
	transition: transform 0.25s ease;
}
.cbhs-badge:hover { transform: scale(1.06); }
.cbhs-badge__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: cbhs-spin 12s linear infinite;
}
.cbhs-badge__ring text {
	font-family: var(--cbhs-font-body);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 2px;
	fill: var(--cbhs-badge-color);
	text-transform: uppercase;
}
.cbhs-badge__icon {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	color: var(--cbhs-badge-color);
	line-height: 1;
}
.cbhs-badge__icon svg { width: 38%; height: auto; display: block; }
span.cbhs-arrow { display: inline-block; color: var(--cbhs-arrow); }
span.cbhs-arrow svg { width: 88px; height: 58px; display: block; }

/* ---- Decorative sprinkles ---- */
.cbhs-sprinkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cbhs-sprinkles span {
	position: absolute;
	width: 14px;
	height: 6px;
	border-radius: 6px;
	background: var(--c);
	transform: rotate(var(--r));
	opacity: 0.85;
}

/* ---- Swiper UI (nav + dots) ---- */
.cbhs-nav {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	border: 0;
	box-shadow: 0 6px 18px rgba(190, 70, 100, 0.2);
	color: var(--cbhs-primary);
	cursor: pointer;
}
.cbhs-nav::after { font-size: 17px; font-weight: 700; }
.cbhs .swiper-pagination-bullet {
	background: var(--cbhs-primary);
	opacity: 0.4;
	width: 9px; height: 9px;
}
.cbhs .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }

/* ---- Animations ---- */
@keyframes cbhs-float {
	0%, 100% { transform: translate(-50%, -50%); }
	50%      { transform: translate(-50%, calc(-50% - 14px)); }
}
@keyframes cbhs-spin {
	to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.cbhs-caption { position: static; max-width: none; text-align: center; margin: 8px auto; }
	.cbhs-caption .cbhs-arrow { display: none; }
	.cbhs-caption--right { order: -1; }
	.cbhs-slide__inner {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 8px;
	}
	.cbhs-image { position: static; transform: none; margin: 6px auto; width: clamp(220px, 64vw, 320px); animation: none; }
	.cbhs-title { position: static; }
	.cbhs-badge { right: 14px; bottom: 18px; }
	.cbhs-eyebrow { position: static; transform: none; margin-bottom: 6px; order: -2; }
}

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.cbhs-image,
	.cbhs-badge__ring { animation: none !important; }
}
