
/*========================================================*/
/*-------首頁內容--------*/
/*========================================================*/


.wrap{
	display: flex;
	flex-direction: column;
	gap: clamp(1.875rem, 3.125vw, 3.75rem);
}






/*/////////////////////////////////////////////////////////*/
/*-------共用區塊--------*/
/*/////////////////////////////////////////////////////////*/


/*首頁內容區塊*/	
.mainContent{
	padding: clamp(1.5625rem,2.6042vw,3.125rem) 0px 0;
}



	/*----- 首頁標題1 -----*/
	.index_title {
		font-size: clamp(1.5625rem, 1.6146vw, 1.9375rem); /* 字體 最小值 25.00px、大小約 1.6146vw、最大值 31.00px */
		font-weight: bold;
		color:var(--second_color);
		line-height: 1.3;
		text-align: center;
		margin-bottom: clamp(.625rem,1.0417vw,1.25rem);
		font-family: var(--mandarin_font);
		text-align: left;
	}	
		.index_title strong{	
			font-size: inherit;
			line-height: initial;
			padding: 0;
			margin: 0;
			display: inline-block;
			font-weight: inherit;
		}	
	





	
@media (max-width: 990px){
	
	/* .mainContent{	
		padding: 25px 0px;	
	}	 */



		/*----- 首頁標題1 -----*/
		.index_title{
			/* font-size: 25px; */
			line-height: 1.2;
		}
		

}
/*/////////////////////////////////////////////////////////*/
/*-------banner區塊--------*/
/*/////////////////////////////////////////////////////////*/


.index_main .banner {
	margin-top: clamp(1.6130rem, 2.6042vw, 3.1250rem); /* 最小值 25.81px、大小約 2.6042vw、最大值 50.00px */
}

.banner .wrap{
	/* max-width: clamp(37.6875rem	, 62.8125vw, 75.375rem); */
	max-width: 75.375rem; /*1206px*/
	display: grid;
	grid-template-columns: minmax(320px,799px) auto;
	gap: .9375rem;
}
.banner .wrap .banner_left,
.banner .wrap .banner_right{
	/* width: 50%; */

}
.banner_right{
	display: flex;
	flex-direction: column;
	gap: .5625rem;
	
}
.news_img{
	width: 24.375rem;
	position: relative;
}
.news_img:hover{
	opacity: 0.5;
	transition: all 03s ease;
}
.news_img a {
	display: block;
	position: relative;
	padding-top: 28.97%;

}
.news_img a img {
	width:100%;
	height:auto;
	transition: all 0.3s ease-out;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: all 0.3s ease-out;

}

.news_img a.notice_img {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 10;
	width: 20px;
	height: 20px;
	padding-top: unset;
}
.news_img a.notice_img img{
	width:100%;
	height:auto;
	transition: all 0.3s ease-out;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	transition: all 0.3s ease-out;
}
.news_text{
	position: absolute;
	top:50%;
	left:50%;
	transform: translate(-50% , -50%);
	font-size: clamp(1.125rem,1.3021vw,1.5625rem);
	color: #fff;
	font-weight: 600;
}
@media(max-width:1400px){
	.banner .wrap{
		display: flex;
		flex-direction: column;
		gap: .5625rem;
	}
	.banner .wrap .banner_right{
		flex-direction: row;
		

	}
	.news_img{
		width: clamp(26.375rem, 43.9583vw, 52.75rem);
		width: 100%;
	}
}

@media (max-width: 640px){
	.banner .wrap .banner_right{
		
		flex-direction: column;
		gap: .5625rem;
	}
}

















/*/////////////////////////////////////////////////////////*/
/*-------最新商品區塊--------*/
/*/////////////////////////////////////////////////////////*/
.index_newProductBg{
	
}
.index_newProductBg .wrap{
	/* max-width: clamp(37.6875rem	, 62.8125vw, 75.375rem); */
	max-width: 75.375rem; /* 1206px */
	padding: clamp(1.875rem, 3.125vw, 3.75rem) 0;
	gap: 0;
}
.index_newProduct_area{
	/* gap: clamp(1.0625rem, 1.8229vw, 2.1875rem); */  /*17px - 35px*/
	/* display: flex;
    align-items: center; */
	/* padding: 0  clamp(1.5625rem, 2.6042vw, 3.125rem); */
	position: relative;
}


.index_newProduct_area .swiper-button_right,
.index_newProduct_area .swiper-button_left{
	width: clamp(1.25rem, 2.0833vw, 2.5rem);
	height: 100%;
	position: absolute;
	aspect-ratio: 1;
	top: 50%;
	transform: translateY(-50%) translateX(0%);
}

.index_newProduct_area .swiper-button_left{
	left: 0;	
}
.index_newProduct_area .swiper-button_right{
	right: 0;
}



.index_newProduct_area .swiper-button-prev,
.index_newProduct_area .swiper-button-next
{
	/* position: relative !important;  */
	
	/* top: unset; */
	transform: unset; 
	position: absolute ; 
	top: 50%;
	left: unset;
	right: unset;
	transform: translateY(-50%);
}




.index_newProduct_area .new_product {
	margin: 0 auto;
	max-width: clamp(calc(100% - 5.625rem), calc(100% - 9.3750vw), calc(100% - 11.25rem)); /* 最小值 100%-90px、大小約 100%-9.375vw、最大值 100%-180px */
}


