﻿/*網站主題鍋底*/
body {
    font-family: 'Noto Sans TC', 'Karla', 'Microsoft JhengHei', sans-serif;
    letter-spacing: 0.075em;
}

section h1 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.col-content {
    min-width: 0;
}

/* 排序(電腦版) */
.sort-desktop {
    color: #3f3a39;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    margin-top: -1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .sort-desktop nav.sort {
        display: none;
    }

        .sort-desktop nav.sort a {
            color: #999999;
            margin-right: 1.25em;
        }

            .sort-desktop nav.sort a.active {
                color: #3f3a39;
            }

/* 排序(手機版) */
.sort-mobile {
    margin-bottom: 1rem;
}

    .sort-mobile .dropdown-item {
        padding: 0.5rem 1.5rem;
        color: #777;
    }

        .sort-mobile .dropdown-item + .dropdown-item {
            border-top: 1px solid #e9ecef;
        }

        .sort-mobile .dropdown-item.active, .sort-mobile .dropdown-item:active {
            background-color: #707070;
            color: #fff;
        }

/* 分類選單(水平展開 nav-item) */
.category-pills {
    display: none;
}

.nav-pills {
    margin-bottom: 1rem;
}

    .nav-pills li {
        color: #3f4756;
        border-bottom: 1px solid #ccc;
        margin-right: 5px;
        margin-left: 0;
    }

        .nav-pills li:last-child {
            margin-right: 0;
        }

    .nav-pills a {
        display: block;
        border-radius: 0;
        margin-bottom: -1px;
        border-bottom: 1px solid #3F4756;
    }

    .nav-pills > li > a.active {
        background-color: transparent;
        border-bottom: 3px solid #3F4756;
    }

    .nav-pills > li > a:hover {
        color: #3F4756;
        border-bottom-color: transparent;
    }

    .nav-pills li a:focus,
    .nav-pills li a.active {
        color: #3F4756;
    }

/* Style of Scroll To Top */
.fix-feature .scrollToTop {
    background-color: rgba(130, 130, 130, 0.8);
    width: 48px;
    height: 48px;
    padding: 3px;
    bottom: 5px;
}

    .fix-feature .scrollToTop:hover {
        background-color: rgba(130, 130, 130, 1);
    }

        .fix-feature .scrollToTop:hover i {
            color: #ffffff;
            -webkit-transition: all 0.2s ease-in-out;
            -o-transition: all 0.2s ease-in-out;
            transition: all 0.2s ease-in-out;
        }

    .fix-feature .scrollToTop i {
        line-height: 38px;
        font-size: 30px;
    }

.fixed-top {
    position: fixed !important;
    z-index: 1010;
}

