﻿/* 產品圖片 */
.product-detail .product-picture {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

    .product-detail .product-picture .slider-for {
        width: 100%;
        margin-bottom: 15px;
        border-radius: 3px;
        border: 1px solid #e6e6e6;
    }

        .product-detail .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-detail .product-picture .slider-for .slick-prev {
            left: 0px;
        }

        .product-detail .product-picture .slider-for .slick-next {
            right: 0px;
        }

        .product-detail .product-picture .slider-for .slick-disabled {
            opacity: 0.5;
        }

    .product-detail .product-picture .slider-nav {
        width: 100%;
        margin-bottom: 15px;
        padding: 0 15px;
    }

        .product-detail .product-picture .slider-nav .item {
            border: 1px solid #e6e6e6;
            border-radius: 3px;
            margin-right: 15px;
            cursor: pointer;
            width: auto !important;
        }

        .product-detail .product-picture .slider-nav .slick-arrow {
            position: absolute;
            top: calc(50% - 14px);
            z-index: 1;
            margin-top: 10px;
            cursor: pointer;
        }

        .product-detail .product-picture .slider-nav .slick-prev {
            left: 0px;
        }

        .product-detail .product-picture .slider-nav .slick-next {
            right: 0px;
        }

        .product-detail .product-picture .slider-nav .slick-prev:before {
            content: "";
            border-style: solid;
            border-width: 10px 10px 10px 0;
            border-color: transparent #6c757d transparent transparent;
            position: absolute;
            left: 0px;
            top: 50%;
            margin-top: -10px;
        }

        .product-detail .product-picture .slider-nav .slick-next:before {
            content: "";
            border-style: solid;
            border-width: 10px 0 10px 10px;
            border-color: transparent transparent transparent #6c757d;
            position: absolute;
            right: 0px;
            top: 50%;
            margin-top: -10px;
        }

/*產品資訊*/
.product-detail .product-inf {
    min-width: 0px;
}

.product-detail .product-info > * {
    margin-bottom: 1rem;
}

.product-detail .product-info .label {
    padding-right: 0;
}

.product-detail .product-info .name {
    font-weight: bold;
    font-size: 1.4rem;
    color: #333;
    text-align: left;
    margin-top: 0px;
}
/* 分類名稱 */
.product-detail .product-info .class a {
    color: #999999;
    font-weight: bold;
}

/* 優惠 */
.product-detail .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-detail .product-info .save span {
        line-height: 31px;
    }

    .product-detail .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-detail .product-info .save.full {
        color: #cc0000;
        background-image: url('/Images/save_full.png');
        padding-left: 35px;
    }

    .product-detail .product-info .save .info {
        color: #868686;
        font-size: 12px;
    }

        .product-detail .product-info .save .info > div {
            display: inline-block;
            margin-right: 5px;
        }

        .product-detail .product-info .save .info span {
            color: #E86F00;
        }


/* 預購 */
.product-detail .product-info .preorder {
    color: #269abc;
}

/* 價錢 */
.product-detail .product-info .price {
    color: #cc0000;
    font-weight: bold;
}

/*優惠加購*/
.product-detail .product-info .save-add {
    border-top: solid 1px #e6e6e6;
    border-bottom: solid 1px #e6e6e6;
    padding: 5px 0;
}

    .product-detail .product-info .save-add img {
        border: solid 1px #e6e6e6;
    }

    .product-detail .product-info .save-add .label {
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 25px;
        height: 50px;
    }

    .product-detail .product-info .save-add .item {
        padding: 0.25rem 0;
    }

        .product-detail .product-info .save-add .item + .item {
            border-top: dashed 1px #e6e6e6
        }

    .product-detail .product-info .save-add .price:before {
        content: "NT$";
    }

.product-detail .product-info #form .memo p:last-child {
    margin-bottom: 0px;
}

.product-detail #total:before, #price:before {
    content: "NT$";
    margin-right: 0.3em;
}

.product-detail #total {
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    color: #cc0000;
    line-height: 1.0;
}

    .product-detail #total:before {
        font-size: 21px;
        margin-right: 10px;
    }

.product-detail .listing-item .price {
    font-size: 14px;
    font-weight: bold;
}

.product-detail .listing-item .save .price {
    color: #cc0000;
}

.product-detail .listing-item .oprice {
    color: #999999;
    font-size: 12px;
    text-decoration: line-through;
}

.product-detail table.numprice {
    width: 100%;
    font-size: 15px;
    text-align: center;
    border-collapse: collapse;
    margin-top: 10px;
}

    .product-detail table.numprice tr {
        border-bottom: 1px solid #E5E5E5;
        line-height: 30px;
    }

    .product-detail table.numprice thead tr {
        background-color: #E5E5E5;
    }

    .product-detail table.numprice thead th {
        text-align: center;
    }

/* 省多少標籤 */
.product-detail #off {
    position: absolute;
    color: #FFFFFF;
    background-color: #cc0000;
    margin-left: 10px;
    border-radius: 5px;
    padding: 0px 7px;
    font-size: 14px;
    top: 5px;
    display: none;
}

    .product-detail #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;
    }

    .product-detail #off.show {
        display: inline;
    }

/*按鈕*/
.product-detail .button a.btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* 頁籤 */
.product-detail .tab-pane {
    padding: 10px;
}

    .product-detail .tab-pane .container {
        width: 100%;
    }

.product-detail #comment .item {
    border-bottom: dashed 1px #d8d8d8;
    padding: 5px 0;
}

    .product-detail #comment .item .star {
        float: right;
    }

    .product-detail #comment .item .contents {
        margin-top: 5px;
        color: #868686;
    }

/* 推薦產品 */
.product-detail .product-push .listing-item {
    background-color: #E6E6E6;
    margin: 0 1px;
}

    .product-detail .product-push .listing-item .brief {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* 相關產品 */
.product-detail .product-related h4 {
    margin-bottom: 12px;
}

.product-detail .product-push .listing-item,
.product-detail .product-related .listing-item {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
}

    .product-detail .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-detail .product-related .listing-item .price {
        color: #1eb7c8;
    }

.section-product .tab-content {
    padding: 1rem 0;
}

@media (max-width:767px) {
    .product-detail .product-picture .slider-for {
        order: 1;
        width: 100%;
    }

    .product-detail .product-picture .slider-nav {
        order: 2;
        width: 100%;
        margin-right: 0;
    }

        .product-detail .product-picture .slider-nav .item {
            width: auto !important;
        }

    .product-detail .product-info {
        padding-left: 15px;
    }
}
