:root{
  --r_b-shadow: -5px 5px 5px 0px rgba(0,0,0,0.3);
}
body{
    font-family: Arial, 微軟正黑體, sans-serif, Helvetica, "Times New Roman";
}
header{
    position: relative;
    margin-bottom: 1.4rem;
}
img{max-width:100%}
 /*fix for ios*/
 iframe {
   width: 1px;
   min-width: 100%;
   *width: 100%;
}
button, [type=button], [type=submit], [type=reset]{
  -webkit-appearance: none;
  -appearance: none;
  background-color:#dddddd;
}
.title-block h1{font-size: 2rem;color: #333;}
/*Carousel*/
.carousel-item img.bg {
    width: 100%;
/*
    height: -webkit-fill-available;
    margin: 0 auto;
*/
}
#HNav {
    width: 90vw;
    margin: -0.5rem auto 0;
    background-color: #f8f8f8;
    border-color: #e7e7e7;
    position: relative;
    box-shadow: 0px 0px 20px #333333;
-webkit-box-shadow: 0px 0px 20px #333333;
-moz-box-shadow: 0px 0px 20px #333333;
    -webkit-transition: width .5s,top .5s; /* Safari */
  transition: width .5s,top .5s;
    z-index: 1;
}
#HNav.ontop{
    width: 100vw;
    margin: 0 auto;
    position: fixed;
    top: -200px;
    left: 0;
    right: 0;
    z-index: 8000;
}
#HNav.ontop.scrollUp{
    top: 0px;
}
#HNav .nav-item{
}
#HNav .nav-item a.nav-link {
    font-size: 1rem;
    white-space: nowrap;
    padding: 0.5rem 0;
    color: #555;
    border-radius: 0;
    border: 1px solid #ccc;
    -webkit-appearance:none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1)0%, rgba(0, 0, 0, 0)100%);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0.1)0%, rgba(0, 0, 0, 0)100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.1)0%, rgba(0, 0, 0, 0)100%);
    background: -o-linear-gradient(90deg, rgba(0, 0, 0, 0.1)0%, rgba(0, 0, 0, 0)100%);
}
#HNav .nav-item a:hover {
    color: #333;
    background-color: #e7e7e7;
}#HNav .nav-item a:active {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, 0.1)100%);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, 0.1)100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, 0.1)100%);
    background: -o-linear-gradient(90deg, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, 0.1)100%);
}
.carousel-control-prev:hover {
background: -moz-linear-gradient(left, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
background: -webkit-linear-gradient(left, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
background: linear-gradient(to right, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
}
.carousel-control-next:hover {
background: -moz-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
background: -webkit-linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
background: linear-gradient(to right, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}
/*anchor fix*/
#search_anchor,#DM_anchor {
    padding-top: 4rem;
    margin-top: -4rem;
}
/*recommend*/
#recommend .company-prodict{
    padding: 0.5rem;
}
.company-booth{
    position: absolute;
    background-color: red;
    color: wheat;
    font-size: 0.5rem;
    font-weight: bold;
    height: 24px;
    line-height: 20px;
    padding: 2px;
    top: 0;
}
.company-booth:empty {
  display: none;
}
.company-booth::before{
content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 15px;
    border-color: transparent transparent transparent red;
    position: absolute;
    top: 0;
    right: -15px;
}
#recommend .product-img{
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}
#recommend .product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    flex-shrink: 0;/*fix for IE11*/
}
.name{
    font-size: 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#recommend .name{
    height: 3rem;
    white-space: normal;
    text-align: center;
}
.owl-item.center{}
.owl-item .company-prodict{
}
/*search*/
#search{
    background-color: #f2f2f2;
    box-shadow: 0px 2px 8px #333;
    -webkit-box-shadow: 0px 2px 8px #333333;
    -moz-box-shadow: 0px 2px 8px #333333;
}
#search .tab-content {

}
#search .tab-content>div {

}
.select2-dropdown{z-index: 8002;}
.select2-container .select2-selection--single{height: 38px;}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height: 200%;}
.select2-container--default .select2-selection--single .select2-selection__arrow{height: 100%;}
.searchButton{
    width: 100%;
    background-color: #17a2b8;
}
/*product*/
/*in product.css*/

