/**
 * Flipkart-style round category image carousel — transparent, smooth horizontal scroll.
 */

.nwui-cat-round-carousel {
	--nwui-cat-round-visible: var(--nwui-cat-round-desktop-visible, 10);
	--nwui-cat-round-gap: 10px;
	--nwui-cat-round-img-size: var(--nwui-cat-round-img, 56px);
	--nwui-cat-round-label-size: 12px;
	--nwui-cat-round-active: #2874f0;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 0.5rem;
	padding: 0.35rem 0 0;
	background: transparent;
	border: none;
	box-shadow: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	display: block;
}

.nwui-cat-round-carousel .nwui-carousel-track-wrap {
	overflow: hidden;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	padding: 0 0 0.15rem;
	width: 100%;
}

.nwui-cat-round-carousel .nwui-carousel-track-wrap.is-dragging {
	cursor: grabbing;
}

.nwui-cat-round-carousel .nwui-carousel-track {
	display: flex;
	gap: var(--nwui-cat-round-gap);
	transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	width: max-content;
	min-width: 100%;
	margin: 0 auto;
	justify-content: flex-start;
}

.nwui-cat-round-item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	text-decoration: none;
	color: #212121;
	padding: 0.2rem 0 0.45rem;
	min-width: 0;
	position: relative;
	transition: transform 0.25s ease;
}

.nwui-cat-round-item.is-clone {
	pointer-events: none;
}

.nwui-cat-round-item:hover,
.nwui-cat-round-item:focus-visible {
	color: #111;
	transform: translateY(-1px);
}

.nwui-cat-round-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--nwui-cat-round-img-size);
	height: var(--nwui-cat-round-img-size);
	border-radius: 50%;
	overflow: hidden;
	background: transparent;
	border: none;
	box-shadow: none;
	margin: 0 auto 0.35rem;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nwui-cat-round-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	background: transparent;
}

.nwui-cat-round-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: calc(var(--nwui-cat-round-img-size) * 0.38);
	font-weight: 700;
	color: #5f6368;
	background: #f1f3f4;
	border-radius: 50%;
}

.nwui-cat-round-label {
	display: block;
	width: 100%;
	font-family: var(--nwui-font-body, 'Poppins', sans-serif);
	font-size: var(--nwui-cat-round-label-size);
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 2px;
}

.nwui-cat-round-item.is-active .nwui-cat-round-label {
	font-weight: 700;
	color: var(--nwui-cat-round-active);
}

.nwui-cat-round-item.is-active .nwui-cat-round-thumb {
	box-shadow: 0 0 0 2px rgba(40, 116, 240, 0.28);
}

.nwui-cat-round-item.is-active::after {
	content: '';
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--nwui-cat-round-active);
}

.nwui-cat-round-carousel.nwui-cat-fit .nwui-carousel-track {
	justify-content: center;
	width: 100%;
	margin: 0 auto;
}

.nwui-cat-round-carousel.nwui-cat-fit .nwui-carousel-track-wrap {
	display: flex;
	justify-content: center;
}

@media (max-width: 767px) {
	.nwui-cat-round-carousel {
		--nwui-cat-round-visible: var(--nwui-cat-round-mobile-visible, 6);
		--nwui-cat-round-gap: 6px;
		--nwui-cat-round-img-size: var(--nwui-cat-round-img-mobile, 44px);
		--nwui-cat-round-label-size: 10px;
		padding-top: 0.25rem;
	}

	.nwui-cat-round-item {
		padding-bottom: 0.35rem;
	}

	.nwui-cat-round-thumb {
		margin-bottom: 0.28rem;
	}
}

@media (min-width: 1200px) {
	.nwui-cat-round-carousel {
		--nwui-cat-round-gap: 12px;
		--nwui-cat-round-label-size: 13px;
	}
}