/* Header-Top*/
.header-top {
    padding: 8px 0;
    background-color: #f0f0f0;
    font-size: 0.875rem;
}

    .header-top .socials {
        display: flex;
        justify-content: flex-end;
    }

        .header-top .socials > a {
            display: block;
            width: 25px;
            height: 25px;
            border: 1px solid transparent;
            border-radius: 50%;
            margin-right: 10px;
            text-align: center;
            background-color: #777777;
            color: #ffffff;
            line-height: 20px;
        }

        .header-top .socials a i {
            line-height: 24px;
            font-size: 0.875rem;
        }

        .header-top .socials a.line {
            background-image: url(/Images/line-logo.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: 70%;
        }


.header-container {
    margin-bottom: 0px;
}

/*主要項目*/
.logo {
    max-height: 55px;
}

.main-menu {
    display: none;
}

.navbar-toggle .icon-bar {
    background-color: #777777;
}

/* Header */
header .logo-wrapper {
    text-align: center;
    flex: 1;
}

header .search .form-control i {
    font-size: 0.875rem;
    color: #777 !important;
}

header .search.left {
    display: none;
}

header .dropdown-toggle::after {
    display: none;
}

header.navbar {
    border: 0;
    position: relative;
}

header .navbar-nav .nav-link {
    color: #777777;
    border: 0;
    padding: 1.25rem 1.5rem;
}

header .navbar-nav li > a:hover,
header .navbar-nav li > a.active,
header .navbar-nav li.show > a {
    background-color: transparent;
    color: #777;
}

header .navbar-nav li > a.active {
    font-weight: bold;
}

header .main-menu .dropdown-menu {
    min-width: 8rem;
}

header .navbar-nav .dropdown-menu .nav-item .nav-link {
    padding-top: 0.625em;
    padding-bottom: 0.625rem;
    white-space: nowrap;
}

header .dropdown-menu .nav-link:hover,
header .dropdown-menu .nav-link:focus,
header .dropdown-menu .nav-link.active {
    background-color: #e9ecef;
}

/* header menu-separate */
header.menu-separate {
    box-shadow: 0px 1px 15px rgba(0,0,0,0.1)
}

    header.menu-separate .logo-wrapper {
        flex: 1;
    }

    header.menu-separate .main-menu .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    header.menu-separate .search.left input.form-control {
        border: none;
        border-bottom: 1px solid #ced4da;
        background-color: transparent;
        width: 190px;
        font-size: 0.875rem;
        border-radius: 0;
    }

    header.menu-separate .search.left i {
        position: absolute;
        top: 10px;
        right: 15px;
    }

.fixed-header-on header {
    position: fixed;
    width: 100%;
    background-color: #fff;
    top: 0;
    z-index: 1001;
}

header.fixed-top {
    width: 100%;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

/*btn-toolbar*/
.btn-toolbar {
    font-size: 0.875rem;
}

    .btn-toolbar .nav-item .nav-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-toolbar .nav-item > a .text {
        display: none;
    }

    .btn-toolbar .input-group .form-control:focus {
        box-shadow: none;
    }

    .btn-toolbar .input-group .form-control {
        border: none;
        font-size: 0.875rem;
    }

    .btn-toolbar .search .dropdown-menu {
        padding: 0.5rem;
    }

    .btn-toolbar .search input {
        width: 150px;
    }

    .btn-toolbar .cart-count {
        color: #ffffff;
        width: auto;
        height: auto;
        min-width: 15px;
        line-height: 15px;
        text-align: center;
        border-radius: 50rem;
        background-color: #777777;
        top: 0.5rem;
        right: 0.5rem;
        letter-spacing: normal;
    }

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    margin-bottom: 0px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Pagination */
.page-link {
    color: #999999;
    border-radius: 50%;
    margin-left: 5px;
}

    .page-link:hover {
        color: #333333;
    }

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 50rem;
}

.page-item.active .page-link {
    background-color: #777777;
    border-color: #777777;
    border-radius: 50rem;
}

.PagedList-ellipses {
    margin: 0 0.5em;
}

.detail .pagination {
    display: block;
    padding: 0.5rem 0;
    margin: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

    .detail .pagination .back-wrapper {
        text-align: center;
    }

    .detail .pagination .next-wrapper {
        text-align: right;
    }

    .detail .pagination a {
        display: inline-block;
    }

        .detail .pagination a .title {
            color: #999999;
            font-size: 12px;
            font-weight: normal;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-height: 16px;
            max-height: 32px;
            border: 0;
        }

/*feature-panel*/
.feature-panel .bg {
    background-color: rgba(0, 0, 0, 0.5);
}

.feature-panel .header .exit {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

    .feature-panel .header .exit:hover {
        opacity: 0.85;
    }

    .feature-panel .header .exit:before,
    .feature-panel .header .exit:after {
        position: absolute;
        left: 9px;
        top: 0;
        content: '';
        height: 20px;
        width: 2px;
        background-color: #777;
    }

    .feature-panel .header .exit:before {
        transform: rotate(45deg);
    }

    .feature-panel .header .exit:after {
        transform: rotate(-45deg);
    }

/* 分類選單(feature-panel) */
#filter.feature-panel {
    width: 225px;
}

    #filter.feature-panel .wrapper {
        width: 100%;
        overflow-y: auto;
    }

    #filter.feature-panel .header {
        padding: 9px 15px;
        align-items: center;
        justify-content: space-between;
    }

        #filter.feature-panel .header h2 {
            color: #3f3a39;
            width: auto;
            height: auto;
            margin-bottom: 0;
            margin-top: 0;
            line-height: 1.0;
            font-size: 1rem;
        }

    #filter.feature-panel ul {
        padding-left: 0;
        list-style: none;
        margin-top: 5px;
    }

        #filter.feature-panel ul > li > a {
            display: block;
            padding: 7px 15px;
            color: #999999;
            font-size: 0.875rem;
        }

            #filter.feature-panel ul > li > a:hover,
            #filter.feature-panel ul > li > a.active {
                color: #3f3a39;
            }

                #filter.feature-panel ul > li > a:hover:after,
                #filter.feature-panel ul > li > a.active:after {
                    color: #ffffff;
                }

        #filter.feature-panel ul > li > ul {
            display: none;
        }

        #filter.feature-panel ul > li.active > ul {
            display: block;
        }

        #filter.feature-panel ul > li > ul {
            display: none;
            margin-top: 0;
        }

        #filter.feature-panel ul > li.active > ul {
            display: block;
        }

        #filter.feature-panel ul > li > ul > li a {
            display: block;
            font-size: 0.875em;
            padding-left: 1rem;
        }

        #filter.feature-panel ul > li > ul > li {
            position: relative;
        }

            #filter.feature-panel ul > li > ul > li > a:before {
                font-family: "FontAwesome";
                content: "\f105";
                color: #cccccc;
                position: absolute;
                left: 0.5em;
                top: 0.5em;
            }

