
/*上層標籤列(商品目錄，購物說明，購物車)*/
#toolBar {
    width: 1000px;
    height: 36px;
    margin: auto;
    color: #fff;
    background-color: #4d4948;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    font-size: 14px;
    z-index: 5;
    box-sizing: border-box;
}

    #toolBar.sticky { /* 下滑----IE */
        position: fixed;
    }

    #toolBar #shopList, #toolBar #shoppingNote {
        display: inline;
        cursor: pointer;
        padding: 3px;
    }

    #toolBar img {
        vertical-align: middle;
    }

#shoppingNote { /*購物說明按鈕*/
    float: right;
}

#shopList { /*購物清單按鈕*/
    float: right;
    margin: 0 18px 0 20px;
}


/*購物車清單*/
#cart {
    display: none;
    min-width: 360px;
    min-height: 100px;
    position: absolute;
    top: 37px;
    right: 0;
    font-size: 14px;
    color: #595757;
    background-color: #fff;
    padding: 5px;
    border: 2px #beb1a7 solid;
    z-index: 5;
}

    #cart #closeright {
        display: inline;
        color: #fff;
        float: right;
        padding: 0 4px 0 3px;
        margin: 0 0 5px 0;
        line-height: 20px;
        /*border: 1px #a49991 solid;*/
        background-color: #a49991;
        cursor: pointer;
        border-radius: 2px;
    }

    #cart table {
        width: 100%;
    }

    #cart th {
        background-color: #efefef;
        padding: 5px 10px;
    }

    #cart td {
        padding: 5px 10px;
    }

#buybutton {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border: 0;
    background-color: #a49991;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

/*購物清單按鈕數量*/
#buycount {
    float: right;
    font-size: 12px;
    width: 21px;
    line-height: 20px;
    background-color: #c30d23;
    color: #fff;
    display: inline-block;
    /*padding: 0 7px;*/
    border-radius: 50%;
    text-align: center;
    position: relative;
    left: -2px;
    display: none;
}

@media screen and (max-width: 800px) {

    #toolBar {
        width: 100%;
    }

        #toolBar font {
            display: none;
        }

    #cart {
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
    }

        #cart #closeright {
            padding: 0 3px 0 4px;
        }

    #blackbg {
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,.7);
        display: block;
        position: absolute;
        top: 0;
        z-index: 2;
    }

    #shopList { /*購物清單按鈕*/
        margin: 0 3%;
    }

    /*購物清單按鈕數量*/
    #buycount {
        margin-left: -10px;
        left: 0;
    }

    footer {
        background: none;
        background-color: #cccccc;
        padding: 5px 0;
        font-size: 1.1em;
    }
}


/*********cover *********/ /*共用*/
#cover {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(62,58,57,0.8); /*遮罩-背景色*/
    z-index: 10;
    display: none;
}

    #cover #alert {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        background-color: #FFF;
        font-family: Arial, Helvetica, 微軟正黑體, Microsoft JhengHei, sans-serif;
        line-height: 25px;
        margin: 0 auto;
    }

.btn_close { /*關閉按鈕*/
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    top: -30px;
    right: 0;
    position: absolute;
}

/*滾動軸樣式*/
#alert ::-webkit-scrollbar {
    width: 8px;
}

#alert ::-webkit-scrollbar-track {
    background-color: rgba(213, 220, 217, 0.8);
    /*border-radius: 6px;*/
}

#alert ::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

@media screen and (max-width: 800px) {
    #cover #alert {
        max-width: 90%;
    }

    /*對應iphoneX 以上 滿版做修正*/
    @supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
        /*#scrollup {
            padding-bottom: constant(safe-area-inset-bottom);
            padding-bottom: env(safe-area-inset-bottom);
        }*/
        .btn-container {
            /*box-sizing: content-box;*/
            height: 5px;
            line-height: 5px;
            text-align: center;
            background-color: #fff;
            padding-bottom: env(safe-area-inset-bottom);
            padding-bottom: 60px;
            /*padding-bottom: calc(env(safe-area-inset-bottom)+100px );*/
        }
    }
}


/*-----------------購物說明---------------------*/

#cover #alert.brands {
    width: 800px;
    height: 80%;
}

    #cover #alert.brands .brandsbox { /*內容框*/
        text-align: left;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        background-size: 100% 100%;
        font-size: 16px;
    }

.brandsbox img {
    display: block;
    width: 100%;
}

@media screen and (max-width: 800px) {

    #cover #alert.brands {
        width: 100%;
    }

        #cover #alert.brands .brandsbox { /*內容框*/
            font-size: 1em;
        }
}

#Shopping_Guide {
    margin: 0 5%;
    display: block;
}

    #Shopping_Guide #guide_title {
        color: #922024;
        font-size: 2em;
        padding-bottom: 5px;
        border-bottom: 1px #922024 solid;
    }

    #Shopping_Guide .guide_row {
        border-bottom: 1px #595757 dashed;
        padding: 2% 5%;
    }

        #Shopping_Guide .guide_row img {
            vertical-align: middle;
            width: 15%;
            display: inline;
        }

    #Shopping_Guide .guide_p, #guide_footer .guide_p {
        margin-left: 5%;
        display: inline-block;
        vertical-align: middle;
        width: 78%;
    }

    #Shopping_Guide b {
        color: #922024;
    }

