/* 一頁式商店：下方商品區
   數值取自 fight30 一頁式商店（SHOPLINE ultra_chic 版型）的實際樣式 */

/* shoppageStyle_for_fight30.css 的 rem 是以 SHOPLINE 的根字級 10px 為基準
   （例：標題文字 1.4rem = 14px），這裡比照設定，否則瀏覽器預設 16px 會讓文字變大 */
html{
	font-size:10px;
}

/* 標題文字「花的姿態小商店」：比照 SHOPLINE 的基礎樣式（p 無外距、行高 25px），位置才會與 fight30 一致 */
.titleWrap{
	line-height:20px;
}

.titleWrap .titleLink p{
	margin:0;
	line-height:25px;
}

/* 對應 fight30 頁面上方 SHOPLINE 頁首列的高度 */
.storeHeaderSpace{
	height:51px;
}

.productSection{
	font-family:"Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
	font-size:14px;
	line-height:20px;
	color:#333;
	background:#fff;
}

.productSection .section-width{
	max-width:1170px;
	margin:0 auto;
	padding:30px 15px;
	box-sizing:border-box;
}

.productSection .product-list__container{
	padding:15px;
	text-align:center;
}

.productSection .product-list__title{
	margin:0;
	padding:15px;
	font-size:19.2px;
	font-weight:500;
	line-height:23.8px;
	color:#333;
}

.productSection .product-list__products{
	display:grid;
	grid-template-columns:repeat(2, min(calc((100% / 2) - 15px), calc(100% / 3 - 30px)));
	justify-content:center;
	gap:15px;
}

.productSection .product-list__product{
	position:relative;
}

/* 商品圖：寬高比 340:408，圖片置中、完整顯示 */
.productSection .product-image{
	position:relative;
	width:100%;
	padding-top:120%;
	overflow:hidden;
}

.productSection .product-image img{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	object-fit:contain;
	transition:opacity .3s ease;
}

.productSection .product-image .second-image{
	opacity:0;
}

/* 只有有第二張圖的商品才在滑過時換圖 */
.productSection .product-image.has-second:hover .second-image{
	opacity:1;
}

.productSection .product-image.has-second:hover .first-image{
	opacity:0;
}

/* 販售結束：圖片淡化 + 右下角灰色標籤 */
.productSection .is-ended .product-image img{
	filter:opacity(.5);
}

.productSection .available-time-content{
	position:absolute;
	right:0;
	bottom:0;
	z-index:2;
	height:22px;
	background:rgba(150, 150, 150, .6);
	color:#fff;
}

.productSection .available-time-item{
	margin:2px 10px 0;
}

.productSection .info-box{
	padding-top:10px;
	text-align:center;
}

.productSection .info-box-inner-wrapper{
	min-height:127px;
}

.productSection .info-box .title{
	margin:0 0 6px;
	font-size:16px;
	line-height:24px;
}

.productSection .price{
	font-weight:700;
}

.productSection .btn-add-to-cart{
	display:block;
	width:100%;
	margin:10px 0 0;
	padding:10px 0;
	border:0;
	border-radius:3px;
	background:#0374c4;
	color:#fff;
	font-size:14px;
	line-height:20px;
	font-family:inherit;
	text-align:center;
	text-decoration:none;
	cursor:pointer;
}

.productSection .btn-add-to-cart[disabled]{
	opacity:.5;
	cursor:not-allowed;
}

.productSection .store-footer{
	height:40px;
	background:#fff;
}

/* 商品簡短敘述 */
.productSection .info-box .desc{
	margin:0 0 20px;
	font-size:14px;
	line-height:22px;
	color:#666;
	/* 左右齊行，最後一行（含 <br> 前一行）靠左 */
	text-align:justify;
	text-align-last:left;
	text-justify:inter-character;
}

/* 商品列表下方唯一的「前往選購」按鈕（連到 fight30） */
.productSection .btn-go-shop{
	display:block;
	width:100%;
	max-width:360px;
	margin:20px auto 0;
	padding:16px 0;
	border-radius:3px;
	background:#000;
	color:#34dab5;
	font-size:17px;
	line-height:22px;
	letter-spacing:.1em;
	text-align:center;
	text-decoration:none;
	transition:opacity .2s ease;
}
.productSection .btn-go-shop:hover,
.productSection .btn-go-shop:focus{
	opacity:.85;
	color:#fff;
}

/* 新版商品圖為 1080×1080 正方形：圖框改正方形
   桌機一排三件（商品共 8 件，四件一排圖太小；排法參考 keepstyles 官方周邊頁） */
.productSection .product-image{
	padding-top:100%;
}
.productSection .product-list__products{
	grid-template-columns:repeat(3, minmax(0, 1fr));
	gap:30px 55px;
	max-width:1110px;
	margin:0 auto 40px; /* 與下方「前往選購」按鈕拉開距離 */
}

/* 商品敘述統一只顯示 3 行，超過的部分以「...」結尾（以行數截斷，含 HTML 標籤也不會切壞） */
.productSection .info-box .desc{
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:3;
	line-clamp:3;
	overflow:hidden;
}

/* 手機：一排兩件，左右並排 */
@media screen and (max-width:767px){
	.productSection .product-list__container{
		padding:0;
	}
	.productSection .product-list__products{
		grid-template-columns:repeat(2, minmax(0, 1fr));
		gap:30px 15px;
		padding:0 10px;
	}
	.productSection .info-box .title{
		font-size:15px;
		line-height:22px;
	}
	/* 手機不顯示商品敘述（兩欄太窄），只留圖＋名稱 */
	.productSection .info-box .desc{
		display:none;
	}
}

/* 商品名稱（h3）：粗體＋品牌綠（同選單目前頁的顏色） */
.productSection .info-box h3.title{
	font-weight:700;
	color:#000000;
}

/* 只給搜尋引擎與讀屏軟體讀的文字（頁面 h1），畫面上不顯示 */
.visually-hidden{
	position:absolute !important;
	width:1px;
	height:1px;
	padding:0;
	margin:-1px;
	overflow:hidden;
	clip:rect(0,0,0,0);
	white-space:nowrap;
	border:0;
}

/* 右側浮動購物車（電腦版、手機版都顯示）：黑底＋綠色購物車（#34dab5，SVG 顏色寫在 index.php） */
.floatCart{
	position:fixed;
	right:24px;
	bottom:80px; /* 電腦版底部有 50px 的選單列，往上避開 */
	z-index:998; /* 低於開場的 .pageloading(1000) 與選單 */
	width:56px;
	height:56px;
	border-radius:50%;
	background:#000;
	box-shadow:0 2px 10px rgba(0,0,0,.35);
	display:flex;
	align-items:center;
	justify-content:center;
	transition:transform .2s ease, box-shadow .2s ease;
}
.floatCart:hover,
.floatCart:focus-visible{
	transform:scale(1.08);
	box-shadow:0 4px 14px rgba(0,0,0,.3);
}
.floatCart svg{
	display:block;
	margin-left:-2px; /* 購物車圖形視覺置中 */
}

@media screen and (max-width:736px){
	.floatCart{
		right:16px;
		bottom:20px; /* 手機版沒有底部選單列 */
		width:50px;
		height:50px;
	}
	.floatCart svg{
		width:24px;
		height:24px;
	}
}
