/******************************************** 主要內容 start **************************************************/
.productDetail {
	margin: 0 2.5%;
}
.productDetail:after {
	content: "";
	clear: both;
	display: block;
}

/*************************** 圖片區 start *****************************/
.productDetail .image {
	float: left;
	width: 49.12%;
	min-height:1px;
	margin-top: 3%;
}
.productDetail .image .main {
	overflow: hidden;
}
.productDetail .image .main ul li.slick-slide{
	background: url(../images/loading.gif) no-repeat center;
}
.productDetail .image .main ul li a, 
.productDetail .image .main ul li .iframeContainer {
	position: relative;
	display: block;
	padding-top: 100%;
}
.productDetail .image .main ul li a {
	background-position: center;
	background-size: contain;
}
.productDetail .image .main ul li a[href]:after {
	position: absolute;
	content: "";
	right: 5px;
	bottom: 5px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9) url(../images/zoom.svg) center no-repeat;
	border-radius: 3px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}
.productDetail .image .main ul li a[href]:hover:after {
	opacity: 1;
}
.productDetail .image .main ul li .iframeContainer iframe {
	position: absolute;
	display: block;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
.productDetail .image .thumbnail {
	width: 85%;
	margin: 5% auto 0;
}
.productDetail .image .thumbnail li:not([role="presentation"]) {
	float: left;
	border: 1px solid #fff;
	padding: 1px;
	margin: 0 7px;
}
.productDetail .image .thumbnail li a {
	display: block;
	padding-top: 100%;
	background-position: center;
	background-size: cover;
}
.productDetail .image .thumbnail li:hover, 
.productDetail .image .thumbnail li.now {
	border-color: #999;
}
.productDetail .image .thumbnail li.v a {
	position: relative;
}
.productDetail .image .thumbnail li.v a:before, 
.productDetail .image .thumbnail li.v a:after {
	position: absolute;
	content: "";
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}
.productDetail .image .thumbnail li.v a:before {
	width: 50%;
	height: 40%;
	background: #f4f4f4;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
}
.productDetail .image .thumbnail li.v a:after {
	border: 6px solid transparent;
	border-right: none;
	border-left: 10px solid #666;
}

/***** 覆寫 style.css 的 .slickPN start ******/
.thumbnail .slickPN {
	width: 30px;
	background: none;
	opacity: 1;
}
.thumbnail .slickPN.prev {
	transform: translate(-100%, -50%) scaleX(-1);
}
.thumbnail .slickPN.next {
	transform: translate(100%, -50%);
}
.thumbnail .slickPN:before, 
.thumbnail .slickPN:after {
	left: 12px;
	height: 1px;
	background: #666;
}
.thumbnail .slickPN:after {
	top: 40px;
}
.thumbnail .slickPN:hover {
	background: none;
}
.thumbnail .slickPN:hover:before, 
.thumbnail .slickPN:hover:after {
	background: #000;
}
/***** 覆寫 style.css 的 .slickPN end ******/

.productDetail .image .thumbnail .slick-dots {
	display: none !important;
}
.productDetail .image .bc {
	margin-top: 5%;
}
/*************************** 圖片區 end *****************************/

/************************** 文字區 start ****************************/
.productDetail .info {
	float: left;
	width: 50.88%;
	padding-left: 5%;
}
.productDetail .info h2 {
	font-size: 28px;
	margin-top: 8.5%;
}

/*************** 限時活動 start **************/
.product_event_group {
	display: flex;
	margin-top: 1rem;
	line-height: 1.5;
	font-size: 13px;
}
.product_event_group .event_label {
	width: 3.5rem;
	margin-right: .5rem;
	font-weight: bold;
}
.product_event_group .event_item a:before {
	content: '|';
	margin-right: .5rem;
	color: black;
}
.product_event_group .event_item {
	width: calc(100% - 4.5rem)
}
.product_event_group .event_item a {
	display: flex;
}
/*************** 限時活動 end **************/

.productDetail .info .tabBlock .tabCT .ct a.designerLink {
	float: left;
	display: inline-block;
	margin: 0 20px 10px 0;
}
.productDetail .info .tabBlock .tabCT .ct a.designerLink img {
	width: 150px;
	display: block;
	border: none;
}
.productDetail .info .tabBlock .tabCT .ct h3 {
	color: #333;
}

/***************** 價錢區塊 start *****************/
.priceBlock {
	margin-top: 5%;
}
.priceBlock:after,
.priceBlock .aside:after {
	content: "";
	clear: both;
	display: block;
}
.priceBlock .aside {
	float: right;
	margin-right: 10px;
}
.priceBlock .aside > li {
	position: relative;
	float: left;
}
.priceBlock .aside > li + li {
	margin-left: 12px;
}
.priceBlock .aside > li:before {
	content: "";
	display: block;
	width: 19px;
	height: 18px;
	cursor: pointer;
	background: url(../images/productDetailAside.svg) no-repeat;
	transition: background-position 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.priceBlock .aside > li.store:before{
	background-position: left 0;
}
.priceBlock .aside > li.store .content {
	display: none;
}
.priceBlock .aside > li.fav:before{
	background-position: center 0;
}
.priceBlock .aside > li.share:before {
	background-position: right 0;
}
.priceBlock .aside > li.store.active:before {
	background-position: left bottom;
}
.priceBlock .aside > li.fav.active:before {
	background-position: center bottom;
}
.priceBlock .aside > li.share.active:before {
	background-position: right bottom;
}

@media (hover: hover) {

	.priceBlock .aside > li.store:hover:before {
		background-position: left bottom;
	}
	.priceBlock .aside > li.fav:hover:before {
		background-position: center bottom;
	}
	.priceBlock .aside > li.share:hover:before {
		background-position: right bottom;
	}
	
}

.priceBlock .aside li ul {
	position: absolute;
	left: 50%;
	top: 35px;
	padding: 10px;
	background: #f4f4f4;
	white-space: nowrap;
	font-size: 12px;
	border-radius: 3px;
	border-bottom: 1px solid #d2d2d2;
	transform: scale(0);
	z-index: 1;
}
.priceBlock .aside li ul:before {
	position: absolute;
	content: "";
	left: 50%;
	top: -10px;
	border: 10px solid transparent;
	border-top: none;
	border-bottom-color: #f4f4f4;
	transform: translateX(-50%);
}
.priceBlock .aside li ul li + li {
	margin-top: 0.2em;
}
.priceBlock .aside li.active ul {
	transform: translateX(-50%);
}
.priceBlock .aside li.share ul {
	left: auto;
	right: -15px;
	overflow: hidden; /* 修正社群分享以透明型式出現於視窗左上 bug */
	transform: scale(  0  ); /* 修正原本使用 display:none; 會導致社群外掛寬高被設為 0, 造成視覺上消失 */
}
.priceBlock .aside li.share.active ul {
	overflow: visible; /* 對應上方修正 */
	transform: none; /* 對應上方修正 */
}
.priceBlock .aside li.share ul:before {
	left: auto;
	right: 15px;
	transform: none;
}
.priceBlock .aside li.share ul li + li {
	margin-top: 8px;
}
.priceBlock .aside li.share ul li.line iframe{
	width:51px !important;
	height:20px !important;
}
.priceBlock .aside li.share ul li.twitter, 
.priceBlock .aside li.share ul li.pin {
	margin-top: 5px;
}
.priceBlock .price strong {
	display: block;
	color: #0a72ce;
	font-size: 15px;
}
.priceBlock .price strong.att {
	color: #b22222;
}
.priceBlock .price strong em {
	font-size: 24px;
	font-style: normal;
}
.priceBlock .price del {
	display: block;
	margin-top: 0.8em;
	color: #0a72ce;
	font-size: 12px;
	text-decoration: none;
}
/***************** 價錢區塊 end *****************/

/***************** 表單區塊 start *****************/
.formBlock {
	margin-top: 5%;
}
.formBlock dl {
	width: 80%;
	font-size: 13px;
}
.formBlock dl .row {
	clear: both;
}
.formBlock dl .row + .row {
	margin-top: 0.6em;
}
.formBlock dl .row:after {
	content: "";
	clear: both;
	display: block;
}
.formBlock dl .row dt {
	float: left;
	margin-right: 1em;
}
.formBlock dl .row dd.color {
	height:auto;
}
.formBlock dl .row dd.color li {
	float: left;
	margin: 0 10px 10px 0;
}

.formBlock dl .row dd.spec ul {
	display: flex;
	flex-wrap: wrap;
	line-height: 1em;
}
.formBlock dl .row dd.spec li{
	margin:0 0.8em 0.8em 0;
}
.formBlock dl .row dd.spec li a{
	display: block;
	border:1px solid #999;
	padding:0.5em 1em;
}
.formBlock dl .row dd.spec li.now a{
	color:#FFF;
	border-color:#666;
	background: #666;
}

.formBlock dl .row dd .select {
	width: 88%;
	margin-top: -2px;
}
.formBlock .offerStatus, 
.formBlock .btn {
	margin-top: 3%;
}
.formBlock .offerStatus {
	font-size: 13px;
}
.formBlock .offerStatus u{
	cursor:pointer;
	margin:0 0.1em;
}
.formBlock .offerStatus u:hover{
	text-decoration: none;
}
.formBlock .btn {
	display: flex;
}
.formBlock .btn .formBtn {
	font-size: 15px;
	width: 38%;
}
.formBlock .btn .formBtn:before {
	content: "";
	display: inline-block;
	height: 18px;
	margin-right: 8px;
	vertical-align: bottom;
	background-repeat: no-repeat;
	background-position: center;
}
.formBlock .btn .formBtn.cart_check:before {
	width: 36px;
	background-image: url(../images/cart_check.svg);
}
.formBlock .btn .formBtn.plus {
	margin-left: 10px;
}
.formBlock .btn .formBtn.plus:before {
	width: 18px;
	background-image: url(../images/plus.svg);
}
/***************** 表單區塊 end *****************/
/************************** 文字區 end *****************************/
/******************************************** 主要內容 end **************************************************/

/************************************** 組合優惠 start ********************************************/
.combine{
	padding:3% 1.5%;
	background: #F6F6F6;
}

.combine hgroup{
	display: grid;
	grid: 1fr / repeat(3, 1fr);
	padding:0 0.5em;
	line-height: 1em;
	align-items: start;
}
.combine hgroup h2{
	order:1;
	justify-self: center;
}
.combine hgroup em{
	order:0;
	justify-self: start;
	font-style: normal;
	color:#b22222;
	line-height: 1.6em;
}

.combine .select em{
	background: #FFF;
}
/************************************** 組合優惠 end ********************************************/

/************************************** 相關產品 & 曾經瀏覽 start ********************************************/
.relativeAndLooked > ul {
	display: flex;
}
.relativeAndLooked > ul li {
	flex: 1 1 0px; /* IE 的 flex-basis 必須加上單位 */
	overflow: hidden;
	cursor: pointer;
	border: 1px solid #ccc;
	font-size: 1.15em;
	font-weight: normal;
	text-align: center;
	padding: 0.5em;
	background: #fff;
	color: #666;
	transition: all 0.2s;
}
.relativeAndLooked > ul li:not(:last-child) {
	border-right: 0;
}
.relativeAndLooked > ul li:first-child, 
.relativeAndLooked > ul li:last-child {
	border-radius: 4px;
}
.relativeAndLooked > ul li:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.relativeAndLooked > ul li:last-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.relativeAndLooked > ul li:hover {
	background: #eee;
}
.relativeAndLooked > ul li.active {
	border-color: #999;
	background: #999;
	color: #fff;
}
.relativeAndLooked > ul li.active + li {
	border-left-color: transparent;
}
.relativeAndLooked .tabCT {
	margin-top: 5%;
}
.relativeAndLooked .productList.slick {
	margin: 0;
	display: none;
}
.relativeAndLooked .productList.slick.active {
	display: block;
}
/************************************** 相關產品 & 曾經瀏覽 end ********************************************/


@media screen and (min-width: 1024px) and (max-width: 1280px) {
	
	/************************************** 相關產品 & 曾經瀏覽 start ********************************************/
	.relativeAndLooked {
		margin-left: 2.5%;
		margin-right: 2.5%;
	}
	/************************************** 相關產品 & 曾經瀏覽 end ********************************************/
	
}


@media screen and (min-width: 1001px) and (max-width: 1200px) {
	
	/************************************** 組合優惠 & 你可能也喜歡 start ********************************************/
	:is(.combine, .alsolike) .productList:not(.loadDone) > li:nth-child(n+5){
		display: none;
	}
	/************************************** 組合優惠 & 你可能也喜歡 end ********************************************/
	
}


@media screen and (max-width: 1023px) {
	
	/******************************************** 主要內容 start **************************************************/
	.productDetail {
		margin: 0 10px;
	}
	/*************************** 圖片區 start *****************************/
	.productDetail .image {
		float: none;
		width: 100%;
		aspect-ratio:0.7;
		margin-top: 0;
	}
	.productDetail .image .thumbnail {
		margin-top: 20px;
	}
	.productDetail .image .thumbnail li:not([role="presentation"]) {
		margin: 0 1px;
	}
	.productDetail .image .thumbnail li.v a:after {
		border-width: 4px;
		border-left-width: 6px;
	}
	/*************************** 圖片區 end *****************************/

	/*************************** 文字區 start *****************************/
	.productDetail .info {
		display: flex;
		flex-direction: column;
		float: none;
		width: 100%;
		padding-left: 0;
		margin-top: 5%;
	}
	.productDetail .info h2 {
		font-size: 20px;
		margin-top: 0;
	}
	
	.productDetail .info .tabBlock{
		order:1;
	}
	.productDetail .info .tabBlock .tabCT .ct a.designerLink img {
		width: 100px;
	}
	
	/***************** 滑動頁籤按鈕 start *****************/
	.tabBlock .tabCT section > h3 {
		position: relative;
		cursor: pointer;
	}
	.tabBlock .tabCT section > h3:after {
		position: absolute;
		content: "";
		right: 12px;
		top: 15px;
		display: block;
		border: 5px solid transparent;
		border-bottom: none;
		border-top-color: #999;
	}
	.tabBlock .tabCT section > h3:hover:after {
		border-top-color: #666;
	}
	.tabBlock .tabCT section > h3.isOpen:after {
		transform: scaleY(-1);
	}
	.tabBlock .tabCT section > h3 + .ct {
		display: none;
	}
	/***************** 滑動頁籤按鈕 end *****************/

	/************* 登入前 門市庫存查詢 內容 start *************/
	.priceBlock .aside li.store.notLogin ul{
		--x-offset:3em;
		left:auto;
		right:calc(-1 * var(--x-offset));
	}
	.priceBlock .aside li.store.notLogin.active ul{
		transform: none;
	}
	.priceBlock .aside li.store.notLogin ul:before{
		left:auto;
		transform: none;
		right:var(--x-offset);
	}
	/************* 登入前 門市庫存查詢 內容 end *************/
	
	/***************** 表單區塊 start *****************/
	.formBlock dl {
		width: 100%;
	}
	.formBlock dl .row dd .select {
		width: 100%;
		margin-top: 5px;
	}
	.formBlock .btn {
		justify-content: space-between;
	}
	.formBlock .btn .formBtn {
		width: calc(50% - 5px);
	}
	.formBlock .btn .formBtn.plus {
		margin-left: 0;
	}
	/***************** 表單區塊 end *****************/
	/*************************** 文字區 end *****************************/
	/******************************************** 主要內容 end **************************************************/

	/************************************** 組合優惠 start ********************************************/
	.combine {
		padding:2em 1%;
	}
	
	.combine hgroup h2{
		font-size: 18px;
	}
	/************************************** 組合優惠 end ********************************************/
	
	/************************************** 相關產品 & 曾經瀏覽 start ********************************************/
	.relativeAndLooked {
		margin-left: 10px;
		margin-right: 10px;
	}
	.relativeAndLooked > ul li {
		font-size: 1em;
	}
	/************************************** 相關產品 & 曾經瀏覽 end ********************************************/
	
}


@media screen and (min-width: 768px) and (max-width: 1023px) {
	
	.productDetail .image .main {
		padding: 0 12.5%;
	}
	
}


@media screen and (min-width: 769px) and (max-width: 1000px) {
	
	/************************************** 組合優惠 & 你可能也喜歡 start ********************************************/
	:is(.combine, .alsolike) .productList:not(.loadDone) > li:nth-child(n+4){
		display: none;
	}
	/************************************** 組合優惠 & 你可能也喜歡 end ********************************************/

}


@media screen and (max-width: 768px) {
	
	/************************************** 組合優惠 & 你可能也喜歡 start ********************************************/
	.combine hgroup{
		grid: 1.28em 1fr / repeat(4, 1fr);
		gap:1em;
	}
	.combine hgroup h2{
		grid-area: 1 / 1 / 2 / 5;
	}
	.combine hgroup em{
		grid-area: 2 / 1 / 3 / 4;
	}
	
	:is(.combine, .alsolike) .productList:not(.loadDone) > li:nth-child(n+5){
		display: none;
	}
	/************************************** 組合優惠 & 你可能也喜歡 end ********************************************/
	
}
