/* 載入Google字型 */
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/********** 基礎樣式 **********/
html{
    /* 外距值歸零 */
    margin: 0;
    /* 內距值歸零 */
    padding: 0;
}

body{
    /* 字型 */
    font-family: 'Noto Sans TC', sans-serif;
    /* 顏色 */
    color: #2b2b2b;
}

a, a:active, a:hover, a:link, a:visited {
    /* 取消連結底線 */
    text-decoration: none;
    /* 取消按下時的藍色外框 */
    outline: none;
    /* 顏色 */
    color: #2b2b2b;
}
a:hover{
    /* 顏色 */
    color: #999;
}

h2, .title-color{
    /* 顏色 */
    color: #0099d1;
}

/********** logo **********/
@media screen and (max-width: 768px){
    .navbar-brand img{
        /* 寬度 */
        width: 60px;
    }
}

/********** 產品服務card效果 **********/
.product-categories > a{
    /* 變形-縮放-維持目前尺寸 */
    transform: scale(1);
    /* 過渡效果 */
    transition: transform .4s ease-out;
}
.product-categories > a:hover{
    /* 變形-縮放-放大1.02倍 */
    transform: scale(1.02);
    /* 陰影 */
    box-shadow: 4px 4px 10px #999;
}
/********** google map **********/
.map{
    /* 寬度 */
    width: 100%;
    /* 高度 */
    height: 300px;
}
/********** footer-menu **********/
.footer-menu{
    /* 區塊元素 */
    display: block;
    /* 清除符號樣式 */
    list-style: none;
    /* 內距值歸零 */
    padding: 0;
    /* 外距值歸零 */
    margin: 0;
}
.footer-menu > li{
    /* 行內元素 */
    display: inline-block;
    /* 向右外距 */
    margin-right: 1rem;
}
.footer-menu > li > a{
    /* 顏色 */
    color: #fff;
    /* 上下內距值為1rem，左右外距值為0 */
    padding: 1rem 0;
}
.footer-menu > li > a:hover{
    /* 顏色 */
    color: #999;
}
@media screen and (max-width: 768px){
    .send-btn{
        /* 寬度 */
        width: 100%;
    }
}

/********** 頁面高度 **********/
.page-content{
    /* 最小高度 */
    min-height: 700px;
}

/********** 人力資源-清除垂直對齊位置 **********/
.table-middle .table td, .table-middle .table th{
    /* 垂直對齊位置改為置中 */
    vertical-align: middle;
}

/********** 購物車清單 **********/
.sidebar-product-list{
    /* 上方內距 */
    padding-top: 1rem;
    /* 下方邊框樣式 */
    border-bottom: 1px solid #e9e9e9;
}
.product-list-img{
    /* 寬度 */
    width: 50px;
    /* 高度 */
    height: 50px;
    /* 四個方向外距 */
    margin: .2rem;
    /* 透明度 100%*/
    opacity: 1;
    /* 四個方向邊框樣式 */
    border: 1px solid #0099d1;
}
.sidebar-product-list:hover .product-list-img{
    /* 透明度 50% */
    opacity: .5;
}
/********** 購物清單移除商品按鈕 **********/
.remove{
    display: inline-block;
    /* 寬度 */
    width: 20px;
    /* 高度 */
    height: 20px;
    /* 文字置中對齊 */
    text-align: center;
    /* 行高 */
    line-height: 20px;
    /* 背景顏色 */
    background-color: #FF0000;
    /* 圓角 */
    border-radius: 50%;
    /* 滑鼠遊標改為手指 */
    cursor: pointer;
}
.remove:hover{
    /* 背景顏色 */
    background-color: rgb(172, 2, 2);
}

/********** 商品分類 **********/
.sidebar-product-category{
    display: block;
    /* 外距歸零 */
    margin: 0;
    /* 內距歸零 */
    padding: 0;
    /* 清除清單符號 */
    list-style: none;
}
.sidebar-product-category > li{
    display: block;
    /* 上下內距為0.5rem, 左右為0 */
    padding: .5rem 0;
    /* 向下邊框樣式 */
    border-bottom: 1px solid #e9e9e9;
}
.sidebar-product-category > li > a{
    /* 顏色 */
    color: rgb(43, 43, 43);
}
.sidebar-product-category > li > a:hover{
    /* 顏色 */
    color: #999;
}


/********** 購物車 **********/
.product-remove{
    /* 寬度 */
    width: 5%;
}
.product-thumbnail{
    /* 寬度 */
    width: 15%;
}
.product-name{
    /* 寬度 */
    width: 35%;
}
.product-price, .product-quantity, .product-subtotal{
    /* 寬度 */
    width: 15%;
}
.product-quantity input{
    /* 寬度 */
    width: 50%;
}

@media screen and (max-width: 768px){
    .product-thumbnail{
        /* 將區塊隱藏 */
        display: none;
    }
    .product-quantity input{
        /* 寬度 */
        width: 100%;
    }
}

/********** 註冊與登入 **********/
@media screen and (max-width: 768px){
    .login-btn{
        /* 寬度 */
        width: 100%;
    }
}
