﻿/* 產品頁 */

/* 排序 (電腦版) */
nav.sort {
    margin: 20px 0;
    padding: 10px 15px;
    background-color: #011c2f;
    justify-content: end;
}

    nav.sort a {
        color: #ffffff;
    }

        nav.sort a + a {
            margin-left: 40px;
        }

        nav.sort a.active,
        nav.sort a:hover {
            color: #00ccff;
        }

/* 排序 (手機版) */
.dropdown.sort .dropdown-item.active,
.dropdown.sort .dropdown-item:active {
    background-color: #00558e;
}

/* 產品篩選 Filter (feature-panel) */
#filter {
    width: 270px;
}

    #filter .bg {
        background-color: rgba(0, 0, 0, 0.5);
    }

    #filter .wrapper {
        width: 100%;
        overflow-y: auto;
    }

    #filter .header {
        padding: 9px 15px;
        background-color: #00558e;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: space-between;
        align-items: center;
    }

        #filter .header h2 {
            color: #ffffff;
            font-size: 18px;
            width: auto;
            height: auto;
            margin-bottom: 0;
            margin-top: 0;
            line-height: 1.0;
        }

        #filter .header .exit {
            position: relative;
            width: 15px;
            height: 15px;
        }

            #filter .header .exit:before,
            #filter .header .exit:after {
                position: absolute;
                left: 7px;
                top: 0;
                content: '';
                height: 15px;
                width: 2px;
                background-color: #fff;
            }

            #filter .header .exit:before {
                transform: rotate(45deg);
            }

            #filter .header .exit:after {
                transform: rotate(-45deg);
            }

    #filter .body {
        background-color: #f7f7f7;
    }

    #filter .frame {
        padding: 15px;
        margin-bottom: 10px;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
        background-color: #f7f7f7;
    }

        #filter .frame h5 {
            color: #011c2f;
            margin: 0 0 5px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        }

    #filter ul {
        padding-left: 0;
        list-style: none;
    }

        #filter ul > li > a {
            display: block;
            padding: 5px 0;
            word-wrap: break-word;
        }

            #filter ul > li > a:hover,
            #filter ul > li > a.active {
                color: #f97b00;
            }

                #filter ul > li > a:hover:after,
                #filter ul > li > a.active:after {
                    color: #ffffff;
                }

        #filter ul > li > ul > li > a {
            font-size: 14px;
            padding-left: calc(15px + 1em);
        }

        #filter ul > li > ul {
            display: none;
        }

        #filter ul > li.active > ul {
            display: block;
        }

    #filter .multi ul {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        flex-wrap: wrap;
    }

        #filter .multi ul > li {
            flex-basis: 50%;
        }


    #filter .multi.brand ul > li {
        flex-basis: 100%;
    }

    #filter .multi ul > li > a {
        position: relative;
        padding-left: 24px;
        padding-right: 5px;
    }

        #filter .multi ul > li > a:after,
        #filter .multi ul > li > a:before {
            position: absolute;
            top: .5em;
            left: 0;
            text-align: center;
        }

        #filter .multi ul > li > a:after {
            content: '';
            width: 18px;
            height: 18px;
            display: block;
            margin-top: -1px;
            border: 1px solid #969696;
        }


    #filter .multi ul > li.active > a:before {
        content: '';
        width: 10px;
        height: 10px;
        display: block;
        left: 4px;
        background-color: #f97b00;
        margin-top: 3px;
    }

    #filter .multi ul > li.activing > a:before {
        content: '';
        left: 4px;
        margin-top: 3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 4px solid #f97b00;
        border-top: 4px solid #f7f7f7;
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 已篩選條件 */
#filter .selections > ul > li {
    display: inline-block;
}

    #filter .selections > ul > li > a {
        display: block;
        position: relative;
        padding-left: 1em;
        margin: 2.5px 0.5em 2.5px 0;
    }

        #filter .selections > ul > li > a:after {
            content: "×";
            position: absolute;
            left: 0;
            color: #a2641d;
            font-weight: bold;
            font-size: 20px;
            line-height: 1;
        }

/* 產品列表 */
.section-product .card-title {
    color: #333333;
    font-size: 14px;
    margin-bottom: 0;
}

/* 產品編號 */
.no {
    color: #999999;
}

/* 價錢 */
.price {
    color: #f97b00;
    font-size: 14px;
    font-weight: bold;
}

    .price:before {
        content: '$';
    }

    .price.save {
        color: #dc3545;
    }

    .price.original {
        color: #a6a6a6;
        font-size: 0.8em;
        text-decoration: line-through;
        height: 20px;
    }

    .price .value:before {
        content: "NT$";
    }


/* 優惠 */
.section-product .card .badge {
    color: #ffffff;
    border-color: #f97b00;
    background-color: #f97b00;
    position: absolute;
    top: 10px;
    left: 10px;
}



@media (min-width: 576px) {
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {

    /* 產品篩選 Filter (feature-panel) */
    #filter {
        position: unset;
        width: 220px;
        border-right: 0;
    }

        #filter .header {
            background-color: transparent;
            height: auto;
            padding: 15px;
        }

            #filter .header .exit {
                display: none;
            }

        #filter .wrapper {
            position: unset;
        }

        #filter .body {
            background-color: #ffffff;
        }

        #filter .frame {
            border: 1px solid #d9d9d9;
        }

        #filter ul > li > a:hover:after,
        #filter ul > li > a.active:after {
            color: #B60005;
        }
}

@media (min-width: 1200px) {
}
