.shopByCT {
  margin: 0 2.5%;
  overflow: hidden;
}

/*********************************** 無滑動頁籤按鈕(居中) start *****************************************/
.tabBtnBlock:not(:first-child) {
  margin-top: 5%;
}
.tabBtnBlock ul li {
  width: 12%;
}
/*********************************** 無滑動頁籤按鈕(居中) end *****************************************/

.shopByCT .ctBlock {
  margin-top: 5%;
  background: #f4f4f4;
  padding: 30px;
}

/*********************************** 價格 start *****************************************/
.shopByCT .ctBlock .priceBlock {
  margin: 2.5% 0 2.5% 5%;
}
.shopByCT .ctBlock + .withCategory {
  margin-top: 5%;
}
/*********************************** 價格 end *****************************************/

/*********************************** 列表過濾選項 start *****************************************/
.filter_wrap {
  position: relative;
  margin-bottom: 0.5rem;
}

.filter_wrap:before,
.filter_wrap:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	pointer-events: none;
}
.filter_wrap:before {
	right: 0.25rem;
	z-index: 2;
	width: 1.2rem;
	height: 1.2rem;
	background-image: url(../images/icon_drag_hint.svg);
	background-repeat: no-repeat;
	background-size: contain;
	animation: filter_hint 2.5s 3 ease-in-out;
}
@keyframes filter_hint {
	0% {
		opacity: 0;
		transform: translateX(0%);
	}
	10% {
		opacity: 1;
		transform: translateX(0%);
	}
	/* 70% {
		opacity: 1;
		transform: translateX(-150%);
	} */
	90% {
		opacity: 0;
		transform: translateX(-150%);
	}
	100% {
		opacity: 0;
		transform: translateX(0%);
	}
}

.filter_wrap:after {
	z-index: 1;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, rgba(244, 244, 244, 0) 0%, rgba(244, 244, 244, 1) 80%);
}

.filter {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: auto;
}
.filter::-webkit-scrollbar {
  display: none;
}

.filter li {
  flex-shrink: 0;
  display: inline-block;
  cursor: pointer;
  margin: 0 0.2em 0;
  padding: 0.33em 0.4em;
  border-radius: 0.2em;
  font-size: 15px;
  line-height: 1em;
}
.filter li:hover,
.filter li.now {
  color: #FFF;
  background: #333;
}
.filter li:first-child {
  position: relative;
  margin-right: 1.5em;
}
.filter li:first-child:before {
  position: absolute;
  content: "";
  display: block;
  left: calc(100% + 0.9em);
  top: 50%;
  width: 1px;
  height: 80%;
  background: #999;
  transform: translateY(-50%);
}

.filter:after {
	content: "";
	position: relative;
	display: block;
	padding: 1px 15vw;
}
/*********************************** 列表過濾選項 end *****************************************/

/*********************************** 列表 start *****************************************/
.list {
  overflow: hidden;
}
.list li {
  margin-top: 3%;
  float: left;
  width: 20%;
  padding: 0 5px;
}
.list li a {
  display: block;
}
.list li a .img {
  position: relative;
}
.list li a .img img {
  width: 100%;
  display: block;
  border: none;
}
.list li a .img .cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.5s;
}
.list li a .img .cover span {
  position: absolute;
  color: #000;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  font-family: Sanchez, 微軟正黑體;
  font-size: 1.1em;
}
.list li a h3 {
  font-size: 14px;
  font-weight: normal;
  margin-top: 5%;
  height: 2.5em;
  text-align: center;
  overflow: hidden;
}
/*********************************** 列表 end *****************************************/

/*********************************** 詳細頁 start *****************************************/
.shopByCT .image {
  float: left;
  width: 27.19%;
}
.shopByCT .image img {
  display: block;
  width: 100%;
}
.shopByCT .info {
  float: left;
  width: 67.54%;
  margin-left: 5.26%;
}
.shopByCT .info h2 {
  font-weight: normal;
  line-height: 1.4em;
}
.shopByCT .info .ct {
  font-size: 13px;
  line-height: 1.8em;
  margin-top: 2em;
}

