/* 1. CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: #999999; /* Cor cinza de fundo */
    color: #333;
}

/* 2. CABEÇALHO (LOGO E MENU) */
header {
    background-image: url("Imagens/logo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2f6598;
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 30px;
    position: relative;
}

/* Camada escura para ler o menu melhor sobre a foto */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

nav {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 30px;
    border-radius: 50px;
    z-index: 2; /* Fica acima da camada escura */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}

nav a:hover {
    color: #2f6598;
    background: white;
    border-radius: 5px;
    padding: 0 5px;
}

/* 3. SEÇÃO DE PRODUTOS (GRID) */
.produtos {
    padding: 60px 20px;
    text-align: center;
}

.produtos h2 {
    margin-bottom: 40px;
    color: white;
    font-size: 32px;
}

.grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.produto {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 250px;
    transition: transform 0.3s;
}

.produto:hover {
    transform: translateY(-10px);
}

.produto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.produto h3 {
    margin: 15px 0 10px;
    font-size: 18px;
}

.produto p {
    font-weight: bold;
    color: #2f6598;
    margin-bottom: 15px;
}

.produto button {
    background: #2f6598;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.produto button:hover {
    background: #1e4468;
}

/* 4. BOTÕES FLUTUANTES (A ESCADINHA) */
.carrinho-icon, 
.whatsapp-flutuante, 
.btn-orcamento-flutuante {
    position: fixed;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;  
    height: 50px;  
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

/* Posições */
.carrinho-icon {
    bottom: 20px;
    background-color: #00008b; /* Azul escuro */
}

.whatsapp-flutuante {
    bottom: 85px; /* 20 + 50 + 15 de espaço */
    background-color: #25D366; /* Verde */
}

.btn-orcamento-flutuante {
    bottom: 150px; /* 85 + 50 + 15 de espaço */
    background-color: #2f6598; /* Azul logo */
}

.carrinho-icon:hover, .whatsapp-flutuante:hover, .btn-orcamento-flutuante:hover {
    transform: scale(1.08);
}

/* 5. RODAPÉ */
footer {
    text-align: center;
    padding: 30px;
    background: #222;
    color: white;
    margin-top: 50px;
}

/* Estilo do Modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-conteudo {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.fechar {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px;
    cursor: pointer;
}

.modal-flex { display: flex; gap: 20px; flex-wrap: wrap; }

.fotos-vitrine img#fotoPrincipal {
    width: 100%; max-width: 350px;
    border-radius: 10px;
}

.miniaturas { display: flex; gap: 10px; margin-top: 10px; }
.miniaturas img { 
    width: 60px; height: 60px; 
    cursor: pointer; border: 1px solid #ddd; 
}

.info-produto { flex: 1; text-align: left; }
.btn-comprar-modal {
    background: #25D366; color: white; border: none;
    padding: 15px; width: 100%; cursor: pointer; font-weight: bold;
}