@import 'variables';

.container{
    max-width: 1750px;
    width: 100%;
}
.top_header{
    line-height: 2.5rem;
}
.brand_logo{
    img{
        width: auto;
        height: 60px;
    }
}
.search-bar{
    display: flex;
    & form input{
        padding: 0;
    }
}
.navbar{
    &__nav{
        display: flex;
        

        &__item{
            position: relative;
            display: flex;
            &:hover{
                .navbar__nav__item__dropdown{
                    display: block;
                }
            }
            &__link{
                padding: .5rem 1rem;
                &:hover{
                    background: darken($color-white, 60%);
                }
            }
            &__dropdown{
                display: none;
                position: absolute;
                background-color: $color-secondary;
                white-space: nowrap;
                top:100%;
                &__item{
                    display: flex;
                    &__link{
                        padding: 0.5rem 1rem;
                        width: 100%;
                        &:hover{
                            background: darken($color-white, 60%);
                        }
                    }
                    &__dropdown{
                        display: none;
                        position: absolute;
                        background-color: $color-secondary;
                        white-space: nowrap;
                        left:100%;
                        &__item{
                            display: flex;
                            &__link{
                                padding: 0.5rem 1rem;
                                width: 100%;
                                &:hover{
                                    background: darken($color-white, 60%);
                                }
                            }
                        }
                    }
                    &:hover{
                        .navbar__nav__item__dropdown__item__dropdown{
                            display: block;
                        }
                    }
                }
            }
        }
    }
}
.bars{
    width: 38px;
    height: 38px;
    position: relative;
    cursor: pointer;
    transition:all 1.5s;
    overflow: hidden;
    &__item{
        background: $color-secondary;
        width: 100%;
        height: 4px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    &::before{
        content: "";
        position: absolute;
        bottom: 0;
        background: $color-secondary;
        width: 100%;
        height: 4px;

    }
    &::after{
        content: "";
        position: absolute;
        top:0 ;
        background: $color-secondary;
        width: 100%;
        height: 4px;
    }

    &:hover{   
        transform: rotate(720deg);
    }
}
.mobile-header{
    & ~ header{
        transition: margin-left 600ms ease-out;
    }
    transition:all 600ms ease-out;
    right: 0;
    width: 0px;
    overflow: hidden;
    position: absolute;
    height: 100vh;
    &.active{
        background-color: red;
        width: 60%;
        & ~ header{
            margin-left:-60%;
        }
    }
}
.auth_title {
    position: relative;

    &::after {
        content: "";
        position: absolute;
        bottom: -8px;
        left: 0;
        background-color: #e6e6e6;
        width: 100%;
        height: 1px;

    }
}

.login_btn {
    position: relative;

    &:after {
        content: "";
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #e6e6e6;
        width: 50%;
        height: 1px;
    }
}

.box {
    padding: 1rem;
}

.product--title {
    font-size: 18px;
    display: inline-block;
}

.product--img {
    max-width: 450px;
}

.product--price {
    color: $color-green;
    font-size: 22px;
}

.product--stock {
    font-size: 18px;
}

.product-list__row {
    display: flex;
    padding: .70rem;

    &:nth-child(even) {
        background-color: darken($color-light-gray, 4%);
    }

    &__item {
        width: 50%;

        &__title {
            font-weight: 600;
            width: 50%;
        }
    }
}

.quantity {
    &__item {
        width: 35px;
        height: 35px;
    }

    &__input {
        max-width: 55px;
        height: 35px;
        appearance: textfield;
        text-align: center;

        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
    }
}

.add_basket {
    font-size: 18px;
}