/* Estilo para o cabeçalho */
.topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4CAF50;
    padding: 10px;
    color: white;
}

.topo img {
    height: 40px;
}

.topo h2 {
    margin: 0;
    font-size: 24px;
}

/* Estilo para as categorias */
.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.categoria-item {
    width: 100%;
    max-width: 180px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.categoria-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.categoria-item img:hover {
    transform: scale(1.05);
}

/* Estilo para os produtos */
.produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.produto-item {
    width: 100%;
    max-width: 220px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.produto-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.produto-nome {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.produto-preco {
    color: #e91e63;
    font-weight: bold;
    margin-top: 5px;
}

/* Formatação do botão */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#editar-categoria {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* altura mínima da tela */
    padding: 20px;
}

.categoria-form {
    background-color: #e3f2fd;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* limite máximo */
}

.categoria-form input[type="text"],
.categoria-form input[type="file"],
.categoria-form button {
    width: 100%;
    margin-bottom: 15px;
}

.categoria-form input[type="text"],
.categoria-form input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.categoria-form button {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.categoria-form button:hover {
    background-color: #45a049;
}
