/* Řazení produktů */
#category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;

	margin: 30px 0;
	padding: 14px 18px;

	background: #f5f4f4;
	border: 1px solid rgba(11, 94, 215, 0.15);
	border-radius: 20px;

	font-family: 'Neue Frutiger World', sans-serif;
	&::before {
		display: none !important;
	}
}

/* Na webu je prvek nyní schovaný */
#category-header .listSorting {
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

#category-header .listSorting::before {
	content: 'Zoradiť podľa:';
	flex: 0 0 auto;

	color: #000;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

#category-header .listSorting__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;

	margin: 0;
	padding: 0;
	list-style: none;
}

#category-header .listSorting__controls > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Jednotlivé možnosti řazení */
#category-header .listSorting__control {
	appearance: none;
	min-height: 42px;
	margin: 0;
	padding: 10px 18px;

	background: #fff;
	color: #000;
	border: 1px solid rgba(11, 94, 215, 0.22);
	border-radius: 9999px;

	font: inherit;
	font-size: 15px;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;

	transition:
		color 150ms ease,
		background-color 150ms ease,
		border-color 150ms ease,
		transform 150ms ease;
}

#category-header .listSorting__control:hover {
	color: #0b5ed7;
	background: #fff;
	border-color: #0b5ed7;
}

#category-header .listSorting__control:active {
	transform: translateY(1px);
}

#category-header .listSorting__control:focus-visible {
	outline: 3px solid rgba(11, 94, 215, 0.25);
	outline-offset: 2px;
}

/* Aktivní řazení */
#category-header .listSorting__control--current,
#category-header .listSorting__controls:not(:has(.listSorting__control--current)) > li:first-child .listSorting__control {
	color: #fff;
	background: #0b5ed7;
	border-color: #0b5ed7;
}

/* Počet produktů */
#category-header .listItemsTotal {
	display: flex !important;
	align-items: baseline;
	flex: 0 0 auto;

	color: #555;
	font-size: 15px;
	line-height: 20px;
	white-space: nowrap;
}

#category-header .listItemsTotal strong {
	margin-right: 5px;
	color: #0b5ed7;
	font-size: 19px;
	font-weight: 700;
}

/* Mobil */
@media (max-width: 767px) {
	#category-header {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 14px;
		border-radius: 16px;
	}

	#category-header .listSorting {
		display: block !important;
	}

	#category-header .listSorting::before {
		display: block;
		margin-bottom: 8px;
	}

	#category-header .listSorting__controls {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scrollbar-width: thin;
		scroll-snap-type: inline proximity;

		margin: 0 -2px;
		padding: 2px 2px 8px;
	}

	#category-header .listSorting__controls > li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	#category-header .listSorting__control {
		min-height: 40px;
		padding: 9px 15px;
		font-size: 14px;
	}

	#category-header .listItemsTotal {
		align-self: flex-end;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#category-header .listSorting__control {
		transition: none;
	}
}