/* Mobile Navbar 手機版選單 (feature-panel 由左滑出) */
.navbar-toggle {
    left: 5px;
    top: 8px;
    border: none;
    z-index: 1007;
    background-color: transparent;
    transition: all ease .5s;
}

    .navbar-toggle .icon-bar {
        background-color: #333333;
        -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
        -moz-transform: matrix(1, 0, 0, 1, 0, 0);
        -ms-transform: matrix(1, 0, 0, 1, 0, 0);
        -o-transform: matrix(1, 0, 0, 1, 0, 0);
        transform: matrix(1, 0, 0, 1, 0, 0);
    }

        .navbar-toggle .icon-bar:nth-child(1) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
            transform: matrix(1, 0, 0, 1, 0, 0);
        }

        .navbar-toggle .icon-bar:nth-child(2) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
        }

        .navbar-toggle .icon-bar:nth-child(3) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
            transform: matrix(1, 0, 0, 1, 0, 0)
        }

    .navbar-toggle.open .icon-bar:nth-child(1) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transform: matrix(.8, -.8, .8, .8, 0, 6)
    }

    .navbar-toggle.open .icon-bar:nth-child(2) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transform: translateX(-60px);
        opacity: 0;
    }

    .navbar-toggle.open .icon-bar:nth-child(3) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transform: matrix(.8, .8, -.8, .8, 0, -6);
    }

