/**
 * Elementor widget — Circle Navigation
 */

.ns-el-circle-nav {
	--ns-circle-nav-size: 88px;
	--ns-circle-nav-gap: 20px;
	--ns-circle-nav-label-gap: 10px;
	--ns-circle-nav-bg: #f1f5f9;
	--ns-circle-nav-hover-scale: 1.04;
	width: 100%;
}

.ns-el-circle-nav__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 0.5rem;
}

.ns-el-circle-nav__viewport::-webkit-scrollbar {
	display: none;
}

.ns-el-circle-nav__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: var(--ns-circle-nav-gap);
	min-width: min-content;
	padding: 0.25rem 0;
}

.ns-el-circle-nav--stretch .ns-el-circle-nav__viewport {
	overflow: visible;
	scroll-snap-type: none;
}

.ns-el-circle-nav--stretch .ns-el-circle-nav__track {
	flex-wrap: wrap;
	justify-content: space-between;
	min-width: 100%;
}

.ns-el-circle-nav--stretch .ns-el-circle-nav__item {
	flex: 1 1 0;
	min-width: 0;
	max-width: calc(var(--ns-circle-nav-size) + 2rem);
}

.ns-el-circle-nav__item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: calc(var(--ns-circle-nav-size) + 1.5rem);
	max-width: 8.5rem;
	text-decoration: none;
	color: inherit;
	scroll-snap-align: start;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.25s ease;
}

.ns-el-circle-nav__item:hover {
	transform: translateY(-2px);
}

.ns-el-circle-nav__visual {
	position: relative;
	flex-shrink: 0;
	width: var(--ns-circle-nav-size);
	height: var(--ns-circle-nav-size);
}

.ns-el-circle-nav__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ns-circle-nav-bg);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ns-el-circle-nav__item:hover .ns-el-circle-nav__circle {
	transform: scale(var(--ns-circle-nav-hover-scale));
}

.ns-el-circle-nav__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ns-el-circle-nav__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.5rem;
	color: rgba(15, 23, 42, 0.2);
}

.ns-el-circle-nav__text {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0.5rem;
	font-size: clamp(0.75rem, 2.5vw, 0.95rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	border-radius: 50%;
}

.ns-el-circle-nav__circle--icon {
	background: #ffffff;
	border: 1px solid #0f172a;
}

.ns-el-circle-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: calc(var(--ns-circle-nav-size) * 0.28);
	line-height: 1;
}

.ns-el-circle-nav__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ns-el-circle-nav__badge {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	z-index: 3;
	max-width: calc(100% + 0.5rem);
	padding: 0.2rem 0.45rem;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff;
	background: #0f172a;
	border-radius: 999px;
	pointer-events: none;
	transform: translate(-18%, -35%);
}

[dir='rtl'] .ns-el-circle-nav__badge {
	transform: translate(18%, -35%);
}

.ns-el-circle-nav__label {
	display: block;
	width: 100%;
	margin-top: var(--ns-circle-nav-label-gap);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: #0f172a;
	transition: color 0.2s ease;
}

.ns-el-circle-nav__label {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (min-width: 768px) {
	.ns-el-circle-nav--scroll .ns-el-circle-nav__track {
		justify-content: center;
	}

	.ns-el-circle-nav--scroll .ns-el-circle-nav__viewport {
		overflow-x: auto;
	}
}

@media (max-width: 767px) {
	.ns-el-circle-nav__viewport {
		margin-inline: -0.5rem;
		padding-inline: 0.5rem;
	}

	.ns-el-circle-nav--stretch .ns-el-circle-nav__track {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
	}

	.ns-el-circle-nav--stretch .ns-el-circle-nav__item {
		flex: 0 0 auto;
		max-width: 8.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ns-el-circle-nav__item,
	.ns-el-circle-nav__circle,
	.ns-el-circle-nav__label,
	.ns-el-circle-nav__badge {
		transition: none;
	}

	.ns-el-circle-nav__item:hover {
		transform: none;
	}

	.ns-el-circle-nav__item:hover .ns-el-circle-nav__circle {
		transform: none;
	}
}

body.nextshop-color-dark .elementor-widget-nextshop_circle_nav .ns-el-circle-nav__label,
body.nextshop-color-white .elementor-widget-nextshop_circle_nav .ns-el-circle-nav__label {
	color: inherit;
}
