/* Estilos aprimorados para a seção de categorias */
.categories-scroll {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.categories-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Exibe a barra de scroll apenas no hover */
.categories-scroll:hover {
    scrollbar-width: thin;
    scrollbar-color: #0ea5e9 transparent;
}

.categories-scroll:hover::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll:hover::-webkit-scrollbar-thumb {
    background-color: #0ea5e9;
    border-radius: 9999px;
}

.categories-scroll:hover::-webkit-scrollbar-track {
    background: transparent;
}

/* Botões de categoria - Estilo aprimorado */
.category-btn {
    background: linear-gradient(to bottom, #44c767 5%, #5cbf2a 100%);
    background-color: #44c767;
    border-radius: 28px;
    border: 1px solid #18ab29;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    height: 42px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #2f6627;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.category-btn:hover {
    background: linear-gradient(to bottom, #5cbf2a 5%, #44c767 100%);
    background-color: #5cbf2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    border-radius: 28px;
}

.category-btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* Modo escuro */
.dark-mode .category-btn {
    background: linear-gradient(to bottom, #2e7d32 5%, #1b5e20 100%);
    background-color: #2e7d32;
    border-color: #1b5e20;
    color: #e8f5e9;
    text-shadow: 0px 1px 0px #1b5e20;
}

.dark-mode .category-btn:hover {
    background: linear-gradient(to bottom, #1b5e20 5%, #2e7d32 100%);
    background-color: #1b5e20;
}

/* Botão ativo/selecionado */
.category-btn.active {
    background: linear-gradient(to bottom, #ff6b35 5%, #f7931e 100%);
    background-color: #ff6b35;
    border-color: #e5561d;
    color: #fff;
    text-shadow: 0px 1px 0px #c44512;
}

.dark-mode .category-btn.active {
    background: linear-gradient(to bottom, #ff8a65 5%, #ff5722 100%);
    background-color: #ff5722;
    border-color: #e64a19;
}

/* Efeito de brilho no hover para o botão ativo */
.category-btn.active:hover {
    background: linear-gradient(to bottom, #f7931e 5%, #ff6b35 100%);
    background-color: #f7931e;
}

/* Estilos para a contagem de itens */
.category-count {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 6px;
    backdrop-filter: blur(4px);
}

.dark-mode .category-count {
    background: rgba(0, 0, 0, 0.25);
}

.category-btn.active .category-count {
    background: rgba(255, 255, 255, 0.35);
}

/* Estilos adicionais para dispositivos móveis */
@media (max-width: 768px) {
    .category-btn {
        width: auto;
        min-width: 120px;
        text-align: center;
        padding: 10px 16px;
        height: 38px;
        font-size: 13px;
    }

    .category-btn i {
        margin-right: 4px;
        font-size: 13px;
    }

    .category-count {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* Animações */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.category-btn.highlight {
    animation: pulse 0.8s ease-in-out;
}

/* Layout e espaçamento */
.categories-container {
    display: flex;
    gap: 12px;
    padding: 8px 4px 16px 4px;
}