/**
 * WooCommerce Variation Swatches Styling
 */

/* Hide WooCommerce native price displays when custom price wrapper exists */
.woocommerce div.product .swatch-price-wrapper ~ * p.price,
.woocommerce div.product .swatch-price-wrapper ~ * span.price,
.woocommerce div.product p.price:not(.swatch-price-wrapper p.price):not(.swatch-price-wrapper *),
.woocommerce div.product span.price:not(.swatch-price-wrapper span.price):not(.swatch-price-wrapper *) {
	display: none !important;
}

/* Ensure prices inside the swatch wrapper are visible */
.woocommerce div.product .swatch-price-wrapper p.price,
.woocommerce div.product .swatch-price-wrapper span.price,
.woocommerce div.product .swatch-price-wrapper .price {
	display: inline-block !important;
}

/* Make sure our custom price wrapper displays properly */
.swatch-price-wrapper {
	display: block !important;
	margin: 15px 0 20px 0 !important;
	padding: 0;
	clear: both;
}

.swatch-price-wrapper .swatch-variation-price {
	display: inline-block !important;
	color: #958e09 !important;
	margin: 0 !important;
}

/* Override WooCommerce price color inside swatch wrapper */
.woocommerce div.product .swatch-price-wrapper p.price,
.woocommerce div.product .swatch-price-wrapper span.price {
	color: #958e09 !important;
}

.variation-swatches-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 15px;
}

.swatch-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	min-width: 50px;
	height: 50px;
	border: 2px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	color: #333;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.swatch-button:hover:not(.disabled):not(.out-of-stock) {
	border-color: #999;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transform: translateY(-1px);
}

.swatch-button.selected {
	border-color: #333;
	background-color: #333;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.swatch-button.disabled,
.swatch-button.out-of-stock {
	opacity: 0.5;
	cursor: not-allowed;
	color: #999;
}

.swatch-button.disabled:hover,
.swatch-button.out-of-stock:hover {
	border-color: #ddd;
	box-shadow: none;
	transform: none;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
	.variation-swatches-container {
		gap: 6px;
	}

	.swatch-button {
		padding: 6px 12px;
		min-width: 45px;
		height: 45px;
		font-size: 12px;
	}
}