.company{
    font-size: 0.6rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#mini-cart{
  position: fixed;
  display: flex;
  align-items: flex-start;
  top: 30%;
  right: 0;
  z-index: 8000;
  will-change: transform;
  transition: transform 220ms;
  -webkit-transform: translateX(100%)!important;
  transform: translateX(100%)!important;
}
#mini-cart.open{
  transform: scaleX();
  -webkit-transform: translateX(0%)!important;
  transform: translateX(0%)!important;
}
.cart-btn{
  position: relative;
  left: -4.7rem;
  margin-right: -4.7rem;
  background: #333;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  -webkit-box-shadow: var(--r_b-shadow);
  -moz-box-shadow: var(--r_b-shadow);
  box-shadow: var(--r_b-shadow);
}
.cart-btn button{
  font-size: 2rem;
  line-height: 2rem;
  padding: 0.5rem;
  margin: 0.5rem;
}
.quantity{
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #BBB;
  color: #333;
  font-size: 0.8rem;
  line-height: 0.8rem;
  padding: 0.3rem;
  font-weight: bold;
}
.quantity.change{
  background-color: red;
  color: #fff;
}
.cart-main{
  width: 280px;
  height: auto;
  background: #333;
  padding: 0.5rem;
}
.open .cart-main{
  -webkit-box-shadow: var(--r_b-shadow);
  -moz-box-shadow: var(--r_b-shadow);
  box-shadow: var(--r_b-shadow);
}
@media (max-width: 320px) {
  .cart-main{
    width: 240px;
  }
}
.cart-list {
  list-style: none;
  padding: 0;
  max-height: 250px;
  overflow: auto;
  margin: 0;
}
.cart-list:empty::after {
  color: #fff;
  display: block;
  text-align: center;
  content: "List is empty";
}
/* .cart-list:before{
  color: #fff;
  display: block;
  text-align: center;
    content: "List is null";
} */
.cart-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color:#fff;
  padding: 0.5rem 0;
  border-bottom: 1px solid #777;
}
.cart-list li:first-child{
  padding-top: 0;
}
.cart-list img{
  width: 60px;
  height: auto;
  max-height: 60px;
  margin-right: 0.5rem;
}
.cart-list .name {
  height: 60px;
  font-size: 0.8rem;
  white-space: normal;
}
.cart-list .times {
  cursor: pointer;
  padding: 0.5rem;
}

#DM{
    background: #ddd;
    box-shadow: 0px -2px 24px #333;
    -webkit-box-shadow: 0px -2px 24px #333;
}
#DM .owl-item{
    box-shadow: 0px 0px 5px #333;
    -webkit-box-shadow: 0px 0px 5px #333;
    -moz-box-shadow: 0px 0px 5px #333;
}
/*footer*/
footer .container{
    max-width: 1500px;
}
.footer {
	border-top: 3px solid #006CB8;
	margin: 0 auto;
}

.footer ul {
	margin-top: 10px;
    padding: 0;
}

.footer ul li {
	list-style-type: none;
	padding: 3px 0px;
}

.footer a {
	color: #707070;
	font-size: 12px;
}

.footer a:hover, .footer span {
	color: red;
}

.footer hr {
	margin-top: 0px;
	margin-bottom: 0px;
}

.footer img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.footer .title {
	color: #006CB8;
	font-weight: bold;
	font-size: 12px;
}

#copy {
	font-size: 12px !important;
	color: #bbb;
	margin-top: 10px;
	margin-bottom: 10px;
}

.community {
	display: block;
	text-align: right;
}
/*footer end*/
.to-top {
    position: fixed;
    right: 30px;
    bottom: 20px;
    display: none;
    background-color: rgba(148, 148, 148, 0.2);
    border-radius: 5px;
    padding: 3px;
    z-index: 7999;
}
.to-top a {
    font-size: 1.5rem;
    color: #443509;
}

#cookies {
  background-color: #006cb8;
  color: #fff;
  padding: 25px 50px;
  opacity: .9;
  position: fixed;
  z-index: 9999;
  top: 0px
}

#cookies h3 {
  color: #ffd200;
  margin-bottom: 15px
}

#cookies p {
  margin-bottom: 0px;
  font-size: 18px;
  line-height: 27px;
  border-left: 5px solid #fff;
  padding-left: 10px
}

#cookies p a {
  color: #ffd200;
  text-decoration: underline
}

#cookies .cookies-ok button {
  background-color: #ffd200;
  color: #006cb8 !important
}

.modal{
  z-index: 8000;
}

@media (min-width: 768px) {
  .title-block h1{font-size: 2.5rem;}
  #HNav .nav-item a.nav-link {
    font-size: 1.5rem;
  }
    #products .name,
    #recommend .name{
        font-size: 1rem;
    }
    #recommend .product-img{
    height: 200px;
    }
    #products .product-img {
    height: 200px;
}
    #products .company-prodict{
    padding: 1rem;
    margin-bottom: 1.5rem;
}
    #products .company,
    #recommend .company
    {font-size: 0.8rem;}
}
@media (min-width: 768px) {
    #HNav .nav-item a.nav-link {
    font-size: 1.2rem;
  }
    #products .product-img {
    height: 150px;
    }
}

.gal {
	-ms-column-count: 2;
	-webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;
	}
	.gal img{ width: 100%; padding: 7px 0;}
@media (min-width: 576px) {
		.gal {
	-ms-column-count: 3;
	-webkit-column-count: 3; /* Chrome, Safari, Opera */
    -moz-column-count: 3; /* Firefox */
    column-count: 3;
	}
}
@media (min-width: 768px) {
		.gal {
	-ms-column-count: 4;
	-webkit-column-count: 4; /* Chrome, Safari, Opera */
    -moz-column-count: 4; /* Firefox */
    column-count: 4;
	}
}
/* carousel css customize */
.carousel-control-next, .carousel-control-prev {
  height: 40%;
  top: 50%;
  transform: translate(0, -50%);
}

@media (min-width: 1200px){
  .container {
      max-width: 1400px;
  }
}
