/**
 * Card de perfume (ProductCard, js/components/home/ProductCard.js) — prefixo hm-prod-.
 * Usado pelas duas homes (o CosmeticProductCard reusa as classes) e pelo catálogo.
 * Mobile-first. Carregar antes de styles/home.css.
 */

:root {
    /* Verde do à vista com 4,5:1+ em fundo branco */
    --hm-cash: #17803A;
}

.hm-prod-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.hm-prod-img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: var(--ds-bg);
    overflow: hidden;
    margin-bottom: 8px;
}
.hm-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.hm-prod-link:hover .hm-prod-img img { transform: scale(1.04); }
.hm-prod-brand {
    font: 600 10px/1.3 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ds-text-muted);
}
.hm-prod-name {
    font-size: 14px;
    line-height: 1.3;
    color: var(--ds-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.hm-prod-price { display: flex; flex-direction: column; margin-top: 4px; }
.hm-prod-from { font-size: 11px; color: var(--ds-text-muted); }
.hm-prod-card { font-size: 18px; font-weight: 500; color: var(--ds-text); letter-spacing: -0.2px; }
.hm-prod-cash { font-size: 12px; line-height: 1.35; color: var(--hm-cash); }

.hm-prod-img { position: relative; }
.hm-prod-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--ds-wine);
    color: #fff;
    font: 600 11px/1.2 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.hm-prod-inspired {
    font-size: 12px;
    line-height: 1.35;
    color: var(--ds-wine);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-prod-perf { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.hm-prod-perf-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
    font-size: 11px;
    line-height: 1.3;
}
.hm-prod-perf-label { color: var(--ds-text-muted); }
.hm-prod-perf-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--ds-border);
    overflow: hidden;
}
.hm-prod-perf-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ds-gold) 0, var(--ds-wine) 100%);
}
.hm-prod-perf-value { color: var(--ds-text); font-weight: 600; white-space: nowrap; }
.hm-prod-installment { font-size: 12px; line-height: 1.35; color: var(--ds-text-muted); }

.hm-prod-link--shelf .hm-prod-card { font-size: 19px; }

/* Disponibilidade e amostra (só o catálogo liga: showAvailability/showTester) */
.hm-prod-avail {
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--ds-border);
    font-size: 11px;
    line-height: 1.5;
    color: var(--ds-text-muted);
}
.hm-prod-tester { font-size: 12px; line-height: 1.35; color: var(--ds-text-muted); }

@media (prefers-reduced-motion: reduce) {
    .hm-prod-img img { transition: none; }
}
