/* Magenta Catálogo – Fase 1 */

.mgc-wa-btn,
.woocommerce a.button.mgc-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--mgc-bg, #c2185b) !important;
	color: var(--mgc-color, #fff) !important;
	border: 0 !important;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	text-decoration: none !important;
	white-space: normal;
	text-align: center;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.mgc-wa-btn:hover,
.mgc-wa-btn:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.mgc-wa-btn:focus-visible {
	outline: 2px solid var(--mgc-bg, #c2185b);
	outline-offset: 3px;
}

.mgc-wa-icon {
	flex: 0 0 auto;
}

/* En los listados el botón ocupa todo el ancho de la tarjeta. */
.mgc-wa-btn--loop {
	width: 100%;
	margin-top: 8px;
	font-size: 13px;
	padding: 9px 12px;
}

/* En la ficha de producto, botón grande. */
.mgc-wa-single {
	margin: 20px 0;
}

.mgc-wa-btn--single {
	font-size: 16px;
	padding: 14px 28px;
	min-width: 260px;
}

@media (max-width: 600px) {
	.mgc-wa-btn--single {
		width: 100%;
		min-width: 0;
	}
}

/* Botón flotante. */
.mgc-wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #25d366;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}

.mgc-wa-float:hover,
.mgc-wa-float:focus-visible {
	transform: scale(1.08);
}

.mgc-wa-float .mgc-wa-icon {
	width: 30px;
	height: 30px;
}

/* La barra inferior móvil del tema Basel tapa el botón flotante. */
@media (max-width: 1024px) {
	body.basel-toolbar-enabled .mgc-wa-float,
	.basel-toolbar ~ .mgc-wa-float {
		bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mgc-wa-btn,
	.mgc-wa-float {
		transition: none;
	}
}

/* Restos del carrito que algunos temas dejan visibles. */
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart .quantity,
.product .cart .quantity {
	display: none !important;
}
