/* Card de produto compartilhado (estilo Favoritos) */
.produto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--brand-000);
    border: 1px solid var(--brand-150);
    border-radius: var(--radius, 2px);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.25s ease, border-color 0.15s ease;
    opacity: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.produto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-300);
}

.produto-card.removendo {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
}

.produto-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.produto-card__imagem {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--brand-040);
    overflow: hidden;
}

.produto-card__imagem.loading {
    background: #f5f5f5;
}

.produto-card__imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.produto-card__imagem img.img-primaria.lazyload,
.produto-card__imagem img.img-primaria.lazyloading {
    opacity: 0.35;
}

.produto-card__imagem img.img-primaria.lazyloaded {
    opacity: 1;
}

.produto-card__imagem img.img-secundaria {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.produto-card__imagem.tem-segunda-foto:hover img.img-primaria {
    opacity: 0;
}

.produto-card__imagem.tem-segunda-foto:hover img.img-secundaria {
    opacity: 1;
}

.produto-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px 14px;
    min-width: 0;
}

.produto-card__nome {
    margin: 0;
    color: var(--brand-900);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-card__meta {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-850);
    letter-spacing: 0.02em;
}

.preco-produto {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.preco-produto__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 3px 5px;
    border-radius: var(--radius, 2px);
    background: var(--brand-900);
    color: var(--brand-000);
    vertical-align: middle;
}

.preco-produto__antigo {
    font-weight: 400;
    color: var(--brand-600, #8a7e7c);
    text-decoration: line-through;
}

.preco-produto__atual {
    font-weight: 600;
    color: var(--brand-900);
}

.produto-card__acao {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--brand-150);
    border-radius: var(--radius, 2px);
    background: var(--brand-000);
    color: var(--brand-800);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.produto-card__acao:hover,
.produto-card__acao:focus-visible {
    color: var(--brand-900);
    background: var(--brand-040);
    border-color: var(--brand-450);
    outline: none;
}

.produto-card__acao.btn-favorito-card.ativo {
    color: var(--brand-900);
    border-color: var(--brand-450);
    background: var(--brand-000);
}

.produto-card__acao svg {
    width: 18px;
    height: 18px;
    display: block;
}

.produto-card__acao.btn-favorito-card svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.produto-card.mix-card {
    background: color-mix(in srgb, var(--brand-400) 22%, var(--brand-000));
    border-color: color-mix(in srgb, var(--brand-400) 38%, var(--brand-150));
}

.produto-card.mix-card .produto-card__imagem img {
    object-fit: cover;
}

.produto-card.mix-card .produto-card__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
}

.produto-card.mix-card .produto-card__nome,
.produto-card.mix-card .produto-card__meta {
    grid-column: 1;
}

.mix-card__tag {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    padding: 4px 6px;
    background: var(--brand-800);
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.2;
    border-radius: var(--radius, 2px);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .produto-card__info {
        padding: 10px;
    }

    .produto-card__nome {
        font-size: 13px;
    }
}
