@import "helpers";

#con-content {
    /*padding-top: 30px;*/
}

#con-nav {
    position: relative;    
    width:100%;
    max-width: 327px;
    padding: 30px 0px;
    margin-bottom: 30px;

    @media(max-width:1199px){
        margin: 0px;
        padding: 0px;
        max-width: 100%;
    }
    
    .title-content{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 15px;
        margin-bottom: 55px;

        p{
            display: block;
            margin: 0px;
            color: $textoDark;
            font: normal 14px $fontRegular;
            line-height: 20px;
        }
    }

    .filtrar-title{
        display: block;
        margin: 0px;
        color: #4A4A4A;
        font: normal 25px $fontSemibold;
    }

    & > h2 {
        cursor: pointer;
        padding: 0;
        padding-top: 20px;
        color: #4A4A4A;
        font: normal 16px $fontRegular;

        &:after{
            @media(min-width:768px){
                @include sprite();
                content: "";
                width: 10px;
                height: 10px;
                margin-top: -2px;
                margin-left: 10px;
                vertical-align: middle;
                background-position: -281px -51px;
            }
        }

        &.selected{
            &:after{
                @media(min-width:768px){
                    background-position: -305px -51px;
                }
            }
        }
    }

    .titleFiltros{
        display: none;
    }

    #nav1 {
        padding-bottom: 40px;

        .titulo{
            display: block;
            margin: 0px;
            margin-bottom: 30px;
            color: #565656;
            font: normal 18px $fontRegular;
            line-height: 25px;
        }

        .u1{
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 20px;

            .l1 {
                display: block;
                width: 100%;

                .a1 {
                    display: flex;
                    outline: 0px;
                    width: 100%;
                    color: $textoDark;
                    font: normal 15px $fontRegular;
                    line-height: 21px;
                    align-items: center;
                    @include transicao(0.4s ease-in-out);

                    .a-icon{
                        display: none;
                    }
                }

                .u2{
                    overflow: hidden;
                    display: none;
                    flex-direction: column;
                    width: 100%;
                    gap: 20px;
                    padding-top: 20px;

                    .l2{
                        display: block;
                        width: 100%;
                        padding-left: 20px;

                        &.opened,
                        &.active{
                            .a2{
                                .a-icon{
                                    border-color: $highlight;

                                    svg{
                                        visibility: visible;
                                        pointer-events:initial;
                                        opacity: 1;
                                        transition: opacity 0.3s linear;
                                    }
                                }
                            }
                        }

                        .a2 {
                            display: flex;
                            outline: 0px;
                            width: 100%;
                            color: $textoDark;
                            font: normal 15px $fontRegular;
                            line-height: 21px;
                            align-items: center;
                            @include transicao(0.4s ease-in-out);

                            .a-icon{
                                display: none;
                            }
                        }

                        .u3{
                            display: flex;
                            flex-direction: column;
                            width: 100%;
                            gap: 20px;
                            padding-top: 20px;

                            .l3{
                                display: block;
                                width: 100%;
                                padding-left: 40px;

                                &.opened,
                                &.active{
                                    .a3{
                                        .a-icon{
                                            border-color: $highlight;

                                            svg{
                                                visibility: visible;
                                                pointer-events:initial;
                                                opacity: 1;
                                                transition: opacity 0.3s linear;
                                            }
                                        }
                                    }
                                }

                                .a3 {
                                    display: flex;
                                    outline: 0px;
                                    width: 100%;
                                    color: $textoDark;
                                    font: normal 15px $fontRegular;
                                    line-height: 21px;
                                    align-items: center;
                                    @include transicao(0.4s ease-in-out);

                                    .a-icon{
                                        display: none;
                                    }
                                }
                            }
                        }
                    }
                }

                &.opened,
                &.active{
                    .a1{
                        .a-icon{
                            border-color: $highlight;

                            svg{
                                visibility: visible;
                                pointer-events:initial;
                                opacity: 1;
                                transition: opacity 0.3s linear;
                            }
                        }
                    }

                    ul {
                        display: flex;
                    }
                }

                &:last-child {
                    border-bottom-width: 1px;
                }
            }
        }

        .mobileModalClose{
            position: fixed;
            z-index: 22;
            cursor: pointer;
            display: block;
            width: calc(100vw - 20px);
            height: 40px;
            bottom: 10px;
            left: 10px;
            padding: 10px;
            color: #FFFFFF;
            font-size: 18px;
            font-weight: normal;
            font-family: $fontBold;
            line-height: 18px;
            font-style: normal;
            text-align: center;
            background-color: $dark;

            @media(min-width:768px){
                display: none;
            }
        }
    }

    .filtro {
        .filtroLoading {
            font-size: 13px;
            font-family: $fontRegular;
        }

        .u1{
            .l1{
                display: block;
                padding-bottom: 40px;

                & > a{
                    display: block;
                    outline: 0px;
                    color: $textoDark;
                    font: normal 12px $fontBold;

                    &.l1-title{
                        cursor: pointer;
                        display: block;
                        margin: 0px;
                        margin-bottom: 30px;
                        color: #565656;
                        font: normal 18px $fontRegular;
                        line-height: 25px;
                    }
                }

                .u2 {
                    position: relative;
                    overflow-y: auto;
                    display: block;
                    /*max-height: 500px;*/
                    /*padding-top: 20px;*/

                    .l2{
                        display: block;
                        width: 100%;
                        text-indent: 20px;
                        margin-bottom: 10px;

                        .a3{
                            overflow: hidden;
                            display: block;
                            outline: 0px;
                            width: 100%;
                            padding: 10px 0px;
                            color: #727272;
                            font: normal 14px $fontLight;

                            img {
                                display: block;
                                width: 100%;
                                height: 100%;
                                margin: 0px;
                            }

                            &.selected{
                                &:before{
                                    background-color: #AAAAAA;
                                }
                            }
                        }
                    }
                }

                &.classificacoes {
                    .u2 {
                        display: block;

                        .l2 {
                            border: none;

                            .a3 {
                                border:none;
                            }
                        }
                    }
                }

                &.cores{
                    .u2{
                        overflow-y: auto;
                        display: flex;
                        flex-wrap: wrap;
                        width: 100%;
                        max-height: 435px;
                        gap: 15px;

                        .l2{
                            display: block;
                            width: 42px;
                            height: 42px;

                            .a3{
                                display: flex;
                                align-items: center;
                                justify-content: flex-start;
                                overflow: hidden;
                                outline: 0px;
                                width: 100%;
                                height: 100%;
                                padding: 0px;
                                gap: 8px;
                                
                                img{
                                    display: block;
                                    width: 100%;
                                    height: 100%;
                                    border-radius: 100%;
                                    border: solid 1px $borders;
                                }

                                p{
                                    // display: block;
                                    display: none;
                                    margin: 0px;
                                    color: $textoDark;
                                    font: normal 14px $fontMedium;
                                    line-height: 18px;
                                    text-indent: 0px;
                                }

                                &.selected{
                                    img{
                                        border: 2px solid $highlight;
                                    }

                                    p{
                                        font-family: $fontBold;
                                    }
                                }
                            }
                        }
                    }
                }

                &.tamanhos{
                    .u2{
                        overflow-y: auto;
                        display: flex;
                        flex-wrap: wrap;
                        width: 100%;
                        max-height: 435px;
                        gap: 15px;

                        .l2{
                            position: relative;
                            display: block;
                            width: 45px;
                            height: 45px;

                            .a3{
                                position: absolute;
                                display: flex;
                                overflow: hidden;
                                outline: 0px;
                                width: 100%;
                                height: 100%;
                                top: 0px;
                                left: 0px;
                                padding: 0px;
                                color: $textoDark;
                                font: normal 18px $fontRegular;
                                line-height: 25px;
                                text-align: center;
                                text-indent: 0px;
                                letter-spacing: 0px;
                                align-items: center;
                                justify-content: center;
                                border-radius: 100%;
                                background-color: #F5F5F5;
                                border: solid 2px transparent;

                                .a-icon{
                                    display: none;
                                }

                                &.selected{
                                    border-color: $highlight;

                                    .a-icon{
                                        border-color: $highlight;

                                        svg{
                                            visibility: visible;
                                            pointer-events:initial;
                                            opacity: 1;
                                            transition: opacity 0.3s linear;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                &.disponibilidade{
                    .u2{
                        display: flex;
                        flex-direction: column;
                        width: 100%;
                        gap: 19px;

                        .item-disponibilidade{
                            display: flex;
                            align-items: center;
                            width: 100%; 
                            position: relative;

                            input[type="radio"] {
                                opacity: 0;
                                width: 100%;
                                position: absolute;
                                cursor: pointer;
                            }

                            label{
                                margin: 0;
                                cursor: pointer;
                                color: $textoDark;
                                font: normal 15px $fontRegular;
                                line-height: 20px;
                            }

                            .icon-check{
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                width: 16px;
                                height: 16px;
                                margin-right: 8px;
                                border-radius: 100%;
                                border: solid 1px #E5E5E5;
                                background-color: #FFFFFF;

                                svg{
                                    visibility: hidden;
                                    pointer-events:none;
                                    opacity: 0;
                                    transition: visibility 0s 0.3s, opacity 0.3s linear;
                                }
                            }

                            .checked{
                                border-color: $highlight;

                                svg{
                                    visibility: visible;
                                    pointer-events:initial;
                                    opacity: 1;
                                    transition: opacity 0.3s linear;
                                }
                            }
                        }
                    }
                }

                &.avaliacoes {
                    .u2 {
                        max-height: initial;
                        overflow: hidden;

                        .l2 {
                            border: none;
                            display: block;
                            line-height: 30px;

                            .a3 {
                                display: inline-block;
                                width: 86px;
                                height: 20px;
                                text-indent: 0;
                                font-size: 1px;
                                border: none;

                                .star {
                                    @include sprite-avaliacao();
                                    width: 100px;
                                    height: 20px;
                                    transform: scale(0.8);
                                    margin-left: -10px;

                                    &.star-0 {
                                        background-position: 0px -379px;
                                    }
                                    &.star-1 {
                                        background-position: 0px -397px;
                                    }
                                    &.star-2 {
                                        background-position: 0px -417px;
                                    }
                                    &.star-3 {
                                        background-position: 0px -437px;
                                    }
                                    &.star-4 {
                                        background-position: 0px -457px;
                                    }
                                    &.star-5 {
                                        background-position: 0px -477px;
                                    }
                                }
                            }
                        }
                    }
                }

                &.precos {
                    .l2 {
                        display: flex;
                        width: 100%;
                        margin: 0px;
                        margin-bottom: 20px;
                        float: left;
                        border:none;
                        text-indent: 0px;
                        flex-wrap: wrap;
                        align-items: center;
                        justify-content: flex-start;
                        gap: 5px;

                        @media (min-width: 768px) and (max-width: 1649px) {
                            width: 100%;
                        }

                        .titulo{
                            display: block;
                            margin: 0px;
                            color: $textoDark;
                            font: normal 13px $fontRegular;
                        }

                        #preco-min,
                        #preco-max {
                            width: 100%;
                        }

                        #preco-min-value,
                        #preco-max-value {
                            display: block;
                            margin: 0px;
                            color: $textoDark;
                            font: normal 15px $fontSemibold;
                        }

                        #preco-filtrar {
                            display: block;
                            width: 100%;
                            padding: 15px 10px;
                            color: $textoLight;
                            font: normal 12px $fontRegular;
                            line-height: 14px;
                            text-align: center;
                            text-transform: uppercase;
                            text-indent: 0px;
                            border-radius: 50px;
                            background-color: $highlight;
                            @include transicao(0.4s ease-in-out);

                            &:hover,&:focus {
                                text-decoration: none;
                                color: $textoLight;
                                background-color: $success;
                            }
                        }

                        &.promocao {
                            color: $textoDark;
                            text-indent: 0px;
                            padding-bottom: 20px;

                            label {
                                font-size: 13px;
                                font-weight: normal;
                            }
                        }

                        &:last-of-type{
                            margin-bottom: 0px;
                        }
                    }
                }
            }
        }
    }
}