body {
    font-family: 'Noto Sans TC', '微軟正黑體', '新細明體', arial, sans-serif;
    color: #3f3a3a;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}
a {
    text-decoration: none;
    color: inherit;
}
input,
select,
img {
    vertical-align: middle;
}
img {
    max-width: 100%;
    max-height: 100%;
    width: 270px;
}

/* header */

header {
    display: flex;
    align-items: center;
    height: 80px;
    background-color: #ffffff;
}
.padding-mobile {
    display: none;
}
.logo {
    margin-left: 30px;
    margin-right: 30px;
    height: auto;
    width: 270px;
}
.items {
    display: flex;
    flex: auto;
}
.item {
    width: 100px;
    letter-spacing: 20px;
    font-size: 16px;
    text-align: end;
    cursor: pointer;
    padding-right: 5px;
    border-right: solid 1px black;
}
.item:last-child {
    border-right-width: 0px;
}
.item > a:hover {
    color: rgb(163, 81, 49);
}

/* searchbar */
.feature {
    flex: none;
    display: flex;
    align-items: center;
    padding-right: 30px;
}
.search {
    display: block;
    flex: auto;
    cursor: pointer;
}
.web_searchbar {
    width: 130px;
    margin-right: 20px;
    padding: 10px;
    padding-right: 30px;
    border: 1px solid #979797;
    border-radius: 20px;
    background-image: url(../images/search.png);
    background-repeat: no-repeat;
    background-size: 40px 40px;
    background-position: 98% center;
}
.search a {
    display: flex;
}

.item_cart {
    width: 44px;
    height: 44px;
    background-image: url(../images/cart.png);
    background-repeat: no-repeat;
    background-size: 44px 44px;
    background-position: center center;
}
#cart-qty {
    text-align: center;
    background-color: #8b572a;
    font-weight: bold;
    border-radius: 50%;
    color: #ffffff;
    opacity: 0.8;
    font-size: 0.8em;
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin-left: 20px;
    margin-top: 20px;
}

.member {
    width: 44px;
    height: 44px;
    background-image: url(../images/member.png);
    background-repeat: no-repeat;
    background-size: 44px 44px;
    background-position: center center;
}
/* nav mobile */
nav.mobile {
    display: flex;
    background-color: #313538;
    height: 20px;
}
nav.mobile > .item {
    display: none;
}

/* feature mobile */
.feature_mobile {
    display: flex;
    position: fixed;
    width: 100%;
    bottom: 0px;
    z-index: 100;
    color: #f5f5f5;
    background-color: #313538;
    display: none;
}
.feature_mobile > a {
    width: 50%;
}
.feature_mobile > .item {
    display: block;
    flex: auto;
    text-align: center;
    letter-spacing: 0px;
    cursor: pointer;
    border-right: solid 1px #f5f5f5;
    margin: 10px 0;
}
.feature_mobile > .item:last-child {
    border-right: none;
}
.feature_mobile > .item > .item_cart {
    background-image: url(../images/cart-mobile.png);
}
.feature_mobile > .item > .member {
    background-image: url(../images/member-mobile.png);
}
#cart-qty-mobile {
    text-align: center;
    background-color: #8b572a;
    font-weight: bold;
    border-radius: 50%;
    color: #ffffff;
    opacity: 0.8;
    font-size: 0.8em;
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin-left: 20px;
    margin-top: 20px;
}

/* footer */

footer {
    font-size: 0.8em;
    background-color: #313538;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0px;
    padding-bottom: 220px;
}
.footer_content {
    width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.link-0 {
    display: flex;
    text-align: center;
    flex-flow: row wrap;
    cursor: pointer;
}
.link-1 {
    display: flex;
    margin-right: 8px;
    text-align: center;
    flex-flow: row wrap;
    cursor: pointer;
}
.social {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.copyright {
    flex: none;
    width: 200px;
    font-size: 12px;
    color: #828282;
    margin-left: 10px;
}
.footer_item {
    width: 100px;
    color: #f5f5f5;
    border-right: solid 1px white;
}
.footer_item a:hover {
    color: #8b572a;
}
.link-1 .footer_item:last-child {
    border-right-width: 0px;
}
.footer_img {
    width: 40px;
    height: 40px;
    margin: 8px;
}
.loading {
    width: 100%;
    height: 100%;
    padding-top: 350px;
    z-index: 200;
    display: none;
    background-color: #000;
    opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
}
.loading img {
    width: auto;
    height: auto;
}

/* 
==============
Media queries
============== 
*/

@media screen and (max-width: 1000px) {
    header {
        height: 60px;
        width: 100%;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 100;
    }
    img {
        width: auto;
    }
    .padding-mobile {
        display: block;
        flex: auto;
        width: 60px;
    }
    .logo {
        flex: auto;
        text-align: center;
        margin: auto 0;
        height: 35px;
    }

    .feature {
        flex: auto;
        width: 30px;
        margin-right: 5px;
    }
    .search:first-child {
        text-align: right;
    }
    .web_searchbar {
        width: 0;
        border-width: 0;
        margin-right: 0px;
    }
    .web_searchbar:focus {
        height: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* left: 10px; */
        /* right: 10px; */
        width: 80%;
    }
    .footer_item a:hover {
        color: rgb(245, 152, 90);
    }
    header > .feature > :not(:first-child) {
        display: none;
    }
    .items {
        display: none;
    }
    nav.mobile {
        padding: 12px 0;
        height: auto;
        width: 100%;
        position: fixed;
        top: 60px;
        z-index: 100;
    }
    nav.mobile > .item {
        display: block;
        flex: auto;
        text-align: center;
        cursor: pointer;
        border-right: 1px solid #f5f5f5;
        color: #828282;
        letter-spacing: 0;
        padding: 0;
    }
    nav.mobile > .item > a:hover {
        color: #f5f5f5;
    }
    nav.mobile > :last-child {
        border-right-width: 0px;
    }
    .feature_mobile {
        display: flex;
    }
    .item_cart,
    .member {
        display: inline-block;
        vertical-align: middle;
        line-height: 45px;
    }
    main {
        margin-top: 100px;
    }
    footer {
        padding-bottom: 150px;
    }
    .footer_content {
        flex-wrap: wrap;
        align-items: flex-start;
        padding-top: 30px;
    }
    .link-0,
    .link-1 {
        display: block;
        font-size: 13px;
        text-align: left;
    }
    .footer_item {
        border-right: 0px;
        margin: 15px auto;
    }
    .social {
        margin-top: 35px;
    }
    .footer_img {
        width: 24px;
        height: 24px;
        margin: 3px;
    }
    .copyright {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}
