body {
    background: linear-gradient(to bottom, var(--vanilla), var(--white));

    main {
        max-width: 576px;

        .compartilhar {
            position: fixed;
            width: 3rem;
            height: 3rem;
            border-radius: 1.5rem;
            top: 1rem;
            right: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 1.5rem;
            padding: 1rem;
            background: rgba(255, 255, 255, .5);
            z-index: 1;

            i {
                text-align: end;
                transition: .3s;

                &:hover {
                    font-size: 1.75rem;
                    color: var(--green);
                }
            }
        }

        .container__produto {
            .container {
                position: relative;
                display: flex;
                flex-direction: column;
                row-gap: 1rem;
    
                .arrow {
                    &.left {
                        position: absolute;
                        top: 40% !important;
                        left: 8px;
                        transform: translateY(-70%) !important;
                        opacity: .7;
                        transform: rotate(180deg) !important;
    
                        &:hover {
                            opacity: 1;
                        }
                    }
                }
    
                > header {
                    width: 100%;
                    aspect-ratio: 1 / 1;
                    border-radius: 0 0 2rem 2rem;
                    overflow: hidden;
    
                    img {
                        object-fit: cover;
                        object-position: center;
                        width: 100%;
                        height: 100%;
                    }
                }
    
                article {
                    h2, p, data {
                        color: var(--dark-brown);
                    }

                    h2, p {
                        padding: 16px 0;
                    }

                    data {
                        padding: .25rem 0;
                    }

                    form {
                        display: flex;
                        justify-content: center;
                        width: 100%;
                        column-gap: 1rem;
                        margin: 1rem 0 0;

                        section {
                            display: flex;
                            width: 100%;
                            max-width: 120px;
                            align-items: center;
                            justify-content: space-between;
                            border: 1px solid var(--rose);
                            border-radius: 1.5rem;
                            padding: 2px 8px;

                            input[type="number"] {
                                width: 100%;
                                text-align: center;
                                display: inline-block;
                                background-color: transparent;
                                outline: none;
                                border: none;
    
                                &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                                    -webkit-appearance: none;
                                    margin: 0;
                                }
                            }
    
                            button {
                                flex: 0 0 24px;
                                border-radius: 2px;
                                text-align: center;
                                border: none;
                                background-color: transparent;
                                font-size: 20px;
                                cursor: pointer;
                                background-color: var(--light-grey);
                                opacity: .6;
                                transition: all .2s;
    
                                &:active {
                                    opacity: 1;
                                }
                            }
                        }

                        > button {
                            width: 100%;
                        }
                    }
                }

                .container__formas-de-pagamento {
                    display: flex;
                    flex-direction: column;
                    row-gap: 16px;
                    border-radius: .5rem;
                    margin: 0 auto;
                    padding: 1rem 2rem;

                    > h2 {
                        font-size: 1rem;
                        color: var(--dark-brown);
                        text-align: center;
                    }

                    .bandeiras {
                        display: flex;
                        justify-content: center;
                        column-gap: .25rem;

                        span {
                            display: flex;
                            width: 2.5rem;
                            overflow: hidden;
                            
                            img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                object-position: center;
                            }
                        }
                    }

                    .info {
                        p {
                            font-size: .75rem;
                            text-align: center;
                        }
                    }
                }
    
                &.info {
                    padding: 0 1rem;
                    article {
                        h2 {
                            font-size: 2rem;
                        }

                        p {
                            color: var(--dark-brown);
                            padding: 16px 0;
                        }
                    }

                    .rate {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 1rem;
                        color: var(--dark-gray);
                        backdrop-filter: blur(5px);
                        padding: .25rem .5rem;

                        .estrela {
                            display: flex;
                            width: 24px;
                            height: 24px;
                            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
                            background-color: var(--gray);
                            opacity: .4;

                            &.full {
                                background: var(--yellow);
                                opacity: 1;
                            }
                            &.middle {
                                background: linear-gradient(to right,gold 50%, var(--gray) 50%);
                                opacity: .8;
                            }
                        }
                    }
                }
    
                .value {
                    margin: 16px 0;
                    display: flex;
                    align-items: end;
                    flex-direction: column;
                    row-gap: 8px;
    
                    data {
                        padding: 0;
                    }
                }
    
                .old-price {
                    color: var(--grey) !important;
                    font-weight: 400;
    
                    span {
                        font-weight: 400;
                        text-decoration: line-through;
                        color: var(--grey);
                    }
                }
            }
    
            > section:nth-of-type(2) {
                article {
                    h2, p {
                        color: var(--dark-brown);
                        display: none;
                    }
                }
            }
        }

        .container__detalhes {
            display: flex;
            flex-direction: column;
            row-gap: 1rem;
            padding: 0 1rem;

            > h3 {
                color: var(--dark-brown);
                font-size: 1.75rem;
                margin: 16px 0;
            }

            .descricao {
                padding: 1rem 0;
                border-bottom: 2px solid var(--gray);
            }

            .ficha-tecnica {
                display: grid;
                grid-template-columns: minmax(150px, 170px) 1fr;
                row-gap: 1rem;
                padding: 1rem 0;
                padding: 1rem .5rem;

                span {
                    color: var(--dark-brown);
                    font-weight: 600;
                }
            }
        }

        .container-cards {
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 1200px;
            margin: 5rem auto 0;

            &:nth-of-type(1) {
                padding-top: 0;
            }

            > header {
                display: flex;
                flex-wrap: wrap;
                column-gap: 1rem;
                row-gap: 2rem;
                align-items: center;
                justify-content: space-between;
                margin: 0 0 32px 0;
                padding: 0 16px;

                a {
                    margin-left: auto;
                }
            }

            .cards-wrapper {
                display: flex;
                column-gap: 16px;
                width: 100%;
                padding: 16px 4px;
                overflow-x: scroll;
                scroll-behavior: smooth;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
        }
    }
}

