/* MKT Favoritos — cores via variáveis do tema (com padrão AFECBRÁS). */
.mkt-fav {
	--mkt-fav-cor: #e0245e;
	display: inline-grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: #6b7280;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.mkt-fav svg path { fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .15s ease, stroke .15s ease; }
.mkt-fav:hover { color: var(--mkt-fav-cor); }
.mkt-fav.is-favorito { color: var(--mkt-fav-cor); }
.mkt-fav.is-favorito svg path { fill: var(--mkt-fav-cor); stroke: var(--mkt-fav-cor); }
.mkt-fav.is-pulsando svg { animation: mkt-fav-pulso .4s ease; }
@keyframes mkt-fav-pulso { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .mkt-fav.is-pulsando svg { animation: none; } }

/* No card: canto superior direito da imagem */
li.product { position: relative; }
.mkt-fav--card {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	opacity: 0;
	transition: opacity .15s ease;
}
li.product:hover .mkt-fav--card,
.mkt-fav--card:focus-visible,
.mkt-fav--card.is-favorito { opacity: 1; }
@media (hover: none) { .mkt-fav--card { opacity: 1; } }

/* Página do produto: linha de ações */
.mkt-produto-acoes { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.mkt-fav--produto,
.mkt-compartilhar__botao {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--mkt-cor-borda, #e5e7eb);
	border-radius: 999px;
	background: #fff;
	color: var(--mkt-marinho, #022669);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.mkt-fav--produto:hover,
.mkt-compartilhar__botao:hover { border-color: currentColor; }
.mkt-fav--produto.is-favorito { border-color: var(--mkt-fav-cor); color: var(--mkt-fav-cor); }

.mkt-compartilhar { position: relative; }
.mkt-compartilhar__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	min-width: 200px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid var(--mkt-cor-borda, #e5e7eb);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}
.mkt-compartilhar__menu[hidden] { display: none; }
.mkt-compartilhar__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 0;
	background: none;
	color: var(--mkt-cor-texto, #111726);
	font-size: 14px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.mkt-compartilhar__item:hover { background: var(--mkt-cor-fundo, #f1f3f2); color: var(--mkt-cor-texto, #111726); }
.mkt-compartilhar__item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.mkt-compartilhar__item--whatsapp::before { background: #25d366; }
.mkt-compartilhar__item--facebook::before { background: #1877f2; }
.mkt-compartilhar__item--x::before { background: #111; }
.mkt-compartilhar__item--telegram::before { background: #2aabee; }
.mkt-compartilhar__item--email::before { background: var(--mkt-marinho, #022669); }
.mkt-compartilhar__item--copiar::before { background: var(--mkt-verde, #03b50e); }

/* Aviso rápido */
.mkt-fav-aviso {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100001;
	display: flex;
	gap: 12px;
	align-items: center;
	max-width: min(92vw, 520px);
	padding: 12px 16px;
	border-radius: 8px;
	background: #1f2937;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.mkt-fav-aviso.is-visivel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mkt-fav-aviso a { color: var(--mkt-amarelo, #fdd704); font-weight: 600; white-space: nowrap; }
@media (max-width: 768px) {
	.mkt-fav-aviso { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Minha conta > Favoritos */
.mkt-favoritos-vazio { padding: 32px 16px; text-align: center; }
.mkt-favoritos-total { color: #6b7280; }

/* O tema pai pinta todo <button>: aqui os botões são claros. */
button.mkt-fav,
button.mkt-fav:hover,
button.mkt-fav:focus { background: none; box-shadow: none; }
.woocommerce ul.products li.product button.mkt-fav--card,
li.product button.mkt-fav--card,
li.product button.mkt-fav--card:hover,
li.product button.mkt-fav--card:focus {
	display: inline-grid;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	color: #6b7280;
}
li.product button.mkt-fav--card.is-favorito { color: var(--mkt-fav-cor); }
button.mkt-fav--produto,
button.mkt-fav--produto:hover,
button.mkt-fav--produto:focus,
.mkt-compartilhar button.mkt-compartilhar__botao,
.mkt-compartilhar button.mkt-compartilhar__botao:hover,
.mkt-compartilhar button.mkt-compartilhar__botao:focus { background: #fff; color: var(--mkt-marinho, #022669); box-shadow: none; }
button.mkt-fav--produto.is-favorito { color: var(--mkt-fav-cor); border-color: var(--mkt-fav-cor); }
.mkt-compartilhar button.mkt-compartilhar__item,
.mkt-compartilhar button.mkt-compartilhar__item:hover { background: none; color: var(--mkt-cor-texto, #111726); box-shadow: none; font-weight: 400; border-radius: 0; }
.mkt-compartilhar button.mkt-compartilhar__item:hover { background: var(--mkt-cor-fundo, #f1f3f2); }

/* Página do produto: ícones discretos no canto superior direito das informações */
.woocommerce div.product .summary { position: relative; }
.mkt-produto-acoes { position: absolute; top: 0; right: 0; z-index: 5; gap: 2px; margin: 0; }
.woocommerce div.product .summary .mkt-produto__vendidos,
.woocommerce div.product .summary .product_title { padding-right: 96px; }
button.mkt-fav--produto,
button.mkt-fav--produto:hover,
button.mkt-fav--produto:focus,
.mkt-compartilhar button.mkt-compartilhar__botao,
.mkt-compartilhar button.mkt-compartilhar__botao:hover,
.mkt-compartilhar button.mkt-compartilhar__botao:focus {
	width: 42px;
	height: 42px;
	padding: 0;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mkt-cor-primaria, #03b50e);
}
button.mkt-fav--produto:hover,
.mkt-compartilhar button.mkt-compartilhar__botao:hover,
.mkt-compartilhar button.mkt-compartilhar__botao[aria-expanded="true"] { background: rgba(5, 136, 68, .1); }
button.mkt-fav--produto svg { width: 24px; height: 24px; }
button.mkt-fav--produto.is-favorito { color: var(--mkt-fav-cor); border: 0; }
button.mkt-fav--produto.is-favorito:hover { background: rgba(224, 36, 94, .1); }
.mkt-compartilhar__menu { left: auto; right: 0; }
@media (max-width: 768px) {
	.woocommerce div.product .summary .mkt-produto__vendidos,
	.woocommerce div.product .summary .product_title { padding-right: 88px; }
}
