﻿.cards-busca {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 2rem 0.5rem !important;
}

.filtro-card {
    border: none;
    background: #fff;
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(60,60,60,0.06);
    transition: box-shadow 0.2s;
}


.filtro-toggle {
    color: black;
    font-size: 1.5rem;
}

    .filtro-toggle:focus {
        text-decoration: none;
        box-shadow: none;
    }

    .filtro-toggle:hover {
        text-decoration: none;
        box-shadow: none;
    }

.filtro-body {
    padding-left: 0px;
}

.custom-search {
    position: relative;
}

.custom-search-input {
    border-radius: 10px !important;
    padding-right: 2.2rem;
    border: 1.5px solid #f4f4f4;
    height: 30px;
}

.custom-search-icon {
    position: absolute;
    top: 0;
    right: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #bbb7b7;
    cursor: pointer;
}

.custons {
    padding: 0.5rem;
}

#filtros-aside {
    background-color: whitesmoke;
    border-radius: 15px;
    padding: 1rem;
}

.custom-control-label {
    vertical-align: baseline;
}


@media (max-width: 768px) {
    #filtros-aside {
        margin-bottom: 1rem;
    }

    aside#aside-filtros {
        position: fixed;
        top: 0;
        right: -100vw !important;
        width: 85vw;
        max-width: 340px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.08);
        transition: right 0.3s;
        overflow-y: auto;
        padding: 1rem;
        border-radius: 0;
        display: block !important;
    }

        aside#aside-filtros.open {
            right: 0vw !important;
        }

    .backdrop-filtros {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.20);
        z-index: 1040;
    }

        .backdrop-filtros.show {
            display: block;
        }
}

@media (min-width: 769px) {
    .backdrop-filtros {
        display: none !important;
    }
}

.filtro-checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    min-height: 25px;
    position: relative;
    padding: 0px 5px;
}

.filtro-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    z-index: 1;
}

.filtro-checkbox-label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    display: block;
}

    .filtro-checkbox-label:before {
        content: "";
        position: absolute;
        left: 0;
        width: 20px;
        height: 20px;
        border: 1px solid #cfcfcf;
        border-radius: 4px;
        transition: border-color 0.15s, background 0.15s;
        box-sizing: border-box;
    }

.filtro-checkbox-input:checked + .filtro-checkbox-label:before {
    background: var(--cor-padrao, #0066ff);
    border-color: none;
}

.filtro-checkbox-label:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    border-radius: 1.5px;
}

.filtro-checkbox-input:checked + .filtro-checkbox-label:after {
    transform: rotate(45deg) scale(1);
}

.filtro-checkbox-input:focus + .filtro-checkbox-label:before {
    outline: 2px solid var(--cor-padrao, #0066ff);
    outline-offset: 2px;
}

.filtro-checkbox-list {
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: initial;
    max-width: 100%;
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .filtro-checkbox-list::-webkit-scrollbar {
        height: 10px;
        background: #fff;
    }

    .filtro-checkbox-list::-webkit-scrollbar-thumb {
        background: #f4f4f4;
        border-radius: 2px;
    }

    .filtro-checkbox-list::-webkit-scrollbar {
        width: 6px;
    }

.filtro-opcoes-scroll {
    max-height: 250px;
    overflow-y: auto;
}

    .filtro-opcoes-scroll::-webkit-scrollbar {
        width: 6px;
        background: #fff;
    }

    .filtro-opcoes-scroll::-webkit-scrollbar-thumb {
        background: #f4f4f4;
        border-radius: 4px;
    }

    .filtro-opcoes-scroll::-webkit-scrollbar-track {
        background: #fff;
    }

.txt-busca {
    padding: 7px;
}

.slc-order {
    gap: 7px;
}

.slc-person {
    padding-right: 1rem !important;
    font-weight: bold;
    border: none;
    width: 10em
}

    .slc-person:focus {
        padding-right: 1rem !important;
        font-weight: bold;
        border: none;
    }

.span-count {
    background-color: whitesmoke;
    padding: 3px 5px;
    border-radius: 5px;
    font-weight: bolder;
    color: #535353;
}

.custom-switch {
    position: relative;
    border: none;
    background: #fff;
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(60, 60, 60, 0.06);
    transition: box-shadow 0.2s;
}

    .custom-switch .custom-control-label {
        padding-left: 4rem;
        cursor: pointer;
        width: 100%;
    }

        .custom-switch .custom-control-label::before {
            content: '';
            position: absolute;
            left: 0.9rem;
            top: 61%;
            margin-top: -12px;
            width: 3rem;
            height: 1.7rem;
            border-radius: 1rem;
            background: #ddd;
            border: 1px solid #ccc;
            transition: background 0.3s;
        }

        .custom-switch .custom-control-label::after {
            content: '';
            position: absolute;
            left: 0.9rem;
            top: 58%;
            margin-top: -10px;
            width: 1.7rem;
            height: 1.7rem;
            border-radius: 50%;
            background: #fff;
            border: 1px solid #bbb;
            transition: left .2s cubic-bezier(.4,0,.2,1);
            box-shadow: 0 1px 3px 0 rgba(0,0,0,.06);
        }

    .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
        left: 1.6rem;
    }

    .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
        background: var(--cor-padrao);
        border-color: var(--cor-padrao);
    }

.paginacao-produtos {
    justify-self: self-end;
    margin-top: 1rem
}

.busca-overlay-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20);
    z-index: 10;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    pointer-events: all;
}

.busca-logo-spinner {
    width: 250px;
    margin-top: 10rem;
    margin-bottom: 16px;
    animation: busca-pulse 2.4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.22));
    display: block;
    object-fit: contain;
    object-position: center;
    margin-left: auto;
    margin-right: auto;
}


.busca-loading-text {
    color: var(--padrao-new);
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.22);
    text-align: center;
}

@keyframes busca-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}
