/* page-promocoes.css - BEAUTY ESTHETICA (Versão Final Reforçada) */

.promocoes-page main {
    background-color: #fff;
}

/* --- 1. BANNER --- */
.internal-banner-item {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

/* --- 2. SEÇÃO DESTAQUE (Combo Principal) --- */
.featured-combo-section {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
}

.featured-wrapper {
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-image-col {
    flex: 0 0 45%; 
    max-width: 450px; 
}

.img-frame {
    width: 100%;
    height: 400px; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.featured-text-col {
    flex: 1; 
    text-align: left;
}

.featured-badge {
    background-color: var(--color-accent);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8em;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.featured-text-col h2 {
    font-family: 'Poppins', serif;
    font-size: 2.5em;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.featured-text-col p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.price-row {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.price-row .old { text-decoration: line-through; color: #ccc; font-size: 1.2em; }
.price-row .new { color: var(--color-highlight); font-size: 2em; font-weight: 700; }

/* --- 3. GRID DE CARDS (Correção do Overlap) --- */
.promo-grid-section {
    padding: 60px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-family: 'Poppins', serif;
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.promo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* FIX CRÍTICO: Transformando o card em Flex Column */
.promo-card-item {
    display: flex;           /* Garante estrutura flexível */
    flex-direction: column;  /* Força itens um embaixo do outro */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    min-width: 0;
    height: 100%; /* Faz todos os cards terem a mesma altura na linha */
}

.promo-card-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--color-primary);
    padding: 4px 12px;
    font-size: 0.7em;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5; /* Garante que a tag fique acima de tudo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-img {
    width: 100%;
    height: 250px; 
    background: #f9f9f9; 
    flex-shrink: 0; /* IMPEDE que a imagem seja esmagada pelo texto */
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove espaços fantasmas abaixo da img */
}

.card-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Ocupa o espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empurra o botão para o final */
    background-color: #fff; /* Garante fundo branco sólido */
    position: relative;
    z-index: 2; /* Garante que o texto fique na camada certa */
}

.card-body h3 { 
    font-size: 1.1em; 
    margin-bottom: 5px; 
    color: var(--color-primary);
    line-height: 1.3; 
}

.card-body p { 
    font-size: 0.9em; 
    color: #888; 
    margin-bottom: 15px; 
}

.card-price { 
    display: block; 
    font-size: 1.4em; 
    font-weight: 700; 
    color: var(--color-accent); 
    margin-bottom: 20px; 
    margin-top: auto; /* Empurra preço para baixo se sobrar espaço */
}

.full-btn { width: 100%; display: block; padding: 10px 0; font-size: 0.9em; }

/* --- 4. FAIXA BENEFÍCIOS --- */
.benefits-section {
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
}
.benefits-flex {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.benefit-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95em;
}
.benefit-box i { color: var(--color-accent); font-size: 1.4em; }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    /* Ajuste do Destaque */
    .featured-wrapper {
        flex-direction: column; 
        text-align: center;
        gap: 30px;
    }
    .featured-image-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px; 
    }
    .img-frame { height: 250px; }
    .featured-text-col { text-align: center; padding: 0 15px; }
    .featured-text-col h2 { font-size: 1.8em; }
    .price-row { justify-content: center; }

    /* AJUSTE BLINDADO DOS CARDS MOBILE */
    .card-img {
        height: 150px; /* Altura fixa */
    }
    
    .card-body {
        padding: 10px; 
    }
    
    .card-body h3 {
        font-size: 0.9em;
        /* Limita a 2 linhas para não estourar layout */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.6em; /* Altura fixa para alinhar */
        margin-bottom: 5px;
    }
    
    /* MUDANÇA AQUI: Descrição visível, mas compacta */
    .card-body p {
        display: block;       /* Agora aparece! */
        font-size: 0.75em;    /* Letra reduzida para caber bem */
        line-height: 1.2;     /* Altura da linha mais compacta */
        margin-bottom: 8px;   /* Espaço menor antes do preço */
        
        /* Opcional: limitar linhas se o texto for gigante */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-price {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .card-tag {
        top: 8px; left: 8px;
        font-size: 0.6em;
        padding: 2px 8px;
    }
    
    .full-btn {
        padding: 8px 0;
        font-size: 0.8em;
    }

    /* Ajuste Benefícios */
    .benefits-flex {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
}
