@use "sass:map";
@use "helpers";

.conteudo-conta{
    .ls-produtos{
        display: block;
        width: 100%;

        .item{
            display: flex;
            width: 100%;
            padding: 15px;
            align-items: center;
            justify-content: space-between;
            border: solid 1px map.get(helpers.$palletMinhaConta, borders);
            background-color: map.get(helpers.$palletMinhaConta, light);
            
            @media(max-width:767px){
                flex-direction: column;
            }

            .thumbnail{
                display: block;
                outline: 0px;
                width: 100%;
                max-width: 62px;

                img{
                    aspect-ratio: 1 / 1;
                    object-fit: cover;
                    display: block;
                    width: 100%;
                }
            }

            .conteudo{
                display: flex;
                width: calc(100% - 118px);
                padding-left: 65px;
                padding-right: 15px;
                align-items: center;
                justify-content: flex-start;
                
                @media(max-width:991px){
                    padding-left: 15px;
                }
                
                @media(max-width:767px){
                    width: 100%;
                    margin: 15px 0px;
                    flex-direction: column;
                    justify-content: center;
                }

                .nome{
                    display: block;
                    width: 100%;
                    max-width: 215px;
                    margin: 0px;
                    margin-right: 10px;
                    color: map.get(helpers.$palletMinhaConta, textDark);
                    font: normal 15px helpers.$fontRegular;
                    
                    @media(max-width:767px){
                        max-width: 100%;
                        margin-right: 0px;
                        margin-bottom: 10px;
                        text-align: center;
                    }
                }

                .referencia{
                    display: block;
                    width: 100%;
                    max-width: 60px;
                    margin: 0px;
                    margin-right: 10px;
                    color: map.get(helpers.$palletMinhaConta, textMedium);
                    font: normal 13px helpers.$fontMedium;
                    
                    @media(max-width:767px){
                        max-width: 100%;
                        margin-right: 0px;
                        margin-bottom: 10px;
                        text-align: center;
                    }
                }

                .tag{
                    display: block;
                    width: 100%;
                    max-width: 115px;
                    padding: 5px 10px;
                    color: map.get(helpers.$palletMinhaConta, textMedium);
                    font: normal 14px helpers.$fontMedium;
                    text-align: center;
                    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
                    background-color: map.get(helpers.$palletMinhaConta, light);
                    border: solid 1px map.get(helpers.$palletMinhaConta, borders);

                    &.disponivel{
                        color: map.get(helpers.$palletMinhaConta, success);
                        border-color: map.get(helpers.$palletMinhaConta, success);
                        background-color: rgba(map.get(helpers.$palletMinhaConta, success), 0.1);
                    }
                }
            }

            .acoes{
                display: flex;
                width: 100%;
                max-width: 180px;
                align-items: center;
                justify-content: flex-end;

                .btRemFavoritos{
                    display: flex;
                    outline: 0px;
                    width: 43px;
                    height: 43px;
                    margin-right: 15px; 
                    box-shadow: none;
                    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
                    border: solid 1px map.get(helpers.$palletMinhaConta, borders);
                    background-color: map.get(helpers.$palletMinhaConta, light);
                    align-items: center;
                    justify-content: center;

                    &:before{
                        display: block;
                        content: "";
                        width: 22px;
                        height: 22px;
                        background-image: url(../img/minha-conta/icon12.svg);
                        background-size: contain;
                        background-position: center;
                        background-repeat: no-repeat;
                    }
                }

                .bt-ver{
                    display: block;
                    width: 100%;
                    max-width: 120px;
                    padding: 10px;
                    color: map.get(helpers.$palletMinhaConta, textDark);
                    font: normal 15px helpers.$fontRegular;
                    text-align: center;
                    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
                    border: solid 1px map.get(helpers.$palletMinhaConta, borders);
                    background-color: map.get(helpers.$palletMinhaConta, light);
                    @include helpers.transicao(0.4s ease-in-out);

                    &:hover,&:focus{
                        color: map.get(helpers.$palletMinhaConta, textLight);
                        border-color: map.get(helpers.$palletMinhaConta, success);
                        background-color: map.get(helpers.$palletMinhaConta, success);
                    }
                }
            }

            &:nth-child(2n+2){
                background-color: map.get(helpers.$palletMinhaConta, medium);
            }
        }
    }
}