@import "./base.scss";

header {
    .top-header {
        .form-search form {
            margin-top: 30px;
            position: relative;
            border-bottom: 1px solid #777777;
            padding-bottom: 8px;

            input {
                border: none;
                padding-left: 4px;
                outline: none;

                &::placeholder {
                    font-size: 14px;
                    color: #333;
                }
            }

            i {
                position: absolute;
                top: 50%;
                right: 10px;
                transform: translateY(-50%);
                font-size: 18px;
            }
        }

        .logo {
            max-width: 150px;
            margin: auto;
        }

        .cart {
            margin-top: 34px;
            font-weight: 600;
            font-size: 18px;
            display: flex;
            justify-content: flex-end;

            i {
                margin-right: 8px;
            }
        }
    }

    .top-bottom {
        .navbar {
            border-top: 1px solid rgb(234, 231, 231);
            padding: 0;

            .nav-item {
                padding: 0 12px;

                &.active {
                    font-weight: bold;

                    .nav-link {
                        color: #333;
                    }

                    .nav-link::before {
                        width: 100%;
                        opacity: 1;
                    }
                }

                .nav-link {
                    padding: 20px 16px;
                    font-size: 16px;
                    text-transform: uppercase;
                    position: relative;
                    color: rgba(93, 93, 93, 0.78);
                    transition: $transition;
                    font-weight: 600;

                    &::before {
                        content: "";
                        position: absolute;
                        top: 0;
                        width: 0;
                        height: 2px;
                        left: 50%;
                        transform: translateX(-50%);
                        background-color: $main-color;
                        transform-origin: center;
                        transition: $transition;
                        opacity: 0;
                    }

                    &:hover {
                        color: $main-color;

                        &::before {
                            width: 100%;
                            opacity: 1;
                        }
                    }
                }
            }

        }
    }
}

