﻿/*pager的css*/

#pager {
    text-align: center;
    line-height: 25px;
}

    #pager .disabled {
        opacity: 0.3;
    }

    #pager span {
        margin: 0 6px;
        cursor: default;
        width: 25px;
        /*height: 25px;*/
        display: inline-block;
        vertical-align: middle;
    }

    #pager .disabled, #pager .arrows {
        font-size: 10px;
    }

    #pager a {
        color: #5a5858;
    }

    #pager #selected {
        cursor: default;
        color: white;
        background-color: #9fa0a0;
        border-radius: 50%;
    }


/*由原先assembl.aspx的css copy來的*/

/*-----修正下拉選單層級問題-----*/
.toolBar {
    position: relative;
    z-index: 9;
}

/*-----連結商品-----*/
.showGoods {
    cursor: pointer;
    color: #000;
}


section {
    font-family: Arial, Helvetica, "微軟正黑體", "Microsoft JhengHei", sans-serif;
    width: 1000px;
    margin: auto;
    background-color: #efeff0;
    position: relative;
    padding-bottom: 20px;
    font-size: 15px;
     /*overflow:hidden;*/ /*不可加，否則toolBer的 sticky 會失效*/
}

  #catPhotoBox{
          width: 100%;
         overflow:hidden;        
    }


#catPhoto { /*活動圖*/
    width: 100%;
    display: block;
}


/*-----marquee-----*/ /*已選商品列*/
#marqueeBar {
    padding: 0px;
    width: 1000px;
    /*margin: 20px auto 0;*/
    position: sticky;
    position: -webkit-sticky;
    top: 35px;
    z-index: 1;
}

#ticker-wrapper {
    width: 100%;
    height: 35px;
    font-size: 16px;
    color: #fff;
    background-color: #d4997a;
}

.marquee {
    overflow: hidden;
    position: relative;
    z-index: 1;
}


.textspan {
    height: 35px;
    overflow: hidden;
}

.popover__wrapper {
    position: relative;
    display: inline-block;
    line-height: 40px;
    margin: 0 100px;
}

.popover__content {
    display: none;
    position: absolute;
    left: -30px;
    top: 60px;
    transform: translate(0px, 10px);
    background-color: #fff;
    padding: 3px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    width: auto;
}

    .popover__content:before { /*三角形*/
        position: absolute;
        z-index: -1;
        content: "";
        right: calc(50% - 10px);
        top: -8px;
        border-style: solid;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent #fff transparent;
        transition-duration: 0.3s;
        transition-property: transform;
    }

.popover__wrapper:hover {
    height: 112px;
}

    .popover__wrapper:hover .popover__content {
        display: block;
        transform: translate(0px, -20px);
        transition: all 0.5s cubic-bezier(0.75, 0.02, 0.2, -0.97);
    }


@media screen and (max-width: 600px) {

    .popover__wrapper:hover .popover__content {
        display: none;
    }

}


/*價格_共用*/
.bstyle {
    color: #c30d23;
    font-size: 24px;
}

/*聯絡客服.回首頁*/
#pattern_Group {
    width: 30px;
    position: absolute;
    top: 20px;
    right: -40px;
    text-align: center;
    border: 1px #beb1a7 solid;
    border-radius: 40px;
    padding: 8px 0;
    background: rgba(255,255,255,.7);
    z-index: 1;
}

    #pattern_Group a {
        display: inline-block;
        margin: 15% 0;
    }

    #pattern_Group img {
        width: 25px;
    }


#contact #contact_mobile, .mobile #contact #contact_pc { /*聯絡客服*/
    display: none;
}

.mobile #contact #contact_mobile {
    display: block;
}


@media screen and (max-width: 800px) {

    section.mobile {
        width: 100%;
        /*overflow:hidden;*/ /*不可加，否則toolBer的 sticky 會失效*/
    }

  
    #catPhoto { /*活動圖*/
    width: 150%;
  
}

    #pattern_Group { /*商品客服 + 回首頁*/
        position: fixed;
        top: auto;
        bottom: 20%;
        right: 5px;
    }

    .bstyle { /*價格_共用*/
        font-size: 1.6em;
    }

    /*-----marquee-----*/ /*已選商品列*/
    #marqueeBar {
        width: 100%;
    }
}


/***組合商品圖片-共用***/ /*包含相關推薦-組合*/
.photobox {
    display: inline-block;
    position: relative;
}

    .photobox .action550 {
        position: absolute;
        bottom: 0;
        text-align: right;
    }

