/* Aplica o posicionamento fixo (sticky) ao cabeçalho */
header.site-header {
    position: -webkit-sticky; /* Para compatibilidade com Safari */
    position: sticky;
    top: 0;
    z-index: 1000; /* Garante que o cabeçalho fique sobre outros elementos */
}

/* Adiciona um espaçamento no topo do conteúdo principal para não ficar escondido */
main {
    padding-top: 20px;
}

/* ===== ESTILOS EXISTENTES DA PÁGINA DE PRODUTOS ===== */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: #333;
}

.filter-container {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-filter-form label {
    font-weight: bold;
    color: #495057;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

#categoria-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 1rem;
}

#categoria-select:hover {
    border-color: #80bdff;
}

.search-results-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 15px 10px;
    height: 44px; /* Garante altura fixa para alinhar os preços */
    overflow: hidden;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e83e8c;
    margin-bottom: 15px;
}

.btn-add-cart {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #218838;
}

.no-results-message {
    grid-column: 1 / -1; /* Ocupa todas as colunas do grid */
    text-align: center;
    font-size: 1.2rem;
    padding: 40px;
}

