/*!
 * Nedclan Cards – Shop by Category.
 * Values come from Settings → Shop by Category (set per section as CSS variables).
 */
.ncc {
	--ncc-w: calc((100% - var(--ncc-gaps, 5) * var(--ncc-gap, 32px)) / var(--ncc-n, 6));
	position: relative;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}
.ncc *, .ncc *::before, .ncc *::after { box-sizing: border-box; }

/* Title row */
.ncc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 var(--ncc-title-gap, 64px);
}
.ncc .ncc-title {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	color: var(--ncc-title, #1d1d1d);
	font-family: inherit;
	font-size: var(--ncc-title-size, 48px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-align: var(--ncc-title-align, left);
	text-transform: none;
}
.ncc-nav { display: flex; flex: 0 0 auto; gap: 10px; }
.ncc-nav[hidden] { display: none; }
.ncc .ncc-nav button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 50%;
	background: var(--ncc-arrow-bg, #fff);
	color: var(--ncc-arrow-color, #1d1d1d);
	box-shadow: none;
	cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease, border-color .2s ease;
}
.ncc .ncc-nav button:hover { border-color: var(--ncc-arrow-color, #1d1d1d); background: var(--ncc-arrow-bg, #fff); color: var(--ncc-arrow-color, #1d1d1d); }
.ncc .ncc-nav button:focus-visible { outline: 2px solid var(--ncc-label-hover, #b5432a); outline-offset: 2px; }
.ncc .ncc-nav button:disabled { opacity: .35; cursor: default; }
.ncc-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Row */
.ncc .ncc-track {
	display: flex;
	gap: var(--ncc-gap, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ncc-is-slider .ncc-track {
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	/* room for the lift effect and focus outline */
	margin: -10px 0;
	padding: 10px 0;
}
.ncc-is-slider .ncc-track::-webkit-scrollbar { display: none; }
.ncc-is-slider .ncc-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.ncc-is-slider .ncc-track.is-dragging a { pointer-events: none; }
.ncc-is-grid .ncc-track { flex-wrap: wrap; row-gap: calc(var(--ncc-gap, 32px) * 1.25); }

.ncc .ncc-item {
	flex: 0 0 var(--ncc-w);
	width: var(--ncc-w);
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
	list-style: none;
}
.ncc .ncc-item::before, .ncc .ncc-item::marker { content: none; }

.ncc .ncc-link {
	display: flex;
	flex-direction: column;
	gap: var(--ncc-label-gap, 24px);
	color: var(--ncc-label, #1d1d1d);
	text-decoration: none;
	box-shadow: none;
	-webkit-user-drag: none;
	transition: transform .3s ease;
}
.ncc .ncc-link:focus-visible { outline: 2px solid var(--ncc-label-hover, #b5432a); outline-offset: 4px; border-radius: 4px; }

/* Image */
.ncc-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--ncc-ratio, 1 / 1);
	overflow: hidden;
	border: var(--ncc-bw, 0) solid var(--ncc-bc, #e5e5e5);
	background: var(--ncc-img-bg, #f3f3f3);
	isolation: isolate;
}
.ncc-radius-circle .ncc-media { border-radius: 50%; }
.ncc-radius-none .ncc-media { border-radius: 0; }
.ncc-radius-custom .ncc-media { border-radius: var(--ncc-radius, 16px); }
.ncc-radius-arch .ncc-media { border-radius: 50% 50% var(--ncc-radius, 16px) var(--ncc-radius, 16px) / 37.5% 37.5% var(--ncc-radius, 16px) var(--ncc-radius, 16px); }
.ncc .ncc-media img,
.ncc .ncc-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	-webkit-user-drag: none;
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

/* Label */
.ncc-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--ncc-label-align, center);
	column-gap: 2px;
	row-gap: 4px;
	color: inherit;
	font-size: var(--ncc-label-size, 22px);
	font-weight: var(--ncc-label-weight, 500);
	line-height: 1.25;
	text-align: var(--ncc-label-align, center);
	transition: color .2s ease;
}
.ncc-name { overflow-wrap: anywhere; }
.ncc-arrow {
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .25s ease;
}
.ncc-count { flex: 1 0 100%; color: var(--ncc-label, #1d1d1d); opacity: .6; font-size: .7em; font-weight: 400; }

/* Hover / current */
.ncc .ncc-link:hover,
.ncc .ncc-link:focus-visible,
.ncc .is-current .ncc-link { color: var(--ncc-label-hover, #b5432a); }
.ncc .ncc-link:hover .ncc-arrow { transform: translateX(4px); }
.ncc-hover-zoom .ncc-link:hover .ncc-img { transform: scale(1.07); }
.ncc-hover-lift .ncc-link:hover { transform: translateY(-6px); }

.ncc-empty { padding: 14px 16px; border: 1px dashed #c3c4c7; border-radius: 8px; color: #50575e; font-size: 14px; }

@media (max-width: 767px) {
	.ncc .ncc-nav button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
	.ncc-is-slider .ncc-track { scroll-behavior: auto; }
	.ncc .ncc-link, .ncc .ncc-img, .ncc-arrow { transition: none; }
}