/*nav-mobile*/
#nav-mobile {
    width: 270px;
    background-color: #ffffff;
    border-right: 0;
}

    #nav-mobile .wrapper {
        width: 270px;
    }

    #nav-mobile .header {
        padding: 10px 20px;
    }

    #nav-mobile .logo {
        width: auto;
        height: auto;
    }

        #nav-mobile .logo img {
            height: 40px;
        }

    #nav-mobile .body {
        padding: 10px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.1);
    }

        #nav-mobile .body a {
            position: relative;
            display: block;
            color: #777;
            padding: 10px 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        #nav-mobile .body ul {
            list-style: none;
            padding-left: 0;
        }

            #nav-mobile .body ul > li.active > a {
                color: #777;
                background-color: #e9ecef;
            }

            #nav-mobile .body ul > li > a:hover {
                background-color: #e9ecef;
                /*color: #fff;*/
            }

            #nav-mobile .body ul > li > ul > li > a {
                padding-right: 10px;
                padding-left: 40px;
            }

            #nav-mobile .body ul > li > ul > li a:hover:before {
                color: #777;
            }

            #nav-mobile .body ul > li > ul > li a:before {
                font-family: 'FontAwesome';
                content: "\f105";
                color: #e9ecef;
                position: absolute;
                left: 1.5em;
            }

            #nav-mobile .body ul > li > ul > li > ul > li > a {
                padding-right: 10px;
                padding-left: 2.5em;
            }

                #nav-mobile .body ul > li > ul > li > ul > li > a:before {
                    left: 1.5em;
                }

            #nav-mobile .body ul > li > ul {
                display: none;
            }

            #nav-mobile .body ul > li.active ul,
            #nav-mobile .body ul > li.open ul,
            #nav-mobile .body ul > li.show ul {
                display: block;
            }

    #nav-mobile .search {
        padding: 10px 20px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

        #nav-mobile .search input {
            padding-right: 42.5px;
            font-size: 0.875rem;
        }

        #nav-mobile .search i {
            position: absolute;
            right: 15px;
            top: 10px;
            font-size: 0.875rem;
        }

    #nav-mobile .feature {
        background-color: #777777;
        border-top: 1px solid rgba(0,0,0,0.1);
        height: 50px;
    }

        #nav-mobile .feature a {
            color: #ffffff;
            font-size: 18px;
        }

            #nav-mobile .feature a.facebook {
                background-image: url('/Images/facebook-logo-white.svg');
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;
                width: 20px;
                height: 20px;
            }

            #nav-mobile .feature a.line {
                background-image: url(/Images/line-logo.svg);
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;
                width: 20px;
                height: 20px;
            }

        #nav-mobile .feature .fa-instagram {
            font-size: 20px;
        }

/* Footer */
footer {
    color: #777777;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 40px 0;
    font-size: 0.875rem;
}

    footer .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

        footer .logo img {
            max-height: 50px;
            margin-right: 10px;
        }

    footer h3 {
        font-weight: bold;
    }

    footer ul {
        list-style: none;
        padding-left: 0;
    }

    footer .horizontal {
        display: flex;
        flex-wrap: wrap;
    }

        footer .horizontal li {
            flex-basis: 50%;
            margin: 5px 0;
        }

    footer .socials {
        display: flex;
        justify-content: flex-start;
        margin-top: 10px;
    }

        footer .socials a {
            display: block;
            width: 35px;
            height: 35px;
            text-align: center;
            background-color: #777777;
            border-radius: 50%;
            margin-right: 15px;
            font-size: 18px;
            line-height: 35px;
        }

            footer .socials a:last-child {
                margin-right: 0;
            }

            footer .socials a i {
                color: #fff;
            }

            footer .socials a.line {
                background-image: url('/Images/line-logo.svg');
                background-position: center;
                background-repeat: no-repeat;
                background-size: 60%;
            }

@media (max-width: 575px) {
    .header-top .container,
    .header-top .container-fluid,
    header .container,
    header .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width:992px) {
    header .navbar-toggle {
        display: none;
    }

    header .search.left {
        display: block;
    }

    .main-menu {
        display: flex;
    }

    .col-category:not(.category-side) {
        display: none;
    }

    .category-pills {
        display: block;
    }

    /* 分類選單(feature-panel) */
    #filter.feature-panel {
        position: unset;
        border-right: 0;
    }

        #filter.feature-panel .header {
            background-color: transparent;
            height: auto;
            padding: 10px 0;
        }

            #filter.feature-panel .header .exit {
                display: none;
            }

        #filter.feature-panel .wrapper {
            position: unset;
        }

        #filter.feature-panel ul > li > a {
            padding: 7px 0;
        }

    /* 排序(電腦版) */
    .sort-mobile {
        display: none;
    }

    .sort-desktop {
        margin-top: 0rem;
        margin-bottom: 1rem;
    }

        .sort-desktop nav.sort {
            display: block;
        }

    .center-padding.features .item {
        display: flex;
        justify-content: space-around
    }
}

@media (min-width: 768px) {
    header .logo-wrapper {
        flex: none;
    }

    footer .social-wrapper {
        text-align: center;
    }

    footer .socials {
        justify-content: center;
    }
}

@media (min-width:1200px) {
    header .btn-toolbar .nav-item > a .text {
        display: inline-block;
    }
}
