/* Vitrusfer — site novo: card de produto único (inc/product-card.php). Vale para loja, busca, home, relacionados e
 * favoritos. Sobrescreve o card antigo de base.css (mesmas classes .vf-card__*), só dentro de .vf-n-card.
 * Mobile-first. Cores pelos tokens --vf-n-* de base.css. */

.vf-n-card {
	container-type: inline-size;
	position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
	padding: 8px; border: 1px solid var(--vf-n-line); border-radius: 12px; background: #fff;
	box-shadow: 0 1px 3px rgba(15, 30, 140, .05);
	transition: box-shadow .15s, border-color .15s;
}
.vf-n-card:hover { border-color: #c4d1f2; box-shadow: 0 4px 14px rgba(15, 30, 140, .1); }

/* Foto */
.vf-n-card .vf-card__media { position: relative; padding: 0; }
.vf-n-card .vf-card__media > a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #fff; }
.vf-n-card .vf-card__img { width: 100%; height: 100%; object-fit: contain; }
.vf-n-card.is-out .vf-card__img { opacity: .55; }

/* Coração (favoritos do WoodMart): círculo branco de 36 px dentro de um alvo de toque de 44 px */
.vf-n-card .vf-card__tools { position: absolute; top: -4px; left: -4px; z-index: 2; display: flex; }
.vf-n-card .vf-card__tools .wd-wishlist-btn > a {
	display: grid !important; place-items: center; width: 44px !important; height: 44px !important; padding: 0;
	border: 0; border-radius: 50%; color: var(--vf-n-navy);
	background: radial-gradient(circle, #fff 0 17px, var(--vf-n-line) 17.5px 18px, transparent 18.5px);
}
.vf-n-card .vf-card__tools .wd-wishlist-btn > a::before {
	content: "" !important; width: 18px; height: 18px; font-size: 0 !important; background: currentColor;
	-webkit-mask: url("../img/novo/loja/icones/coracao.svg") center / contain no-repeat;
	mask: url("../img/novo/loja/icones/coracao.svg") center / contain no-repeat;
}
.vf-n-card .vf-card__tools .wd-wishlist-btn > a:hover { color: var(--vf-n-royal); }
.vf-n-card .vf-card__tools .wd-wishlist-btn > a.added { color: var(--vf-n-orange); }
.vf-n-card .vf-card__tools .wd-wishlist-btn > a.added::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}
.vf-n-card .vf-card__tools .wd-wishlist-btn > a::after { left: calc(50% - .5em); }
.vf-n-card .vf-card__tools .wd-wishlist-btn > a.loading::before { opacity: 0; }
.vf-n-card .vf-card__tools .wd-action-btn > a span { display: none; }

/* Etiqueta "Pronta entrega" + selo Vitrusfer */
/* Sobre a base da foto, como no modelo: o selo (com fundo branco) cobre o "V" que muitas fotos já trazem nesse canto */
.vf-n-card__tags {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px;
	min-height: 36px; margin: -36px 0 6px; padding: 0 0 0 2px; pointer-events: none;
}
.vf-n-card__pill {
	display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 24px; padding: 0 10px 0 8px; border-radius: 999px;
	background: var(--vf-n-royal); color: #fff; font: 700 13px/1 var(--vf-font); white-space: nowrap;
}
.vf-n-card__pill svg { flex: none; width: 15px; height: 15px; }
.vf-n-card__pill--order { padding-left: 10px; background: var(--vf-n-orange-btn); }
.vf-n-card__pill--out { padding-left: 10px; background: var(--vf-n-gray); }
.vf-n-card__selo { flex: none; box-sizing: content-box; width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 -4px 0 2px #fff; }

/* Nome, preço e botão */
.vf-n-card .vf-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 0; }
.vf .vf-n-card .vf-card__title { margin: 0; font: 500 14px/1.35 var(--vf-font) !important; letter-spacing: 0; min-height: calc(14px * 1.35 * 2); }
.vf-n-card .vf-card__title a {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	color: var(--vf-n-navy); text-decoration: none;
}
.vf-n-card .vf-card__title a:hover { color: var(--vf-n-royal); text-decoration: underline; text-underline-offset: 2px; }

.vf-n-card .vf-price { display: flex; flex-direction: column; gap: 0; margin-top: 2px; }
.vf-n-card .vf-price__from { color: var(--vf-n-gray); font: 500 13px/1.2 var(--vf-font); }
.vf-n-card .vf-price__now { color: var(--vf-n-navy); font: 800 20px/1.2 var(--vf-font); letter-spacing: -.01em; }
.vf-n-card__old { color: var(--vf-n-gray); font: 500 13px/1.2 var(--vf-font); }
.vf-n-card__old del { color: inherit; }

.vf-n-card .vf-card__actions { margin-top: auto; padding-top: 8px; }
.vf .vf-n-card .vf-card__actions .vf-btn {
	display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; padding: 6px 8px;
	border-radius: 8px; font: 700 14px/1.15 var(--vf-font); text-align: center; text-transform: none; letter-spacing: 0; box-shadow: none;
}
.vf .vf-n-card .vf-card__actions .vf-btn--buy { border: 0; background: var(--vf-n-orange-btn); color: #fff !important; }
.vf .vf-n-card .vf-card__actions .vf-btn--buy:is(:hover, :focus-visible) { background: #a84200; color: #fff !important; }
.vf .vf-n-card .vf-card__actions .vf-btn--buy svg { flex: none; width: 18px; height: 18px; }
.vf .vf-n-card .vf-card__actions .vf-btn--ghost { border: 2px solid var(--vf-n-royal); background: #fff; color: var(--vf-n-royal); }
.vf .vf-n-card .vf-card__actions .vf-btn--ghost:is(:hover, :focus-visible) { background: var(--vf-n-baby); color: var(--vf-n-navy); }
.vf .vf-n-card .vf-card__actions .vf-btn:focus-visible { outline: 3px solid var(--vf-n-royal); outline-offset: 2px; }
.vf-n-card .vf-btn--buy.loading { opacity: .7; pointer-events: none; }
.vf-n-card .vf-btn--buy.added::after { display: none !important; }
.vf-n-card .added_to_cart { display: block; margin-top: 6px; color: var(--vf-n-royal); font: 700 13px/1.3 var(--vf-font); text-align: center; text-decoration: underline; }

/* Card estreito (celular, 5–6 colunas): sem o ícone do carrinho para o texto caber numa linha */
@container (max-width: 200px) {
	.vf .vf-n-card .vf-card__actions .vf-btn--buy svg { display: none; }
	.vf .vf-n-card .vf-card__actions .vf-btn { font-size: 13px; padding-inline: 4px; }
	.vf-n-card__pill { padding-inline: 7px 8px; gap: 4px; }
}
/* Sem espaço para etiqueta + selo lado a lado (celular): fica só a etiqueta; a maioria das fotos já traz o "V" */
@container (max-width: 171px) {
	.vf-n-card__selo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vf-n-card { transition: none; } }
