/* Homepage product category tabs. */

.bgn-home-products {
	overflow: hidden;
	padding-block: clamp(88px, 7vw, 112px);
	background:
		linear-gradient(180deg, #fff 0, #f5f9fb 100%);
	border-top: 1px solid rgba(4, 76, 132, .08);
	border-bottom: 1px solid rgba(4, 76, 132, .08);
}

.bgn-home-products__heading {
	max-width: 820px;
	margin: 0 auto clamp(34px, 4.5vw, 54px);
	text-align: center;
}

.bgn-home-products__heading .bgn-eyebrow {
	display: inline-flex;
	color: var(--bgn-orange);
}

.bgn-home-products__heading h2 {
	max-width: 760px;
	margin: 13px auto 0;
	color: #102438;
	font-size: clamp(2rem, 3vw, 2.8rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.bgn-home-products__description {
	max-width: 690px;
	margin: 20px auto 0;
	color: var(--bgn-muted);
	font-size: .98rem;
	line-height: 1.75;
}

.bgn-home-products__description > :last-child {
	margin-bottom: 0;
}

.bgn-home-products__tabs {
	display: flex;
	gap: 10px;
	margin: 0 auto 32px;
	padding: 0 0 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.bgn-home-products__tab {
	display: inline-flex;
	min-height: 54px;
	min-width: max-content;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 11px 16px;
	border: 1px solid rgba(4, 76, 132, .14);
	border-radius: 4px;
	background: #fff;
	color: var(--bgn-navy);
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(4, 76, 132, .055);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.bgn-home-products__tab small {
	color: var(--bgn-muted);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: color .2s ease;
}

.bgn-home-products__tab:hover,
.bgn-home-products__tab:focus-visible {
	border-color: rgba(4, 76, 132, .38);
	box-shadow: 0 12px 28px rgba(4, 76, 132, .09);
}

.bgn-home-products__tab.is-active {
	border-color: var(--bgn-blue);
	background: var(--bgn-blue);
	color: #fff;
	box-shadow: 0 15px 30px rgba(4, 76, 132, .14);
}

.bgn-home-products__tab.is-active small {
	color: rgba(255, 255, 255, .72);
}

.bgn-home-products__panel[hidden] {
	display: none;
}

.bgn-home-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.bgn-home-product-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 0;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(4, 76, 132, .065);
	transition: box-shadow .22s ease, transform .22s var(--bgn-ease);
}

.bgn-home-product-card:hover,
.bgn-home-product-card:focus-within {
	box-shadow: 0 16px 34px rgba(4, 76, 132, .12);
	transform: translateY(-3px);
}

.bgn-home-product-card__media {
	display: block;
	overflow: hidden;
	margin: 0;
	aspect-ratio: 1 / 1;
	border-radius: 0;
	background: var(--bgn-surface);
}

.bgn-home-product-card__image {
	width: 100%;
	height: 100%;
	padding: clamp(4px, .65vw, 8px);
	object-fit: contain;
	image-rendering: auto;
	transition: transform .3s var(--bgn-ease);
}

.bgn-home-product-card:hover .bgn-home-product-card__image,
.bgn-home-product-card:focus-within .bgn-home-product-card__image {
	transform: scale(1.035);
}

.bgn-home-product-card__body {
	display: flex;
	min-height: 160px;
	padding: 16px 15px 17px;
	flex: 1 1 auto;
	flex-direction: column;
}

.bgn-home-product-card__category {
	margin: 0 0 8px;
	color: var(--bgn-orange);
	font-size: .66rem;
	font-weight: 850;
	letter-spacing: .08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.bgn-home-product-card__title {
	margin: 0;
	color: var(--bgn-navy);
	font-size: clamp(1rem, 1.1vw, 1.1rem);
	font-weight: 800;
	line-height: 1.34;
	letter-spacing: -.015em;
}

.bgn-home-product-card__title a:hover,
.bgn-home-product-card__title a:focus-visible {
	color: var(--bgn-blue);
}

.bgn-home-product-card__price {
	margin-top: auto;
	padding-top: 13px;
	color: var(--bgn-blue);
	font-size: .98rem;
	font-weight: 850;
	line-height: 1.35;
}

.bgn-home-products__action {
	margin-top: clamp(30px, 4vw, 44px);
	text-align: center;
}

.bgn-home-products__action .bgn-button {
	min-width: min(100%, 280px);
}

@media (max-width: 1100px) {
	.bgn-home-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.bgn-home-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.bgn-home-products {
		padding-block: 76px;
	}

	.bgn-home-products__heading {
		text-align: left;
	}

	.bgn-home-products__heading h2,
	.bgn-home-products__description {
		margin-left: 0;
	}

	.bgn-home-products__tabs {
		margin-right: -16px;
		margin-left: -16px;
		padding-inline: 16px;
	}

	.bgn-home-products__tab {
		min-height: 50px;
		padding: 9px 13px;
		font-size: .92rem;
	}

	.bgn-home-products__tab small {
		font-size: .62rem;
	}

	.bgn-home-product-card__body {
		min-height: 148px;
		padding: 13px 12px 14px;
	}

	.bgn-home-product-card__title {
		font-size: .92rem;
		line-height: 1.32;
	}

	.bgn-home-product-card__price {
		font-size: .88rem;
	}
}

@media (max-width: 460px) {
	.bgn-home-products__grid {
		gap: 12px;
	}

	.bgn-home-product-card__category {
		font-size: .58rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bgn-home-products__tab,
	.bgn-home-product-card,
	.bgn-home-product-card__image {
		transition: none;
	}
}
