* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    position: relative;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Garante espaço entre os elementos */
    flex-wrap: wrap; /* Permite que os itens quebrem linha em telas menores */
    gap: 1rem; /* Espaçamento entre os elementos */
}

.logo {
    width: 80px; /* Ajuste o tamanho conforme necessário */
    height: 80px; /* Ajuste o tamanho conforme necessário */
    border-radius: 50%;
    object-fit: cover;
}

h1 {
    margin: 0;
    text-align: center;
    flex-grow: 1; /* Permite que o título ocupe o espaço restante */
    font-size: 1.5rem;
}

.whatsapp-link {
    text-decoration: none;
    color: white;
    background-color: #25D366;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center; /* Alinha verticalmente o ícone com o texto */
    gap: 0.5rem; /* Espaçamento entre o ícone e o texto */
}

.whatsapp-link:hover {
    background-color: #1ebe52;
}

.whatsapp-logo {
    width: 20px;
    height: auto;
}

.search-container {
    text-align: center;
    margin-top: 1rem;
}

input[type="text"] {
    width: 80%;
    max-width: 400px;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

main {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 1rem;
}

#items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.item {
    background-color: white;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Media Queries para dispositivos móveis */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .whatsapp-link {
        margin-top: 1rem;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    input[type="text"] {
        width: 90%;
        max-width: none;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.5rem; /* Reduz o espaço entre os elementos */
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    h1 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .whatsapp-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    input[type="text"] {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}
