/**
 * Product category carousel — Design.html cat-section
 */

.noureldeing-cat-carousel {
	padding: 0;
	background: transparent;
	--nd-cat-visible: 6;
	--nd-cat-gap: 22px;
}

.noureldeing-cat-carousel .wrap {
	max-width: var(--nd-container);
	margin-inline: auto;
	padding: 0;
}

.noureldeing-cat-carousel__wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.noureldeing-cat-carousel__track {
	display: flex;
	gap: var(--nd-cat-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 6px 4px 14px;
	flex: 1;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	touch-action: pan-x;
	-webkit-overflow-scrolling: touch;
}

.noureldeing-cat-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
	-webkit-user-select: none;
}

.noureldeing-cat-carousel__track.is-dragging .noureldeing-cat-carousel__item {
	cursor: grabbing;
}

.noureldeing-cat-carousel__track::-webkit-scrollbar {
	display: none;
}

.noureldeing-cat-carousel__item {
	flex: 0 0 calc((100% - ((var(--nd-cat-visible) - 1) * var(--nd-cat-gap))) / var(--nd-cat-visible));
	scroll-snap-align: start;
	text-align: center;
	text-decoration: none;
	color: inherit;
	min-width: 0;
	cursor: grab;
	touch-action: pan-x;
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}

.noureldeing-cat-carousel__item:focus-visible {
	outline: 2px solid var(--nd-gold);
	outline-offset: 3px;
	border-radius: 10px;
}

.noureldeing-cat-carousel__circle {
	display: block;
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--nd-cream);
	box-shadow: 0 6px 18px rgba(8, 64, 51, 0.1);
	margin-bottom: 12px;
	border: 1px solid #eee2cc;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.noureldeing-cat-carousel__circle::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(8, 64, 51, 0) 35%,
		rgba(8, 64, 51, 0.62) 100%
	);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 1;
}

.noureldeing-cat-carousel__item:hover .noureldeing-cat-carousel__circle,
.noureldeing-cat-carousel__item:focus-visible .noureldeing-cat-carousel__circle {
	border-color: var(--nd-gold);
	box-shadow:
		0 8px 22px rgba(201, 162, 74, 0.28),
		inset 0 0 0 2px var(--nd-gold);
}

.noureldeing-cat-carousel__item:hover .noureldeing-cat-carousel__circle::after,
.noureldeing-cat-carousel__item:focus-visible .noureldeing-cat-carousel__circle::after {
	opacity: 1;
}

.noureldeing-cat-carousel__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.25s ease;
	-webkit-user-drag: none;
	pointer-events: none;
}

.noureldeing-cat-carousel__item:hover .noureldeing-cat-carousel__img,
.noureldeing-cat-carousel__item:focus-visible .noureldeing-cat-carousel__img {
	filter: brightness(0.9) saturate(1.08);
}

.noureldeing-cat-carousel__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--nd-mint);
	font-size: 34px;
	color: var(--nd-emerald);
	line-height: 1;
}

.noureldeing-cat-carousel__label {
	display: block;
	font-family: var(--nd-font-heading);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--nd-dark-green);
	line-height: 1.45;
	transition: color 0.25s ease;
}

.noureldeing-cat-carousel__item:hover .noureldeing-cat-carousel__label,
.noureldeing-cat-carousel__item:focus-visible .noureldeing-cat-carousel__label {
	color: var(--nd-emerald);
}

.noureldeing-cat-carousel__arrow {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--nd-mint);
	color: var(--nd-emerald);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 1;
}

.noureldeing-cat-carousel__arrow:hover,
.noureldeing-cat-carousel__arrow:focus {
	background: var(--nd-emerald);
	color: var(--nd-white);
	outline: none;
}

.noureldeing-cat-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.noureldeing-cat-carousel__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #dcdcd2;
	cursor: pointer;
	transition: width 0.2s, background 0.2s, border-radius 0.2s;
	border: none;
	padding: 0;
}

.noureldeing-cat-carousel__dot.is-active {
	background: var(--nd-gold);
	width: 20px;
	border-radius: 5px;
}

@media (max-width: 1024px) and (min-width: 641px) {
	.noureldeing-cat-carousel {
		--nd-cat-visible: 5;
	}
}

@media (max-width: 640px) {
	.noureldeing-cat-carousel {
		--nd-cat-visible: 3;
		--nd-cat-gap: 14px;
	}

	.noureldeing-cat-carousel__arrow {
		display: none;
	}
}
