/* Estilos para a Vitrine de Produtos Afiliados da Amazon */

.mas-showcase-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Padrão Desktop: 4 colunas */
    gap: 20px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

/* Estilo do Card de Produto */
.mas-product-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mas-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Imagem do Produto */
.mas-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Detalhes do Produto */
.mas-product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mas-product-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 5px 0;
    min-height: 2.2em; /* Garante altura mínima para títulos de 2 linhas */
}

.mas-product-rating {
    color: #ffc107; /* Cor amarela para as estrelas */
    font-size: 1.2em;
    margin-bottom: 5px;
}

.mas-star {
    display: inline-block;
    margin: 0 1px;
}

.mas-star-filled {
    color: #ffc107;
}

.mas-star-empty {
    color: #ccc;
}

.mas-product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #000;
    margin: 10px 0;
}

/* Botão de Compra */
.mas-buy-button {
    display: inline-block;
    background-color: #ff9900; /* Cor laranja da Amazon */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.mas-buy-button:hover {
    background-color: #e68a00;
}

/* --- RESPONSIVIDADE --- */

/* Tablet (2 colunas) */
@media (max-width: 1024px) {
    .mas-showcase-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (1 coluna) */
@media (max-width: 600px) {
    .mas-showcase-container {
        grid-template-columns: 1fr;
    }
    
    .mas-product-card {
        display: flex;
        text-align: left;
        padding: 10px;
    }

    .mas-product-card a:first-child {
        flex-shrink: 0;
        margin-right: 10px;
    }

    .mas-product-image {
        max-width: 100px;
        height: auto;
        margin-bottom: 0;
    }

    .mas-product-details {
        align-items: flex-start;
        flex-grow: 1;
    }

    .mas-product-title {
        font-size: 1em;
        min-height: auto;
    }

    .mas-product-price {
        font-size: 1.1em;
        margin: 5px 0;
    }

    .mas-buy-button {
        padding: 8px 15px;
        font-size: 0.9em;
        width: auto;
        align-self: flex-end;
    }
}
