nav{
    position: fixed;
    top: 0px;
    height: 56px;
    width: 100%;
    padding: 0px 15px;
    z-index: 10;
    background-color: #ffffffe7;
}
input::placeholder{
    color: #ABABAB;
}

*:focus {
    outline: 0 !important;
}

/* !burger */

.burger{
    float: left;
    width: 26px;
    margin-top: 15px;
}

.menu-area{
    position: relative;
}

.burger-menu{
    position: absolute;
    top: 56px;
    width: 100%;
    height: 100vh;
    z-index: 999;
    display: none;
    opacity: 0%;
}

@keyframes move{
    from{
        left:-320px;
    }
    to{
        left:0px;
    }
}

.show{
    display: block;
    position: fixed;
    opacity: 100%;
}

.burger-draw{
    position: absolute;
    width: 320px;
    height: 100vh;
    background-color: #5A8E5F;
    z-index: 9;
    left: -320px;
}

.show > .burger-draw{
    left: 0px;
    animation-name:move;
    animation-duration:0.3s;
}

.burger-draw > a {
    display: block;
    width: 320px;
    height: 48px;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    padding-left: 34px;
    padding-top: calc(24px - .8rem);
    border-bottom: 1px solid #f9f3eb38;
}

.burger-draw > a:hover{
    text-decoration: none;
    color: white;
    background-color: #5D3E2A;
}

.burger-right{
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: black;
    opacity: .8;
}

.hamburger {
    width: 30px;
    cursor: pointer;
}

.hamburger .line:nth-child(1) {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #5A8E5F;
    margin-bottom: 8px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.hamburger .line:nth-child(2) {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #5A8E5F;
    margin-bottom: 8px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.hamburger .line:nth-child(3) {
    display: block;
    width: 60%;
    height: 3px;
    background-color: #5A8E5F;
    margin-bottom: 8px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#hamburger-1.active .line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
#hamburger-1.active .line:nth-child(2) {
    opacity: 0;
}
#hamburger-1.active .line:nth-child(3) {
    width: 100%;
    transform: translateY(-12px) rotate(-45deg);
}

#hamburger-2.active .line:nth-child(1) {
    transform: translateY(12px) rotate(-45deg);
}

#hamburger-2.active .line:nth-child(2) {
    opacity: 0;
}
#hamburger-2.active .line:nth-child(3) {
    transform: translateY(-12px) rotate(45deg);
}

#hamburger-3.active .line:nth-child(1) {
    transform: translate3d(-8px, 0, 0) rotate(-45deg) scaleX(.9);
}

#hamburger-3.active .line:nth-child(3) {
    transform: translate3d(-8px, 0, 0) rotate(45deg) scaleX(.9);
}

#hamburger-4.active .line:nth-child(1) {
    transform: translate3d(8px, 0, 0) rotate(45deg) scaleX(.9);
}

#hamburger-4.active .line:nth-child(3) {
    transform: translate3d(8px, 0, 0) rotate(-45deg) scaleX(.9);
}

.navbar-brand {
    position: absolute;
    left: calc(50% - 32.15px);
}

.navbar-brand  div{
    width: 64.37px;
    height: 48px;
    background-image: url(../img/logo_sm.png);
    margin-top: 4px;
}

.nav-search{
    display: none;
    float: right;
    width: 320px;
    height: 36px;
    margin-right: 32px;
    margin-top: 18px;
} 

.nav-search input{
    float: right;
    display: block;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #303030;
    border-radius: 5px;
    border: 1px solid #5D3E2A;
    padding: 0 1em;
    width: 320px;
    height: 36px;
    position: relative;
    outline:none;
}

.nav-search input::placeholder{
    color: #ABABAB;
}

.search-btn{
    position: absolute;
    border: 0px;
    background-color: transparent;
    top: 21px;
    right: 420px;
    cursor: pointer;
}

.search-btn:focus{
    outline:none;
}

.user{
    float: right;
    width: 30px;
    padding-top: 14px;
    margin-right: 20px;
}

.user p{
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #5D3E2A;
    margin: 0px 6px;
    display: none;
}

.cart{
    float: right;
    width: 30px;
    padding-top: 14px;
    position: relative;
}

.cart p{
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white;
    margin: 0px 6px;
    display: none;
}

.cart-num{
    font-family: 'Noto Sans TC', sans-serif;
    font-size: .8rem;
    font-weight: 400;
    width: 16px;
    height: 16px;
    background-color: #EE8572;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    color: white;
    position: absolute;
    top: 10px;
    right: -3px;
}



@media screen and (min-width: 520px) {
}

@media screen and (min-width: 769px) {
    nav{
        height: 70px;
        padding-left: 54px;
        padding-right: 0px;
    }

    .burger{
        margin-top: 23px;
    }

    .burger-menu{
        top: 70px;
    }

    .navbar-brand{
        left: 120px;
        margin-top: 8px;
    }

    .cart:hover{
        background-color: #5A8E5F;
    }

    .cart{
        width: 192px;
        height: 70px;
        padding-top: 20px;
        background-color: #5D3E2A;
        display: flex;
        justify-content: center;
    }

    .cart  svg{
        height: 30px;
        object-fit: cover;
    }

    .cart  svg path{
        fill: white;
    }

    .cart p{
        display: inline-block;
    }

    .cart-num{
        width: 21px;
        height: 21px;
        font-size: .9rem;
        line-height: 21px;
        top: 12px;
        right: 105px;
    }

    .user:hover{
        background-color: #5A8E5F;
    }

    .user:hover  svg path{
        fill: white;
    }

    .user:hover  svg circle{
        fill: white;
    }

    .user:hover  p{
        color: white;
    }

    .user{
        width: 192px;
        height: 70px;
        padding-top: 20px;
        margin: 0px;
        background-color: #F9F3EB;
        display: flex;
        justify-content: center;
    }

    .user svg{
        /* display: inline-block; */
        height: 30px;
        object-fit: cover;
        margin-left: auto;
    }

    .user svg path{
        fill: #5D3E2A;
    }

    .user svg circle{
        fill: #5D3E2A;
    }

    .user p{
        display: inline-block;
    }
}

@media screen and (min-width: 992px) {

    .nav-search{
        display: block;
    }
}

@media screen and (min-width: 1150px) {

    .navbar-brand  div{
        width: 256.53px;
        height: 40px;
        background-image: url(../img/logo.png);
        margin-top: 8px;
    }
}
