/* Product components intentionally override shared theme controls. */
/* stylelint-disable no-descending-specificity */
.bbn-product-page {
	--bbn-navy: #08152f;
	--bbn-panel: #102345;
	--bbn-panel-soft: #172a4c;
	--bbn-white: #fff;
	--bbn-ink: #0a1730;
	--bbn-muted: #62718d;
	--bbn-muted-dark: #bdc8de;
	--bbn-line: #d9dfeb;
	--bbn-soft: #f2f6fa;
	--bbn-blue: #4b67f2;
	--bbn-cyan: #67e3db;
	--bbn-teal: #1fc5ba;
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(1rem, 3vw, 2.5rem);
	color: var(--bbn-ink);
}

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

.bbn-product-breadcrumb {
	margin-bottom: 1.25rem;
}

.bbn-product-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	color: var(--bbn-muted);
	font-size: 0.9rem;
	list-style: none;
}

.bbn-product-breadcrumb li {
	display: inline-flex;
	align-items: center;
}

.bbn-product-breadcrumb li + li::before {
	margin-right: 0.45rem;
	color: #98a4b9;
	content: "›";
}

.bbn-product-page a {
	color: var(--bbn-blue);
}

.bbn-product-page a:focus-visible,
.bbn-product-page button:focus-visible {
	outline: 3px solid var(--bbn-cyan);
	outline-offset: 3px;
}

.bbn-product {
	padding-bottom: 1rem;
}

.bbn-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	overflow: hidden;
	padding: clamp(1.25rem, 4vw, 3rem);
	border: 1px solid rgb(190 208 239 / 22%);
	border-radius: 28px;
	background:
		radial-gradient(circle at 94% 5%, rgb(38 200 192 / 18%), transparent 23rem),
		var(--bbn-navy);
	box-shadow: 0 24px 70px rgb(12 29 61 / 14%);
	color: var(--bbn-white);
}

.bbn-product-gallery {
	min-width: 0;
}

.bbn-product-gallery__stage {
	position: relative;
	display: grid;
	min-height: 300px;
	place-items: center;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 60%);
	border-radius: 22px;
	background: var(--bbn-white);
}

.bbn-product-gallery__primary {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	transition: opacity 160ms ease, transform 160ms ease;
}

.bbn-product-gallery.is-loading .bbn-product-gallery__primary {
	opacity: 0.45;
	transform: scale(0.99);
}

.bbn-product-gallery__nav {
	position: absolute;
	top: 50%;
	display: none;
	width: 46px;
	height: 46px;
	place-items: center;
	transform: translateY(-50%);
	border: 1px solid #dbe1ec;
	border-radius: 50%;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 8px 24px rgb(11 29 62 / 16%);
	color: var(--bbn-ink);
	font: inherit;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.bbn-product-gallery.is-enhanced .bbn-product-gallery__nav {
	display: grid;
}

.bbn-product-gallery__nav--previous {
	left: 1rem;
}

.bbn-product-gallery__nav--next {
	right: 1rem;
}

.bbn-product-gallery__counter {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgb(8 21 47 / 78%);
	color: var(--bbn-white);
	font-size: 0.75rem;
	font-weight: 750;
}

.bbn-product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
	gap: 0.65rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.bbn-product-gallery__thumbs a {
	display: block;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 11px;
	background: var(--bbn-white);
	opacity: 0.75;
	transition: border-color 140ms ease, opacity 140ms ease;
}

.bbn-product-gallery__thumbs a:hover,
.bbn-product-gallery__thumbs a[aria-current="true"] {
	border-color: var(--bbn-cyan);
	opacity: 1;
}

.bbn-product-gallery__thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.bbn-product-hero__content {
	min-width: 0;
}

.bbn-product-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.8rem;
	padding: 0.42rem 0.72rem;
	border: 1px solid rgb(103 227 219 / 35%);
	border-radius: 999px;
	background: rgb(103 227 219 / 9%);
	color: var(--bbn-cyan);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bbn-product-eyebrow::before {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--bbn-teal);
	box-shadow: 0 0 0 0.25rem rgb(31 197 186 / 12%);
	content: "";
}

.bbn-product-hero h1 {
	margin: 0.2rem 0 1rem;
	color: var(--bbn-white);
	font-size: clamp(2rem, 4.5vw, 3.8rem);
	line-height: 1.03;
	letter-spacing: -0.04em;
}

.bbn-product-meta,
.bbn-evidence-summary {
	display: grid;
	gap: 0.55rem;
}

.bbn-product-meta {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.25rem 0;
}

.bbn-product-meta div {
	padding: 0.8rem;
	border: 1px solid rgb(190 208 239 / 18%);
	border-radius: 12px;
	background: rgb(255 255 255 / 7%);
}

.bbn-product-meta dt {
	color: var(--bbn-muted-dark);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.bbn-product-meta dd,
.bbn-evidence-summary dd {
	margin: 0.25rem 0 0;
	font-weight: 700;
}

.bbn-product-summary {
	margin: 1.25rem 0;
	color: var(--bbn-muted-dark);
	font-size: 1.05rem;
	line-height: 1.7;
}

.bbn-product-amazon,
.bbn-product-finder-cta a {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--bbn-blue);
	border-radius: 10px;
	padding: 0.75rem 1.15rem;
	background: var(--bbn-blue);
	color: var(--bbn-white) !important;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
}

