/* Colour swatches on shop / category product cards (theme-independent). */
.nc-colour-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 0.5rem;
	justify-content: center;
}

.nc-colour-swatch {
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 9999px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nc-colour-swatch.is-active,
.nc-colour-swatch:hover,
.nc-colour-swatch:focus {
	box-shadow: 0 0 0 2px #2563eb;
	outline: none;
	transform: scale(1.08);
}

.nc-colour-swatch--yellow {
	background: #eab308;
}

.nc-colour-swatch--blue {
	background: #2563eb;
}

.nc-colour-swatch--red {
	background: #dc2626;
}

/* Single product page — replace colour dropdown with labelled swatches */
.nc-variation-row--colour .value {
	position: relative;
}

.nc-colour-select-native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nc-colour-picker {
	margin-bottom: 0.25rem;
}

.nc-colour-swatches--single {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0;
	justify-content: flex-start;
}

.nc-colour-picker-option {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nc-colour-picker-option:hover,
.nc-colour-picker-option:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.nc-colour-picker-option.is-active {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.nc-colour-swatches--single .nc-colour-swatch {
	width: 2rem;
	height: 2rem;
	border-width: 2px;
}

.nc-colour-picker-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #334155;
	line-height: 1.2;
}

.nc-variation-row--colour .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.8125rem;
}
