/* =====================================================================
 * FUZZY 1.0.65ze 第 1 章 首頁商品區（對標右＝目標）
 * 首頁商品列是「Elementor 標題＋按鈕＋[products] 短碼」，fe65ze.js 會替它們加上 .fz65ze-sec／.fz65ze-head／.fz65ze-car。
 * 開關：WooCommerce → FUZZY 營運 → 決議清單設定 → 首頁商品區；body class 為 fz65ze。
 * ===================================================================== */

/* ① 標題：靠左、全大寫、細體；取消置中與底線連結（View all …，沿用 65v「首頁隱藏查看更多」選項） */
html body.fz65ze .fz65ze-head,
html body.fz65ze .fz65ze-head.e-con { align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; }
html body.fz65ze .fz65ze-head .elementor-widget-heading,
html body.fz65ze .fz65ze-head.elementor-widget-heading { text-align: left !important; width: 100%; }
html body.fz65ze .fz65ze-head .elementor-heading-title {
	text-align: left !important; text-transform: uppercase; font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: .01em;
	color: #333 !important; margin: 0;
}
html body.fz65ze.fz65v-no-more .fz65ze-head .elementor-widget-button,
html body.fz65ze.fz65v-no-more .fz65ze-head.elementor-widget-button { display: none !important; }
@media (min-width: 769px) {
	html body.fz65ze .fz65ze-head .elementor-heading-title { font-size: 26px; }
}

/* ③ NEW ARRIVALS：橫向滑動輪播（一次 3 張）＋下方圓點 */
html body.fz65ze .fz65ze-car { position: relative; }
html body.fz65ze .fz65ze-car ul.products {
	display: flex !important; flex-wrap: nowrap !important; grid-template-columns: none !important; align-items: flex-start;
	gap: 0 !important; margin: 0 -6px !important; padding: 0 !important; width: calc(100% + 12px) !important; max-width: none !important;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
html body.fz65ze .fz65ze-car ul.products::-webkit-scrollbar { display: none; }
html body.fz65ze .fz65ze-car ul.products::before,
html body.fz65ze .fz65ze-car ul.products::after { display: none !important; content: none !important; }
html body.fz65ze .fz65ze-car ul.products li.product {
	flex: 0 0 33.3333% !important; width: 33.3333% !important; max-width: none !important; float: none !important;
	margin: 0 !important; padding: 0 6px !important; box-sizing: border-box; scroll-snap-align: start; text-align: center;
	border: 0 !important; background: none !important; box-shadow: none !important;
}
/* 卡片：圖片大、無愛心／購物車／特價標籤／款式小圖（目標圖輪播卡只有圖＋名稱＋價格） */
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-actions,
html body.fz65ze .fz65ze-car ul.products li.product .fzc-wl-btn,
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-promo,
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-styles,
html body.fz65ze .fz65ze-car ul.products li.product .ast-shop-product-out-of-stock,
html body.fz65ze .fz65ze-car ul.products li.product span.onsale { display: none !important; }
html body.fz65ze .fz65ze-car ul.products li.product .astra-shop-thumbnail-wrap { position: relative; margin: 0; }
html body.fz65ze .fz65ze-car ul.products li.product .astra-shop-thumbnail-wrap img,
html body.fz65ze .fz65ze-car ul.products li.product a.woocommerce-LoopProduct-link img { display: block; width: 100%; height: auto; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: cover; }
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-pre-loop { margin: 6px 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; line-height: 1.4; text-align: center; }
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-pre-loop .fuzzy-c-pre-badge { font-size: 10px; padding: 0 6px; }
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-pre-loop small { font-size: 10px; }
html body.fz65ze .fz65ze-car ul.products li.product .ast-loop-product__link { display: block; line-height: 0; }
/* 名稱：置中、最多 2 行、超出以 … 收尾 */
html body.fz65ze .fz65ze-car ul.products li.product .astra-shop-summary-wrap { text-align: center; padding: 0; }
html body.fz65ze .fz65ze-car ul.products li.product .woocommerce-loop-product__title,
html body.fz65ze .fz65ze-car ul.products li.product .ast-loop-product__link h2 {
	text-align: center !important; font-size: 13px; font-weight: 400; line-height: 1.45; margin: 10px 0 6px; max-height: 3em; padding: 0 2px; color: #333;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis;
	word-break: normal; overflow-wrap: anywhere;
}
/* 價格：全部置中，一個元素一行——特價（粗體）→ 原價（刪除線）→ 折扣徽章（黑底白字）自成一行 */
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price,
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price--sale {
	display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
	text-align: center; gap: 3px 0; font-size: 14px;
}
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price__sale,
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price__sale .amount,
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price__sale bdi { font-size: 15px; font-weight: 700; color: #333 !important; order: 1 !important; }
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price--sale .fuzzy-c-loop-price__regular {
	order: 2 !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 4px 0; margin: 0; font-size: 12px;
}
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price__was,
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price__was .amount { margin: 0; color: #888 !important; font-size: 12px; font-weight: 400; text-decoration: line-through; }
html body.fz65ze .fz65ze-car ul.products li.product .fuzzy-c-loop-price__fold {
	order: 3; align-self: center; display: inline-block; margin: 0; padding: 1px 7px; border-radius: 3px;
	background: #000 !important; color: #fff !important; font-size: 11px !important; font-weight: 700; line-height: 1.6;
}
/* 售完：灰色小徽章（第 18 章），圖片下方靠右，不遮圖 */
html body.fz65ze .fz65ze-car ul.products li.product .fz65-tag--status[data-state="soldout"] { position: absolute; right: 0; bottom: 0; }
html body.fz65ze .fz65ze-car ul.products li.product.outofstock .astra-shop-thumbnail-wrap img { opacity: .55; }

/* 圓點：每張商品一點，作用 #404040／未作用 #E5E5E5 */
html body.fz65ze .fz65ze-car > .fz65-dots { margin-top: 22px; gap: 8px; flex-wrap: wrap; padding: 0 8px; }
html body.fz65ze .fz65ze-car > .fz65-dots .fz65-dot { width: 7px; height: 7px; background: #E5E5E5 !important; }
html body.fz65ze .fz65ze-car > .fz65-dots .fz65-dot.is-active { background: #404040 !important; }

/* 左右箭頭：只有桌機（手機直接滑動） */
html body.fz65ze .fz65ze-nav { display: none; }
@media (min-width: 769px) {
	html body.fz65ze .fz65ze-nav {
		display: flex; align-items: center; justify-content: center; position: absolute; top: 30%; z-index: 3; width: 34px; height: 34px; padding: 0;
		border: 1px solid #E5E5E5 !important; border-radius: 4px !important; background: #fff !important; color: #111 !important; font-size: 20px; line-height: 1; cursor: pointer;
	}
	html body.fz65ze .fz65ze-nav--prev { left: -12px; }
	html body.fz65ze .fz65ze-nav--next { right: -12px; }
	html body.fz65ze .fz65ze-nav:disabled { opacity: .35; cursor: default; }
	html body.fz65ze .fz65ze-car ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
}
