.bwbs {
	--bwbs-bg: #e8f0f2;
	--bwbs-green: #6b8e47;
	--bwbs-gap: 32px;
	--bwbs-circle: min(49vw, 900px);
	--bwbs-card-w: calc((100% - 2 * var(--bwbs-gap)) / 3);

	position: relative;
	overflow: hidden;
	background: var(--bwbs-bg);
	padding: 70px 20px 60px;
	box-sizing: border-box;
	width: 100%;
}
.bwbs *, .bwbs *::before, .bwbs *::after { box-sizing: border-box; }

/* ---------- Golden background circle ---------- */
.bwbs__circle {
	position: absolute;
	left: 50%;
	top: calc(430px - var(--bwbs-circle));
	width: var(--bwbs-circle);
	height: var(--bwbs-circle);
	transform: translateX(-50%);
	border-radius: 50%;
	background:
		radial-gradient(ellipse at 50% 20%, #efdfa6 0%, #d9c07f 45%, #bfa35d 100%);
	z-index: 0;
	pointer-events: none;
}

.bwbs__title {
	position: relative;
	z-index: 1;
	margin: 0 0 56px;
	text-align: center;
	font-family: 'Gilda Display', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: clamp(36px, 4.2vw, 64px);
	line-height: 1.1;
	color: #111;
}

/* ---------- Carousel ---------- */
.bwbs__viewport {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 0 22px;
}
.bwbs__track {
	position: relative;
	width: 100%;
	height: var(--bwbs-card-h, 520px);
}

.bwbs__card {
	--o: 0;
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--bwbs-card-w);
	height: 100%;
	margin-left: calc(var(--bwbs-card-w) / -2);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
	transform: translateX(calc(var(--o) * (100% + var(--bwbs-gap))));
	transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .4s ease,
		background-color .3s ease;
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
}
.bwbs__card.is-visible { opacity: 1; pointer-events: auto; }

/* image */
.bwbs__media {
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	transition: flex-basis .3s ease;
}
.bwbs__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

/* info */
.bwbs__info {
	flex: 0 0 auto;
	padding: 28px 16px 36px;
	text-align: center;
	background: #fff;
	transition: background-color .3s ease;
}
.bwbs__name {
	margin: 0 0 12px;
	font-family: 'Gilda Display', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: 28px;
	line-height: 1.2;
}
.bwbs__name a { color: #111; text-decoration: none; transition: color .3s ease; }
.bwbs__price {
	margin: 0 0 16px;
	font-family: Roboto, Arial, sans-serif;
	font-size: 24px;
	color: #111;
	transition: color .3s ease;
}
.bwbs__price del { opacity: .55; font-size: .8em; margin-right: 6px; }
.bwbs__price ins { text-decoration: none; }

.bwbs__btn {
	display: inline-block;
	padding: 9px 38px;
	border: 1px solid #111;
	border-radius: 999px;
	background: transparent;
	color: #111;
	font-family: 'Gilda Display', Georgia, 'Times New Roman', serif;
	font-size: 24px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* ---------- Centre card = hover state by default; any hovered card takes it over ---------- */
.bwbs__card.is-active,
.bwbs__card:hover {
	background: var(--bwbs-green);
}
.bwbs__card.is-active .bwbs__info,
.bwbs__card:hover .bwbs__info {
	background: var(--bwbs-green);
}
.bwbs__card.is-active .bwbs__name a,
.bwbs__card.is-active .bwbs__price,
.bwbs__card:hover .bwbs__name a,
.bwbs__card:hover .bwbs__price {
	color: #fff;
}
.bwbs__card.is-active .bwbs__btn,
.bwbs__card:hover .bwbs__btn {
	background: #fff;
	border-color: #fff;
	color: #111;
}
.bwbs__card.is-active .bwbs__img,
.bwbs__card:hover .bwbs__img { transform: scale(1.04); }

/* when hovering a side card, the centre card goes back to normal */
.bwbs__track:has(.bwbs__card:hover) .bwbs__card.is-active:not(:hover) { background: #fff; }
.bwbs__track:has(.bwbs__card:hover) .bwbs__card.is-active:not(:hover) .bwbs__info { background: #fff; }
.bwbs__track:has(.bwbs__card:hover) .bwbs__card.is-active:not(:hover) .bwbs__name a,
.bwbs__track:has(.bwbs__card:hover) .bwbs__card.is-active:not(:hover) .bwbs__price { color: #111; }
.bwbs__track:has(.bwbs__card:hover) .bwbs__card.is-active:not(:hover) .bwbs__btn {
	background: transparent; border-color: #111; color: #111;
}
.bwbs__track:has(.bwbs__card:hover) .bwbs__card.is-active:not(:hover) .bwbs__img { transform: none; }

/* ---------- Dots ---------- */
.bwbs__dots {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 26px;
}
.bwbs__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c3c8ca;
	cursor: pointer;
	transition: background-color .3s ease, transform .3s ease;
}
.bwbs__dot.is-active { background: #111; transform: scale(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bwbs { --bwbs-gap: 20px; }
	.bwbs__name { font-size: 22px; }
	.bwbs__price { font-size: 19px; }
	.bwbs__btn { font-size: 18px; padding: 8px 26px; }
	.bwbs__track { --bwbs-card-h: 440px; }
}

@media (max-width: 720px) {
	.bwbs { --bwbs-circle: 120vw; --bwbs-card-w: min(78%, 340px); --bwbs-gap: 16px; padding-top: 50px; }
	.bwbs__circle { top: calc(360px - var(--bwbs-circle)); }
	.bwbs__title { margin-bottom: 36px; }
	.bwbs__track { --bwbs-card-h: 460px; }
	.bwbs__info { padding: 20px 12px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.bwbs__card, .bwbs__img { transition: none; }
}

/* Fallback if JS has not run yet: simple scrolling row so products are always visible */
.bwbs:not(.is-ready) .bwbs__track { display: flex; gap: var(--bwbs-gap); overflow-x: auto; height: auto; padding-bottom: 10px; }
.bwbs:not(.is-ready) .bwbs__card { position: static; flex: 0 0 min(80%, 320px); width: auto; margin: 0; height: auto; opacity: 1; pointer-events: auto; transform: none; }
.bwbs:not(.is-ready) .bwbs__media { aspect-ratio: 1 / 1; flex: none; }
