/* === 1. GERAL (Reset e Configurações Base) === */
* { box-sizing: border-box; }
body { 
    margin: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: #eaeded; /* Fundo cinza claro padrão Amazon */
    color: #0F1111; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* === 2. CABEÇALHO (Estilo Amazon) === */
.site-header { 
    background-color: #131921; /* Preto azulado profundo */
    color: white; 
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    /* Ajuste de Altura para o Logo Novo */
    height: auto; 
    min-height: 90px; 
    display: flex;
    align-items: center;
}

.site-header .container-header { 
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto; 
    padding: 0 20px;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 20px;
}

/* Logo */
.logo a { 
    font-size: 24px; 
    font-weight: bold; 
    color: white; 
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.logo a:hover { opacity: 0.8; }

/* AJUSTE DO TAMANHO DO LOGO (IMG) */
.logo img {
    max-height: 70px; /* Define altura máxima para não estourar */
    width: auto;      /* Largura proporcional */
    display: block;
}

/* Barra de Busca */
.search-bar-wrapper { 
    flex-grow: 1; 
    max-width: 700px; 
}
.search-form { 
    display: flex; 
    border-radius: 4px; 
    overflow: hidden; 
    height: 40px;
}
.search-field { 
    flex-grow: 1; 
    padding: 0 10px; 
    border: none; 
    outline: none; 
    font-size: 16px;
}
.search-submit { 
    background-color: #febd69; /* Amarelo Amazon */
    border: none; 
    padding: 0 20px; 
    cursor: pointer; 
    font-weight: bold; 
    color: #111; 
    transition: background 0.2s;
}
.search-submit:hover { background-color: #f3a847; }

/* Botão Minha Conta */
.btn-conta { 
    color: white; 
    font-size: 14px; 
    font-weight: bold; 
    padding: 8px 10px; 
    border: 1px solid transparent;
    border-radius: 4px;
}
.btn-conta:hover { border-color: white; }

/* === 3. HOME SLIDER (Banner Rotativo) === */
.hero-slider { 
    position: relative; 
    width: 100%; 
    height: 350px; 
    background: #232f3e; 
    overflow: hidden; 
    margin-bottom: 30px; 
}

.slide { 
    display: none; 
    height: 100%; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    padding: 20px; 
    width: 100%;
}
.slide.active { display: flex; }

.slide-content h2 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; }

.btn-slide { 
    background: white; 
    color: #333; 
    padding: 10px 25px; 
    border-radius: 25px; 
    font-weight: bold; 
    transition: 0.3s; 
}
.btn-slide:hover { transform: scale(1.05); }

/* Setas do Slider */
.prev, .next { 
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    padding: 16px; 
    margin-top: -22px; 
    color: white; 
    font-weight: bold; 
    font-size: 18px; 
    user-select: none; 
    background: rgba(0,0,0,0.3); 
    border: none; 
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* === 4. GRID DE OFERTAS (Cards) === */
.container-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px 40px; 
}
.titulo-secao { 
    font-size: 24px; 
    color: #333; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #ddd; 
    padding-bottom: 10px; 
    text-transform: uppercase;
}
.ofertas-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}

/* Cartão Individual */
.card { 
    background: white; 
    border: 1px solid #e0e0e0; 
    border-radius: 4px; 
    overflow: hidden; 
    transition: transform 0.2s; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); 
}
.tag-oferta { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #cc0c39; 
    color: white; 
    font-size: 11px; 
    padding: 4px 8px; 
    border-radius: 2px; 
    font-weight: bold; 
    z-index: 2; 
}

.card-thumb { 
    height: 220px; 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fff; 
    border-bottom: 1px solid #f0f0f0; 
}
.card-thumb img { 
    max-height: 100%; 
    width: auto; 
    object-fit: contain; 
}

