@use "helpers";

.section-regua{
    padding-top: 43px;
    padding-bottom: 43px;
    margin-bottom: 80px;
    border-bottom: solid 1px #EEEEEE;

    @media(max-width:767px){
        padding-top: 20px;
        padding-bottom: 20px;    
        margin-bottom: 60px;
    }

    .conteudo{
        display: block;
        width: 100%;
        max-width: 1520px;
        margin: 0 auto;

        .item{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;

            .icone{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 60px;
                height: 38px;
            }

            .text{
                display: block;
                margin: 0px;
                flex-grow: 1;
                padding-left: 15px;
                color: helpers.$textoDark;
                font: normal 14px helpers.$fontLight;
                line-height: 17px;
                letter-spacing: 0.01em;

                strong {
                    color: helpers.$highlight;
                    font-size: 18px;
                    font-weight: normal;
                    font-family: helpers.$fontBold;
                }
            }
        }
    }
}

.section-marcas {
    .title {
        color: helpers.$highlight;
        text-align: center;
        font-family: helpers.$fontBold;
    }
    max-width: 1130px;
    margin: 0 auto;
    margin-bottom: 50px;

    img {
        aspect-ratio: 3 / 2;
        background-color: #EEEEEE;
        object-fit: cover;
    }
}

.section-icons{
    padding-bottom: 70px;

    @media(max-width:991px){
        padding-bottom: 60px;
    }

    .conteudo{
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 1520px;
        gap: 20px;
        margin: 0 auto;

        .page-title{
            text-align: center;            
        }

        .itens-content{
            display: flex;
            align-items: flex-start;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;

            .item{
                outline: 0px;
                display: flex;
                width: 100%;
                max-width: 190px;
                min-height: 190px;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 20px;
                padding: 16px;
                @include helpers.transicao(0.4s ease-in-out);

                @media(max-width:767px){
                    width: 50%;
                    max-width: 50%;
                    border: 1px solid #EFEFEF;
                }

                .image-content{
                    position: relative;
                    display: flex;
                    width: 97px;
                    height: 78px;

                    img {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        object-fit: none;
                        object-position: center bottom;
                    }
                }

                .title{
                    display: block;
                    margin: 0px;
                    color: helpers.$highlight;
                    font: normal 14px helpers.$fontRegular;
                    line-height: 17px;
                    letter-spacing: 0.1em;
                    text-align: center;
                    @include helpers.transicao(0.4s ease-in-out);
                }

                &:hover{
                    @media(min-width:768px){
                        box-shadow: 0px 5px 25px 0px rgba(0,0,0,0.10);
                    }

                    .title{
                        font-family: helpers.$fontBold;
                    }
                }
            }
        }
    }
}

