/*
 * phgrt - RWD system type-12
 * https://www.phgrt.com.tw/
 *
 * Copyright 2016, evelyn wang
 * 
 * 
 * January 2016
 */

#content #content-main {
	position: relative;
}

#content #content-main #side-nav {
	width: 100%;
	position: absolute;
	z-index: 500;
}

#content #content-main #side-nav ul li {
	position: relative;
}

#content #content-main #side-nav ul li > ul {
	position: absolute;
	top: 35px;
	z-index: 500;
}

#content #content-main #side-nav ul li > ul li {
	background: rgba(255,255,255,0.7);
}

#content #content-main #side-nav ul > li:nth-child(2) {
	width: 322px;
}

#content #content-main #side-nav ul li ul li:nth-child(2) {
	width: auto;
}

#content #content-main #side-nav ul li ul li:last-child {
	width: auto;
}

#content #content-main #side-nav ul li ul li:last-child a {
	margin-right: 0;
}

#content #content-main #side-nav ul li:last-child {
	width: 242px;
}

#content #content-main #side-nav ul li:last-child ul li ul {
	height: 0;
	transition: all 0.4s ease;
	overflow: hidden;
}

#content #content-main #side-nav ul li:last-child ul li:hover ul {
	height: 500%;
}

#content #content-main #side-nav ul li:last-child ul li:hover ul li a {
	background: #fff;
	color: #0169a6;
}

#content #content-main #side-nav ul li:last-child ul li:hover ul li a:hover {
	background: #0169a6;
	color: #fff;
}

#content #content-main #side-nav ul li ul li a {
	color: #0169a6;
}

#content #content-main #side-nav ul li ul.sub-category li a {
	background: #fff;
	color: #0169a6;
}

#content #content-main #side-nav ul li ul.sub-category li a:hover ,
#content #content-main #side-nav ul li ul.sub-category li.action a {
	background: #0169a6;
    color: #FFF;
}


#content #content-main #side-nav ul li.action ul.sub-category li a:after {
	display: none;
}

#content #content-main #side-nav ul li.action ul.sub-category li a:hover:after ,
#content #content-main #side-nav ul li.action ul.sub-category li.action a:after {
	display: block;
}

/* +product list
*----------------------------------------------------------------------------*/
#products {
	margin: 100px 0 30px;
}

#products ul ,
#product-main .other-product ul {
	overflow: hidden;
}

#products ul li {
	margin: 0 2% 20px 0;
	width: 32%;
	float: left;
}

#products ul li:nth-child(4) ,
#products ul li:nth-child(7) ,
#products ul li:nth-child(10) {
	clear: both;
}

/**
*
* =info item
*
**/
#products ul li .info-item {
	padding: 5px;
	background: #fff;
	border: 1px #838383 solid;
}

#products ul li .info-item h2 {
	overflow: hidden;
	height: 20px;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;   	
	margin: 20px 0 10px;
	text-align: center;
	font-size: 15px;
}

#products ul li .info-item span {
}

#products ul li .info-item p {
	margin-bottom: 10px;
	text-align: center;
}

#products ul li .info-item p a {
	color: #4198f7;
}

#products ul li .info-item article {
	margin-bottom: 20px;
	height: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
	text-align: center;
	line-height: 170%;
	font-size: 13px;
	color: #767676;
}

#products ul li .info-item .photo ,
#product-main .other-product ul li .photo {
	overflow: hidden;
}

#products ul li .info-item .photo a ,
#product-main .other-product ul li .photo a {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
	display: block;
	transition: all 0.4s ease-in-out 0s;
}

#products ul li .info-item:hover .photo a ,
#product-main .other-product ul li:hover .photo a {
	background-size: auto 120%;
	-webkit-transform:scale(1.05);
	-moz-transform:scale(1.05);
	-o-transform:scale(1.05);
	transform:scale(1.05);
}

#products ul li .info-item .photo img ,
#product-main .other-product ul li .photo img {
	width: 100%;
}

#products ul li .info-item .price {
	height: 80px;
}

#products ul li .info-item .price p {
	height: 20px;
}

#products ul li .info-item .price p .money-sale {
	font-size: 14px;
	color: #787878;
	text-decoration: line-through;
}

#products ul li .info-item .price p span {
	font-size: 18px;
	color: #E71E21;
}

#products ul li:nth-child(3n) {
	margin-right: 0;
}


/* +product article
*----------------------------------------------------------------------------*/
#product-main {
	margin: 100px 0 30px;
}

/**
*
* =pro img group
*
**/
#product-main .main-pro-img {
	margin-bottom: 10px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: auto 100%;
}

#product-main .main-pro-img img {
	width: 100%;
}

#product-main .sub-pro-img {
	margin-bottom: 60px;
}

#product-main .sub-pro-img ul {
	text-align: center;
}

#product-main .sub-pro-img ul li {
	margin: 0 5px 15px;
	width: 90px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
	display: inline-block;
}

#product-main .sub-pro-img ul li img {
	width: 100%;
}

/**
*
* =products title
*
**/
#product-main h3 {
	margin-bottom: 15px;
	font-size: 18px;
	color: #DF3388;
}