.card-content { 
    padding: 15px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.card h3 { 
    font-size: 16px; 
    margin: 0 0 10px; 
    color: #007185; 
    line-height: 1.4; 
    font-weight: 500; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.preco strong { 
    display: block; 
    font-size: 21px; 
    color: #B12704; 
    margin-top: 5px; 
}

.btn-ver { 
    display: block; 
    text-align: center; 
    background: #fae800; 
    color: #111; 
    padding: 10px; 
    font-weight: bold; 
    border-radius: 0 0 4px 4px; 
    font-size: 14px; 
    border-top: 1px solid #eee;
}
.btn-ver:hover { background: #f7ca00; }

/* === 5. PÁGINA DO PRODUTO (Single) === */
.produto-container { 
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 20px; 
    display: flex; 
    gap: 40px; 
    background: white; 
    border-radius: 4px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
} /* <--- FALTAVA FECHAR ESTE BLOCO AQUI! */

/* --- PREÇO NA PÁGINA DO PRODUTO --- */
.box-preco {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee; 
}

.preco-valor {
    display: block;
    font-size: 32px;      
    color: #cc0c39;       
    font-weight: 300;     
}

.col-galeria { flex: 0 0 40%; max-width: 40%; }
.col-conteudo { flex: 1; }

.palco-imagem { 
    height: 400px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #eee; 
    margin-bottom: 15px; 
    border-radius: 4px; 
}
.palco-imagem img { max-height: 100%; max-width: 100%; }

.miniaturas-scroll { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding: 5px 0; 
}
.miniatura { 
    width: 60px; 
    height: 60px; 
    border: 1px solid #ccc; 
    cursor: pointer; 
    border-radius: 4px; 
    object-fit: contain; 
    padding: 2px; 
}
.miniatura.active { 
    border-color: #e77600; 
    box-shadow: 0 0 3px #e77600; 
}

.btn-comprar { 
    display: block; 
    width: 100%; 
    background: #2e7d32; 
    color: white; 
    text-align: center; 
    padding: 15px; 
    border-radius: 30px; 
    font-size: 16px; 
    font-weight: bold; 
    text-transform: uppercase; 
    margin-top: 20px; 
    transition: 0.2s; 
}
.btn-comprar:hover { background: #1b5e20; }

.seguranca { text-align: center; font-size: 12px; color: #777; margin-top: 10px;}

/* === 6. RODAPÉ === */
.site-footer {
    background-color: #232f3e; 
    color: #fff;
    padding: 40px 0; 
    margin-top: 60px;
    border-top: 4px solid #37475a; 
    font-size: 14px;
}

.container-footer {
    max-width: 1200px; 
    margin: 0 auto;    
    padding: 0 20px;   
    text-align: center;
}

.copyright {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0.9;
}

.amazon-disclaimer {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    width: 100%; 
    border-top: 1px solid #4a5b6c; 
    padding-top: 20px;             
    margin-top: 20px;              
}

.site-footer p { margin: 0; font-size: 14px; }

/* === 7. RESPONSIVIDADE (Mobile) === */
@media (max-width: 768px) {
    .site-header .container-header { 
        flex-direction: column; 
        height: auto; 
        padding: 15px; 
        gap: 10px;
    }
    .search-bar-wrapper { width: 100%; }
    .produto-container { flex-direction: column; }
    .col-galeria { max-width: 100%; }
    .hero-slider { height: 250px; }
    .slide-content h2 { font-size: 1.5rem; }
}

/* --- PREÇO ESTILO AMAZON (V2) --- */
.oferta-tag {
    background-color: #CC0C39;
    color: white;
    font-weight: bold;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 5px;
}

.preco-linha {
    display: flex;
    align-items: baseline; 
    gap: 8px; 
}

.porcentagem {
    font-size: 26px;      
    color: #CC0C39;       
    font-weight: 300;     
}

.preco-bloco {
    display: flex;
    align-items: flex-start; 
    color: #0F1111;
    line-height: 1;
}

.preco-bloco .simbolo {
    font-size: 12px;
    margin-top: 5px;      
    margin-right: 1px;
}

.preco-bloco .inteiro {
    font-size: 42px;      
    font-weight: 500;     
    letter-spacing: -1px;
}

.preco-bloco .centavos {
    font-size: 12px;
    margin-top: 5px;      
}

.preco-info {
    font-size: 14px;
    color: #565959;
    margin-top: 5px;
}