/* Google Fonts */
body {
	font-family: "Cormorant Garamond", "Urbanist", sans-serif;
}

/* 商品價格區：定價、會員價、折數與金額統一使用英文數字襯線字型 */
.product-price-typography,
.product-price-typography span {
	font-family: "Cormorant Garamond", "Urbanist", sans-serif !important;
	font-variant-numeric: lining-nums;
}

/* 商品內容使用等高數字，避免舊式數字與中文混排時高低不一 */
#product-right-panel {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}

/* 結帳購物車：金額、數量、運費與總計使用等高無襯線數字 */
#cart-page {
	font-family: "Urbanist", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* 會員中心、訂單列表與訂單明細統一使用等高無襯線數字 */
#member-page {
	font-family: "Urbanist", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* FAQ 內的電話、日期、金額與編號使用等高無襯線數字 */
#faq-page {
	font-family: "Urbanist", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* 手機版主價格保留右側安全距離，避免金額貼近螢幕邊緣 */
@media (max-width: 767px) {
	#product-right-panel .product-main-price-row {
		padding-right: 0.5rem;
	}
}

/* Tailwind Typography 預設會將 prose 限制為 65ch，商品說明應完整使用右欄寬度 */
#product-right-panel .tab-content .prose {
	width: 100%;
	max-width: none !important;
}

/* 英文商品頁：襯線字留給標題，長文改用易讀的無襯線字 */
html[lang="en"] #product-right-panel .tab-content .prose {
	font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
}

html[lang="en"] #product-right-panel .tab-content .prose h1,
html[lang="en"] #product-right-panel .tab-content .prose h2,
html[lang="en"] #product-right-panel .tab-content .prose h3 {
	font-family: "Cormorant Garamond", serif;
	line-height: 1.2;
}

html[lang="en"] #product-right-panel .tab-content .prose h2 {
	font-size: 1.5rem;
}

html[lang="en"] #product-right-panel .tab-content .prose h3 {
	font-size: 1.25rem;
}

html[lang="en"] #product-right-panel .product-purchase-button {
	letter-spacing: 0.12em;
}

/* 桌機版主選單：導覽字型與商品襯線字分離，維持清晰緊湊 */
#main-header {
	font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: lining-nums;
}

/* 推薦商品卡片：文字層級統一，只讓價格保留襯線數字 */
.product-recommendations {
	font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: lining-nums;
}

.product-recommendations .recommendation-product-name {
	font-weight: 600;
	line-height: 1.4;
}

.product-recommendations .recommendation-product-en-name {
	color: #475569;
	font-weight: 500;
	line-height: 1.4;
}

.product-recommendations .recommendation-product-summary {
	color: #475569;
	font-weight: 400;
	line-height: 1.55;
}

.product-recommendations .text-xl.text-black.font-bold {
	font-family: "Cormorant Garamond", serif;
	font-variant-numeric: lining-nums;
}

/* 首頁三欄商品：中文、摘要與操作元件統一使用清晰的無襯線字。 */
.home-product-showcase {
	font-family: "Urbanist", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: lining-nums;
}

.home-product-showcase .home-category-tabs {
	letter-spacing: 0.02em;
}

.home-product-showcase .home-product-card {
	margin: 0 0.25rem;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #fff;
}

.home-product-showcase .home-product-image {
	padding-top: 0.75rem;
}

.home-product-showcase .home-product-copy {
	padding: 0.75rem 1rem 0.5rem;
}

.home-product-showcase .home-product-name {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.45;
}

.home-product-showcase .home-product-summary {
	color: #475569;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.55;
}

.home-product-showcase .home-product-price {
	font-size: 1.0625rem;
	font-weight: 700;
}

.home-product-showcase .product-purchase-button {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

@media (max-width: 767px) {
	.home-product-showcase .home-product-card {
		margin: 0 0.125rem;
	}

	.home-product-showcase .home-product-copy {
		padding-right: 0.75rem;
		padding-left: 0.75rem;
	}
}

.product-recommendations .product-purchase-button {
	font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.12em;
}

@media (min-width: 1024px) {
	#main-header .dropdown-trigger {
		white-space: nowrap;
		border-radius: 0.5rem;
	}

	#main-header .dropdown-content-class {
		border: 1px solid rgba(15, 23, 42, 0.08);
		border-radius: 0.875rem;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
		overflow: hidden;
	}

	#main-header .dropdown-content-class a {
		border-radius: 0.5rem;
		line-height: 1.35;
	}

	#main-header .promo-dropdown-content {
		position: fixed;
		top: 4.25rem;
		left: 50%;
		width: min(56rem, calc(100vw - 2rem));
		min-width: 0;
		padding: 0.75rem;
		grid-template-rows: repeat(6, auto);
		grid-template-columns: repeat(3, minmax(0, 1fr));
		transform: translateX(-50%);
	}

	#main-header .promo-dropdown-content .promo-menu-link {
		padding: 0.65rem 0.75rem;
		font-size: 0.925rem;
		font-weight: 600;
	}
}

/* Markdown 鬆散清單會在 li 內產生 p，避免 prose 段落間距重複疊加 */
#product-right-panel .tab-content .prose li > p {
	margin-top: 0;
	margin-bottom: 0;
}

#product-right-panel .tab-content .prose li > p:first-child {
	display: inline;
}

#product-right-panel .tab-content .prose hr {
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
}

#product-right-panel .tab-content .prose h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

#product-right-panel .tab-content .prose h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

#product-right-panel .tab-content .prose > :first-child {
	margin-top: 0;
}
@keyframes fadeInRight {
	0% {
		opacity: 0;
		transform: translateX(-20px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}
.fade-in-right {
	animation: fadeInRight 0.5s;
}

/* 商品詳情：桌機版說明文字維持緊湊、易掃讀的排版 */
@media (min-width: 1024px) {
	#product-right-panel .tab-content > p.text-2xl {
		font-size: 1.375rem;
		line-height: 1.45;
	}

	#product-right-panel .tab-content .prose {
		font-size: 1rem;
		line-height: 1.7;
	}

	#product-right-panel .tab-content .prose > ul {
		margin-top: 0.75rem;
	}

	#product-right-panel .tab-content .prose li {
		margin-top: 0.4375rem;
		margin-bottom: 0.4375rem;
	}

	#product-right-panel .tab-content .prose li > ul {
		margin-top: 0.375rem;
		margin-bottom: 0.375rem;
	}
}