/**
*
* =question title
*
**/
#product-main .orderfunction {
	padding-bottom: 15px;
	border-bottom: 1px #838383 solid;
}

#product-main .orderfunction p {
}

#product-main .orderfunction article {
	margin-bottom: 10px;
	line-height: 160%;
	font-size: 13px;
	color: #545454;
}

#product-main .orderfunction .price-detail {
	overflow: hidden;
}

#product-main .orderfunction .price-detail p {
	width: 50%;
	float: left;
	color: #545454;
}

#product-main .orderfunction .price-detail p:nth-child(2) span {
	font-size: 18px;
	color: #D9161A;
	font-weight: bold;
}

#product-main .orderfunction .order-site {
	margin-top: 5px;
	padding-top: 10px;
	border-top: 1px #838383 solid;
}

#product-main .orderfunction .order-site p {
	color: #545454;
}

#product-main .orderfunction .order-site p input {
	padding: 3px;
	width: 30px;
	display: inline-block;
	border: 1px #444 solid;
}

#product-main .orderfunction .order-site p.addProduct {
	margin-top: 10px;
	padding: 5px 8px 5px 30px;
	background: #6a6a6a;
	border: 1px #b5b5b4 solid;
	display: inline-block;
	position: relative;
	transition: 0.5s;
	line-height: 180%;
	color: #b5b5b4;
}

#product-main .orderfunction .order-site p.addProduct a {
	color: #fff;
}

#product-main .orderfunction .order-site p.addProduct input {
	width: 70px;
	border: none;
}

#product-main .orderfunction .order-site p.addProduct i {
	position: absolute;
	top: 11px;
	left: 8px;
	font-size: 18px;
}

#product-main .orderfunction .order-site p.addProduct input {
	background: #6a6a6a;
	transition: 0.5s;
	color: #fff;
}

#product-main .orderfunction .order-site p.addProduct:hover ,
#product-main .orderfunction .order-site p.addProduct:hover input {
	background: #000;
}

/**
*
* =pro-article
*
**/
#product-main #pro-article {
	margin-top: 60px;
	overflow: hidden;
	position: relative;
}

#product-main #pro-article ul.tabs {
	width: 100%;
	height: 30px;
	border-bottom: 1px #444 solid;
	overflow: visible;;
}

#product-main #pro-article ul.tabs li {
	margin: 0 3px -1px 0;
	height: 29px;
	background: #fff;
	border: 1px #765C30 solid;
	border-bottom: 1px #444 solid;
	float: left;
	overflow: hidden;
	position: relative;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

#product-main #pro-article ul.tabs li a {
	padding: 0 10px;
	height: 29px;
	display: block;
	text-align: center;
	line-height: 35px;
	font-size: 14px;
}

#product-main #pro-article ul.tabs li.active {
	border: 1px #444 solid;
	border-bottom: 1px #fff solid;
}

#product-main #pro-article ul.tabs li.active a {
	color: #000;
	font-weight: bold;
}

#product-main #pro-article #tabs_container {
	clear: left;
	padding: 15px;
	background: #fff;
}

#product-main #pro-article #tabs_container .tab_content {
	background: #fff;
	line-height: 170%;
	font-size: 16px;
}

#product-main #pro-article #tabs_container .tab_content table {
	margin-bottom: 25px;
	border-top: 1px #ccc solid;
}

#product-main #pro-article #tabs_container .tab_content table tr td {
	padding: 15px;
	border-bottom: 1px #ccc solid;
}

#product-main #pro-article #tabs_container .tab_content table tr:last-child td {
	color: #D01E21;
	font-weight: bold;
}

#product-main #pro-article #tabs_container .tab_content table.house tr:last-child td ,
#product-main #pro-article #tabs_container .tab_content table.group tr td {
	color: #000;
	font-weight: normal;
}

#product-main #pro-article #tabs_container .tab_content table.house tr.type {
	background: rgba(0,0,0,0.1);
}

#product-main #pro-article #tabs_container .tab_content p {
	margin-bottom: 25px;
}

#product-main #pro-article #tabs_container .tab_content ul {
	list-style: disc;
	list-style-position: inside;
}

#product-main #pro-article #tabs_container .tab_content ul li {
	margin-bottom: 10px;
	list-style: disc;
	list-style-position: inside;
}

#product-main #pro-article #tabs_container .tab_content .group {
	color: #EB1518;
}

#product-main #pro-article #tabs_container .tab_content .group p {
	margin-bottom: 5px;
}

#product-main #pro-article #tabs_container #tab2 ,
#product-main #pro-article #tabs_container #tab3 {
	display: none;
}

/**
*
* =other product
*
**/
#product-main .other-product {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px #838383 solid;
}


#product-main .other-product ul li {
	margin: 0 2% 0 0;
	width: 23.5%;
	float: left;
}

#product-main .other-product ul li h2 {
	overflow: hidden;
	height: 20px;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
   	margin-top: 10px;
	text-align: center;
	font-size: 15px;
}

#product-main .other-product ul li:nth-child(4) {
	margin-right: 0;
}
/* + ask
*----------------------------------------------------------------------------*/
.ask {
	overflow: hidden;
	margin: 30px 0;
	text-align: right;
}

