/* Watchsp variation swatches — front end */

.ws-swatches .ws-native {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ws-swatch-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 2px;
}

.ws-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 78px;
	padding: 5px 5px 6px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
	font: inherit;
	line-height: 1.2;
}

.ws-swatch:hover {
	border-color: #c9b28a;
	transform: translateY(-1px);
}

.ws-swatch.is-active {
	border-color: #a9803f;
	box-shadow: 0 0 0 2px rgba(169, 128, 63, .18);
}

.ws-swatch:focus-visible {
	outline: 2px solid #0b3a6b;
	outline-offset: 2px;
}

.ws-sw-thumb {
	display: block;
	width: 66px;
	height: 66px;
	border-radius: 4px;
	overflow: hidden;
	background: #f5f6f8;
	border: 1px solid #eef0f3;
}

.ws-sw-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ws-sw-dot {
	display: block;
	width: 100%;
	height: 100%;
}

.ws-sw-label {
	font-size: 11px;
	color: #4b5563;
	text-align: center;
	letter-spacing: .01em;
}

.ws-swatch.is-active .ws-sw-label {
	color: #0b3a6b;
	font-weight: 700;
}

/* 无图时（纯色）缩小为圆形色块 */
.ws-swatch:not(.has-img) {
	width: auto;
	min-width: 62px;
}

.ws-swatch:not(.has-img) .ws-sw-thumb {
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

@media (max-width: 760px) {
	.ws-swatch {
		width: 70px;
	}

	.ws-sw-thumb {
		width: 58px;
		height: 58px;
	}
}
