﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    transition: all .3s linear;
}
#index .header-style1{
    box-shadow: none;
    background-color: transparent;
}
.header-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding-right: 60px;
}
.header-logo{
    width: 300px;
    height: 130px;
    max-width: 100%;
    position: relative;
    vertical-align: middle;
    background-color: #a37e7f;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: row;
    transition: all .3s linear;
}
.header-logo-text{
    width: 250px;
    max-width: 100%;
}
.header-logo-text>h2{
    font-size: 36px;
    color: #000;
    letter-spacing: 0.1em;
    line-height: 36px;
    display: inline-block;
    vertical-align: bottom;
    font-family: 'Noto Serif TC';
    font-weight: 700;
    opacity: 0.8;
}
.header-logo-text>span{
    font-size: 18px;
    color: #000;
    letter-spacing: 0.2em;
    line-height: 26px;
    display: inline-block;
    vertical-align: bottom;
    font-family: 'Noto Serif TC';
    opacity: 0.5;
    margin-left: 5px;
}
.header-menu-box{
    width: calc(100% - 500px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    box-sizing: border-box;
    padding-left: 60px;
    transition: all .3s linear;
}
.header-menu,
.header-other{
    display: inline-block;
    width: 70%;
}
.header-other{
    width: 30%;
}
.header-other> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 90px;
}
.header-other> li:last-child{
    margin-right: 0;
}
.header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 90px;
}
.header-menu> li:last-child{
    margin-right: 0;
}

.header-menu-title{
    font-size: 18px;
    color: #666;
    letter-spacing: 0.2em;
    line-height: 36px;
    font-family: 'Noto Sans TC';
    position: relative;
    transition: all .3s linear;
}
#index .header-menu-title{
    color: #fff;
}
div.header-menu-title{
    cursor: context-menu;
}

.header-url-box{
    width: 200px;
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
    transition: all .3s linear;
}
.header-url> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 30px;
}
.header-url-title{
    font-size: 30px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 36px;
    position: relative;
    transition: all .3s linear;
}
#index .header-url-title{
    color: #fff;
}


.rwd-menu-list-back{
    display: none;
}
.mask{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mask.active{
    display: block;
}

.rwd-menu{
    width: 30px;
    max-width: 100%;
    position: absolute;
    right: 20px;
    z-index: 99999;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #666;
    position: relative;
}
#index .rwd-menu>span{
    background-color: #fff;
}

.header-shopping-box {
    width: 420px;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 0 10px rgb(0 0 0 / 30%);
    box-sizing: border-box;
    padding: 10px 20px;
    text-align: left;
    display: none;
}
.header-shopping-name {
    font-size: 16px;
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 30px;
    color: #888;
}