.ask a {
	padding: 10px 20px;
	display: inline-block;
	vertical-align: middle;
	background: #e6a82d;
	color: #fff;
	font-size: 18px;
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
	padding-right: 2.2em;
	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-ms-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
}
.ask a:before {
	content: url(/images/ask.png);
	position: absolute;
	right: 1em;
	padding: 1px 1px 0;
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);
}

.ask a:hover:before ,
.ask a:focus:before ,
.ask a:active:before {
	animation: askIcon 1s infinite alternate ease-in-out;
	-webkit-animation: askIcon 1s ease-in-out;
	-moz-animation: askIcon 1s ease-in-out;
	-ms-animation: askIcon 1s ease-in-out;
	-o-animation: askIcon 1s ease-in-out;
}

@-webkit-keyframes askIcon {
  16.65% { -webkit-transform: translateX(6px); }
  33.3% { -webkit-transform: translateX(-5px); }
  49.95% { -webkit-transform: translateX(4px); }
  66.6% { -webkit-transform: translateX(-2px); }
  83.25% { -webkit-transform: translateX(1px); }
  100% { -webkit-transform: translateX(0); }
}

@-moz-keyframes askIcon {
  16.65% { -moz-transform: translateX(6px); }
  33.3% { -moz-transform: translateX(-5px); }
  49.95% { -moz-transform: translateX(4px); }
  66.6% { -moz-transform: translateX(-2px); }
  83.25% { -moz-transform: translateX(1px); }
  100% { -moz-transform: translateX(0); }
}

@-ms-keyframes askIcon {
  16.65% { -ms-transform: translateX(6px); }
  33.3% { -ms-transform: translateX(-5px); }
  49.95% { -ms-transform: translateX(4px); }
  66.6% { -ms-transform: translateX(-2px); }
  83.25% { -ms-transform: translateX(1px); }
  100% { -ms-transform: translateX(0); }
}

@-o-keyframes askIcon {
  16.65% { -o-transform: translateX(6px); }
  33.3% { -o-transform: translateX(-5px); }
  49.95% { -o-transform: translateX(4px); }
  66.6% { -o-transform: translateX(-2px); }
  83.25% { -o-transform: translateX(1px); }
  100% { -o-transform: translateX(0); }
}

@keyframes askIcon {
  16.65% { transform: translateX(6px); }
  33.3% { transform: translateX(-5px); }
  49.95% { transform: translateX(4px); }
  66.6% { transform: translateX(-2px); }
  83.25% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

/* +width:1024 ↓
*----------------------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
	#content #content-main #side-nav ul > li:nth-child(2) {
		width: auto;
	}
	
	#content #content-main #side-nav ul > li:nth-child(2) ul {
		height: 0;
		overflow: hidden;
		transition: all 0.4s ease;
	}
	
	#content #content-main #side-nav ul > li:nth-child(2):hover ul ,
	#content #content-main #side-nav ul li:last-child:hover > ul {
		padding: 0 0 0 3px;
		height: 600%;
	}
	
	#content #content-main #side-nav ul > li:nth-child(2):hover ul li {
		display: block;
	}
	
	#content #content-main #side-nav ul li ul li a {
		margin: 0;
		background: #fff;
	}
	
	#content #content-main #side-nav ul li:last-child {
		width: 152px;
	}
	
	#content #content-main #side-nav ul li:last-child > ul {
		padding-left: 3px;
		height: 0;
		overflow: hidden;
		transition: all 0.4s ease;
	}
	
	#content #content-main #side-nav ul li:last-child ul li {
		display: block;
	}
	
	#content #content-main #side-nav ul li:last-child:hover > ul {
		overflow: visible;
	}
	
	#content #content-main #side-nav ul li:last-child ul li ul {
		width: 152px;
		top: 0;
		right: 145px;
	}
	
	#products ul li {
		width: 49%;
	}
	
	#products ul li:nth-child(4), 
	#products ul li:nth-child(7), 
	#products ul li:nth-child(10) {
		clear: none;
	}
	
	#products ul li:nth-child(3n) {
		margin-right: 2%;
	}
	
	#products ul li:nth-child(even) {
		margin-right: 0;
	}
}


/* +width:768 ↓
*----------------------------------------------------------------------------*/
@media screen and (max-width: 768px) {
	#product-main .sub-pro-img ul li {
		margin: 0 1% 15px;
		width: 17%;
	}
}


/* +width:480 ↓
*----------------------------------------------------------------------------*/
@media screen and (max-width: 480px) {
	#products ul li {
		margin-right: 0;
		width: 100%;
	}
	
	#content #content-main #side-nav ul > li:nth-child(2) ul li ,
	#content #content-main #side-nav ul li:last-child ul li {
		margin-bottom: 0;
	}
	
	#product-main #pro-article #tabs_container .tab_content table tr td {
		padding: 5px;
		font-size: 13px;
	}
	
	#product-main #pro-article #tabs_container .tab_content table tr:last-child td {
		font-weight: normal;
		font-size: 13px;
	}
}