/**
 * Botones Agregar / Add to cart – Rumifay (global)
 * Estilo marketplace compacto: 42px desktop, 40px móvil.
 */

/* —— Primarios (Agregar al carrito) —— */
.rf-premium-card__btn:not(.rf-premium-card__btn--view),
.rf-premium-card__btn.button:not(.rf-premium-card__btn--view),
.rf-premium-card .add_to_cart_button,
.product-card .add_to_cart_button,
.archive-product-card .add_to_cart_button,
.rumifay-product-card .add_to_cart_button,
.woocommerce ul.products li.product .button:not(.rf-premium-card__btn--view),
.woocommerce-page ul.products li.product .button:not(.rf-premium-card__btn--view),
.related .button.add_to_cart_button,
.cross-sells .button.add_to_cart_button,
.upsells .button.add_to_cart_button,
.related .rf-premium-card__btn:not(.rf-premium-card__btn--view),
.cross-sells .rf-premium-card__btn:not(.rf-premium-card__btn--view),
.upsells .rf-premium-card__btn:not(.rf-premium-card__btn--view),
.single_add_to_cart_button,
.rf-pdp__btn--cart,
.rf-flash__cta,
.woocommerce .widget .add_to_cart_button,
.woocommerce .widget a.button.add_to_cart_button,
.woocommerce a.button.add_to_cart_button,
a.add_to_cart_button.button {
	background: #0057ff !important;
	color: #fff !important;
	border: none !important;
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	padding: 0 16px !important;
	border-radius: 12px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	line-height: 1 !important;
	box-shadow: 0 6px 18px rgba(0, 87, 255, 0.2) !important;
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease !important;
	width: 100% !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.rf-premium-card__btn:not(.rf-premium-card__btn--view) span,
.rf-premium-card .add_to_cart_button span,
.product-card .add_to_cart_button span,
.single_add_to_cart_button span,
.rf-pdp__btn--cart span {
	color: #fff !important;
}

.rf-premium-card__btn:not(.rf-premium-card__btn--view):hover,
.rf-premium-card__btn.button:not(.rf-premium-card__btn--view):hover,
.rf-premium-card .add_to_cart_button:hover,
.product-card .add_to_cart_button:hover,
.archive-product-card .add_to_cart_button:hover,
.rumifay-product-card .add_to_cart_button:hover,
.woocommerce ul.products li.product .button:hover,
.related .button.add_to_cart_button:hover,
.cross-sells .button.add_to_cart_button:hover,
.upsells .button.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.rf-pdp__btn--cart:hover,
.rf-flash__cta:hover,
.woocommerce a.button.add_to_cart_button:hover {
	background: #0047d9 !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 87, 255, 0.28) !important;
}

.rf-premium-card__btn:not(.rf-premium-card__btn--view):active,
.rf-premium-card .add_to_cart_button:active,
.single_add_to_cart_button:active,
.rf-pdp__btn--cart:active,
.rf-flash__cta:active {
	transform: translateY(0) scale(0.98);
}

.rf-premium-card__btn:not(.rf-premium-card__btn--view) svg,
.rf-premium-card .add_to_cart_button svg,
.product-card .add_to_cart_button svg,
.archive-product-card .add_to_cart_button svg,
.rumifay-product-card .add_to_cart_button svg,
.woocommerce ul.products li.product .button svg,
.single_add_to_cart_button svg,
.rf-pdp__btn--cart svg,
.rf-flash__cta svg {
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0;
	color: #fff !important;
	stroke: #fff !important;
	fill: none !important;
}

/* Estados WooCommerce */
.rf-premium-card__btn.loading,
.rf-premium-card__btn.is-loading,
.add_to_cart_button.loading {
	opacity: 0.85;
	pointer-events: none;
}

.rf-premium-card__btn.added,
.add_to_cart_button.added {
	background: #10b981 !important;
	box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25) !important;
}

/* Secundario: Ver / variaciones */
.rf-premium-card__btn--view,
.rf-premium-card__btn--view.button,
.rf-flash-card__cart--view {
	background: #fff !important;
	color: #0057ff !important;
	border: 1.5px solid #e5eeff !important;
	box-shadow: none !important;
	height: 42px !important;
	min-height: 42px !important;
	transform: none !important;
}

