﻿@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    box-sizing: border-box;
    text-decoration: none;
    font-family: Verdana, "Microsoft JhengHei", "微軟正黑體", "新細明體", "蘋果儷黑體", Arial, Helvetica, sans-serif;
}

body {
    background: #f7f7f7;
    font-family: Microsoft JhengHei, "微軟正黑體";
    letter-spacing: .05rem;
    font-size: 16px;
}

img {
    border: none;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: #323232;
}

h1 {
    color: #1e67a2;
    letter-spacing: .15rem;
    font-size: 1.6rem;
    text-align: center;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    padding: 0;
}

#wrapper {
    margin: 0 auto;
    width: 100%;
    padding-bottom: 2rem;
}

.container {
    position: relative;
    width: 90%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    color: #505050;
}


/*清除浮動*/

.clean {
    clear: both;
    visibility: hidden;
}


/*文字超過設定範圍變...*/

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/*標題跟副標設定*/

.title {
    margin-top: 60px;
}

.title h1 {
    color: #1e67a2;
    letter-spacing: .15rem;
    font-size: 1.6rem;
    text-align: center;
}

.title h1 span {
    color: #646464;
    display: block;
    font-size: 1.1rem;
    font-weight: lighter;
    margin-top: 6px;
}

hr.decoration {
    background-color: #1e67a2;
    height: 1px;
    border: none;
    margin: 10px 0;
}

.form-control {
    height: 30px;
    padding: 3px 12px;
    font-size: .9rem;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #b4b4b4;
    border-radius: 4px;
}

.findResult {
    margin-top: 30px;
    background-color: #e6e6e6;
    width: 100%;
    padding: 13px 20px;
    line-height: 25px;
}


/*==================== 頁數 =====================*/

.page_num {
    width: 50%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: .8rem 0;
}

.page_num a.active {
    width: 30px;
    height: 30px;
    background: #b5ccdd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (max-width:768px) {
    .page_num {
    width: 100% !important;
    margin-left: 0 !important;
   }
}


/*==================== 麵包屑 =====================*/

#breadcrumbs {
    margin-top: 30px;
}

#breadcrumbs p {
    display: inline-block;
    margin-top: 5px;
}

#breadcrumbs .sort-tool {
    float: right;
}

#page-tool {
    float: right;
    margin-bottom: 100px;
}


/*==================== categoryPage =====================*/

.category_tool {
    margin: 30px 0;
}

.category_section {
    display: flex;
    justify-content: flex-start;  
    flex-wrap: wrap;
}

.category_list {
    width: calc((100% - 80px)/4);
    margin: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cheap.cheapOpacity {
    display: none;
}

.cheap {
    width: 45%;
    text-align: center;
    padding: 5px 0;
    color: #d80000;
    border: 1px solid #d80000;
    border-radius: 15px;
    display: inline-block;
    transition: .3s;
}

.category_list h4 {
    margin: 15px 0;
    font-size: 1.2rem;
}

.category_block {
    border: 1px solid #969696;
    min-height: 295px;
    overflow: auto;
}

.category_block img {
    transition: .5s;
}

.category_block:hover img {
    transform: scale(1.1, 1.1);
}

.category_block .imgBox {
    max-height: 200px;
    overflow: hidden;
}

.category_txt {
    padding: 15px;
    line-height: 24px;
    min-height: 97px;
    overflow: auto;
}

.category_txt span {
    height: 45px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    /*限制三行*/
    -webkit-box-orient: vertical;
}

.price-tool {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: baseline;
}

.price-tool .original {
    margin-right: 0px;
    font-size: .9rem;
    text-decoration: line-through;
    width: 100%;
    text-align: right;
}

.price-tool .original:before {
    content: "原價";
    font-size: .8rem;
}

.price-tool .original:after {
    content: "元";
    font-size: .8rem;
}

.price {
    color: #d80000;
    font-size: 1.3rem;
}

.price:before {
    content: "優惠價";
    font-size: 1rem;
}

.price:after {
    content: "元";
    font-size: 1rem;
}

@media(max-width:600px) {
    .category_block .imgBox {
        max-height: none;
    }
}


/*==================== RWD =====================*/

@media(max-width:1024px) {
    /*categoryPage*/
    .category_list {
        width: calc((100% - 80px)/3);
        margin: 20px 10px;
    }
}

@media(max-width:768px) {
    /*categoryPage*/
    .title {
        margin-top: 100px;
    }
    #breadcrumbs {
        margin-top: 50px;
    }
    .category_list {
        width: calc((100% - 40px)/2);
        margin: 20px 7.5px;
    }
    /*searchPage*/
    .findResult {
        margin-top: 100px;
        margin-bottom: -90px;
    }
}

@media (max-width: 600px) {
    /*categoryPage*/
    /*#breadcrumbs {
    margin-top: 100px;
    }*/
    #breadcrumbs .sort-tool {
        float: none;
        margin-top: 10px;
    }
    .category_list {
        width: 100%;
        margin: 20px 5px;
    }
    .category_block {
        max-height: 410px;
    }
    /*searchPage*/
    .findResult {
        margin-top: 109px;
        margin-bottom: -70px;
    }
}