/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
html{
    position: relative;
    min-height: 100%;
}
body {
  font-family: 'cwTeXYen',"微軟正黑體", 'Arial', 'sans-serif';    
  background: #fafafa;
  /*  background: #ffffff;  */
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #000;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;     
}
.catalog-footer
{
    height:150px;
}
/* sider scroll-bar 底色 */
.mCSB_dragger
{
    background-color: gainsboro ; 
}

/* lightbox */
.ekko-lightbox-nav-overlay a:first-child{
    color:black;
    /* bottom:100px; */
    /* position: absolute; */
    font-size: larger;
    background-color: gainsboro;
    opacity: 0.7;
    padding-left:10px;
    padding-right:10px;
    float: left;
}
.ekko-lightbox-nav-overlay a:last-child{
    color:black;
    /* bottom:100px; */
    /* position: absolute; */
    font-size: larger;
    background-color: gainsboro;
    opacity: 0.7;
    padding-left:10px;
    padding-right:10px;
    float: right;    
}
#sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999; 
    /*background: #7386D5;
    color: #fff;*/
    background:#fafafa;
    border:1px;
    color: #000;
    transition: all 0.3s;
    /* overflow-y: scroll; */    
}
/* sider scroll-bar 底色 */
/* 控制上方[三]收合 */
#sidebar.active {
    margin-left: -250px;
}
/* 上方標題樣式 */
#sidebar .sidebar-header {
    padding: 10px;
    background: #fafafa;
}

#sidebar ul.components {
    padding: 10px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}
/* #sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
} */
/* 

#sidebar ul li a:hover {
    color: white;
    background: gray;
}  */

.mainmenu, .submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainmenu a {
    display: block;    
    text-decoration: none;
    padding: 10px;
    
}

.mainmenu a:hover {
    background-color:gray;
    color:white;    
}
 .mainmenu li:hover .submenu {
    display: block;
    max-height: 500px;    
    overflow-y:auto;
    position: fixed;   
    margin-top:-50px;
    left: 220px;     
    z-index: 1000;         
    transition: all 0.3s;     
    border-color: black;
    border-width:1px;
    border-style: solid;      
    column-gap: 0px;
    background-color: white;    
} 
/* submenu */

/*
  we now overwrite the background-color for .submenu links only.
  CSS reads down the page, so code at the bottom will overwrite the code at the top.
*/

.submenu a {
    color:black;
}
 
/* hover behaviour for links inside .submenu */
.submenu a:hover {
    background-color:gray;
    color:white;
}

/* this is the initial state of all submenus.
we set it to max-height: 0, and hide the overflowed content.
*/
.submenu {
    overflow: hidden;
    max-height: 0;    
    /* -webkit-transition: all 0.5s ease-out;  */
} 



/* #sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
/* list樣式 */
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #fff;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: calc(100% - 250px); 
    padding-left:15px;
    padding-right:15px; 
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

#content.active {
    width: 100%;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    #content.active {
        width: calc(100% - 250px);
    }
    /* 目錄字樣移除 */
    #sidebarCollapse span {
        display: none;
    }
    #h1Detail
    {
        display:none;
    }    
    
}

/*image-circle a*/
.img-circle{/*假設一行有三個圈圈*/
	 width: 100%; 
	/* margin: 1%;  */
	text-align: center;
	position: relative;
	display: inline-block;
}
/* 遮罩 */
.img-circle>.circle-spacer{
	position: relative;
	padding-top: 100%;
	float: none;
}
/* 圖片 */
/* .img-circle>img{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	border-radius: 0%;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}  */
.imgVerticleMiddle{
	width: 100%;
    height: 250px;
    line-height:  250px;
    /* max-width:  250%; */
    /* min-width:250px;
    min-height:250px;*/
    display:  block; 
    text-align:  center;
    /* background-color:  #eb9700; */
    border:0px solid;/*移除img-thumbnail的干擾*/
}
/* 等比例自動縮放 */
.imgDemo{
    width: auto;
	height: auto;
	max-width: 100%;
    max-height: 100%;	
    padding-bottom: 10px;
}
.imgVerticleMiddle2{
	width: 100%;
    height: 350px;
    line-height:350px;
    display:  block;
    text-align:  center;
    /* background-color:  #eb9700; */
}
/* 等比例自動縮放 */
.imgDemo2{
    width: auto;
	height: auto;
	max-width: 100%;
    max-height: 100%;	
    padding-bottom: 10px;
}
@media (max-width: 768px) {
    .imgVerticleMiddle{
        width: 100%;
        height: auto;
        line-height:  auto;
        /* max-width:  250%; */
        /* min-width:250px;
        min-height:250px;*/
        display:  block; 
        text-align:  center;
        /* background-color:  #eb9700; */
    }
    
    .imgVerticleMiddle2{
        width: 100%;
        height: 350px;
        line-height:350px;
        display:  block;
        text-align:  center;
        /* background-color:  #eb9700; */
    }   
}

/*需增加以下的程式*/	  
.img-circle>span{	    
  position: absolute;	    
  bottom: -55px;
  left: 0;	    
  /*width: 100%;*/
}
.product-tag
{
  height:22px;
  color:white;
  font-size:small;
  padding-left:5px;
  padding-right:5px;
  background-color: rgb(242, 82, 32);
  /*background-color: gainsboro;*/
  position: absolute;
  left: 0px;
  top: -50px;
  
}
.product-desc
{
  color:black;
 
}
.product-fee
{
  color:black;
 
}