.rf-premium-card__btn--view span {
	color: #0057ff !important;
}

.rf-premium-card__btn--view:hover {
	background: #f5f9ff !important;
	border-color: #0057ff !important;
	color: #0047d9 !important;
	transform: none !important;
	box-shadow: none !important;
}

/* PDP: Comprar ahora (no es add to cart) */
.rf-pdp__btn--buy {
	background: #fff !important;
	color: #0057ff !important;
	border: 2px solid #0057ff !important;
	box-shadow: none !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 16px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	width: 100% !important;
	transform: none !important;
	font-family: inherit;
	cursor: pointer;
}

.rf-pdp__btn--buy:disabled {
	opacity: 0.65;
	cursor: wait;
}

.rf-pdp__btn--buy:hover {
	background: #f5f9ff !important;
	color: #0047d9 !important;
	border-color: #0047d9 !important;
	transform: translateY(-1px) !important;
	box-shadow: none !important;
}

.rf-pdp__btn--buy span {
	color: inherit !important;
}

.rf-pdp__btn--buy svg {
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0;
	color: #0057ff !important;
	stroke: #0057ff !important;
	fill: none !important;
}

.rf-pdp__btn--buy:hover svg {
	color: #0047d9 !important;
	stroke: #0047d9 !important;
}

/* Flash deals: icono compacto en tarjeta (no full-width) */
.rf-flash-card__cart.add_to_cart_button,
a.rf-flash-card__cart {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	padding: 0 !important;
	border-radius: 10px !important;
	position: absolute;
	right: 6px;
	bottom: 8px;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(0, 87, 255, 0.28) !important;
}

.rf-flash-card__cart.add_to_cart_button:hover,
a.rf-flash-card__cart:hover {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 6px 16px rgba(0, 87, 255, 0.35) !important;
}

.rf-flash-card__cart svg {
	width: 16px !important;
	height: 16px !important;
}

.rf-flash-card__cart--view {
	width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	background: #fff !important;
	border: 1.5px solid #e5eeff !important;
}

/* Mini carrito – CTA checkout */
.rf-mini-cart__btn--checkout {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 16px !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	background: #0057ff !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 6px 18px rgba(0, 87, 255, 0.2) !important;
	transition: all 0.25s ease !important;
}

.rf-mini-cart__btn--checkout:hover {
	background: #0047d9 !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(0, 87, 255, 0.28) !important;
}

.rf-mini-cart__btn--view {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 14px !important;
	border-radius: 12px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

@media (max-width: 768px) {
	.rf-premium-card__btn:not(.rf-premium-card__btn--view),
	.rf-premium-card .add_to_cart_button,
	.product-card .add_to_cart_button,
	.archive-product-card .add_to_cart_button,
	.rumifay-product-card .add_to_cart_button,
	.woocommerce ul.products li.product .button,
	.single_add_to_cart_button,
	.rf-pdp__btn--cart,
	.rf-pdp__btn--buy,
	.rf-flash__cta,
	.woocommerce a.button.add_to_cart_button {
		height: 40px !important;
		min-height: 40px !important;
		max-height: 40px !important;
		border-radius: 11px !important;
		font-size: 14px !important;
		padding: 0 14px !important;
	}

	.rf-premium-card__btn:not(.rf-premium-card__btn--view) svg,
	.rf-premium-card .add_to_cart_button svg,
	.product-card .add_to_cart_button svg,
	.woocommerce ul.products li.product .button svg,
	.single_add_to_cart_button svg,
	.rf-pdp__btn--cart svg,
	.rf-pdp__btn--buy svg {
		width: 17px !important;
		height: 17px !important;
	}

	.rf-premium-card__btn--view,
	.rf-premium-card__btn--view.button {
		height: 40px !important;
		min-height: 40px !important;
	}

	.rf-mini-cart__btn--checkout,
	.rf-mini-cart__btn--view {
		height: 40px !important;
		min-height: 40px !important;
		font-size: 14px !important;
	}
}
