/* NewMe Medikal — renk swatch'leri
   Yer: child theme -> assets/swatches.css */

/* Orijinal <select>'i görünmez yap ama DOM'da tut (WC JS için gerekli) */
.newme-native-select {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
}

/* WC'nin "Temizle" (reset) linkini gizle — tek nitelik olduğu için gerekmiyor */
.single-product .variations .reset_variations {
	display: none !important;
}

/* WC bazen niteliği bir tabloda sarar; etiket satırını sadeleştir */
.single-product .variations td,
.single-product .variations th {
	border: 0;
	padding: 0;
}
.single-product .variations .label {
	display: none; /* "Renk:" etiketi swatch üstünde gereksiz; istersen kaldır */
}

.newme-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 6px 0 2px;
}

.newme-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 0;
	padding: 2px;
	cursor: pointer;
	font-family: inherit;
}

.newme-swatch-dot {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--sw, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.newme-swatch:hover .newme-swatch-dot {
	transform: translateY(-1px);
}

/* Seçili renk — marka camgöbeği glow */
.newme-swatch.is-active .newme-swatch-dot {
	box-shadow:
		0 0 0 3px #fff,
		0 0 0 5px #16BEF2,
		0 0 16px 2px rgba(22, 190, 242, 0.65);
}

.newme-swatch-label {
	font-size: 12px;
	line-height: 1;
	color: #0A1922;
}

/* "Son X adet!" — kırmızı aksan */
.newme-swatch-stock {
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
	color: #F23440;
	min-height: 13px;
}

/* Tükenen renk */
.newme-swatch.is-sold-out {
	opacity: 0.45;
	cursor: not-allowed;
}
.newme-swatch.is-sold-out .newme-swatch-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(
		45deg,
		transparent 44%,
		#F23440 45%,
		#F23440 55%,
		transparent 56%
	);
}
