﻿html {
    scroll-behavior: smooth;
}

/*body * {
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}*/


.icon-red-notification {
    top: 0;
    right: -11px;
    bottom: unset;
    left: unset;
    width: 16px;
    height: 16px;
}

.header {
    width: 100%;
    font-family: Roboto;
    position: relative;
    /*if this is a problem maybe change the z-index of the popup menus*/
    z-index: 999;
    /*z-index:1;
    background-color: #ffffff;*/
}
    /*.header.fixed {
    z-index: initial;
}*/

    /* TOP BAR */
    .header .top-bar.search-open {
        z-index: 100;
    }

        .header .top-bar.search-open:not(.menu-open) .left-icons,
        .header .top-bar.search-open:not(.menu-open) .right-icons,
        .header .top-bar.search-open:not(.menu-open) .logo-img-holder {
            z-index: 100;
        }

    .header .top-bar {
        width: 100%;
        height: 70px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f4f4f4;
        background-color: #ffffff;
        padding: 0 24px;
        transform: none;
        transition: transform 250ms ease-in-out;
    }

        .header .top-bar .left-icons, .header .top-bar .right-icons {
            height: 100%;
            display: flex;
            align-items: center;
            gap: 20px;
        }

            .header .top-bar .left-icons .search-icon,
            .header .top-bar .right-icons .profile-icon,
            .header .top-bar .right-icons .universe-icon {
                cursor: pointer;
            }

            .header .top-bar .left-icons .menu-icon {
                position: relative;
                cursor: pointer;
                width: 24px;
                height: 22px;
                z-index: 1000;
                pointer-events: all;
            }

                .header .top-bar .left-icons .menu-icon .dash {
                    border-bottom: solid 2px #c30000;
                    -webkit-backface-visibility: hidden;
                    backface-visibility: hidden;
                    -webkit-transition: transform 200ms ease-in-out;
                    -moz-transition: transform 200ms ease-in-out;
                    transition: transform 200ms ease-in-out;
                    transform-origin: center;
                    position: absolute;
                    left: 0;
                    right: 0;
                }

                /* normal */
                .header .top-bar .left-icons .menu-icon:not(.active) .dash-1 {
                    transform: translate(0, 0px);
                }

                .header .top-bar .left-icons .menu-icon:not(.active) .dash-2 {
                    transform: translate(0, 10px) scale(1);
                }

                .header .top-bar .left-icons .menu-icon:not(.active) .dash-3 {
                    transform: translate(0, 20px);
                }

                /* active */
                .header .top-bar .left-icons .menu-icon .dash-1 {
                    transform: translate(0, 11px) rotate(135deg);
                }

                .header .top-bar .left-icons .menu-icon .dash-2 {
                    transform: translate(0, 10px) scale(0);
                }

                .header .top-bar .left-icons .menu-icon .dash-3 {
                    transform: translate(0, 11px) rotate(45deg);
                }

                /* hover */
                .header .top-bar .left-icons .menu-icon:not(.active):hover .dash-1 {
                    transform: rotate(-45deg) translate(-29%, -100%) scaleX(calc(14 / 24));
                }

                .header .top-bar .left-icons .menu-icon:not(.active):hover .dash-2 {
                    transform: rotate(-45deg) translate(-29%, calc(-100% + 10px)) scaleX(calc(24.49 / 24));
                }

                .header .top-bar .left-icons .menu-icon:not(.active):hover .dash-3 {
                    transform: rotate(-45deg) translate(-29%, calc(-100% + 20px)) scaleX(calc(14 / 24));
                }
                /* active hover */
                .header .top-bar .left-icons .menu-icon:hover .dash-1 {
                    transform: translate(0, 11px) rotate(45deg);
                }

                .header .top-bar .left-icons .menu-icon:hover .dash-3 {
                    transform: translate(0, 11px) rotate(-45deg);
                }

        .header .top-bar .logo-img-holder,
        .header .top-bar .logo-img-holder .img,
        .header .top-bar .logo-img-holder img {
            max-height: 49px;
            width: 49px;
            height: 49px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .header .top-bar .left-icons .search-icon {
            height: 24px;
            width: 24px;
        }

            .header .top-bar .left-icons .search-icon:hover svg *[data-name="circles"],
            .header .top-bar .left-icons .search-icon.active svg *[data-name="circles"] {
                stroke-width: 9;
            }

            .header .top-bar .left-icons .search-icon svg *[data-name="circles"] {
                stroke-width: 0;
            }

            .header .top-bar .left-icons .search-icon.active svg {
                display: none;
            }

            .header .top-bar .left-icons .search-icon.active .close-modal {
                display: block;
            }

            .header .top-bar .left-icons .search-icon:not(.active) .close-modal {
                display: none;
            }

            .header .top-bar .left-icons .search-icon .close-modal:hover {
                transform: rotateZ(90deg);
            }

            .header .top-bar .left-icons .search-icon .close-modal {
                width: 24px;
                height: 24px;
                position: relative;
                transition: transform 300ms ease-in-out;
            }

                .header .top-bar .left-icons .search-icon .close-modal .line {
                    width: 28px;
                    height: 2px;
                    background-color: #c30000;
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                }

                    .header .top-bar .left-icons .search-icon .close-modal .line:first-of-type {
                        transform: rotateZ(45deg);
                    }

                    .header .top-bar .left-icons .search-icon .close-modal .line:last-of-type {
                        transform: rotateZ(-45deg);
                    }

        .header .top-bar .right-icons .wallet-icon {
            position: relative;
            height: 24px;
            width: 24px;
            cursor: pointer;
        }

            .header .top-bar .right-icons .wallet-icon svg {
                animation: scaleY 8s infinite;
            }

            .header .top-bar .right-icons .wallet-icon .wallet-value {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: #c30000;
                font-size: 0;
                font-weight: bold;
                line-height: 13px;
                white-space: nowrap;
                animation: fontScale 8s 4s infinite;
            }

        .header .top-bar .right-icons .member-icons {
            display: flex;
            gap: 20px;
        }

        .header .top-bar .right-icons .profile-icon {
            height: 24px;
            width: 24px;
            display: flex;
        }

            .header .top-bar .right-icons .profile-icon svg .cls-1 {
                fill: none;
                stroke: #c30000;
                stroke-linejoin: round;
                stroke-width: 2px;
            }

            .header .top-bar .right-icons .profile-icon:hover svg .cls-1 {
                fill: #c30000;
            }

        .header .top-bar .right-icons .profile-img {
            position: relative;
            height: 24px;
            width: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

            .header .top-bar .right-icons .profile-img label {
                position: relative;
                height: 20px;
                width: 20px;
                margin: 0;
                border: 2px solid #c30000;
                box-sizing: content-box;
            }

                .header .top-bar .right-icons .profile-img label span {
                    font-family: "Roboto", sans-serif;
                    font-size: 10px;
                    font-weight: 400;
                    line-height: 10px;
                    color: #242424;
                }

                .header .top-bar .right-icons .profile-img label img {
                    object-fit: cover;
                }


            .header .top-bar .right-icons .profile-img .icon-red-notification {
                font-family: Roboto, sans-serif !important;
                font-size: 10px;
                font-weight: bold;
                line-height: 13px;
            }

            .header .top-bar .right-icons .profile-img .icon-wallet-balance {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 0;
                width: 60px;
                height: 22px;
                background-color: rgba(36,36,36,0.5);
                padding: 4px 8px;
                border-radius: 11px;
                font-family: "Roboto", sans-serif !important;
                font-size: 12px;
                font-weight: bold;
                line-height: 14px;
                color: white;
            }

            .header .top-bar .right-icons .profile-img.image {
                height: 24px;
                width: 24px;
                align-items: unset;
                justify-content: unset;
            }

        .header .top-bar .right-icons .shopping-bag-icon {
            position: relative;
            height: 24px;
            cursor: pointer;
            transition: transform 200ms ease-in-out;
        }

            .header .top-bar .right-icons .shopping-bag-icon .icon-hover {
                position: absolute;
                display: grid;
                place-items: center;
                inset: 0;
                z-index: 10;
                clip-path: path('M2 7h16v16H2z');
            }

                .header .top-bar .right-icons .shopping-bag-icon .icon-hover .nr-items {
                    color: #c30000;
                    font-size: 10px;
                    font-weight: bold;
                    line-height: 13px;
                    padding-top: 6px;
                    z-index: 100;
                    transition: color 250ms ease-in-out;
                    font-family: 'Roboto';
                }

            .header .top-bar .right-icons .shopping-bag-icon:hover .icon-hover .nr-items {
                color: white;
            }

            .header .top-bar .right-icons .shopping-bag-icon .icon-hover .fill {
                position: absolute;
                inset: 0;
                z-index: 1;
                background-color: #c30000;
                transform: translateY(100%);
                transition: transform 250ms ease-in-out;
            }


            .header .top-bar .right-icons .shopping-bag-icon:hover .icon-hover .fill {
                transform: translateY(0);
            }

        .header .top-bar .right-icons .universe-icon {
            display: none;
            height: 24px;
            width: 24px;
        }

            .header .top-bar .right-icons .universe-icon svg {
                height: 24px;
                width: 24px;
            }

            .header .top-bar .right-icons .universe-icon:hover svg *[data-name="stroke-red"],
            .header .top-bar .right-icons .universe-icon.open svg *[data-name="stroke-red"] {
                fill: #c30000;
                stroke: #c30000;
            }

            .header .top-bar .right-icons .universe-icon svg *[data-name="stroke-red"] {
                fill: none;
                stroke: #c30000;
            }

            .header .top-bar .right-icons .universe-icon svg path[data-name="fill-red"] {
                fill: #c30000;
            }


    /* handle top bar fixed and menu open */
    .header.fixed.menu-open .top-bar {
        background-color: transparent;
        border: none !important;
        pointer-events: none;
    }

        .header.fixed.menu-open .top-bar .left-icons .search-icon,
        .header.fixed.menu-open .top-bar .logo-img-holder,
        .header.fixed.menu-open .top-bar .right-icons {
            opacity: 0;
        }

    /* TOP BAR END */

    /* Sticky header bar */
    .header.fixed.animated .top-bar {
        transform: translateY(100%);
    }

    .header.fixed .top-bar {
        position: fixed;
        top: -71px;
        z-index: 1000;
        background-color: white;
        max-width: 1600px;
        height: 71px !important;
    }

        .header.fixed .top-bar .logo-img-holder,
        .header.fixed .top-bar .logo-img-holder .img {
            width: 50px;
            height: 50px;
            max-height: 50px;
        }

    .header.fixed .popup-search-2021 {
        top: 70px;
    }

/*END of Sticky header bar*/

/* Popup Search Bar */

.popup-search-2021.open {
    transform: translateX(0);
    opacity: 1;
    transition: transform 500ms ease-in-out, opacity 300ms ease-in-out;
}

.popup-search-2021 {
    z-index: 98;
    width: 100%;
    max-width: 1600px;
    position: fixed;
    top: 70px;
    height: calc(100vh - 70px);
    min-height: 614px;
    padding: 40px 15px 66px;
    background-color: white;
    overflow: scroll;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 500ms ease-in-out, opacity 300ms 200ms ease-in-out;
}

    .popup-search-2021 .search-input-wrapper {
        width: 100%;
        position: relative;
    }

        .popup-search-2021 .search-input-wrapper input {
            width: 100%;
            -webkit-appearance: none;
            appearance: none;
            background-color: white;
            border: 1px solid #BEBEBE;
            border-radius: 0;
            padding: 20px;
            font-size: 24px;
            font-weight: 400;
            line-height: 28px;
        }

        .popup-search-2021 .search-input-wrapper a svg.arrow {
            position: absolute;
            top: 50%;
            right: 19.5px;
            width: 7.5px;
            height: 13px;
            stroke: #c30000;
            transform: translate(0, -50%) !important;
        }

        .popup-search-2021 .search-input-wrapper a:hover svg.arrow {
            transform: translate(5px, -50%) !important;
        }

    .popup-search-2021 .frequent-searches-wrapper,
    .popup-search-2021 .search-results-2021 {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 20px;
        row-gap: 19px;
    }

        .popup-search-2021 .search-results-2021 .more-results {
            display: flex;
            flex-flow: column;
            grid-row-gap: 19px;
        }

        .popup-search-2021 .frequent-searches-wrapper h2,
        .popup-search-2021 .search-results-2021 h2 {
            margin: 0;
            font-size: 24px;
            font-weight: bold;
            line-height: 29px;
            color: #B3B3B3;
            text-transform: none;
        }

        .popup-search-2021 .frequent-searches-wrapper .result,
        .popup-search-2021 .search-results-2021 .result {
            margin: 0;
            font-size: 24px;
            font-weight: 400;
            line-height: 29px;
            color: #242424;
        }

            .popup-search-2021 .frequent-searches-wrapper .result:hover,
            .popup-search-2021 .search-results-2021 .result:hover {
                color: #c30000;
            }


        .popup-search-2021 .search-results-2021.produtos .product-search-model-wrapper {
            display: flex;
            row-gap: 19px;
            flex-wrap: wrap;
        }

        .popup-search-2021 .search-results-2021.produtos .product-search-model-wrapper {
            display: flex;
            row-gap: 19px;
            flex-wrap: wrap;
        }

        .popup-search-2021 .search-results-2021 .ver {
            cursor: pointer;
            font-size: 14px;
        }


/* END of Popup Search Bar */
/* Profile Modal */
.profile-section {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    right: 0;
}

.profile-modal.open {
    transform: translateX(0);
    pointer-events: all;
}

.profile-modal {
    width: 100vw;
    height: calc(100vh - 70px);
    padding: 56px 15px 15px;
    background-color: white;
    position: absolute;
    top: 70px;
    right: 0px;
    z-index: 1;
    transform: translateX(100%);
    transition: transform 600ms cubic-bezier(0.550,0.085,0.000,0.990);
    box-shadow: 0 3px 6px rgb(0 0 0 / 5%);
}

    .profile-modal header {
        padding-bottom: 19px;
        border-bottom: 1px solid #F4F4F4;
    }

        .profile-modal header h2,
        .profile-modal header p {
            font-family: "Roboto", sans-serif;
            font-size: 18px;
            font-weight: 400;
            line-height: 22px;
            margin: 0;
            white-space: nowrap;
        }

    .profile-modal nav {
        width: 100%;
        padding: 20px 0 24px;
        border-bottom: 1px solid #F4F4F4;
    }

        .profile-modal nav ul {
            padding: 0;
            display: flex;
            flex-direction: column;
            row-gap: 17px;
            list-style-type: none;
            margin: 0;
        }

            .profile-modal nav ul li,
            .profile-modal a {
                font-family: "Roboto", sans-serif;
                font-size: 14px;
                font-weight: 400;
                line-height: 17px;
                color: #242424;
            }

                .profile-modal a:hover {
                    color: #c30000;
                }

                .profile-modal a u:hover {
                    color: #c30000;
                }

    .profile-modal footer {
        padding: 0;
        padding-top: 15px;
        font-size: 14px;
    }
/* END of Profile Modal */
/* Grey Bar */
.grey-bar {
    height: 57px;
    background-color: #F4F4F4;
    z-index: 1;
    overflow: hidden;
}

    .grey-bar .grey-bar-inner {
        height: 57px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 24px;
        font-size: 16px;
        line-height: 20px;
        transition: transform 300ms;
    }

    .grey-bar p {
        padding-right: 18px;
    }

    .grey-bar a {
        font-family: 'Roboto', sans-serif;
        line-height: 26px;
        font-weight: bold;
        text-decoration: underline;
        cursor: pointer;
    }

        .grey-bar a:first-of-type {
            padding-right: 10px;
        }

/* END of Grey Bar */
@media screen and (min-width:768px) {
    .header {
        min-height: 110px;
    }

        .header.animated .top-bar {
            transition: transform 250ms !important;
        }

        .header .top-bar.menu-open {
            z-index: auto;
        }

        .header.fixed .top-bar.menu-open {
            z-index: 100;
        }

        .header .top-bar {
            position: absolute;
            top: 0;
            height: 110px;
            padding: 0 40px;
            transition: transform 0ms !important;
            z-index: 100;
            background-color: white;
        }


            .header .top-bar .logo-img-holder,
            .header:not(.fixed) .top-bar .logo-img-holder img {
                max-height: 80px;
                width: 80px;
                height: 80px;
            }

            .header .top-bar .left-icons, .header .top-bar .right-icons, .header .top-bar .right-icons .member-icons {
                gap: 30px;
            }

                .header .top-bar .right-icons .universe-icon {
                    display: block;
                }

    .popup-search-2021.open {
        transition: transform 300ms ease-in-out, opacity 300ms 130ms ease-in-out;
        transform: translateY(0);
        z-index: 98;
    }

        .popup-search-2021.open > * {
            opacity: 1;
            transition: opacity 300ms ease-in-out;
        }

    .popup-search-2021 {
        top: 110px;
        min-height: unset;
        max-height: unset;
        padding: 29px 135px 49px;
        transition: transform 500ms ease-in-out, opacity 500ms 50ms ease-in-out, z-index 0ms 500ms ease-in-out;
        transform: translateY(-100%);
        z-index: -1;
    }

        .popup-search-2021 > * {
            opacity: 0;
            transition: opacity 50ms ease-in-out;
        }



        .popup-search-2021 .search-results-2021 .product-search-model-wrapper {
            justify-content: space-between;
        }



    /* Profile Modal */
    .profile-section {
        right: 50%;
        transform: translateX(50%);
    }

    .profile-modal.open {
        transform: translateX(0);
    }

    .profile-modal.open {
        opacity: 1;
    }

    .profile-modal {
        opacity: 0;
    }

    .header .profile-modal {
        top: 110px;
    }

    .profile-modal.store {
        padding: 30px 30px 20px 30px;
    }

    .header.fixed .profile-modal {
        top: 71px;
    }

    .profile-modal {
        width: clamp(277px, calc((277 / 1366) * 100vw), 325px);
        height: auto;
        padding: 25px 21px 20px 30px;
        right: 0;
        transition: all 600ms cubic-bezier(0.550,0.085,0.000,0.990);
        z-index: 10;
    }

        .profile-modal header {
            padding-bottom: 14px;
        }

        .profile-modal nav {
            padding: 20px 0;
        }

        .profile-modal footer {
            padding-top: 19px;
        }
    /* END of Profile Modal */

    /* Grey Bar */
    .grey-bar p {
        line-height: 26px;
        padding-right: 10px;
    }
    /* END of Grey Bar */
}



@media (min-width: 1200px) {
    .popup-search-2021 .searches-wrapper {
        display: flex;
    }

    .popup-search-2021 .search-results-2021 {
        width: 35%;
    }

        .popup-search-2021 .search-results-2021.produtos {
            width: 65%;
        }
}


/* 
    This target only mobile devices 
    Used to remove sticky hover states after clicks
*/
@media only screen and (hover: none) and (pointer: coarse) {

    /* hover */
    .header .top-bar .left-icons .menu-icon:not(.active):hover .dash-1 {
        transform: translate(0, 0px);
    }

    .header .top-bar .left-icons .menu-icon:not(.active):hover .dash-2 {
        transform: translate(0, 10px) scale(1);
    }

    .header .top-bar .left-icons .menu-icon:not(.active):hover .dash-3 {
        transform: translate(0, 20px);
    }
    /* active hover */
    .header .top-bar .left-icons .menu-icon:hover .dash-1 {
        transform: translate(0, 11px) rotate(135deg);
    }

    .header .top-bar .left-icons .menu-icon:hover .dash-3 {
        transform: translate(0, 11px) rotate(45deg);
    }

    .header .top-bar .left-icons .search-icon:hover svg *[data-name="circles"] {
        stroke-width: 0;
    }

    .profile-modal a:hover {
        color: #242424;
    }
}

@keyframes scaleY {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    6.25%, 50% {
        transform: scaleY(1);
        opacity: 1;
    }

    56.25%, 100% {
        transform: scaleY(0);
        opacity: 0;
    }
}

@keyframes fontScale {
    0% {
        font-size: 0;
        opacity: 0;
    }

    6.25%, 50% {
        font-size: 10px;
        opacity: 1;
    }

    56.25%, 100% {
        font-size: 0;
        opacity: 0;
    }
}
