.np-all-categories {
	background: #fff;
}

.np-all-categories .np-section__head {
	margin-bottom: 34px;
}

.np-category-carousel {
	position: relative;
}

.np-category-carousel__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.np-category-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.np-all-categories__grid,
.np-category-carousel__rail {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-category-tile {
	position: relative;
	display: block;
	flex: 0 0 calc((100% - 80px) / 5);
	min-width: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	color: var(--np-text);
	scroll-snap-align: start;
	box-shadow: none;
	transition: transform .35s var(--np-ease);
}

.np-category-tile:hover {
	transform: translateY(-3px);
	color: var(--np-text);
}

.np-category-tile__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--np-surface);
	border-radius: var(--np-radius);
	overflow: hidden;
}

.np-category-tile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s var(--np-ease), filter .35s var(--np-ease);
}

.np-category-tile:hover .np-category-tile__media img {
	transform: scale(1.04);
	filter: saturate(1.04) contrast(1.02);
}

.np-category-tile__name {
	display: block;
	min-width: 0;
	margin-top: 14px;
	font-family: var(--np-font-body);
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--np-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.np-category-carousel__nav {
	position: absolute;
	top: 43%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	background: var(--np-accent);
	color: #fff;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(224, 47, 103, .24);
	transform: translateY(-50%);
	transition: background .22s var(--np-ease), transform .22s var(--np-ease);
}

.np-category-carousel__nav:hover {
	background: var(--np-accent);
	color: #fff;
	transform: translateY(-50%) scale(1.04);
}

.np-category-carousel__nav .np-icon {
	width: 16px;
	height: 16px;
}

.np-category-carousel__nav--prev {
	left: 10px;
}

.np-category-carousel__nav--next {
	right: 10px;
}

@media (max-width: 1200px) {
	.np-category-tile { flex-basis: calc((100% - 60px) / 4); }
}

@media (max-width: 800px) {
	.np-category-tile { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 520px) {
	.np-all-categories {
		padding-top: 10px;
	}

	.np-all-categories__grid,
	.np-category-carousel__rail { gap: 14px; }

	.np-category-tile { flex-basis: calc((100% - 14px) / 2); }

	.np-category-tile__name {
		margin-top: 10px;
		font-size: 14px;
	}

	.np-category-carousel__nav { width: 32px; height: 32px; }
	.np-category-carousel__nav--prev { left: 6px; }
	.np-category-carousel__nav--next { right: 6px; }
}
