/* ===== Botão Shopee ===== */
a.btn-shopee-intelyze {
    background-color: #ee4d2d;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background-color .3s ease;
    line-height: 1;
    width: 100%;
}

    a.btn-shopee-intelyze:hover {
        background-color: #d84326;
        color: white !important;
        text-decoration: none !important;
    }

    a.btn-shopee-intelyze:visited,
    a.btn-shopee-intelyze:active,
    a.btn-shopee-intelyze:focus {
        color: white !important;
        text-decoration: none !important;
    }

    a.btn-shopee-intelyze::before {
        content: "";
        display: inline-block;
        background-image: url('https://intelyze.com.br/assets/img/customizer/icon-shopee-compra.png');
        background-size: 80%;
        background-position: center;
        background-repeat: no-repeat;
        width: 40px;
        height: 40px;
        border-radius: 4px;
        margin-right: 4px;
        flex-shrink: 0;
    }

    a.btn-shopee-intelyze br {
        display: none;
    }

/* ===== Container ===== */
.recomendacoes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    text-align: center;
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 10px;
    background-color: #fafafa;
    box-sizing: border-box;
}

    .recomendacoes-container > h2 {
        flex: 0 0 100%;
        text-align: center;
        margin: 0 0 20px;
        font-size: 1.6rem;
        color: #333;
        font-weight: bold;
    }

/* ===== Card (3 por linha) ===== */
.produto-recomendado {
    flex: 0 1 calc(33.333% - 16px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: transform .2s ease;
}

    .produto-recomendado:hover {
        transform: translateY(-4px);
    }

/* Conteúdo cresce e empurra botão pra base */
.produto-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

    .produto-info a.btn-shopee-intelyze {
        margin-top: auto;
    }

/* ===== Imagem ===== */
.produto-imagem {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 8px auto;
}

/* ===== Nome (sempre 3 linhas de altura) ===== */
.produto-nome {
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.35;
    margin: 5px 0 8px;
    /* altura exata de 3 linhas */
    min-height: calc(1.35em * 3);
    max-height: calc(1.35em * 3);
    display: flex;
    align-items: center; /* centraliza verticalmente quando o texto é menor */
    justify-content: center;
    text-align: center;
}

    /* o link é quem faz o clamp do texto */
    .produto-nome a {
        color: #0077cc;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Chrome/Safari/Edge */
        line-clamp: 3; /* especificação mais nova (fallback gracioso) */
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word; /* evita overflow em palavras grandes */
    }

        .produto-nome a:hover {
            text-decoration: underline;
        }

/* ===== Avaliação ===== */
.produto-avaliacao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 2.2rem;
    color: #f4b400;
    margin-bottom: 4px;
}

/* ===== Preço ===== */
.produto-preco {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
}

    .produto-preco b {
        font-size: 2.45rem;
        font-weight: 800;
        color: #111;
    }

/* ===== Responsividade ===== */
@media (max-width: 992px) {
    .produto-recomendado {
        flex-basis: calc(50% - 16px);
    }

    .produto-nome {
        font-size: 1.05rem;
    }

    .produto-preco b {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .produto-recomendado {
        flex-basis: 100%;
    }

    .produto-avaliacao {
        font-size: 2rem;
    }

    .produto-preco {
        font-size: 2rem;
    }

        .produto-preco b {
            font-size: 1.9rem;
        }

    .produto-nome a {
        font-size: 1.4rem;
    }
}