@media (min-width: 576px) {
    body {
        margin-top: 120px;

        main {

            .compartilhar {
                top: 7rem;
            }

            .container__produto {

                .container {
                    > header {
                        border-radius: 2rem;
                    }
                }
            }
        }
    }
}

@media (min-width: 768px) {
    body {
        main {
            display: flex;
            flex-direction: column;
            row-gap: 3rem;
            column-gap: 16px;
            max-width: 1200px;
            padding: 0 16px;
            margin-top: 0;

            .compartilhar {
                position: relative;
                top: 0;
                right: 0;
                margin-left: auto;
                background: transparent;
            }

            .container__produto {
                display: flex;
                padding: 0 16px;
                column-gap: 16px;

                .container {
                    width: 50%;
                    padding: 0;

                    > header {
                        border-radius: 0 20% 20% 20%;
                    }
    
                    article {
                        padding: 0;
    
                        h2, p {
                            display: none;
                        }
    
                        data {
                            font-weight: bold;
                            display: block;
                        }
    
                        button {
                            max-width: 200px;
                            margin: 0;
                        }
                    }
    
                    &.info {
                        padding: 3rem 0;
                        article {
                            h2, p {
                                display: flex;
                            }
                        }
                    }
    
                    .value {
                        align-items: center;
                    }
                }
            }

            /* .container-cards {
                position: relative;
                overflow: hidden;
                width: 100%;
                max-width: 1200px;
                margin: 5rem auto 0;

                &:nth-of-type(1) {
                    padding-top: 0;
                }

                > header {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin: 0 0 32px 0;
                    padding: 0 16px;
                }

                .cards-wrapper {
                    display: flex;
                    column-gap: 16px;
                    width: 100%;
                    padding: 16px 4px;
                    overflow-x: scroll;
                    scroll-behavior: smooth;
                    scrollbar-width: none;
                    -ms-overflow-style: none;
                }
            } */
        }
    }
}

@media (min-width: 991px) {
    body {
        main {
            .container__produto {
                .container {
                    article {
                        form {
                            section {
                                border-radius: .25rem;
                            }
                        }
                    }
                }
            }
        }
    }
}