/* =========================================
   NOVO ESCOLHA PRIME
   PRODUCT CARD
   ========================================= */

.product-card {
    position: relative;

    height: 100%;

    background: var(--color-white);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);

    border-color: rgba(217, 164, 65, 0.5);

    box-shadow: var(--shadow-md);
}


/* =========================================
   LINK
   ========================================= */

.product-card__link {
    display: flex;

    flex-direction: column;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* =========================================
   IMAGEM
   ========================================= */

.product-card__image {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: var(--space-6);

    background: var(--color-background);

    border-bottom: 1px solid var(--color-border);
}

.product-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.product-card__image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: var(--space-4);

    color: var(--color-text-muted);

    font-size: var(--font-size-xs);

    text-align: center;
}


/* =========================================
   CONTEÚDO
   ========================================= */

.product-card__content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: var(--space-6);
}

.product-card__brand {
    display: block;

    margin-bottom: var(--space-2);

    color: var(--color-text-muted);

    font-size: var(--font-size-xs);

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.product-card__title {
    margin-bottom: var(--space-3);

    color: var(--color-primary);

    font-size: var(--font-size-lg);

    font-weight: 800;

    line-height: 1.3;
}

.product-card__description {
    margin-bottom: var(--space-5);

    color: var(--color-text-light);

    font-size: var(--font-size-sm);

    line-height: 1.6;
}


/* =========================================
   SCORE
   ========================================= */

.product-card__score {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: var(--space-3);

    margin-top: auto;

    padding-top: var(--space-4);

    border-top: 1px solid var(--color-border-light);
}

.product-card__score-label {
    color: var(--color-text-muted);

    font-size: var(--font-size-xs);

    line-height: 1.4;
}

.product-card__score strong {
    flex: 0 0 auto;

    min-width: 48px;

    padding: 6px 9px;

    background: var(--color-primary);

    color: var(--color-gold);

    border-radius: var(--radius-md);

    font-size: var(--font-size-sm);

    font-weight: 800;

    text-align: center;
}


/* =========================================
   ACESSIBILIDADE
   ========================================= */

.product-card__link:focus-visible {
    outline: 3px solid rgba(217, 164, 65, 0.45);

    outline-offset: -3px;
}


/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 767px) {

    .product-card__image {
        padding: var(--space-5);
    }

    .product-card__content {
        padding: var(--space-5);
    }

    .product-card__title {
        font-size: var(--font-size-base);
    }

    .product-card__description {
        font-size: var(--font-size-xs);
    }

    .product-card__score {
        align-items: flex-start;
    }
}