﻿/* 產品詳細頁CSS ProductDetail.aspx */

/* 產品圖片 */
.product-picture {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

    .product-picture .slider-for {
        width: 100%;
        margin-bottom: 15px;
        border-radius: 3px;
        border: 1px solid #e6e6e6;
    }

        .product-picture .slider-for .slick-arrow {
            position: absolute;
            top: calc(50% - 25px);
            cursor: pointer;
            z-index: 1;
            display: block;
            width: 40px;
            height: 40px;
            color: #333;
            font-size: 30px;
            line-height: 40px;
            text-align: center;
        }

        .product-picture .slider-for .slick-prev {
            left: 0px;
        }

        .product-picture .slider-for .slick-next {
            right: 0px;
        }

        .product-picture .slider-for .slick-disabled {
            opacity: 0.5;
        }

    .product-picture .slider-nav {
        width: 100%;
        margin-bottom: 15px;
        padding: 0 15px;
    }

        .product-picture .slider-nav .item {
            border: 1px solid #e6e6e6;
            border-radius: 3px;
            margin-right: 15px;
            cursor: pointer;
            width: auto !important;
        }

        .product-picture .slider-nav .slick-arrow {
            position: absolute;
            top: calc(50% - 14px);
            z-index: 1;
            color: #008091;
            margin-top: 10px;
            cursor: pointer;
        }

        .product-picture .slider-nav .slick-prev {
            left: 0px;
        }

        .product-picture .slider-nav .slick-next {
            right: 0px;
        }

        .product-picture .slider-nav .slick-prev:before {
            content: "";
            border-style: solid;
            border-width: 10px 10px 10px 0;
            border-color: transparent #eecd9b transparent transparent;
            position: absolute;
            left: 0px;
            top: 50%;
            margin-top: -10px;
        }

        .product-picture .slider-nav .slick-next:before {
            content: "";
            border-style: solid;
            border-width: 10px 0 10px 10px;
            border-color: transparent transparent transparent #eecd9b;
            position: absolute;
            right: 0px;
            top: 50%;
            margin-top: -10px;
        }

canvas {
    max-width: 100%;
    max-height: 100%;
    height: auto !important;
}

.canvas-container {
    margin-left: auto;
    margin-right: auto;
}


.product-info {
    padding-left: 30px;
}

    .product-info h3 {
        font-weight: bold;
    }
    /* 分類名稱 */
    .product-info .class a {
        color: #999999;
        font-weight: bold;
    }

    /* 優惠 */
    .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;
    }

        .product-info .save span {
            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 .info {
            color: #868686;
            font-size: 12px;
        }

            .product-info .save .info > div {
                display: inline-block;
                margin-right: 5px;
            }

            .product-info .save .info 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;
    font-size: 36px;
    font-weight: bold;
    color: #cc0000;
    line-height: 1.0;
}

    #total:before {
        font-size: 21px;
        margin-right: 10px;
    }

.section-product .listing-item .price {
    font-size: 14px;
    font-weight: bold;
}

.section-product .listing-item .save .price {
    color: #cc0000;
}

.section-product .listing-item .oprice {
    color: #999999;
    font-size: 12px;
    text-decoration: line-through;
}

table.numprice {
    width: 100%;
    font-size: 15px;
    text-align: center;
    border-collapse: collapse;
    margin-top: 10px;
}

    table.numprice tr {
        border-bottom: 1px solid #E5E5E5;
        line-height: 30px;
    }

    table.numprice thead tr {
        background-color: #E5E5E5;
    }

    table.numprice thead th {
        text-align: center;
    }

/* 省多少標籤 */
#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;
    }

/* 分享 */
.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;
    }

/* 頁籤 */
.tab-pane {
    padding: 10px;
}

    .tab-pane .container {
        width: 100%;
    }

#comment .item {
    border-bottom: dashed 1px #d8d8d8;
    padding: 5px 0;
}

    #comment .item .star {
        float: right;
    }

    #comment .item .contents {
        margin-top: 5px;
        color: #868686;
    }

/* 推薦產品 */
.product-push .listing-item {
    background-color: #E6E6E6;
    margin: 0 1px;
}

    .product-push .listing-item .brief {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* 相關產品 */
.product-related h4 {
    margin-bottom: 12px;
}

.product-push .listing-item,
.product-related .listing-item {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
}

    .product-related .listing-item .body h5 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: normal;
        height: 38px;
    }

    .product-related .listing-item .price {
        color: #1eb7c8;
    }

.demo h3 {
    font-weight: bold;
}

/*.demo .memo {
    color: #c97452;
}*/

.section-product .container{
    padding-top: 0;
}

.section-product h3.sub-title {
    margin-bottom: 20px;
    position: relative;
}

    .section-product h3.sub-title:after {
        content: "";
        height: 1px;
        width: 70%;
        background-color: #000;
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translate(-50%);
    }

@media (max-width:767px) {
    .product-picture .slider-for {
        order: 1;
        width: 100%;
    }

    .product-picture .slider-nav {
        order: 2;
        width: 100%;
        margin-right: 0;
    }

        .product-picture .slider-nav .item {
            width: auto !important;
        }

    .product-info {
        padding-left: 15px;
    }
}
