/* ------------ estilo banner */   
.banner-topo {
    width: 100%;
    min-height: 150px; /* Altura no PC */
    background: linear-gradient(135deg, #3498db, #2c3e50); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; /* Centraliza vertical */
    justify-content: center; /* Centraliza horizontal */
    text-align: center;
    color: white;
    margin-bottom: 30px; /* Espaço entre o banner e os anúncios */
    margin-top: 40px;
    padding-top: 30px;  
    padding-bottom: 10px;
    box-sizing: border-box; }

.banner-conteudo {
    max-width: 800px; }

.banner-conteudo h1 {
    font-size: 2.2rem; /* Letra grande no PC */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2; }

.banner-conteudo p {
    font-size: 1.5rem;
    margin-bottom: 10px;}

.container-vitrine {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    max-width: 1500px; 
    margin: 0 auto; }

.card-anuncio {
    width: calc(24% - 10px);  
    min-width: 300px; 
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    background: #fff;
    outline: 2px solid #fff; 
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; }

.card-anuncio:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

.tag-fita {
    position: absolute;
    top: 15px;
    left: -45px;
    transform: rotate(-45deg);
    font-weight: 800;
    font-size: 10px;
    width: 140px;
    text-align: center;
    padding: 4px 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

.tag-destaque { background: #ecd507 !important; color: #050505 !important; }
.tag-esgotado { background: #ff0000 !important; color: #ffffff !important; }

/* IMAGEM */
.img-produto { width: 100%; transition: transform 0.3s; }
.img-indisponivel { width: 100%; transition: transform 0.3s; }

/* CONTEÚDO E BOTÕES */
.conteudo-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; }

.conteudo-card h3 {
    font-size: 0.8rem;
    margin: 0 0 10px 0;
    color: #333;
    font-family: sans-serif;
    height: 2.4em; 
    overflow: hidden; }

.btn-fechar {
    width: 100%;           /* Botão largo para facilitar o clique */
    padding: 10px 0;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;        /* IMPEDE que o botão seja esmagado pelo texto */
}


.container-preco {
    display: flex;
    justify-content: center; 
    align-items: baseline;   
    gap: 10px;               
    width: 100%;             
    text-align: center; }

.container-pix {
    display: flex;
    justify-content: center; 
    align-items: baseline;   
    gap: 10px;               
    width: 100%;             
    text-align: center; }

.pix {
     display: flex;
    font-size: 22px;
    color:rgb(10, 145, 10);
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center; }

.preco {
     display: flex;
    font-size: 22px;
    color:rgb(214, 48, 7);
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center; }



.txt-preco {
     display: flex;
    font-size: 14px;
    color:rgb(8, 8, 8);
    margin-bottom: 15px;
    text-align: center; }



.botoes-acoes {
    display: flex;       
    justify-content: space-between; 
    gap: 4%;               
    width: 100%;
    margin-top: auto;      
    padding-top: 15px; }

.btn-add, .btn-saiba-mais {
    display: inline-block; 
    width: 48%;           
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;      
    border-radius: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    vertical-align: middle; }

.btn-add {
    background-color: #27ae60;
    color: white !important; }

.btn-saiba-mais {
    background-color: #3498db;
    color: white !important; }

.btn-add:disabled { background: #ccc; cursor: not-allowed; }

/* MODAL DE DESCRIÇÃO */
.descricao-frame {
    display: none; /* JS vai controlar */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(245, 242, 242, 0.95);
    z-index: 9999;
}



.conteudo-modal {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa a altura total disponível */
}

/* ESTA É A PARTE MAIS IMPORTANTE */
.conteudo-modal p {
    flex-grow: 1;          /* Faz o texto ocupar o espaço que sobra */
    overflow-y: auto;      /* Se o texto for grande, cria uma barra de rolagem interna */
    margin: 10px 0;        /* Espaço entre título e botão */
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    padding-right: 5px;    /* Espaço para a barra de rolagem não cobrir o texto */
    white-space: pre-line; /* Respeita as quebras de linha da planilha */
}

.header-carrossel { 
    text-align: center; 
    margin: 50px 0 20px 0; 
    font-family: sans-serif; 
    width: 100% !important;
}

.nota-badge { 
    color: #f39c12; 
    font-size: 1.4rem; 
    font-weight: bold; 
    margin-top: 5px; 
}

