/* Paleta de Cores e Variáveis */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --bg-color: #f5f7ff;
}

/* Estilos Globais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

/* Container principal para o conteúdo da página */
.main-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Estilo do Cabeçalho e Título */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Estilo dos Botões de Filtro */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.filters button {
    padding: 10px 20px;
    border: 1px solid var(--light-gray);
    background-color: var(--light);
    color: var(--dark);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filters button:hover, .filters button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Vitrine de Produtos - Grid */
#product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Estilo dos Cards de Produto */
.product-card {
    background-color: white;
    border: 1px solid var(--light-gray);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 50%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}
#clear-filters{
    padding: 10px 20px;
    border: 1px solid var(--light-gray);
    background-color: var(--light);
    color: var(--dark);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.product-card h3 {
    font-size: 1.1em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.9em;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.product-card strong {
    color: var(--dark);
}

.product-card a {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.product-card a:hover {
    background-color: #d12267;
}

/* Estilo do Formulário de Cadastro */
.cadastro-form {
    background-color: white;
    border: 1px solid var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.cadastro-form h2 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.cadastro-form button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: block;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.cadastro-form button:hover {
    background: var(--secondary);
}

#message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividade básica para dispositivos menores */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-container {
        padding: 1rem;
    }

    .filters {
        flex-direction: column;
    }

    .product-card img {
        height: auto;
    }

    .cadastro-form {
        padding: 1.5rem;
    }
}
/* Estilo geral da barra de pesquisa */
.search-bar {
    display: flex; /* Alinha o input e o botão lado a lado */
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 50px;
    overflow: hidden; /* Garante que os filhos não ultrapassem as bordas */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilo do campo de texto (input) */
.search-bar input[type="text"] {
    flex-grow: 1; /* Faz o input preencher o espaço disponível */
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none; /* Remove a borda azul ao focar */
}

/* Estilo do botão de pesquisa */
.search-bar button {
    background-color: #4361ee; /* Cor principal de destaque */
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Transição suave para o hover */
}

.search-bar button:hover {
    background-color: #3a0ca3; /* Uma cor mais escura no hover */
}
.fa-magnifying-glass:before, .fa-search:before {
    content: "\f002";
}