.bbn-product-amazon::after,
.bbn-product-finder-cta a::after {
	margin-left: 0.55rem;
	content: "→";
}

.bbn-product-disclosure {
	max-width: 34rem;
	margin: 0.85rem 0 0;
	color: var(--bbn-muted-dark);
	font-size: 0.8rem;
	line-height: 1.55;
}

.bbn-product-section {
	margin-top: 1.25rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--bbn-line);
	border-radius: 20px;
	background: var(--bbn-white);
	box-shadow: 0 12px 36px rgb(12 29 61 / 6%);
}

.bbn-product-section > h2,
.bbn-product-finder-cta h2 {
	margin: 0 0 1rem;
	color: var(--bbn-ink);
	font-size: clamp(1.45rem, 3vw, 2.1rem);
	letter-spacing: -0.025em;
}

.bbn-product-section > p {
	color: var(--bbn-muted);
	line-height: 1.7;
}

.bbn-product-highlights {
	border-color: rgb(31 197 186 / 25%);
	background: linear-gradient(135deg, #f0fbfa, var(--bbn-white));
}

.bbn-product-highlights ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbn-product-highlights li {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1rem 1rem 2.75rem;
	border: 1px solid #d9ecea;
	border-radius: 13px;
	background: var(--bbn-white);
}

.bbn-product-highlights li::before {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: grid;
	width: 1.25rem;
	height: 1.25rem;
	place-content: center;
	border-radius: 50%;
	background: #dff8f5;
	color: #087c73;
	font-size: 0.75rem;
	font-weight: 900;
	content: "✓";
}

.bbn-product-highlights span {
	color: var(--bbn-muted);
}

.bbn-spec-group + .bbn-spec-group {
	margin-top: 1.75rem;
}

.bbn-spec-group h3 {
	margin: 0 0 0.5rem;
	color: #31415e;
}

.bbn-spec-group dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2rem;
	margin: 0;
}

.bbn-spec-group dl div {
	display: grid;
	grid-template-columns: minmax(8rem, 1fr) 1fr;
	gap: 1rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--bbn-line);
}

.bbn-spec-group dt,
.bbn-evidence-summary dt {
	color: var(--bbn-muted);
}

.bbn-spec-group dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.bbn-evidence-summary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
}

.bbn-evidence-summary div {
	padding: 1rem;
	border: 1px solid var(--bbn-line);
	border-radius: 12px;
	background: var(--bbn-soft);
}

.bbn-product-variants {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbn-product-variants li {
	display: flex;
	min-height: 88px;
	flex-direction: column;
	justify-content: center;
	padding: 1rem;
	border: 1px solid var(--bbn-line);
	border-radius: 12px;
	background: var(--bbn-soft);
}

.bbn-product-variants span {
	color: var(--bbn-muted);
}

.bbn-related-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.bbn-related-products article {
	overflow: hidden;
	border: 1px solid var(--bbn-line);
	border-radius: 13px;
	background: var(--bbn-soft);
}

.bbn-related-products__media {
	display: grid;
	width: 100%;
	aspect-ratio: 4 / 3;
	place-items: center;
	overflow: hidden;
	border-bottom: 1px solid var(--bbn-line);
	background: var(--bbn-white);
}

.bbn-related-products__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 180ms ease;
}

.bbn-related-products article:hover .bbn-related-products__image {
	transform: scale(1.035);
}

.bbn-related-products__content {
	padding: 1rem;
}

.bbn-related-products h3 {
	margin-top: 0;
	font-size: 1.05rem;
}

.bbn-related-products p {
	color: var(--bbn-muted);
}

.bbn-product-linked,
.bbn-product-finder-cta {
	margin-top: 1.25rem;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 1px solid rgb(103 227 219 / 28%);
	border-radius: 20px;
	background:
		radial-gradient(circle at 90% 0, rgb(38 200 192 / 18%), transparent 18rem),
		var(--bbn-navy);
	color: var(--bbn-white);
}

.bbn-product-linked a {
	color: var(--bbn-cyan);
	font-weight: 750;
}

.bbn-product-finder-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.bbn-product-finder-cta h2 {
	margin: 0;
	color: var(--bbn-white);
}

@media (max-width: 860px) {

	.bbn-product-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.bbn-product-highlights ul,
	.bbn-evidence-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bbn-related-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {

	.bbn-product-page {
		padding: 0.75rem;
	}

	.bbn-product-hero {
		padding: 1rem;
		border-radius: 20px;
	}

	.bbn-product-gallery__stage {
		min-height: 240px;
	}

	.bbn-product-gallery__nav {
		width: 44px;
		height: 44px;
	}

	.bbn-product-meta,
	.bbn-product-highlights ul,
	.bbn-evidence-summary,
	.bbn-spec-group dl,
	.bbn-related-products {
		grid-template-columns: minmax(0, 1fr);
	}

	.bbn-spec-group dl div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.25rem;
	}

	.bbn-product-finder-cta {
		align-items: stretch;
		flex-direction: column;
	}

	.bbn-product-amazon,
	.bbn-product-finder-cta a {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.bbn-product-page *,
	.bbn-product-page *::before,
	.bbn-product-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
