/* Estilos para o sidebar de categorias */
.category-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.category-sidebar.active {
    transform: translateX(0);
}

.category-sidebar.sidebar-entered {
    box-shadow: 2px 0 25px rgba(0, 0, 0, 0.2);
}

.category-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.category-sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.category-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-sidebar-close:hover {
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.category-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.category-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsividade */
@media (max-width: 768px) {
    .category-sidebar {
        width: 280px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-sidebar {
        width: 100%;
    }
}

/* Animação para os ícones */
.category-icon {
    transition: transform 0.2s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

/* Estilo para o botão de categorias no header */
.category-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.category-toggle-btn:hover {
    background-color: #f0f0f0;
}

.category-toggle-btn i {
    font-size: 18px;
}

/* Estilo para a categoria "Todas as categorias" */
.all-categories {
    grid-column: span 2;
    background-color: #f0f0f0;
    font-weight: 600;
}

.all-categories:hover {
    background-color: #e6e6e6;
}