/********* gallery start ***********/
.gallery{
	margin-top:0.5em;
}
.shopByCT .info .gallery .ct {
	background: none;
	margin-top:0;
}

.gallery .slickPN {
	width: 30px;
	height: 40px;
	background: none;
	border-radius: 0;
	opacity: 1;
}
.gallery .slickPN.prev {
	left: -30px;
}
.gallery .slickPN.next {
	right: -30px;
}
.gallery .slickPN:before,
.gallery .slickPN:after {
	left: 8px;
}
.gallery .slickPN:before {
	top: 10px;
}
.gallery .slickPN:after {
	top: 29px;
}
.gallery .slickPN:hover:before,
.gallery .slickPN:hover:after {
	background: #666;
}

.gallery .img{
	margin: 0 5%;
	overflow:hidden;
	cursor:pointer;
}
.gallery img {
	display: block;
	width:100%;
	transition: transform 1s;
}
.gallery .img:hover img {
	transform:scale(1.1);
}
/********* gallery end ***********/

/********* overlay start ***********/
.overlayCenter.brandGallery .overlayCT {
	width:auto;
	height:auto;
}
.overlayCenter.brandGallery .overlayCT iframe{
	height:calc(85vh - 60px);
	aspect-ratio:1.4;
}
/********* overlay end ***********/
/*********************************** 詳細頁 end *****************************************/


@media screen and (min-width: 1025px) {
	
	/*********************************** 列表 start *****************************************/
	.list li a:hover .img .cover {
	  opacity: 1;
	}
	/*********************************** 列表 end *****************************************/
	
}


@media screen and (min-width: 1023px) {
	
	.filter_wrap:before,
	.filter_wrap:after,
	.filter_wrap .filter:after{
		display: none;
	}
	
}


@media screen and (max-width: 1023px) {
	
	.shopByCT {
		margin: 0 10px;
	}

	/*********************************** 價格 start *****************************************/
	.shopByCT .ctBlock .priceBlock {
		margin: 0;
	}
	/*********************************** 價格 end *****************************************/

	/*********************************** 無滑動頁籤按鈕(居中) start *****************************************/
	.tabBtnBlock ul li {
		width: 30%;
	}
	/*********************************** 無滑動頁籤按鈕(居中) end *****************************************/

	/*********************************** 列表過濾選項 start *****************************************/
	.filter {
		justify-content: flex-start;
	}
	.filter li {
		margin-left: 0.3em;
		margin-right: 0.3em;
	}
	/*********************************** 列表過濾選項 end *****************************************/

	/*********************************** 列表 start *****************************************/
	.list li {
		width: 25%;
	}
	/*********************************** 列表 end *****************************************/
	
	/*********************************** 詳細頁 start *****************************************/
	/********* overlay start ***********/
	.overlayCenter.brandGallery .overlayCT {
		width:95%;
		max-width:500px;
		height:85%;
		padding:10px;
	}
	.overlayCenter.brandGallery .overlayCT iframe{
		height:100%;
		aspect-ratio:auto;
	}
	/********* overlay end ***********/
	/*********************************** 詳細頁 end *****************************************/
	
}


@media screen and (max-width: 768px) {
	
	/*********************************** 商品列表 start *****************************************/
	.productList > li {
		width: 50%;
		margin-top: 5%
	}
	/*********************************** 商品列表 end *****************************************/

}


@media screen and (max-width: 767px) {
	
	.shopByCT .ctBlock {
		padding: 10px;
	}

	/*********************************** 列表 start *****************************************/
	.list li {
		width: 50%;
		padding: 0 2px;
	}
	.list li a h3 {
		font-size: 12px;
	}
	/*********************************** 列表 end *****************************************/

	/*********************************** 詳細頁 start *****************************************/
	.shopByCT .image {
		float: none;
		width: 70%;
		margin: 0 auto;
	}
	.shopByCT .info {
		float: none;
		width: auto;
		margin: 5% 0 0;
	}
	.shopByCT .info h2 {
		font-size: 20px;
	}
	/*********************************** 詳細頁 end *****************************************/
	
}
