/* Variation swatches — replaces WooCommerce dropdowns on single product pages. */

.woocommerce div.product form.cart .variations select.thc-swatch-select {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.woocommerce div.product form.cart .variations {
	display: block;
	width: 100%;
	border: 0;
	margin: 0 0 1rem;
}

.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	text-align: left;
}

.woocommerce div.product form.cart .variations th.label label {
	display: block;
	margin: 0 0 0.5rem;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	color: var(--thc-heading, #12172b);
}

.thc-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.thc-swatch {
	appearance: none;
	cursor: pointer;
	min-width: 3.75rem;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	border: 1.5px solid rgba(18, 23, 43, 0.16);
	background: #fff;
	color: #12172b;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.thc-swatch:hover:not(.is-disabled) {
	border-color: var(--thc-accent, #38bdf8);
	transform: translateY(-1px);
}

.thc-swatch:focus-visible {
	outline: 2px solid var(--thc-accent, #38bdf8);
	outline-offset: 2px;
}

.thc-swatch.is-active {
	border-color: var(--thc-accent, #38bdf8);
	background: var(--thc-accent, #38bdf8);
	color: #05121c;
	box-shadow: 0 6px 16px rgba(56, 189, 248, 0.28);
}

.thc-swatch.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	color: rgba(18, 23, 43, 0.6);
}

@media (max-width: 480px) {
	.thc-swatch {
		flex: 1 1 auto;
		min-width: 4rem;
		text-align: center;
	}
}