#guide_footer {
    padding: 3% 10%;
    background-color: #922024;
}

    #guide_footer .guide_p {
        color: #fff;
    }

    #guide_footer img {
        vertical-align: middle;
        width: 17%;
        display: inline;
    }

@media screen and (max-width: 800px) {

    #Shopping_Guide {
        margin: 0 2%;
    }

        #Shopping_Guide #guide_title {
            font-size: 1.5em;
        }

        #Shopping_Guide .guide_row {
            padding: 2%;
        }

            #Shopping_Guide .guide_row img {
                width: 25%;
            }

        #Shopping_Guide .guide_p, #guide_footer .guide_p {
            width: 70%;
        }

    #guide_footer {
        padding: 3% 2%;
    }

        #guide_footer img {
            width: 25%;
        }
}


/*--------------menuEvents---------------*/

.menuEvents i, .menuEvents ul, .menuEvents li {
    margin: 0;
    padding: 0;
    border: 0;
    /*font: inherit;*/
    vertical-align: baseline;
    list-style: none;
    background-color: #efefef;
    /*font-size: 100%;*/
}

.menuEvents #menu_title {
    /*background-color: #beb1a7;*/
    background-color: #4d4948;
    line-height: 34px;
    padding: 0 10px;
    margin: 1px 0;
}

.menuEvents #menubox {
    /*border: 1px #ccc solid;*/
}

/* Primary style*/
.menuEvents::after {
    box-sizing: border-box;
}


/* -------------------------------- 
Main Components 
-------------------------------- */
.menuEvents {
    position: absolute;
    width: 400px;
    top: 0;
    left: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    z-index: 2;
}

    .menuEvents ul { /* by default hide all sub menus */
        display: none;
    }

    .menuEvents li {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

#menubox li {
    padding: 3px 0;
}

.menuEvents input[type=checkbox] { /* hide native checkbox */
    position: absolute;
    opacity: 0;
}

.menuEvents label, .menuEvents a {
    position: relative;
    display: block;
    padding: 3px 10px;
    cursor: pointer;
}

    .menuEvents label:hover, .menuEvents a:hover {
        background: #f7f8f8;
    }

#menu_title:hover {
    background: #4d4948;
}

/* icons */
.menuEvents label::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.menuEvents label::after {
    background-image: url(../images/toolBar_titlemenu_icons.svg);
    background-repeat: no-repeat;
}

.menuEvents #menubox label::after {
    background-image: url(../images/toolBar_menu_icons.svg);
    background-repeat: no-repeat;
}



.menuEvents label:after { /* arrow icon */
    background-position: 0 0;
    -webkit-transform: translateY(-50%) rotate(-90deg);
    -moz-transform: translateY(-50%) rotate(-90deg);
    -ms-transform: translateY(-50%) rotate(-90deg);
    -o-transform: translateY(-50%) rotate(-90deg);
    transform: translateY(-50%) rotate(-90deg);
}

.menuEvents input[type=checkbox]:checked + label::after {
    /* rotate arrow */
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.menuEvents input[type=checkbox]:checked + label + ul,
.menuEvents input[type=checkbox]:checked + label:nth-of-type(n) + ul {
    /* use label:nth-of-type(n) to fix a bug on safari (<= 8.0.8) with multiple adjacent-sibling selectors*/
    /* show children when item is checked */
    display: block;
    background-color: #e6e6e6;
}

.menuEvents ul label,
.menuEvents ul a {
    padding-left: 3%;
    font-size: 0.9em;
    color: #666;
}

.menuEvents > li:last-of-type > label,
.menuEvents > li:last-of-type > a,
.menuEvents > li > ul > li:last-of-type label,
.menuEvents > li > ul > li:last-of-type a {
    box-shadow: none;
}

.menuEvents ul ul label,
.menuEvents ul ul a {
    padding-left: 25px;
    /*font-size: 0.9em;
    color: #999;*/
}

.menuEvents #menubox li.active {
}

.menuEvents ul ul ul label,
.menuEvents ul ul ul a {
    font-size: 0.9em;
}

.menuEvents ul ul ul li, #events_over li {
    background-color: #e6e6e6;
}

.menuEvents ul ul ul label::after {
    left: 72px;
}

.menuEvents.animated label::after {
    /* this class is used if you're using jquery to animate the accordion */
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
}

#events_over {
    background-color: #efefef;
}

/*#events_over li {
        background-color: #e6e6e6;
    }*/

.menuEvents #menubox {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 500px;
}

/*滾動軸樣式*/
.menuEvents ::-webkit-scrollbar {
    width: 8px;
}

.menuEvents ::-webkit-scrollbar-track {
    background-color: rgba(213, 220, 217, 0.5);
}

.menuEvents ::-webkit-scrollbar-thumb {
    background-color: rgba(201, 202, 202, 0.9);
    border-radius: 6px;
}


@media screen and (max-width: 800px) {

    .menuEvents {
        width: 70vw;
    }

        .menuEvents #menubox {
            max-height: 60vh;
        }

        .menuEvents ul label,
        .menuEvents ul a {
            font-size: 1em;
        }
}

@media screen and (max-width: 450px) {


    .menuEvents ul label,
    .menuEvents ul a {
        font-size: 0.9em;
    }
}