.divProductRow
{
  padding-top: 10px;
  padding-bottom: 30px;
}
.product-div
{
  background-color:white;	  
  border: 1px #ddd solid;  
  width:75%;
  padding-left:10px;
  padding-right:10px;
  padding-bottom:25px;
  /*padding-bottom:55px;*/
  margin:auto;
  margin-bottom:10px;
  /* position: relative; */
   
 /* height: 100%;
  overflow: hidden */
}
.product-div:hover
{
  border: 1px #ddd solid;
  border-color:rgb(242, 82, 32);   
}
.product-div-detail
{
  /*background-color:white;	  
  border: 1px #ddd solid;*/
  width:75%;  
  margin:auto;
  
}
.mynavbottom li
{
    float: left;    
}
.mynavbottom 
{
    list-style-type: none;
    margin: 0;
    padding: 0;
    float: left;
    margin-left:-20px;    
}
.myul li
{
    float: left;    
}
.myul
{
    list-style-type: none;
    margin: 0;
    padding: 0;
    float: left;   
}
.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
  }
  .btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 25px;
  }
  .btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    font-size: 24px;
    line-height: 1.33;
    border-radius: 35px;
  }
  

.divCustom
{
  min-width:50px ;
}
.imgDescription
{
  width:100%
}
.padding-bottom10
{
    padding-bottom: 10px;
}
/* 表格 */
.restable
table, th, td{
  /* border: 1px solid #000; */
  border-collapse: collapse;
  padding: 3px 5px;
}
.restable
table{
  width: 95%;
  margin: 1em auto;
}
.restable .colwidth300
{
    width:300px;
}
.restable .colwidth200
{
    width:200px;
}
.restable .colwidth150
{
    width:150px;
}
.restable .colwidth75
{
    width:75px;
}
.restable .colwidth50
{
    width:50px;
}
.restable .colwidth30
{
    width:30px;
}
.restable .alignright
{
    text-align: right;
}
 /* .restable
th{
   background: #e6f9ff;  
  
} */
/*.restable
tr:nth-child(even){
   background: rgba(#6cffd1,.2); 
} */
  
@media only screen and (max-width:1350px){
    /* max-width:768px){ */
   /*隱藏標頭,會顯示data-title  */
  .restable thead{
    display: none;
  }
  .restable td{
    display: block;
    padding: .3rem .5rem;
  }    
  .restable td:before{
    content: attr(data-title);
    display: inline-block;
    width: auto;
    min-width: 20%;
    font-weight: 900;
    padding-right: 1rem;    
  }
  .restable .firstCol{
    background-color: grey;
    color:white;
    font-size: 16px;
    text-align:center;    
  }
}
.padding10
{
    padding:10px;
}
.changevalue
{
    font-weight: bold;   
}
/*=============gototop================*/
.gototop {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-family: verdana;
    text-align: center;
    background: green;
    color: #fff;
    position: fixed;
    bottom: 90px;
    right: 20px;
    opacity: 70%;
    border-radius: 10%;
    text-decoration: none;
    cursor: pointer;
    /*先隱藏*/
    display: none;
  }
  .gotocart {
    width: 120px;
    height: 40px;
    line-height: 40px;
    font-family: verdana;
    text-align: center;
    background: orangered;
    color: #fff;
    position: fixed;
    bottom: 150px;
    right: 20px;
    opacity: 70%;
    border-radius: 10%;
    text-decoration: none;
    cursor: pointer;
    /*先隱藏*/
    display: none;
  }
    /* cart-number */
    .cartnumber
    {
        background-color: orangered;
        /* height: 5px;
        width: 5px;
         */
        color: white;
        border-radius: 10px;
        padding: 10px;
        display: inline-block;
        font-size:smaller;
        margin-right: 25px;
    }
    /* cartok */

    .cartOK{
        display: none;
        position: fixed;
        text-align: center;    
        background-color:black;
        border-radius: 10px;
        opacity: 0.9;
        top:300px;
        /* 側欄 */
        width:150px;
        margin-left: 30%;    
        color:white;
    }
    /* 費用欄 */
    .detailPriceBar
    {
        background-color: rgba(255,87,34,.1);
        border-top: 1px gainsboro solid;
        border-bottom: 1px gainsboro solid;
        margin-top: 30px;
        padding-top:10px;
        padding-right:10px;
        padding-bottom:10px;
        text-align: right;
        
    }
    .divQFee
    {   
        color: black;
        text-align: center;
        display: inline-block;
    }
    .divQFee span
    {   
        /* font-weight: bold;  */
        font-size: large;       
    }
    .divQFeeBtn
    {
        display: inline-block;
    }
  /* nav-bottom */
  /* #nav-bottom
  {
      background-color: blue;
      display:none; 
  } */
  @media only screen and (min-width:300px) and (max-width:1024px){
    #nav-bottom
    {
        background-color: white;
        display:block;
        border: 1px solid gray;
        text-align: right;
    }
  }
  @media only screen and (min-width:1024px) {
    #nav-bottom
    {
        /* background-color: red; */
        display:none;
    }
  }
