/* Affiliate product card. Self-contained: uses the site's Bricks variables with fallbacks so it also looks right in the editor. */
.cb-product {
	--cbp-primary: var(--primary, #b4561b);
	--cbp-secondary: var(--secondary, #e2597c);
	--cbp-accent: var(--accent, #fff1de);
	--cbp-base: var(--base, #3a2217);
	--cbp-muted: var(--base-l-4, #82726b);
	--cbp-line: var(--accent-d-1, #e8dbca);
	--cbp-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--cbp-sans: "Inter", system-ui, sans-serif;
	position: relative;
	box-sizing: border-box;
	margin: 2.5rem 0;
	color: var(--cbp-base);
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: 28px;
	box-shadow: 0 18px 50px hsl(19 43% 16% / 0.08);
	overflow: hidden;
}

.cb-product *,
.cb-product *::before,
.cb-product *::after {
	box-sizing: border-box;
}

.cb-product p,
.cb-product h3,
.cb-product ul {
	margin: 0;
}

.cb-product__media {
	position: relative;
}

.cb-product__frame {
	height: 100%;
	overflow: hidden;
}

.cb-product__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cb-product__rank {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font: 400 26px/1 var(--cbp-serif);
	color: #fff;
	background: var(--cbp-primary);
	border-radius: 999px;
	box-shadow: 0 6px 18px hsl(19 43% 16% / 0.25);
}

.cb-product__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 32px 34px 26px;
}

.cb-product__badge {
	align-self: flex-start;
	padding: 6px 12px;
	font: 700 11px/1 var(--cbp-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: var(--cbp-secondary);
	border-radius: 999px;
}

.cb-product__brand {
	font: 700 12px/1 var(--cbp-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cbp-muted);
}

.cb-product__title {
	font: 400 clamp(28px, 3.4vw, 40px)/1.02 var(--cbp-serif);
	letter-spacing: -0.01em;
	color: var(--cbp-base);
}

.cb-product__rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cb-product__stars {
	position: relative;
	display: inline-block;
	font-size: 18px;
	letter-spacing: 2px;
	line-height: 1;
	color: var(--cbp-line);
}

.cb-product__stars::before {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	inset: 0;
	width: var(--cb-rate, 0%);
	overflow: hidden;
	white-space: nowrap;
	color: #e3a02b;
}

.cb-product__score {
	font: 700 14px/1 var(--cbp-sans);
	color: var(--cbp-muted);
}

.cb-product__desc {
	font: 400 17px/1.55 var(--cbp-sans);
	color: var(--base-l-3, #705e56);
}

.cb-product__pros {
	display: grid;
	gap: 7px;
	padding: 0;
	list-style: none;
}

.cb-product__pros li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	font: 400 15.5px/1.4 var(--cbp-sans);
}

.cb-product__pros li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	font: 700 11px/1 var(--cbp-sans);
	color: #fff;
	background: var(--cbp-secondary);
	border-radius: 50%;
}

.cb-product__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 8px;
}

.cb-product__price {
	font: 400 30px/1 var(--cbp-serif);
	color: var(--cbp-primary);
}

.cb-product__asof {
	display: block;
	margin-top: 4px;
	font: 400 11px/1 var(--cbp-sans);
	color: var(--cbp-muted);
}

.cb-product__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 26px;
	font: 700 16px/1 var(--cbp-sans);
	color: #fff !important;
	text-decoration: none !important;
	background: var(--cbp-primary);
	border-radius: 999px;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, box-shadow 0.25s;
}

.cb-product__btn:hover,
.cb-product__btn:focus-visible {
	background: var(--primary-d-2, #934616);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px hsl(23 74% 41% / 0.32);
}

.cb-product-empty {
	padding: 18px;
	text-align: center;
	color: #82726b;
	border: 2px dashed #e8dbca;
	border-radius: 18px;
}

/* ------------------------------------------------ Style 1: Feature (wide, magazine) */
.cb-product.is-style-feature {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
}

.cb-product.is-style-feature .cb-product__media {
	min-height: 340px;
	background: var(--cbp-accent);
}

.cb-product.is-style-feature .cb-product__frame {
	position: absolute;
	inset: 22px 0 22px 22px;
	height: auto;
	border-radius: 200px 200px 22px 22px;
}

.cb-product.is-style-feature .cb-product__rank {
	top: 36px;
	left: 36px;
}

/* ------------------------------------------------ Style 2: Tile (compact, vertical) */
.cb-product.is-style-tile {
	display: flex;
	flex-direction: column;
	max-width: 420px;
	margin-inline: auto;
	border-radius: 24px;
	text-align: center;
}

.cb-product.is-style-tile .cb-product__media {
	padding: 14px 14px 0;
	background: var(--cbp-accent);
	border-bottom: 1px solid var(--cbp-line);
}

.cb-product.is-style-tile .cb-product__frame {
	aspect-ratio: 4 / 3.4;
	height: auto;
	border-radius: 160px 160px 0 0;
}

.cb-product.is-style-tile .cb-product__rank {
	top: 26px;
	left: 26px;
}

.cb-product.is-style-tile .cb-product__body {
	align-items: center;
	padding: 24px 26px 22px;
}

.cb-product.is-style-tile .cb-product__badge {
	align-self: center;
}

.cb-product.is-style-tile .cb-product__title {
	font-size: 30px;
}

.cb-product.is-style-tile .cb-product__desc {
	font-size: 15.5px;
}

.cb-product.is-style-tile .cb-product__pros {
	justify-items: start;
	text-align: left;
}

.cb-product.is-style-tile .cb-product__foot {
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.cb-product.is-style-tile .cb-product__btn {
	justify-content: center;
	width: 100%;
	padding: 14px 18px;
	font-size: 15px;
	white-space: nowrap;
}

@media (max-width: 760px) {
	.cb-product.is-style-feature {
		grid-template-columns: 1fr;
	}

	.cb-product.is-style-feature .cb-product__media {
		min-height: 0;
		padding: 14px 14px 0;
	}

	.cb-product.is-style-feature .cb-product__frame {
		position: relative;
		inset: auto;
		aspect-ratio: 4 / 3;
		border-radius: 160px 160px 0 0;
	}

	.cb-product.is-style-feature .cb-product__rank {
		top: 26px;
		left: 26px;
	}

	.cb-product__body {
		padding: 24px 22px 22px;
	}
}
