/* ------------------------------------------------------------------ */
/* Ajustes GLOBALES para productos simples (no solo los que tienen
   swatches): evita que WooCommerce oculte el botón "Agregar al carrito"
   y muestre "Ver carrito" en su lugar, para poder seguir sumando
   cantidad del mismo producto sin recargar la página. */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .ajax_add_to_cart {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	text-align: center !important;
	gap: 6px;
}

.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product .wc-forward {
	display: none !important;
}
/* ------------------------------------------------------------------ */

.wvsaa-swatches-wrap {
	margin-top: 10px;
	text-align: left;
}

.wvsaa-attribute {
	margin-bottom: 8px;
}

.wvsaa-attribute-label {
	display: none; /* Sacá este display:none si querés ver el nombre del atributo (ej: "Color:") */
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.wvsaa-select {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	background-color: #fff;
}

.wvsaa-select option:disabled {
	color: #ccc;
}

.wvsaa-swatch-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.wvsaa-swatch {
	cursor: pointer;
	border: 2px solid #ddd;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	background-color: #f2f2f2;
}

.wvsaa-swatch:hover,
.wvsaa-swatch:focus {
	border-color: #999;
	outline: none;
}

.wvsaa-swatch.selected {
	border-color: #2c6ecb;
	box-shadow: 0 0 0 1px #2c6ecb;
}

.wvsaa-swatch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wvsaa-swatch-button {
	border-radius: 4px;
	width: auto;
	min-width: 34px;
	height: 30px;
	padding: 0 8px;
	font-size: 12px;
	background: #fff;
}

.wvsaa-swatch.wvsaa-swatch-unavailable {
	opacity: 0.35;
	cursor: not-allowed;
}

.wvsaa-price-wrap {
	text-align: center;
	margin: 8px 0 4px;
	font-weight: 600;
	min-height: 20px;
}

.wvsaa-qty-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.wvsaa-qty-stepper {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.wvsaa-qty-btn {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	border: none;
	background-color: #4a4a4a;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.15s ease;
}

.wvsaa-qty-btn:hover,
.wvsaa-qty-btn:focus {
	background-color: #2f2f2f;
	outline: none;
}

.wvsaa-qty {
	width: 36px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	-moz-appearance: textfield;
}

.wvsaa-qty::-webkit-outer-spin-button,
.wvsaa-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wvsaa-add-to-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 10px;
	padding: 9px 16px;
	min-height: 40px;
	box-sizing: border-box;
}

.wvsaa-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wvsaa-add-to-cart .wvsaa-cart-icon,
.wvsaa-add-to-cart .wvsaa-check-icon {
	flex-shrink: 0;
}

/* Oculta el link "Ver carrito" / "View cart" que algunos temas insertan
   automáticamente después de un agregado al carrito. */
.wvsaa-swatches-wrap .added_to_cart,
.wvsaa-swatches-wrap .wc-forward,
.wvsaa-swatches-wrap a[href*="view-cart"] {
	display: none !important;
}

.wvsaa-add-to-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wvsaa-message {
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	min-height: 16px;
	flex: 1;
}

.wvsaa-message.wvsaa-success {
	color: #2a7a2a;
}

.wvsaa-message.wvsaa-error {
	color: #c0392b;
}

.wvsaa-swatch.wvsaa-loading {
	pointer-events: none;
	opacity: 0.6;
}