.header-shopping-list-box {
    width: 100%;
    max-height: calc(71px * 4px);
    overflow: auto;
}
.header-shopping-list {
    box-sizing: border-box;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.header-shopping-list-img {
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
}
.header-shopping-list-info {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    width: 120px;
}
.header-shopping-list-text {
    font-size: 14px;
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 20px;
    color: #888;
    display: inline-block;
    vertical-align: middle;
}
.header-shopping-list-info p {
    font-size: 14px;
    font-family: "Noto Sans TC";
    letter-spacing: 0.1em;
    line-height: 20px;
    color: #000;
}
.header-shopping-list-price {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    width: 110px;
}
.header-shopping-list-quantity {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    width: 65px;
}
.header-shopping-list-quantity p, .header-shopping-list-price p {
    font-size: 14px;
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 20px;
    color: #a37e7f;
    display: inline-block;
    vertical-align: middle;
}
.header-shopping-btn {
    width: 120px;
    display: block;
    background-color: #a37e7f;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: 14px;
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 36px;
    margin: 20px 0;
    margin-left: auto;
    transition: all .3s linear;
}
.header-shopping-box::after {
    content: '';
    border-bottom: 7px solid #fff;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    position: absolute;
    top: -7px;
    right: 37px;
    display: block;
}
/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(4){
    top: -19px;
    transform:  scale(0,1) rotate(-45deg);
}
.rwd-menu-style1> span:nth-child(4){
    display: none;
}
.rwd-menu-style1 .rwd-menu-bth-line{
    transform: rotate(-45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line2{
    transform: rotate(45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line,
.rwd-menu-style1 .rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    background-color: #666;
    transition: all .5s ease;
    position: relative;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    background-color: #666;
    transition: all .5s ease;
    position: relative;
}
.rwd-menu-style1.active .rwd-menu-bth-line span,
.rwd-menu-style1.active .rwd-menu-bth-line2 span{
    transform:  scale(1,1) ;
    transition-delay: .1s;
}
.rwd-menu-style1.active> span:nth-child(1),
.rwd-menu-style1.active> span:nth-child(2),
.rwd-menu-style1.active> span:nth-child(3){
    transform: scale(0,1);
}
.rwd-menu-style1.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

/*漢堡樣式2*/

.rwd-menu-style2> span:nth-child(4){
    display: none;
}
.rwd-menu-style2> span:nth-child(2){
    display: block;
    margin: 4px auto;
}
.rwd-menu-style2{
    width: 25px;
}
.rwd-menu-style2> span{
    transition: all 0.3s ease-in-out;
}
.rwd-menu-style2 .rwd-menu-bth-line,
.rwd-menu-style2 .rwd-menu-bth-line2{
    display: none;
}
.rwd-menu-style2.active{
    animation: smallbig 0.6s forwards;
}
.rwd-menu-style2.active> span:nth-child(1){
    -webkit-transform: translateY(7px) rotate(45deg);
    -ms-transform: translateY(7px) rotate(45deg);
    -o-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
}
.rwd-menu-style2.active> span:nth-child(2){
    opacity: 0;
}
.rwd-menu-style2.active> span:nth-child(3){
    -webkit-transform: translateY(-5px) rotate(-45deg);
    -ms-transform: translateY(-5px) rotate(-45deg);
    -o-transform: translateY(-5px) rotate(-45deg);
    transform: translateY(-5px) rotate(-45deg);
}

.rwd-menu-style2.active> span:nth-child(1), 
.rwd-menu-style2.active> span:nth-child(2), 
.rwd-menu-style2.active> span:nth-child(3) {
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s;
}



@keyframes smallbig{
  0%, 100%{
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }

  50%{
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }
}


/*------------------------------------------*/
@media only screen and (max-width: 1600px){

    .header-menu> li{
        margin-right: 70px;
    }
    /* .header-other> li{
        margin-right: 40px;
    } */

}
@media only screen and (max-width: 1480px){
    .header-box{
        padding-right: 40px;
    }
    .header-logo{
        width: 200px;
        height: 100px;
    }
    .header-menu-box{
        width: calc(100% - 350px);
        padding-left: 10px;
    }
    .header-url-box{
        width: 150px;
    }
    .header-menu> li{
        margin-right: 50px;
    }
    .header-other> li{
        margin-right: 50px;
    }
    .header-url> li{
        margin-right: 20px;
    }
    .header-url> li:last-child{
        margin-right: 0;
    }
}
@media only screen and (max-width: 1200px){
    .header-box{
        padding-right: 20px;
    }
    .header-logo{
        width: 200px;
        height: 80px;
    }
    .header-logo-text>h2{
        font-size: 30px;
    }
    .header-logo-text>span{
        font-size: 16px;
    }
    .header-menu-box{
        padding-left: 20px;
    }
    .header-menu> li{
        margin-right: 20px;
    }
    .header-other> li{
        /* width:50%; */
        margin-right: 15px;
    }
}

@media only screen and (max-width: 1000px){
    .rwd-menu{
        display: block;
    }
    .rwd-menu{
        display: block;
    }
    .header-menu-box {
        width: calc(100% - 400px);
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -280px;
        z-index: 3;
        display:         flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction:column;
        background-color: rgba(255, 255, 255, 0.95);
        transition: all .3s linear;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    }
    .rwd-header-menu-sytle1 .header-menu.active{
        right: 0;
        opacity: 1;
        pointer-events: all;
    }
    .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
    }
    .header-menu> li:last-child{
        margin-bottom: 0;
    }
    
    .header-url-box {
        width: 150px;
    }
    #index .header-menu-title{
        color: #666;
    }

    
    .header2,
    #index .header2{
        background-color: #fff;
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    }
    .header2 .header-url-title,
    #index .header2 .header-url-title{
        color: #666;
    }
    .header2 .rwd-menu>span,
    #index .header2 .rwd-menu>span{
        background-color: #666;
    }
    .header-other {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 4;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 0 10px rgb(0 0 0 / 30%);
        text-align: center;
    }
    .header-other> li{
        width: 50%;
        margin-right:0;
    }
    .header-shopping{
        background-color: #a37e7f;
    }
    #index .header-shopping .header-menu-title {
        color: #fff;
    }
}
@media only screen and (max-width: 550px){
    .header-logo{
        width: 120px;
        height: 60px;
    }
    .header-logo-text>h2{
        font-size: 24px;
    }
    .header-logo-text>span{
        font-size: 14px;
        margin-left: 0px;
    }
    .header-url-box {
        width: 130px;
    }
    .header-url> li {
        margin-right: 15px;
    }
    .header-menu-box {
        width: calc(100% - 300px);
        padding-left: 0;
    }
}



@media only screen and (min-width: 1001px){
    .header2,
    #index .header2{
        background-color: #fff;
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    }
    .header2 .header-logo{
        width: 200px;
        height: 65px;
    }
    .header2 .header-menu-box{
        width: calc(100% - 400px);
    }
    .header2 .header-menu-title,
    #index .header2 .header-menu-title{
        color: #666;
    }
    .header2 .header-url-box{
        width: 200px;
    }
    .header2 .header-url-title,
    #index .header2 .header-url-title{
        color: #666;
    }
    .header-menu> li:hover .header-menu-title,
    .header-menu> li.active .header-menu-title,
    #index .header-menu> li:hover .header-menu-title,
    #index .header-menu> li.active .header-menu-title{
        color: #a37e7f;
    }
    .header-url-title:hover,
    #index .header-url-title:hover{
        color: #a37e7f;
    }
    .header-shopping:hover .header-shopping-box {
        display: block;
    }
}