/* 
//////////////////////
CAIXA DE PESQUISA PESQUISA
///////////////////////
*/
/* Botão de cadastro mais elegante */
.btn-cadastro {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}

/* Ícone de busca dentro do input */
.search-container i.bi-search {
    font-size: 1.2rem;
    pointer-events: none;
}

/* Melhorar visual do campo de busca */
#search {
    border-radius: 12px;
    border: 1px solid #ced4da;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
    outline: none;
}


/* 
//////////////////////
CATEGORIAS
///////////////////////
*/


.btn-category {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 16px; /* ↓ menos arredondado que 50rem */
    padding: 10px 14px;
    color: #343a40;
    font-weight: 500;
    text-align: center;
    border: none;
    outline: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 100px;
    flex: 0 0 auto;
    /*box-shadow: 0 .125rem .25rem rgba(0,0,0,0.05);*/
    transition: all 0.3s ease-in-out;
}

.btn-category i {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: inherit;
}

.btn-category span {
    font-weight: 600;
    font-size: 0.8rem;
    color: inherit;
}

/* Hover (somente desktop) */
@media (hover: hover) {
    .btn-category:hover {
        /*background-color: #007bff;
        color: white;*/
        /*box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);*/
        /*border-color: #007bff;*/
        transform: translateY(-5px);
    }
}

/* Estado ativo */

.btn-category.active {
    background-color: #616161;
    color: white;
    border-color: #303030;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.btn-category.active i {
    color: #343a40;
}


/* Responsivo */
@media (max-width: 768px) {
    .btn-category {
        font-size: 0.75rem;
        padding: 8px 10px;
        height: 90px;
    }

    .btn-category i {
        font-size: 1.2rem;
    }
}

/* Estado ativo (selecionado) */

.btn-category.active {
    background-color: #7070707e;
    color: #343a40;
    border-color: #303030;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Ícone no botão ativo */
.btn-category.active i {
    color: #343a40;
}

/* Rolagem horizontal fluida */
.scroll-categorias {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.scroll-categorias .categoria-wrapper {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 10px;
}

/* Ocultar barra de rolagem no mobile */
@media (max-width: 768px) {
    .scroll-categorias::-webkit-scrollbar {
        display: none;
    }
    .scroll-categorias {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .btn-category {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .btn-category i {
        font-size: 1.2rem;
    }
}