﻿/* 產品詳細頁CSS ProductDetail.aspx */

/* 產品圖片 */
.product-picture .slider-nav {
    padding: 0 20px;
}

    .product-picture .slider-nav .slick-slide {
        text-align: center;
    }

    .product-picture .slider-nav .item {
        width: auto !important;
        border: 1px solid #e6e6e6;
        border-radius: 3px;
        cursor: pointer;
    }

    .product-picture .slider-nav .slick-arrow {
        position: absolute;
        top: calc(50% - 10px);
        z-index: 1;
    }

    .product-picture .slider-nav .slick-prev {
        left: 0px;
    }

        .product-picture .slider-nav .slick-prev:before {
            content: "";
            display: block;
            border-style: solid;
            border-width: 10px 10px 10px 0;
            border-color: transparent #f97b00 transparent transparent;
        }

    .product-picture .slider-nav .slick-next {
        right: 0px;
    }

        .product-picture .slider-nav .slick-next:before {
            content: "";
            display: block;
            border-style: solid;
            border-width: 10px 0 10px 10px;
            border-color: transparent transparent transparent #f97b00;
        }

.product-picture .slider-for {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* 產品基本資訊 */
.product-info .category a {
    color: #000000;
    font-weight: bold;
}

.product-info .name {
    color: #00558e;
    font-weight: bold;
}

.product-info .description {
    color: #7c7c7c;
}


/* 優惠 */
.product-info .save {
    background-position: left 2px;
    color: #E86F00;
    font-size: 16px;
    background-image: url('/Images/save_bg.png');
    background-repeat: no-repeat;
    padding-left: 35px;
    line-height: 31px;
}

    .product-info .save.active span::after {
        content: '';
        width: 16px;
        height: 15px;
        background-image: url('/Images/save_active.png');
        background-repeat: no-repeat;
        display: inline-block;
        margin-left: 5px;
    }

    .product-info .save.full {
        color: #cc0000;
        background-image: url('/Images/save_full.png');
        padding-left: 35px;
    }

.product-info .save_note {
    color: #868686;
    font-size: 12px;
    text-align: center;
}

    .product-info .save_note img {
        display: inline;
    }

    .product-info .save_note span {
        color: #E86F00;
    }


/* 預購 */
.product-info .preorder {
    color: #269abc;
}

/* 單價 */
.product-info .price {
    color: #cc0000;
    font-weight: bold;
}

/*優惠加購*/
.product-info .save-add {
    border-top: solid 1px #e6e6e6;
    border-bottom: solid 1px #e6e6e6;
    padding: 5px 0;
}

    .product-info .save-add .item + .item {
        border-top: dashed 1px #e6e6e6
    }

    .product-info .save-add .price:before {
        content: "NT$";
    }

.product-info #form .memo p:last-child {
    margin-bottom: 0px;
}

/* 價格小計 */
#total:before, #price:before {
    content: "NT$";
    margin-right: 0.3em;
}

#total {
    display: inline-block;
    color: #cc0000;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.0;
}

    #total:before {
        font-size: 0.6em;
        margin-right: 10px;
    }

/* 省多少標籤 */
#off {
    position: absolute;
    color: #FFFFFF;
    background-color: #cc0000;
    margin-left: 10px;
    border-radius: 5px;
    padding: 0px 7px;
    font-size: 14px;
    top: 5px;
    display: none;
}

    #off:before {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 5px 10px 5px 0;
        border-color: transparent #cc0000 transparent transparent;
        left: -8px;
        top: 5px;
    }

    #off.show {
        display: inline;
    }

/* 數量 */
.num-minus, .num-spinner, .num-increase {
    border: 1px solid #d8d8d8;
    padding: 6px 12px;
    height: 34px;
    display: inline-block;
    vertical-align: middle;
    color: #000;
    line-height: 20px;
    text-align: center;
    width: 35px;
    background-color: #fff;
}

.num-spinner {
    background-color: #eeeeee;
    width: 50px;
}

.num-minus {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-right: none;
    position: relative;
    right: 0px;
}

.num-increase {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: none;
    position: relative;
    left: 0px;
}

/* 加入最愛 */
.add-favorites i.fa-heart {
    color: #e63349;
}

.add-favorites:hover i.fa-heart,
.add-favorites.added i.fa-heart {
    display: inline;
}

.add-favorites i.fa-heart,
.add-favorites.added i.fa-heart-o,
.add-favorites:hover i.fa-heart-o {
    display: none;
}


/* 分享 */
.product-info .share a {
    display: inline-flex;
    color: #ffffff;
    font-size: 20px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    border-radius: 100%;
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

    .product-info .share a.line {
        background-color: #00B900;
        background-image: url('/Images/line-logo.svg');
    }

    .product-info .share a.twitter {
        background-color: #1DA1F2;
    }

/* 相關產品 */
.product-related .title {
    padding: 11px 0;
    margin: 0 0 16px;
    border-bottom: 1px solid #dee2e6;
}

.product-related .card-title {
    color: #333333;
    font-size: 14px;
    margin-bottom: 0;
}

.product-related .price {
    color: #f97b00;
    font-size: 14px;
    font-weight: bold;
}

    .product-related .price.save {
        color: #dc3545;
    }

    .product-related .price.original {
        color: #a6a6a6;
        font-size: 0.8em;
        text-decoration: line-through;
        height: 20px;
    }

    .product-related .price .value:before {
        content: "NT$";
    }

.product-related .card .badge {
    color: #ffffff;
    border-color: #f97b00;
    background-color: #f97b00;
    position: absolute;
    top: 10px;
    left: 10px;
}

#notify {
    background-color: #f97b00;
    border-color: #f97b00;
    color: #ffffff;
}

@media (min-width: 576px) {
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {

    .product-picture .slider-nav {
        width: 65px;
        height: 100%;
        padding: 15px 0;
    }

        .product-picture .slider-nav .item {
            margin-top: 5px;
            margin-right: 0;
        }

        .product-picture .slider-nav .slick-arrow {
            top: unset;
            right: auto;
            left: calc(50% - 10px);
        }

        .product-picture .slider-nav .slick-prev {
            top: 0px;
        }

            .product-picture .slider-nav .slick-prev:before {
                border-width: 0 10px 10px 10px;
                border-color: transparent transparent #f97b00 transparent;
            }

        .product-picture .slider-nav .slick-next {
            bottom: 0px;
        }

            .product-picture .slider-nav .slick-next:before {
                border-width: 10px 10px 0 10px;
                border-color: #f97b00 transparent transparent transparent;
            }

    .product-picture .slider-for {
        width: 400px;
        margin-bottom: 0;
    }
}