.new_product .swiper-slide{
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	width: auto;
}
.new_product .swiper-slide .new_productList{
	margin-right: 2px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	margin-bottom: 2px;
	border: 1px solid #ccc;
}
.new_product .swiper-slide .new_productList > a {
	display: block;
	position: relative;
	padding-top: 100%;
	text-decoration: none;
}
.new_product .swiper-slide .new_productList > a:hover {
	opacity: 0.5;
	transition: all 0.3s ease;
}
.new_product .swiper-slide .new_productList > a img {
	width:100%;
	height:auto;
	transition: all 0.3s ease-out;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: all 0.3s ease-out;
	
}
.new_product_bottom{
	

}
.new_product_bottom a{
	padding: 28px 19px;
	padding: clamp(.875rem, 1.4583vw, 1.75rem) clamp(.5625rem, 0.9896vw, 1.1875rem);
	display: flex;
	flex-direction: column;
	/* gap: clamp(.4375rem, 0.7813vw, .9375rem); */
	gap: clamp(.4375rem, 0.7813vw, .9375rem);
	
	border-top: none;
	text-decoration: none;
	

}
.new_product_bottom a:hover{
	opacity: 0.5;
	transition: all 0.3s ease;
	

}
.new_product_bottom a .product_name{
    color: #000;

    /* 字級 */
    font-size: clamp(0.813rem, 0.612rem + 0.32vw, 1rem);

    /* 行高（請明確定義） */
    line-height: 1.1;

    /* 至少兩行高度 */
    min-height: calc(
        clamp(0.813rem, 0.612rem + 0.32vw, 1rem) * 1.1 * 2
    );

    /* 兩行省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    box-sizing: border-box;

}
.new_product_bottom a .product_price{
	color: var(--notice_color);


}






@media (max-width: 990px){

	.index_newProduct_area{
		gap: .625rem; 
	}

	

	.index_newProduct_area .new_product {
		/* margin: 0 auto; */
		max-width: clamp(calc(100% - 3.4375rem), calc(100% - 9.3750vw), calc(100% - 11.25rem)); /* 最小值 100%-55px、大小約 100%-9.375vw、最大值 100%-180px */
	}

}


@media (max-width: 540px){

	.index_newProductBg .index_title {
		text-align: center;
	}

}









/*/////////////////////////////////////////////////////////*/
/*-------熱銷商品區塊--------*/
/*/////////////////////////////////////////////////////////*/
.index_allProductBg{
	background: #f6f6f6bd;
	padding: clamp(1.875rem, 3.125vw, 3.75rem) 0;
}
.index_allProductBg .wrap{
	/* max-width: clamp(37.6875rem	, 62.8125vw, 75.375rem); */
	max-width: 75.375rem; /*1206px*/
	display: flex;
	flex-direction: row;
	gap: clamp(1.25rem, 2.0833vw, 2.5rem);
	
}
.index_allProductBg .left{
	flex: 1;
	width: 205px;
}
.index_allProductBg .left .left_title{
	display: flex;
	align-items: center;
	gap: .3125rem;
	background-color: transparent;
	
}
.index_allProductBg .left .left_icon{
	width: 1.25rem;
}
.index_allProductBg .left .left_icon a {
	display: block;
	position: relative;
	padding-top: 100%;
	
}

.index_allProductBg .left .left_icon a img{
	width:100%;
	height:auto;
	transition: all 0.3s ease-out;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: all 0.3s ease-out;

}
.index_allProductBg .left .left_title span{
	color: #000;
	padding: 0;
	font-size: clamp(1.125rem,1.0417vw,1.25rem);
	
}
.index_allProductBg .right.no_left{
	width: calc(100% - 205px) ;
	
	
}
.index_allProductBg .right .index_title{
	color: #4E4E4E;
}
.index_allProductBg .right .index_allProduct_area{
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 15px;

}

.index_allProduct_area .product_list {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border:1px solid #ccc;

}
.index_allProduct_area .product_list > a {
	display: block;
	position: relative;
	padding-top: 100%;
	text-decoration: none;

}
.index_allProduct_area .product_list > a:hover {
	opacity: 0.5;
	transition: all 0.3s ease;

}
.index_allProduct_area .product_list > a img{
	width:100%;
	height:auto;
	transition: all 0.3s ease-out;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: all 0.3s ease-out;

}

@media (max-width: 1400px){
	.index_allProductBg .right .index_allProduct_area{
		
		grid-template-columns: repeat(3,1fr);
		
	
	}
}

@media (max-width: 990px){
	.index_allProductBg .wrap{
		display: block;
		
	}
	.index_allProductBg .left{
		flex: 1;
		width: 100% ;
	}
	.index_allProductBg .right.no_left{
		width: 100% ;
		
		
	}
}


@media (max-width: 768px){
/* @media (max-width: 540px){ */
	
	.index_allProductBg .right .index_title{
		text-align: center;
	}

	.index_allProductBg .right .index_allProduct_area{		
		grid-template-columns: repeat(2,1fr);
	}
}
/* @media (max-width: 320px){ */
@media (max-width: 460px){

	.index_allProductBg .right .index_allProduct_area{
		display: block;		
		display: flex;		
		flex-direction: column;
	}
}

/* 20250430 解決首頁輪播數目不足會壞掉的問題 */
/* .swiper-autoheight, 
.swiper-autoheight .swiper-slide {
    width: 100%;
} */
/* 在螢幕寬度大於425時，套用這裡的特定樣式 */
@media screen and (min-width: 540px) {

	.index_newProduct_area .new_product.center,
	.index_newProduct_area .new_product .swiper-wrapper.center {
		display: flex !important;
		/* 20250331_輪播不要置中_by tom_star  */
		justify-content: center !important;
		/* 20250331_輪播不要置中_by tom_end  */
	} 
}