.addPosition { /*包含相關推薦組合*/
    display: inline-block;
    position: relative;
    width: 25%;
    border: #FFF 1px solid;
    margin: 1%;
    border-radius: 50%;
    overflow: hidden;
}

.action550 .addPosition img {
    width: 114%;
    display: block;
}

.addPosition .amount2 { /*組合價數量*/ /*共用*/
    color: #fff;
    position: absolute;
    left: 33%;
    padding: 2px 5px;
    background-color: #beb1a7;
    border-radius: 50%;
}

#productsArea .showGoods {
    margin: 5px 0;
}

#productsArea .amount { /*內容數量*/
    color: #fff;
    background-color: #beb1a7;
    border-radius: 50%;
    padding: 3px 6px;
}

/*---showcat, 原moreRelated相關推薦/8筆 ------*/
#showcat {
    /*background-color: #efeff0;*/
    margin: 30px 20px 0;
    padding-bottom: 20px;
}

    #showcat #moreSubject {
        background-color: #fff;
        margin-bottom: 10px;
        padding: 1% 2%;
        font-size: 18px;
        border-bottom: 1px #a13e5c solid;
        color: #a13e5c;
    }

.adBox {
    min-height: 330px;
    background-color: #fff;
    width: 285px;
    display: inline-block;
    margin: 9px;
    padding: 8px;
    position: relative;
    vertical-align: top;
    box-shadow: 5px 5px 5px #cccccc;
}

    .adBox.selected {
        border: 2px #d4997a solid;
    }

    .adBox img {
        width: 100%;
        display: block;
    }

.todayAct {
    width: 100px;
    /*width: 45%;*/
    position: absolute;
    top: 0;
}

.adBox .itemWrapper .special {
    font-size: 14px;
    color: #F08300;
    overflow: hidden; /* 超出範圍的部份要隱藏 */
    text-overflow: ellipsis; /*用點點點（...）來表示被切斷的字串*/
    white-space: nowrap; /*讓多餘的字串不要自動折行*/
}

    .adBox .itemWrapper .special .showGoods {
        color: #F08300;
    }

.itemTitle {
    overflow: hidden; /* 超出範圍的部份要隱藏 */
    text-overflow: ellipsis; /*用點點點（...）來表示被切斷的字串*/
    white-space: nowrap; /*讓多餘的字串不要自動折行*/
}

.itemPrice {
    display: inline;
    padding-right: 5px;
}



.amount { /*數量*/
    border: 1px solid #9e9e9f;
    padding: 1px 2px;
    display: inline-block;
    text-align: center;
    color: #9e9e9f;
    -webkit-text-size-adjust: none;
    font-size: 9px;
    z-index: 2;
}

    .amount b {
        font-size: 14px;
        color: #da844a;
    }


/*-----actionElse 活動輪播-----*/
div.actionElse {
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: 0;
    color: #FFF;
    overflow: hidden;
}

    div.actionElse ul, div#actionElse li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    div.actionElse ul {
        position: absolute;
        width: 100%;
    }

        div.actionElse ul li {
            height: 20px;
        }

            div.actionElse ul li.li501 {
                background: url(../images/show_goods_actionElse_501.png) 100%;
                background-size: cover;
            }

            div.actionElse ul li.li520 {
                background: url(../images/show_goods_actionElse_520.png) 100%;
                background-size: cover;
            }

            div.actionElse ul li.li530 {
                background: url(../images/show_goods_actionElse_530.png) 100%;
                background-size: cover;
            }

            div.actionElse ul li span {
                display: inline-block;
                width: 94%;
                padding: 1% 0 0 2%;
                height: 18px;
                font-size: 0.8em;
                overflow: hidden; /* 超出範圍的部份要隱藏 */
                text-overflow: ellipsis; /*用點點點（...）來表示被切斷的字串*/
                white-space: nowrap; /*讓多餘的字串不要自動折行*/
            }


@media screen and (max-width: 800px) {

    .photobox {
        width: 100%;
    }

    #showcat {
        margin: 5% 1% 0;
    }

    .adBox {
        min-height: 17em;
        width: 46%;
        margin: 1%;
        padding: 1%;
        box-shadow: 3px 3px 3px #cccccc;
    }

    .todayAct {
        width: 40%;
    }
}

@media screen and (max-width: 350px) {

    .adBox {
        min-height: 15em;
    }
}