.section-bed-size{
    padding-bottom: 70px;

    @media(max-width:991px){
        padding-bottom: 60px;
    }

    .conteudo {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 1520px;
        margin:  auto;
        gap: 20px;

        .page-title{
            @media(max-width:991px){
                text-align: center;
            }
        }

        .itens-content{
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            width: 100%;
            gap: 20px;

            @media(max-width:991px){
                flex-wrap: wrap;
                justify-content: center;
            }

            .item{
                overflow: hidden;
                position: relative;
                display: flex;
                outline: 0px;
                width: calc(25% - 10px);
                max-width: 365px;
                height: 545px;
                @include helpers.transicao(0.4s ease-in-out);

                @media(max-width:991px){
                    width: calc(50% - 10px);
                    max-width: 475px;
                }

                img{
                    aspect-ratio: 85 / 120;
                    position: absolute;
                    width: 475px;
                    height: 100%;
                    top: 0px;
                    left: 50%;
                    transform: translateX(-50%);
                    object-fit: cover;
                    object-position: center;                    
                }

                &:hover{
                    @media(min-width:992px){
                        width: calc(32.53% - 10px);
                        max-width: 475px;
                        box-shadow: 10px 0px 25px 0px rgba(0,0,0,0.10);
                    }

                    & ~ .item{
                        @media(min-width:992px){
                            width: calc(22.74% - 10px);
                        }
                    }
                }
            }
        }
    }

    &.is-mobile{
        .conteudo{
            .itens-content{
                gap: 1px;

                .item{
                    width: calc(50% - 0.5px);
                    max-width: 200px;
                    height: auto;
                    aspect-ratio: 200 / 200;

                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }
    }
}

.section-medium{
    padding-bottom: 70px;

    @media(max-width:991px){
        padding-bottom: 60px;
    }

    .conteudo{
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        max-width: 1520px;
        margin: 0 auto;
        gap: 20px;

        @media(max-width:991px){
            flex-direction: column;
            gap: 5px;
        }

        .item{
            outline: 0px;
            display: flex;
            width: calc(50% - 10px);

            @media(max-width:991px){
                width: 100%;
            }

            img{
                aspect-ratio: 75 / 35;
                object-fit: cover;
                width: 100%;
            }
        }
    }
}

.section-assessments{
    padding-bottom: 70px;

    @media(max-width:991px){
        padding-bottom: 50px;
    }

    .content{
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 1520px;
        margin: 0 auto;

        .title{
            margin-bottom: 20px;
        }

        .list{
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;

            .item{
                display: flex;
                flex-direction: column;
                width: 100%;
                border: 1px solid #EEEEEE;

                .header{
                    display: flex;
                    align-items: flex-start;
                    justify-content: space-between;
                    width: 100%;
                    padding: 20px;
                    gap: 10px;

                    .title{
                        display: block;
                        max-width: calc(100% - 106px);
                        margin: 0px;
                        color: helpers.$textoDark;
                        font: normal 15px helpers.$fontBold;
                    }

                    .star-rating{
                        display: flex;
                        align-items: center;
                        justify-content: flex-end;
                        gap: 4px;
                    }
                }

                .description{
                    display: block;
                    min-height: 60px;
                    margin: 0px;
                    padding: 0px 20px;
                    margin-bottom: 20px;
                    color: helpers.$textoDark;
                    font: normal 15px helpers.$fontRegular;
                    line-height: 18px;
                    letter-spacing: 0.05em;
                }

                .product{
                    outline: 0px;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    width: 100%;
                    padding: 20px;
                    border-top: 1px solid #EEEEEE;
                    background-color: #F5F5F5;

                    .product-image{
                        position: relative;
                        display: flex;
                        flex-direction: column;
                        width: 66px;
                        height: 66px;

                        img{
                            position: absolute;
                            display: block;
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    } 

                    .product-title{
                        display: block;
                        max-width: calc(100% - 86px);
                        margin: 0px;
                        padding-left: 20px;
                        color: helpers.$textoDark;
                        font: normal 14px helpers.$fontRegular;
                        line-height: 18px;
                        letter-spacing: 0.05em;
                    }
                }
            }

            .owl-prev,
            .owl-next{
                position: absolute;
                z-index: 100;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 20px;
                height: 15px;
                top: 50%;
                transform: translateY(-50%);

                @media(max-width:767px){
                    display: none !important;
                }
            }

            .owl-prev{
                left: -35px;
                @media(max-width:1625px){
                    left: -15px;
                }
            }

            .owl-next{
                right: -35px;
                @media(max-width:1625px){
                    right: -15px;
                }
            }

            .owl-dots{
                margin-top: 25px;
            }

            &.prevent-load{
                flex-direction: row;
                
                .item{
                    flex: 1 0 calc(25% - 10px);
                    margin-right: 20px;
                    
                    @media(max-width:1379px){
                        flex: 1 0 calc(33.3% - 10px);
                    }

                    @media(max-width:1099px){
                        flex: 1 0 calc(50% - 10px);
                    }

                    @media(max-width:767px){
                        flex: 1 0 100%;
                    }
                }
            }
        }
    }
}

.section-big{
    padding-bottom: 50px;

    .conteudo{
        display: block;
        width: 100%;
        max-width: 1520px;
        margin: 0 auto;

        .item{
            display: block;
            outline: 0px;
            width: 100%;
            max-width: 1520px;
            margin: 0 auto;

            img{
                aspect-ratio: 76 / 17;
                object-fit: cover;
                width: 100%;
            }
        }
    }
}