main {
    .banner-slider {
        .item {
            position: relative;

            .background-img {
                position: absolute;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
                z-index: 99;
                overflow: hidden;
            }

            img {
                width: 100%;
                object-fit: cover;
                height: 100%;
            }
        }

        .slick-dots {
            position: absolute;
            bottom: 50px;

            li {
                background-color: rgb(194, 190, 190);
                width: 40px;
                height: 4px;
                border-radius: 8px;
                margin: 10px;

                button {
                    &::before {
                        display: none;
                    }
                }
            }

            li.slick-active {
                background-color: white;
            }
        }

        .slick-prev,
        .slick-next {
            position: absolute;
            z-index: 9;
        }

        .slick-prev {
            left: 40px;
        }

        .slick-next {
            right: 40px;
        }

        .slick-next:before {
            content: url(../public/images/r.png);
            transition: $transition;

        }

        .slick-prev:before {
            content: url(../public/images/l.png);
            transition: $transition;

        }
    }

    .product-hl {

        h1 {
            padding-top: 20px;
            font-size: 28px;
            font-weight: 600;
            text-align: center;
            text-transform: uppercase;
        }

        &__item {
            position: relative;
            margin-top: 40px;
            box-shadow: $box-shadow-1;
            border-radius: 4px;
        }

        &__image {
            position: relative;
            height: 210px;
            overflow: hidden;

            img {
                transition: $transition;
                position: absolute;

                &:first-child {
                    z-index: 3;
                }

                &:hover {
                    &:first-child {
                        opacity: 0;
                    }

                    &:last-child {
                        opacity: 1;
                    }
                }
            }

        }

        &__content {
            padding: 4px 0 16px 8px;

            h3 {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                text-transform: uppercase;
                padding: 8px 0;
                transition: $transition;

                &:hover {
                    color: $main-color;
                }
            }

            span {
                color: red;
                font-weight: bold;
                font-size: 16px;
            }

            del {
                margin-left: 16px;
                font-size: 14px;
            }

            button {
                overflow: hidden;
                padding: 0 12px 0 0;
                margin-top: 12px;
                transition: all 0.25s linear;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                text-transform: uppercase;
                border-radius: 30px;
                font-weight: 600;
                background: linear-gradient(to right, #21CDC0 50%, white 50%);
                background-size: 200% 100%;
                background-position: right bottom;
                transition: all 0.5s ease-out;
                outline: none;
                border: none;

                &:hover {
                    background-position: left bottom;
                    color: white;
                }
            }

            i {
                font-size: 16px;
                color: white;
                margin-right: 12px;
                background-color: #21CDC0;
                padding: 8px;
                border-radius: 50%;
            }
        }

        &__label-sale {
            position: absolute;
            top: 12px;
            left: -0.3rem;
            width: 60px;
            height: 20px;
            background-color: $main-color;
            color: white;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            z-index: 99;

            &::after {
                content: "";
                display: inline-block;
                position: absolute;
                left: 0;
                bottom: -0.28rem;
                border-top: 0.3rem solid;
                border-left: 0.3rem solid transparent;
                filter: brightness(50%);

            }
        }

        &__label-new {
            position: absolute;
            top: 12px;
            left: 65px;
            width: 60px;
            height: 20px;
            background-color: red;
            color: white;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            z-index: 99;
            text-transform: uppercase;
        }

        &__label-over {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            height: 70px;
            left: 0;
            background-color: rgba(255, 255, 255, 0.6);
            color: #333;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            z-index: 99;
            text-transform: uppercase;
            line-height: 70px;
            letter-spacing: 8px;
        }

        &__more {
            text-align: center;

            a {
                overflow: hidden;
                padding: 10px 24px;
                margin: 28px auto;
                display: inline-flex;
                justify-content: center;
                align-items: center;
                text-transform: uppercase;
                border-radius: 30px;
                font-weight: bold;
                background: linear-gradient(to right, #21CDC0 50%, white 50%);
                background-size: 200% 100%;
                background-position: right;
                transition: $transition;
                outline: none;
                border: 1px solid #21CDC0;

                &:hover {
                    background-position: left;
                    color: white;
                }
            }
        }
    }

    .news-home {
        p {
            font-size: 18px;
            padding: 24px 0;
            text-align: center;
            font-weight: 600;
            letter-spacing: 2px;
        }

        &__item {
            position: relative;
            padding-bottom: 400px;

        }

        img {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            max-height: 400px;
            transition: $transition;
            filter: brightness(60%);

            &:hover {
                filter: brightness(100%);
            }
        }

        &__content {
            overflow: hidden;
            position: absolute;
            z-index: 999944214;
            bottom: 10px;
            left: 20px;
            transition: $transition;
            color: white;

            h4 {
                font-size: 16px;
            }

            span {
                font-size: 14px;
            }
        }
    }

    .video-container {
        margin-top: 40px;
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 300px;
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 300px;
    }

    .video-container iframe {
        pointer-events: none;
    }

    .video-foreground {
        pointer-events: none;
    }

    .youtube-embed {
        width: 100vw !important;
    }

    .sumenh {
        &__wrapper {
            margin-top: 30px;
        }

        &__title {
            font-size: 24px;
            color: $main-color;
            text-align: center;
            font-weight: 600;
            padding-top: 12px;
        }

        &__item {
            margin-bottom: 20px;
        }

        .img-scale {
            text-align: center;
            overflow: hidden;
            border-radius: 50%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 12px;

            img {
                border-radius: 50%;
                transition: $transition;

                &:hover {
                    transform: scale(1.1);
                }
            }
        }

    }

    .tamnhin {
        margin-top: 10px;
        background-color: #F7F8FA;
        padding-bottom: 20px;
        p {
            font-size: 18px;
            padding: 24px 0;
            text-align: center;
            font-weight: 600;
            letter-spacing: 2px;
            margin-bottom: 28px;
        }

        &__item {
            border-radius: 4px;
            transition: $transition;

            &:hover {
                transform: translateY(-4px);
            }
        }

        &__content {
            border-radius: 8px;
            border-bottom: 4px solid $main-color;
            padding: 8px;
            background-color: #fff;
        }

        &__title {
            font-size: 18px;
            text-transform: uppercase;
            font-weight: 600;
            margin-top: 8px;
            transition: $transition;

            &:hover {
                color: $main-color;
            }
        }

        &__des {
            font-size: 16px;
            padding: 16px 0;
        }
    }
}

footer {
    .footer {
        background: url(../public/images/bg-footer.png);
        background-repeat: no-repeat;
        background-size: cover;
        padding: 24px 0;

        h1 {
            background: linear-gradient(to right, #fcf9d5, $main-color, #fcf9d5, $main-color);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: bold;
            text-transform: uppercase;
        }
        &__content{
            color: white;
            font-size: 15px;
            padding: 8px 0;
        }
        &__mxh{
            margin-top: 16px;
            i{
                font-size: 32px;
                margin-right: 8px;
                color: $main-color;
                transition: $transition;
                &:hover{
                    transform: scale(1.1);
                }
            }
        }
        h2{
            background: linear-gradient(to right, #fcf9d5, $main-color, #fcf9d5, $main-color);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 8px;
        }
        .f-item{
            color: white;
            padding: 8px 0;
            font-size: 16px;
            i{
                color: $secondary-color;
                font-size: 24px;
                margin-right: 12px;
            }
        }
        &__bottom{
            padding: 12px 0;
            text-align: center;
            color: white;
            background-color: $main-color;
        }
    }
}