.npd-featured-brands {
	--npd-featured-gap: 1.25rem;
	--npd-featured-count: 4;
	--npd-featured-min-width: 14.5rem;
	--npd-featured-radius: 12px;
	--npd-featured-shadow-space: 1.5rem;
	--npd-theme-container-inset: calc(
		(100vw - min(var(--theme-container-width-base), var(--theme-normal-container-max-width))) / 2
	);

	width: 100%;
	padding-block: 2.25rem;
	overflow-x: clip;
}

.npd-featured-brands__container {
	container-type: inline-size;
	min-width: 0;
	overflow: visible;
}

.npd-featured-brands__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin-bottom: 0;
}

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

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

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

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

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

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

.npd-featured-brands__view-all {
	color: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.npd-featured-brands__view-all:hover,
.npd-featured-brands__view-all:focus-visible {
	color: var(--theme-link-hover-color, inherit);
}

.npd-featured-brands__scroller {
	box-sizing: border-box;
	min-width: 0;
	width: 100vw;
	max-width: 100vw;
	margin-inline-start: calc(50% - 50vw);
	margin-bottom: calc(var(--npd-featured-shadow-space) * -1);
	padding-inline: var(--npd-theme-container-inset);
	padding-block: var(--npd-featured-shadow-space);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--npd-theme-container-inset);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.npd-featured-brands__scroller::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.npd-featured-brands__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--npd-featured-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	width: max-content;
	min-width: 100%;
	box-sizing: border-box;
}

.npd-featured-brands__item {
	flex: 0 0 calc((100cqw - (var(--npd-featured-count) - 1) * var(--npd-featured-gap)) / var(--npd-featured-count));
	min-width: min(var(--npd-featured-min-width), 72vw);
	scroll-snap-align: start;
}

.npd-featured-brands__card {
	display: flex;
	flex-direction: row;
	height: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none !important;
	background-color: var(--theme-palette-color-8, #fff);
	border-radius: var(--npd-featured-radius);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.npd-featured-brands__card:hover,
.npd-featured-brands__card:focus-visible {
	color: inherit;
	text-decoration: none !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

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

.npd-featured-brands__media {
	display: block;
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #ffffff;
	aspect-ratio: 1 / 1;
	padding: 1rem;
}

.npd-featured-brands--ratio-portrait .npd-featured-brands__media {
	aspect-ratio: 4 / 5;
}

.npd-featured-brands--ratio-adapt .npd-featured-brands__media {
	aspect-ratio: 1 / 1;
}

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

.npd-featured-brands__name {
	display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    width: 100%;
    justify-content: center;
}

.npd-featured-brands__name-arrow {
	display: inline-flex;
	flex-shrink: 0;
	color: currentColor;
	transition: transform 0.15s ease;
}

.npd-featured-brands__card:hover .npd-featured-brands__name-arrow,
.npd-featured-brands__card:focus-visible .npd-featured-brands__name-arrow {
	transform: translateX(3px);
}

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

.npd-featured-brands--count-5 {
	--npd-featured-count: 5;
	--npd-featured-gap: 1rem;
	--npd-featured-min-width: 12.75rem;
	padding-top: 0px;
}

.npd-featured-brands--count-5 .npd-featured-brands__name {
	padding: 0.85rem 0.75rem;
	font-size: 0.98rem;
}

.npd-featured-brands--count-5 .npd-featured-brands__media {
	padding: 0.85rem 0.85rem 0 0.85rem;
    aspect-ratio: auto !important;
}

.npd-featured-brands--count-5 .npd-featured-brands__card {
	flex-direction: column;
    padding: 20px;
}

.npd-featured-brands--count-5 .npd-featured-brands__image {
    max-height: 41.8px;
}

@media (max-width: 999.98px) {
	.npd-featured-brands {
		--npd-featured-gap: 0.85rem;
		--npd-featured-min-width: 13.5rem;
	}

	.npd-featured-brands--count-5 {
		--npd-featured-gap: 0.75rem;
		--npd-featured-min-width: 12.25rem;
	}
}

@media (max-width: 689.98px) {
	.npd-featured-brands {
		--npd-featured-min-width: 14.5rem;
		padding-block: 1.5rem;
	}

	.npd-featured-brands--count-5 {
		--npd-featured-min-width: 13rem;
	}

	.npd-featured-brands__header {
		margin-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.npd-featured-brands__card,
	.npd-featured-brands__name-arrow {
		transition: none;
	}

	.npd-featured-brands__card:hover,
	.npd-featured-brands__card:focus-visible {
		transform: none;
	}

	.npd-featured-brands__card:hover .npd-featured-brands__name-arrow,
	.npd-featured-brands__card:focus-visible .npd-featured-brands__name-arrow {
		transform: none;
	}
}
