/* =========================================================
   13) Kategoriakaruselli
========================================================= */
.category-slider-wrapper {
	padding: 1rem 0;
	display: flex;
	justify-content: center;
	position: relative;
}

.category-slider {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	gap: 1rem;
	scroll-snap-type: x mandatory;
	padding: 0 1rem;
	scrollbar-width: thin;
	scrollbar-color: #E9DCD6 transparent;
}

@media (min-width: 769px) {
	.category-slider {
		padding-bottom: 1rem;
	}
}

.category-slider::-webkit-scrollbar {
	height: 4px;
}

.category-slider::-webkit-scrollbar-track {
	background: transparent;
	margin-left: 4px;
	margin-right: 4px;
}

.category-slider::-webkit-scrollbar-thumb {
	background-color: #D3B7AB;
	border-radius: 2px;
	border: none;
}

.category-slider::-webkit-scrollbar-button {
	width: 0 !important;
	height: 0 !important;
	display: none !important;
	background: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 768px) {
	.category-slider::-webkit-scrollbar {
		display: none;
	}

	.category-slider {
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 10px;
	}
}

.category-slide {
	flex: 0 0 auto;
	width: 140px;
	scroll-snap-align: start;
	text-align: center;
	border-radius: 8px;
	background: #f9f9f9;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
	overflow: hidden;
}

.category-slide-inner {
	transition: transform .3s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.category-slide:hover .category-slide-inner {
	transform: scale(1.05);
}

.category-slide-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	background-size: cover;
	background-position: center;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.category-slide p {
	margin: 0;
	padding: .5rem;
	font-size: 14px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	line-height: 1.4;
}

.category-slider.dragging {
	cursor: grabbing;
	user-select: none;
}

.category-slide a {
	color: #2A2024;
	text-decoration: none;
}

.category-slide a:hover {
	color: #2A2024;
	text-decoration: none;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 0 5px rgba(0, 0, 0, .1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	z-index: 2;
	padding: 0;
}

.slider-arrow svg {
	width: 35px;
	height: 35px;
	stroke: #D3B7AB;
	display: block;
	margin: auto;
	pointer-events: none;
}

.category-slider-wrapper:hover .slider-arrow {
	opacity: .8;
	pointer-events: all;
}

.slider-arrow:hover {
	opacity: 1;
}

.slider-prev {
	left: -22px;
}

.slider-next {
	right: -22px;
}

@media (max-width: 768px) {
	.slider-arrow {
		display: none !important;
	}
}

.category-slider-wrapper .slider-arrow svg,
.category-slider-wrapper .slider-arrow svg * {
	stroke: #D3B7AB !important;
	fill: none !important;
}

.category-slider-wrapper .slider-arrow:hover svg,
.category-slider-wrapper .slider-arrow:hover svg * {
	stroke: #D3B7AB !important;
	fill: none !important;
}

.category-slider-wrapper .slider-arrow,
.category-slider-wrapper .slider-arrow:hover,
.category-slider-wrapper .slider-arrow:focus,
.category-slider-wrapper .slider-arrow:active,
.category-slider-wrapper .slider-arrow:focus-visible {
	background-color: #fff !important;
	background-image: none !important;
	border: none !important;
}

.category-slider-wrapper .slider-arrow:hover {
	background-color: #f7f4f2 !important;
}
