.npd-fct {
	--npd-fct-gap: 1.25rem;
	--npd-fct-radius: 12px;
	--npd-fct-tab-active: #006ae6;
	--npd-fct-padding-top: 36px;
	--npd-fct-padding-bottom: 36px;

	width: 100%;
	padding-top: calc(var(--npd-fct-padding-top) * 0.75);
	padding-bottom: calc(var(--npd-fct-padding-bottom) * 0.75);
	background-color: #f3f5f8;
}

@media (min-width: 750px) {
	.npd-fct {
		padding-top: var(--npd-fct-padding-top);
		padding-bottom: var(--npd-fct-padding-bottom);
	}
}

.npd-fct__tabs {
	margin-bottom: 1.5rem;
}

.npd-fct__tabs-track {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.npd-fct__tabs-track::-webkit-scrollbar {
	display: none;
}

.npd-fct__tab {
	border-radius: 999px;
	border: 1px solid rgba(17, 17, 17, 0.2);
	background-color: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding: 0.8rem 1.5rem;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	scroll-snap-align: start;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.npd-fct__tab:hover,
.npd-fct__tab:focus-visible {
	border-color: rgba(17, 17, 17, 0.45);
}

.npd-fct__tab:focus-visible {
	outline: 2px solid var(--theme-form-field-border-focus-color, currentColor);
	outline-offset: 2px;
}

.npd-fct__tab.is-active {
	background: var(--npd-fct-tab-active);
	border-color: var(--npd-fct-tab-active);
	color: #fff;
}

.npd-fct__panel[hidden] {
	display: none !important;
}

.npd-fct__panel:not(.is-active) {
	display: none;
}

.npd-fct__header {
	margin-bottom: 1.25rem;
}

.npd-fct__title {
	margin: 0 0 0.5rem;
	color: var(--theme-headings-color, inherit);
	line-height: 1.2;
}

.npd-fct__title--h2 {
	font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.npd-fct__title--h1 {
	font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.npd-fct__title--h0 {
	font-size: clamp(2rem, 4vw, 2.8rem);
}

.npd-fct__title--hxl {
	font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.npd-fct__title--hxxl {
	font-size: clamp(2.6rem, 6vw, 4rem);
}

.npd-fct__description {
	max-width: 48rem;
	color: inherit;
	opacity: 0.9;
}

.npd-fct__description p:last-child {
	margin-bottom: 0;
}

.npd-fct__description--subtitle {
	font-size: 1.05rem;
}

.npd-fct__description--uppercase {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
}

.npd-fct__scroller {
	min-width: 0;
}

.npd-fct__grid {
	display: grid;
	grid-template-columns: repeat(var(--npd-fct-cols-mobile, 2), minmax(0, 1fr));
	gap: var(--npd-fct-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Four columns need about 300px per card. Below that, stay on the mobile count or the slider. */
@media (min-width: 1400px) {
	.npd-fct__grid {
		grid-template-columns: repeat(var(--npd-fct-cols-desktop, 4), minmax(0, 1fr));
	}
}

.npd-fct__item {
	min-width: 0;
}

.npd-fct__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--theme-palette-color-8, #fff);
	border-radius: var(--npd-fct-radius);
	overflow: hidden;
}

.npd-fct__media-link {
	display: block;
	color: inherit;
	text-decoration: none !important;
}

.npd-fct__media {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background-color: var(--theme-palette-color-6, #f3f3f3);
	aspect-ratio: 1 / 1;
}

.npd-fct__panel--ratio-portrait .npd-fct__media {
	aspect-ratio: 4 / 5;
}

.npd-fct__panel--ratio-adapt .npd-fct__media {
	aspect-ratio: 1 / 1;
}

.npd-fct__badge {
	position: absolute;
	z-index: 2;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
}

.npd-fct__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.npd-fct__media--has-secondary .npd-fct__image--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.npd-fct__card:hover .npd-fct__media--has-secondary .npd-fct__image--secondary,
.npd-fct__card:focus-within .npd-fct__media--has-secondary .npd-fct__image--secondary {
	opacity: 1;
}

.npd-fct__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.9rem 0.15rem 0.25rem;
}

.npd-fct__product-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.npd-fct__product-title a {
	color: inherit;
	text-decoration: none !important;
}

.npd-fct__product-title a:hover,
.npd-fct__product-title a:focus-visible {
	text-decoration: underline !important;
}

.npd-fct__price {
	font-size: 0.95rem;
	line-height: 1.3;
}

.npd-fct__price del {
	opacity: 0.65;
	margin-inline-end: 0.35rem;
}

.npd-fct__actions {
	margin-top: 0.35rem;
}

.npd-fct__actions .button,
.npd-fct__actions .add_to_cart_button {
	width: 100%;
	justify-content: center;
}

.npd-fct__view-all {
	display: flex;
	justify-content: center;
	margin-top: 1.75rem;
}

.npd-fct__view-all-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.4rem;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.npd-fct__view-all-link--link {
	padding: 0;
	min-height: 0;
	border-radius: 0;
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
	color: inherit;
}

.npd-fct__view-all-link--solid {
	background: var(--theme-button-background-initial-color, #111);
	color: var(--theme-button-text-initial-color, #fff);
	border: 1px solid transparent;
}

.npd-fct__view-all-link--solid:hover,
.npd-fct__view-all-link--solid:focus-visible {
	background: var(--theme-button-background-hover-color, #333);
	color: var(--theme-button-text-hover-color, #fff);
}

.npd-fct__view-all-link--outline {
	background: transparent;
	color: inherit;
	border: 1px solid rgba(17, 17, 17, 0.35);
}

.npd-fct__view-all-link--outline:hover,
.npd-fct__view-all-link--outline:focus-visible {
	border-color: rgba(17, 17, 17, 0.7);
}

.npd-fct__empty {
	margin: 0;
	padding: 1rem 0;
	opacity: 0.75;
}

.npd-fct__slider-controls {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.npd-fct__slider-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(17, 17, 17, 0.2);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	cursor: pointer;
}

.npd-fct__slider-btn:focus-visible {
	outline: 2px solid var(--theme-form-field-border-focus-color, currentColor);
	outline-offset: 2px;
}

.npd-fct__slider-counter {
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1399.98px) {
	.npd-fct__tabs-track {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.35rem;
		margin-inline: calc(var(--npd-theme-container-inset, 0px) * -1);
		padding-inline: max(1rem, var(--npd-theme-container-inset, 1rem));
	}

	.npd-fct__panel--swipe-mobile .npd-fct__panel-inner {
		container-type: inline-size;
	}

	.npd-fct__panel--swipe-mobile .npd-fct__scroller {
		overflow: hidden;
	}

	.npd-fct__panel--swipe-mobile .npd-fct__grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		gap: var(--npd-fct-gap);
		width: auto;
		max-width: 100%;
		min-width: 100%;
		padding-bottom: 0.25rem;
	}

	.npd-fct__panel--swipe-mobile .npd-fct__grid::-webkit-scrollbar {
		display: none;
	}

	.npd-fct__panel--swipe-mobile .npd-fct__item {
		flex: 0 0 calc((100cqw - (var(--npd-fct-cols-mobile, 2) - 1) * var(--npd-fct-gap)) / var(--npd-fct-cols-mobile, 2));
		min-width: min(20rem, 86vw);
		scroll-snap-align: start;
	}

	.npd-fct__panel--swipe-mobile .npd-fct__slider-controls {
		display: flex;
	}

	.npd-fct__panel--swipe-mobile .npd-fct__view-all--hide-mobile {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.npd-fct__tab,
	.npd-fct__media--has-secondary .npd-fct__image--secondary,
	.npd-fct__view-all-link {
		transition: none;
	}
}
