/* ====== ESTILO BASE ====== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Cabeçalho */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    height: 40px;
    /* altura reduzida */
}

header.crud {
    background: #1821c0;
}

.logo {
    display: flex;
    /* coloca imagem e texto lado a lado */
    align-items: center;
    /* centraliza verticalmente */
}

.logo img {
    height: 60px;
    /* controla altura da imagem */
    width: auto;
    /* mantém proporção */
    background-color: #ddd;
}

.logo h2 {
    margin-left: 10px;
    /* espaço entre imagem e texto */
    font-size: 1.5em;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.weather-info img {
    width: 20px;
    height: 20px;
}

/* Hambúrguer escondido no desktop */
.hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5em;
    color: #fff;

    position: absolute;
    /* ou fixed, dependendo da necessidade */
    top: 13px;
    /* opcional, se quiser também do topo */
    right: 45px;
    /* define a distância do canto direito */
}

.menu {
    display: none;
    /* esconde menu padrão */
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 70px;
    /* abaixo do header */
    right: 0;
    width: 200px;
    padding: 10px;
}

.menu li {
    margin: 10px 0;
}

.menu li a {
    color: #fff;
    text-decoration: none;
}

.menu li a:hover {
    background: #444;
    border-radius: 4px;
}

.menu.show {
    display: flex;
    /* exibe menu quando ativo */
}

/*Sobre - modal*/

.modal-sobre {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    /* Permite rolar o modal se o conteúdo for maior que a tela */
    overflow-y: auto;
}

.modal-sobre-content {
    background: #fff;
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 24px #0002;
    position: relative;
    padding: 32px 24px 24px 24px;
    /* Permite rolar o conteúdo interno */
    overflow-y: auto;
}

@media (max-width: 700px) {
    .modal-sobre-content {
        max-width: 98vw;
        padding: 18px 8px 12px 8px;
        max-height: 80vh;
    }
}


/* Conteúdo principal */
#main-content {
    min-height: calc(100vh - 120px);
    /* ajusta conforme header+footer */
    background-image: url("../assets/imagens/fundo_hpa1.png");
    background-size: 50% 35%;
    background-position: top top;
    background-repeat: repeat;
    background-color: rgba(255, 255, 255, 0.9);
    /* camada branca transparente */
    background-blend-mode: lighten;
    /* ou multiply, overlay, etc. */
    display: flex;
    margin: 0%;
}

/* Catálogo */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-produto {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* Rodapé */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    padding: 0 20px;
    background: #222;
    color: #fff;
}

/* ====== MEDIA QUERIES ====== */

/* Tablets */
@media (max-width: 992px) {
    header {
        flex-wrap: wrap;
        height: auto;
    }

    .search-container {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .menu {
        display: none;
        /* esconde menu padrão */
    }

    .hamburger {
        display: block;
        /* mostra menu hamburguer */
    }

    .search-container {
        flex-direction: column;
        gap: 5px;
    }

    .weather-info {
        font-size: 0.8em;
    }

    footer {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }
}

/* ===== Painel de Administração ===== */
.admin-menu {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-menu h2 {
    margin-bottom: 20px;
    text-align: center;
}

.admin-menu ul {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin: 15px 0;
}

.admin-menu a {
    display: block;
    padding: 12px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.admin-menu a:hover {
    background: #0056b3;
}