/* -------------------------------------------------- */
/* BASE.CSS - Estilos Globais e Compartilhados */
/* -------------------------------------------------- */

:root {
    --theme-color: #0044CC;  /* Azul Vibrante (Logo) */
    --theme-dark: #002a80;   /* Azul Escuro */
    --theme-light: #e6f0ff;  /* Azul Claro Fundo */
    --white: #ffffff;
    --text-color: #333;
    --gray-border: #e0e0e0;
    --success-green: #25D366; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- CABEÇALHO (Header) --- */
.top-header {
    background-color: var(--theme-color);
    padding: 15px 0;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo aumentada */
.logo img { 
    max-height: 90px; 
    display: block; 
}

/* Barra de Busca */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}
.search-container { display: flex; }
.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}
.search-btn {
    background-color: var(--theme-dark);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
}

/* Dropdown de Busca */
.search-dropdown {
    position: absolute; top: 105%; left: 0; width: 100%;
    background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000; display: none; border-radius: 10px; color: #333;
}
.search-dropdown.active { display: block; }
.search-result-item { padding: 10px; display: flex; align-items: center; border-bottom: 1px solid #eee; cursor: pointer; }
.search-result-item:hover { background-color: #f5f5f5; }
.search-result-item img { width: 40px; margin-right: 10px; }

/* --- CONTATO NO HEADER (NOVO LAYOUT) --- */
.header-contact { 
    display: flex; 
    flex-direction: column; /* Coloca um embaixo do outro */
    align-items: flex-end;  /* Alinha à direita */
    justify-content: center;
    color: var(--white);
}

/* Linha 1: Ícone + Texto "WhatsApp" (MODIFICADO) */
.contact-top-row {
    display: flex;
    align-items: center;    /* Centraliza ícone com texto verticalmente */
    gap: 6px;               /* Espacinho entre o ícone e o texto */
    font-size: 1em;         /* De 0.9em para 1em (Um pouco maior) */
    font-weight: 700;       /* De 400 para 700 (Mais escuro/negrito) */
    color: #DDDDDD;         /* Cor cinza claro */
    opacity: 1;             /* Garante que a cor seja totalmente aplicada */
    margin-bottom: 2px;     /* Espacinho pro número embaixo */
}

/* MODIFICAÇÃO DO ÍCONE */
.contact-top-row i {
    font-size: 1.3em;       /* Aumentado de 1.2em para 1.3em */
    color: #DDDDDD;         /* Aplicando a mesma cor do texto */
}

/* Linha 2: O Número */
.contact-number { 
    font-size: 1.35em;      /* Número bem grande e visível */
    font-weight: 700;       /* Negrito */
    line-height: 1;         
}

/* --- MENU DE NAVEGAÇÃO --- */
.main-nav { background-color: var(--white); border-bottom: 1px solid #eee; }
.nav-list { display: flex; gap: 30px; }
.nav-list.centered-nav { justify-content: center; gap: 40px; }
.nav-list li a {
    display: block; padding: 15px 0;
    font-weight: 600; color: #555; text-transform: uppercase; font-size: 0.9em;
}
.nav-list li a:hover { color: var(--theme-color); }

/* --- RODAPÉ (Footer) --- */
.footer { 
    background-color: #1a1a1a; 
    color: #ccc; 
    padding: 60px 0 20px; 
    margin-top: 60px; 
    text-align: center; /* Centraliza o texto geral */
}

.footer h3 { 
    color: var(--white); 
    margin-bottom: 20px; 
    font-size: 1.2em; 
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Linha decorativa abaixo do título */
.footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--theme-color);
    margin: 8px auto 0;
}

/* Ajuste específico para o flex do rodapé */
.footer .header-flex {
    align-items: flex-start !important; 
    justify-content: center;
    text-align: center;
}

/* Centraliza o conteúdo de cada coluna */
.footer .header-flex > div {
    display: flex;
    flex-direction: column;
    align-items: center; 
    flex: 1;
}

/* Ícones e Textos */
.footer p, .footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ccc;
    transition: color 0.3s;
    text-decoration: none; /* NOVO: Garante que links de telefone/SAC não sejam sublinhados */
}

.footer a:hover { color: var(--theme-color); }

.footer i {
    font-size: 1.1em;
    color: var(--theme-color);
}

.footer-bottom { 
    border-top: 1px solid #333; 
    text-align: center; 
    padding-top: 20px; 
    margin-top: 40px; 
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsivo Footer */
@media (max-width: 900px) {
    .footer .header-flex { 
        flex-direction: column; 
        align-items: center !important; 
        gap: 40px; 
    }
}

/* --- WHATSAPP FIXO (Botão flutuante) --- */
.whatsapp-sticky {
    position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; z-index: 999;
    background: #fff; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.whatsapp-sticky:hover { transform: scale(1.1); }
.whatsapp-sticky img { width: 100%; border-radius: 50%; }

/* --- CARD DE PRODUTO (Compartilhado) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border: 1px solid transparent; justify-content: space-between; height: 100%;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--theme-light);
}

.product-image-container {
    height: 180px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
}
.product-image-container img { max-height: 100%; max-width: 100%; object-fit: contain; }

.product-card h3 {
    font-size: 1.05em; color: #333; margin-bottom: 5px; font-weight: 700;
    min-height: 50px; display: flex; align-items: center; justify-content: center;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    min-height: 35px; /* Garante uma altura mínima para alinhamento */
}

.product-details {
    font-size: 0.8em;
    font-weight: 600;
    color: #888;
    margin-bottom: 15px;
    min-height: 25px; /* Garante uma altura mínima para alinhamento */
}

.product-price {
    font-size: 1.2em; font-weight: 800; color: var(--theme-color); margin: 10px 0 15px 0;
}

/* Botão Ver Detalhes */
.btn-card-details {
    background: transparent;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9em; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; width: 100%; max-width: 200px;
}

.product-card:hover .btn-card-details {
    background-color: var(--theme-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 68, 204, 0.3);
}

/* Responsivo Geral */
@media (max-width: 900px) {
    .header-flex { flex-direction: column; gap: 15px; text-align: center; }
    .header-contact { align-items: center; margin-top: 10px; } /* Centraliza o contato no mobile */
    .search-wrapper { width: 100%; }
    .nav-list, .nav-list.centered-nav { flex-wrap: wrap; justify-content: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 500px) {
    .product-grid { grid-template-columns: 1fr; } 
}