/* =========================================================
   epd-shop 商城主題樣式（Modown 子主題）
   設計語言：紙感米白 + 墨黑 + 暖橙，書籍陳列感
   ========================================================= */

:root {
	--epd-ink: #16181d;
	--epd-ink-soft: #3f444d;
	--epd-muted: #6b7280;
	--epd-line: #e8e2d8;
	--epd-paper: #fbf8f3;
	--epd-cream: #f4ede3;
	--epd-accent: #ff5c35;
	--epd-accent-dark: #e0451f;
	--epd-accent-soft: #fff1eb;
	--epd-green: #0f6b5c;
	--epd-radius: 18px;
	--epd-shadow: 0 18px 45px rgba(22, 24, 29, 0.08);
	--epd-shadow-sm: 0 6px 18px rgba(22, 24, 29, 0.06);
	--epd-serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", Georgia, "Times New Roman", serif;
	--epd-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 頂部商城入口 ---------- */
.nav-shop {
	display: flex;
	align-items: center;
	gap: 6px;
	float: left;
	margin-left: 18px;
	list-style: none;
	padding: 0;
}

.nav-shop li {
	list-style: none;
}

.nav-shop a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13px;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	transition: background 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}

.nav-shop a:hover {
	background: var(--epd-accent);
	color: #fff;
	transform: translateY(-1px);
}

.nav-shop .epd-nav-cart {
	background: var(--epd-accent);
}

.nav-shop .epd-nav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: var(--epd-accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* ---------- 首頁骨架 ---------- */
.epd-home {
	background: var(--epd-paper);
	color: var(--epd-ink);
	font-family: var(--epd-sans);
	overflow: hidden;
}

.epd-home-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.epd-home h1,
.epd-home h2,
.epd-home h3 {
	font-family: var(--epd-serif);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--epd-ink);
	margin: 0;
}

.epd-home h1 {
	font-size: clamp(34px, 4.4vw, 60px);
	line-height: 1.15;
}

.epd-home h2 {
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.25;
}

.epd-home h3 {
	font-size: 19px;
	line-height: 1.4;
}

.epd-home p {
	color: var(--epd-ink-soft);
	line-height: 1.8;
}

.epd-home-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--epd-accent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 12px 26px rgba(255, 92, 53, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.epd-home-btn:hover {
	background: var(--epd-accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(255, 92, 53, 0.34);
	color: #fff;
}

.epd-home-btn i {
	font-style: normal;
	font-size: 16px;
}

.epd-home-btn.is-ghost {
	background: transparent;
	color: var(--epd-ink) !important;
	border: 1px solid rgba(22, 24, 29, 0.16);
	box-shadow: none;
}

.epd-home-btn.is-ghost:hover {
	background: #fff;
	color: var(--epd-ink);
	border-color: rgba(22, 24, 29, 0.28);
}

.epd-sec-kicker {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--epd-accent);
}

/* ---------- 首屏 ---------- */
.epd-hero {
	position: relative;
	padding: 66px 0 54px;
	background:
		radial-gradient(1200px 600px at 82% 10%, rgba(255, 92, 53, 0.10), transparent 60%),
		radial-gradient(900px 500px at 6% 90%, rgba(15, 107, 92, 0.08), transparent 60%),
		linear-gradient(180deg, #fdfaf5 0%, var(--epd-paper) 100%);
	overflow: hidden;
}

.epd-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 1px dashed rgba(22, 24, 29, 0.10);
	pointer-events: none;
}

.epd-hero-grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 54px;
	align-items: center;
	position: relative;
	z-index: 2;
}

.epd-hero-copy .epd-hero-kicker {
	display: inline-block;
	margin-bottom: 18px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--epd-line);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--epd-muted);
}

.epd-hero-copy h1 {
	margin-bottom: 18px;
}

.epd-hero-copy p {
	max-width: 480px;
	font-size: 15.5px;
	margin: 0 0 28px;
}

.epd-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.epd-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.epd-hero-stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.epd-hero-stats strong {
	font-family: var(--epd-serif);
	font-size: 26px;
	line-height: 1.1;
	color: var(--epd-ink);
}

.epd-hero-stats span {
	font-size: 12px;
	color: var(--epd-muted);
	letter-spacing: 0.04em;
}

/* 首屏右側：純 CSS 書堆 */
.epd-hero-art {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.epd-hero-photo {
	position: relative;
	width: 100%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--epd-shadow);
	background: #fff;
}

.epd-hero-photo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.epd-hero-books {
	position: relative;
	width: 100%;
	height: 440px;
}

.epd-book {
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 26px 24px;
	border-radius: 6px 14px 14px 6px;
	box-shadow: 0 22px 45px rgba(22, 24, 29, 0.16);
	color: #fff;
	transition: transform 0.35s ease;
}

.epd-book span {
	font-size: 11px;
	letter-spacing: 0.2em;
	opacity: 0.8;
}

.epd-book b {
	font-family: var(--epd-serif);
	font-size: 42px;
	line-height: 1.1;
	letter-spacing: 0.02em;
}

.epd-book i {
	font-style: normal;
	font-size: 12px;
	opacity: 0.75;
	letter-spacing: 0.1em;
}

.epd-book.b1 {
	width: 210px;
	height: 300px;
	left: 4%;
	top: 6%;
	background: linear-gradient(160deg, #1d6f5f, #0f5348);
	transform: rotate(-9deg);
	z-index: 3;
}

.epd-book.b2 {
	width: 200px;
	height: 286px;
	right: 6%;
	top: 0;
	background: linear-gradient(160deg, #ff7a52, #e2451f);
	transform: rotate(7deg);
	z-index: 2;
}

.epd-book.b3 {
	width: 218px;
	height: 262px;
	left: 26%;
	bottom: 2%;
	background: linear-gradient(160deg, #2b2f38, #15171c);
	transform: rotate(-2deg);
	z-index: 4;
}

.epd-book:hover {
	transform: translateY(-8px) rotate(0deg);
}

.epd-hero-badge {
	position: absolute;
	right: 2%;
	bottom: 10%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--epd-shadow-sm);
	color: var(--epd-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	transform: rotate(8deg);
}

.epd-hero-badge small {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	font-weight: 500;
	color: var(--epd-muted);
	letter-spacing: 0.12em;
}

/* ---------- 服務承諾 ---------- */
.epd-usp {
	padding: 6px 0 30px;
}

.epd-usp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	background: #fff;
	border: 1px solid var(--epd-line);
	border-radius: var(--epd-radius);
	box-shadow: var(--epd-shadow-sm);
	overflow: hidden;
}

.epd-usp-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 20px;
	border-right: 1px solid var(--epd-line);
}

.epd-usp-item:last-child {
	border-right: 0;
}

.epd-usp-item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	background: var(--epd-accent-soft);
	color: var(--epd-accent);
	font-style: normal;
	font-size: 18px;
}

.epd-usp-item strong {
	display: block;
	font-size: 14px;
	color: var(--epd-ink);
	line-height: 1.4;
}

.epd-usp-item span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--epd-muted);
	line-height: 1.5;
}

/* ---------- 區塊標題 ---------- */
.epd-section {
	padding: 46px 0;
}

.epd-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.epd-sec-head p {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--epd-muted);
}

.epd-sec-more {
	flex: 0 0 auto;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--epd-ink);
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(22, 24, 29, 0.3);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.epd-sec-more:hover {
	color: var(--epd-accent);
	border-color: var(--epd-accent);
}

/* ---------- 分類 ---------- */
.epd-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.epd-cat-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 24px 22px;
	border-radius: var(--epd-radius);
	background: #fff;
	border: 1px solid var(--epd-line);
	text-decoration: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.epd-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--epd-shadow-sm);
	border-color: rgba(255, 92, 53, 0.35);
}

.epd-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 14px;
	font-family: var(--epd-serif);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	background: var(--epd-ink);
}

.epd-cat-card.c1 .epd-cat-icon { background: #1d6f5f; }
.epd-cat-card.c2 .epd-cat-icon { background: var(--epd-accent); }
.epd-cat-card.c3 .epd-cat-icon { background: #3b4a6b; }

.epd-cat-card div {
	flex: 1 1 auto;
	min-width: 0;
}

.epd-cat-card h3 {
	font-size: 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.epd-cat-card p {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--epd-muted);
}

.epd-cat-card > i {
	font-style: normal;
	color: var(--epd-muted);
	font-size: 15px;
	transition: transform 0.2s ease, color 0.2s ease;
}

.epd-cat-card:hover > i {
	transform: translateX(4px);
	color: var(--epd-accent);
}

/* ---------- 商品展示（覆蓋插件卡片觀感） ---------- */
.epd-home-products .epd-shop {
	max-width: none;
	padding: 0;
	margin: 0;
}

.epd-home-products .epd-card {
	border: 1px solid var(--epd-line);
	border-radius: var(--epd-radius);
	background: #fff;
	box-shadow: none;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.epd-home-products .epd-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--epd-shadow-sm);
	border-color: rgba(255, 92, 53, 0.3);
}

.epd-home-products .epd-card-media {
	background: var(--epd-cream);
	aspect-ratio: 16 / 11;
	overflow: hidden;
}

.epd-home-products .epd-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.epd-home-products .epd-card:hover .epd-card-media img {
	transform: scale(1.04);
}

.epd-home-products .epd-card-title a,
.epd-home-products .epd-card-title {
	font-family: var(--epd-serif);
	font-size: 16px;
	line-height: 1.45;
	color: var(--epd-ink);
}

.epd-home-products .epd-card-body {
	padding: 16px 16px 18px;
}

.epd-home-products .epd-price {
	color: var(--epd-accent);
	font-weight: 700;
}

.epd-home-products .epd-card-excerpt {
	font-size: 12.5px;
	color: var(--epd-muted);
	line-height: 1.65;
}

/* ---------- 優惠 ---------- */
.epd-promo-box {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
	gap: 30px;
	padding: 44px;
	border-radius: 26px;
	background:
		radial-gradient(600px 300px at 90% 0%, rgba(255, 92, 53, 0.22), transparent 65%),
		linear-gradient(135deg, #1b1e24, #24272f);
	overflow: hidden;
}

.epd-promo-copy h2 {
	color: #fff;
}

.epd-promo-copy p {
	color: rgba(255, 255, 255, 0.72);
	max-width: 420px;
}

.epd-promo-copy .epd-sec-kicker {
	color: #ffb19a;
}

.epd-promo-copy .epd-home-btn {
	margin-top: 10px;
}

.epd-promo-art {
	display: flex;
	justify-content: flex-end;
}

.epd-promo-art img {
	max-width: 100%;
	border-radius: 18px;
	display: block;
}

.epd-promo-ticket {
	position: relative;
	width: 100%;
	max-width: 300px;
	padding: 30px 26px;
	border-radius: 16px;
	background: var(--epd-accent);
	color: #fff;
	box-shadow: 0 18px 40px rgba(255, 92, 53, 0.35);
	transform: rotate(-3deg);
}

.epd-promo-ticket::before,
.epd-promo-ticket::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1b1e24;
	transform: translateY(-50%);
}

.epd-promo-ticket::before { left: -11px; }
.epd-promo-ticket::after { right: -11px; }

.epd-promo-ticket span {
	font-size: 11px;
	letter-spacing: 0.22em;
	opacity: 0.9;
}

.epd-promo-ticket strong {
	display: block;
	margin: 8px 0 4px;
	font-family: var(--epd-serif);
	font-size: 34px;
	line-height: 1.2;
}

.epd-promo-ticket em {
	font-style: normal;
	font-size: 13px;
	opacity: 0.85;
}

/* ---------- 兩種形態 ---------- */
.epd-mode-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.epd-mode-card {
	padding: 34px 32px;
	border-radius: 24px;
	background: #fff;
	border: 1px solid var(--epd-line);
}

.epd-mode-card.is-dark {
	background: linear-gradient(160deg, #1d2026, #111318);
	border-color: transparent;
}

.epd-mode-card.is-dark h3,
.epd-mode-card.is-dark p,
.epd-mode-card.is-dark li {
	color: #fff;
}

.epd-mode-card.is-dark p,
.epd-mode-card.is-dark li {
	color: rgba(255, 255, 255, 0.72);
}

.epd-mode-tag {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--epd-accent);
	background: var(--epd-accent-soft);
}

.epd-mode-card.is-dark .epd-mode-tag {
	background: rgba(255, 92, 53, 0.18);
}

.epd-mode-card p {
	margin: 10px 0 18px;
	font-size: 14px;
}

.epd-mode-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.epd-mode-card li {
	position: relative;
	padding-left: 18px;
	font-size: 13px;
	color: var(--epd-ink-soft);
}

.epd-mode-card li::before {
	content: "→";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--epd-accent);
	font-size: 12px;
}

/* ---------- 結尾 ---------- */
.epd-home-cta {
	padding: 30px 0 70px;
}

.epd-cta-box {
	padding: 54px 40px;
	border-radius: 26px;
	text-align: center;
	background:
		radial-gradient(700px 300px at 50% 0%, rgba(255, 92, 53, 0.10), transparent 65%),
		#fff;
	border: 1px solid var(--epd-line);
}

.epd-cta-box p {
	margin: 12px 0 26px;
	font-size: 15px;
}

.epd-cta-box .epd-hero-actions {
	justify-content: center;
}

.epd-home-empty {
	padding: 30px;
	text-align: center;
	color: var(--epd-muted);
	background: #fff;
	border: 1px dashed var(--epd-line);
	border-radius: var(--epd-radius);
}

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
	.epd-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.epd-hero-art {
		min-height: 340px;
	}

	.epd-hero-books {
		height: 340px;
		max-width: 520px;
		margin: 0 auto;
	}

	.epd-usp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.epd-usp-item:nth-child(2) {
		border-right: 0;
	}

	.epd-usp-item:nth-child(1),
	.epd-usp-item:nth-child(2) {
		border-bottom: 1px solid var(--epd-line);
	}

	.epd-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.epd-promo-box {
		grid-template-columns: 1fr;
	}

	.epd-promo-art {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.epd-hero {
		padding: 42px 0 34px;
	}

	.epd-home-wrap {
		padding: 0 16px;
	}

	.epd-hero-copy .epd-hero-kicker {
		font-size: 10px;
		letter-spacing: 0.1em;
	}

	.epd-hero-copy p {
		font-size: 14.5px;
	}

	.epd-hero-stats {
		gap: 24px;
		margin-top: 28px;
	}

	.epd-hero-stats strong {
		font-size: 22px;
	}

	.epd-hero-books {
		height: 300px;
	}

	.epd-book.b1 { width: 150px; height: 214px; }
	.epd-book.b2 { width: 142px; height: 204px; }
	.epd-book.b3 { width: 156px; height: 188px; left: 28%; }
	.epd-book b { font-size: 30px; }
	.epd-hero-badge { width: 84px; height: 84px; font-size: 12px; }

	.epd-section {
		padding: 34px 0;
	}

	.epd-sec-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.epd-cat-grid,
	.epd-mode-grid {
		grid-template-columns: 1fr;
	}

	.epd-cat-card {
		padding: 18px 16px;
	}

	.epd-promo-box {
		padding: 28px 22px;
		border-radius: 18px;
	}

	.epd-cta-box {
		padding: 38px 22px;
	}

	.epd-home-btn {
		height: 48px;
		padding: 0 22px;
		font-size: 14px;
	}

	.epd-usp-item {
		padding: 16px 14px;
		gap: 10px;
	}

	.epd-usp-item i {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}
}

/* =========================================================
   商城頁面（商品 / 購物車 / 結帳）觀感統一
   ========================================================= */

.epd-shop-page .banner-page {
	padding: 34px 0 30px;
	background-size: cover;
}

.epd-shop-page .banner-page .archive-title {
	font-family: var(--epd-serif);
	font-size: 26px;
}

.epd-shop-page .epd-shop {
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--epd-sans);
	color: var(--epd-ink);
}

.epd-shop-page .epd-shop .epd-btn,
.epd-shop-page .epd-shop button.epd-btn {
	border-radius: 999px;
	background: var(--epd-accent);
	border-color: var(--epd-accent);
	box-shadow: 0 8px 18px rgba(255, 92, 53, 0.22);
}

.epd-shop-page .epd-shop .epd-btn:hover {
	background: var(--epd-accent-dark);
	border-color: var(--epd-accent-dark);
}

.epd-shop-page .epd-shop .epd-card {
	border: 1px solid var(--epd-line);
	border-radius: var(--epd-radius);
	background: #fff;
	box-shadow: none;
}

.epd-shop-page .epd-shop .epd-card-title {
	font-family: var(--epd-serif);
}

.epd-shop-page .epd-shop .epd-price {
	color: var(--epd-accent);
	font-weight: 700;
}

.epd-shop-page .epd-shop .epd-panel {
	border: 1px solid var(--epd-line);
	border-radius: var(--epd-radius);
	background: #fff;
	box-shadow: var(--epd-shadow-sm);
}

.epd-shop-page .epd-shop .epd-panel-title {
	font-family: var(--epd-serif);
	font-size: 18px;
}

.epd-shop-page .epd-shop .epd-product-panel {
	border-radius: 22px;
}

/* =========================================================
   第二版：實拍主圖與新增區塊
   ========================================================= */

/* 首屏實拍圖 */
.epd-hero-photo {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 26px 60px rgba(22, 24, 29, 0.14);
}

.epd-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.epd-hero-stamp {
	position: absolute;
	right: 22px;
	bottom: 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	color: var(--epd-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	box-shadow: 0 10px 24px rgba(22, 24, 29, 0.12);
}

.epd-hero-stamp small {
	display: block;
	margin-top: 3px;
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--epd-muted);
}

/* 分類卡改為圖片卡 */
.epd-cat-card {
	display: block;
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.epd-cat-card .epd-cat-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--epd-cream);
}

.epd-cat-card .epd-cat-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.epd-cat-card:hover .epd-cat-thumb img {
	transform: scale(1.05);
}

.epd-cat-count {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(22, 24, 29, 0.72);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.epd-cat-card .epd-cat-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px 18px;
}

.epd-cat-card .epd-cat-foot h3 {
	font-size: 17px;
	margin: 0;
}

.epd-cat-card .epd-cat-foot i {
	font-style: normal;
	color: var(--epd-muted);
	transition: transform 0.2s ease, color 0.2s ease;
}

.epd-cat-card:hover .epd-cat-foot i {
	transform: translateX(4px);
	color: var(--epd-accent);
}

/* 優惠圖 + 浮動票券 */
.epd-promo-art {
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}

.epd-promo-art img {
	width: 100%;
	max-width: 460px;
	border-radius: 20px;
	display: block;
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.epd-promo-tag {
	position: absolute;
	left: -18px;
	bottom: 26px;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--epd-accent);
	color: #fff;
	box-shadow: 0 16px 34px rgba(255, 92, 53, 0.38);
	transform: rotate(-3deg);
	line-height: 1.35;
}

.epd-promo-tag span {
	display: block;
	font-size: 10px;
	letter-spacing: 0.2em;
	opacity: 0.9;
}

.epd-promo-tag strong {
	display: block;
	margin: 3px 0 2px;
	font-family: var(--epd-serif);
	font-size: 22px;
}

.epd-promo-tag em {
	font-style: normal;
	font-size: 11.5px;
	opacity: 0.9;
}

/* 新書上架（緊湊四欄） */
.epd-arrivals {
	background: linear-gradient(180deg, rgba(244, 237, 227, 0) 0%, rgba(244, 237, 227, 0.55) 100%);
}

.epd-home-products.is-compact .epd-card-media {
	aspect-ratio: 4 / 3;
}

/* 讀者口碑 */
.epd-review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.epd-review-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 26px;
	border-radius: var(--epd-radius);
	background: #fff;
	border: 1px solid var(--epd-line);
	box-shadow: var(--epd-shadow-sm);
}

.epd-stars {
	color: var(--epd-accent);
	font-size: 15px;
	letter-spacing: 0.12em;
}

.epd-review-card p {
	margin: 0;
	font-family: var(--epd-serif);
	font-size: 15.5px;
	line-height: 1.85;
	color: var(--epd-ink);
	flex: 1 1 auto;
}

.epd-review-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--epd-line);
	font-size: 12px;
}

.epd-review-meta strong {
	color: var(--epd-ink);
	font-size: 13px;
}

.epd-review-meta span {
	color: var(--epd-muted);
}

/* 付款與配送 */
.epd-pay {
	background: #fff;
	border-top: 1px solid var(--epd-line);
	border-bottom: 1px solid var(--epd-line);
}

.epd-pay-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.epd-pay-card {
	padding: 26px 24px;
	border-radius: var(--epd-radius);
	background: var(--epd-paper);
	border: 1px solid var(--epd-line);
}

.epd-pay-card.is-accent {
	background: linear-gradient(160deg, #fff5f0, #ffe9e0);
	border-color: rgba(255, 92, 53, 0.3);
}

.epd-pay-region {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--epd-ink);
	color: #fff;
	font-size: 10.5px;
	letter-spacing: 0.12em;
}

.epd-pay-card h3 {
	font-size: 22px;
}

.epd-pay-card p {
	margin: 8px 0 16px;
	font-size: 13px;
}

.epd-pay-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.epd-pay-chips li {
	padding: 6px 12px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--epd-line);
	font-size: 12px;
	color: var(--epd-ink-soft);
}

.epd-pay-card.is-accent .epd-pay-chips li {
	border-color: rgba(255, 92, 53, 0.24);
}

.epd-pay-note {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-top: 18px;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--epd-accent-soft);
}

.epd-pay-note strong {
	color: var(--epd-accent-dark);
	font-size: 14px;
}

.epd-pay-note span {
	font-size: 13px;
	color: var(--epd-ink-soft);
}

/* FAQ */
.epd-faq-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 44px;
	align-items: start;
}

.epd-faq-intro p {
	font-size: 14px;
}

.epd-faq-list {
	display: grid;
	gap: 10px;
}

.epd-faq-list details {
	background: #fff;
	border: 1px solid var(--epd-line);
	border-radius: 14px;
	overflow: hidden;
}

.epd-faq-list details[open] {
	border-color: rgba(255, 92, 53, 0.32);
	box-shadow: var(--epd-shadow-sm);
}

.epd-faq-list summary {
	position: relative;
	padding: 18px 44px 18px 20px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--epd-ink);
	list-style: none;
}

.epd-faq-list summary::-webkit-details-marker {
	display: none;
}

.epd-faq-list summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--epd-accent);
	font-size: 18px;
	font-weight: 600;
}

.epd-faq-list details[open] summary::after {
	content: "−";
}

.epd-faq-body {
	padding: 0 20px 18px;
	font-size: 13.5px;
	line-height: 1.85;
	color: var(--epd-ink-soft);
}

/* 新增區塊響應式 */
@media (max-width: 1024px) {
	.epd-review-grid {
		grid-template-columns: 1fr;
	}

	.epd-pay-grid {
		grid-template-columns: 1fr;
	}

	.epd-faq-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.epd-promo-art img {
		max-width: 100%;
	}

	.epd-promo-tag {
		left: 14px;
		bottom: 14px;
	}
}

@media (max-width: 640px) {
	.epd-hero-photo {
		border-radius: 18px;
	}

	.epd-hero-stamp {
		width: 82px;
		height: 82px;
		right: 14px;
		bottom: 14px;
		font-size: 11px;
	}

	.epd-review-card {
		padding: 22px 20px;
	}

	.epd-pay-card {
		padding: 22px 18px;
	}

	.epd-cat-card .epd-cat-foot {
		padding: 13px 15px 15px;
	}
}

/* =========================================================
   新書上架：縮小單本高度，一屏看到更多書
   ========================================================= */
.epd-home-products.is-compact .epd-card-media {
	aspect-ratio: auto;
	height: 150px;
}

.epd-home-products.is-compact .epd-card-body {
	padding: 12px 14px 14px;
}

.epd-home-products.is-compact .epd-card-title,
.epd-home-products.is-compact .epd-card-title a {
	font-size: 14.5px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.epd-home-products.is-compact .epd-card-excerpt {
	display: none;
}

.epd-home-products.is-compact .epd-card-actions,
.epd-home-products.is-compact .epd-card-buy {
	margin-top: 8px;
}

.epd-home-products.is-compact .epd-price {
	font-size: 15px;
}

@media (max-width: 640px) {
	.epd-home-products.is-compact .epd-card-media {
		height: 128px;
	}
}

/* =========================================================
   隱藏舊主題與商城無關的入口
   ========================================================= */
.has-epd-shop .nav-center {
	display: none !important;
}

.has-epd-shop .search-form-tab a.s-faq,
.has-epd-shop .search-form-tab a.s-lw,
.has-epd-shop .search-form-tab a.s-bd,
.has-epd-shop .search-form-tab a.s-360,
.has-epd-shop .search-form-tab a.s-by,
.has-epd-shop .search-form-tab a.s-sg {
	display: none !important;
}

/* =========================================================
   使用者中心（商城市集風）
   ========================================================= */
.epd-user-dash {
	width: 100%;
	max-width: 1200px;
	margin: 26px auto 0;
	padding: 0 24px;
	box-sizing: border-box;
	font-family: var(--epd-sans);
}

.epd-user-dash-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 28px;
	border-radius: 22px;
	background:
		radial-gradient(600px 240px at 88% 0%, rgba(255, 92, 53, 0.18), transparent 65%),
		linear-gradient(135deg, #1b1e24, #262a33);
	color: #fff;
}

.epd-user-dash-head h2 {
	margin: 0;
	font-family: var(--epd-serif);
	font-size: 26px;
	color: #fff;
}

.epd-user-dash-head p {
	margin: 6px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.epd-user-dash-head .epd-sec-kicker {
	color: #ffb19a;
}

.epd-user-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 14px;
}

.epd-user-stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--epd-line);
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.epd-user-stat:hover {
	transform: translateY(-3px);
	box-shadow: var(--epd-shadow-sm);
}

.epd-user-stat span {
	font-size: 13px;
	color: var(--epd-muted);
}

.epd-user-stat b {
	font-family: var(--epd-serif);
	font-size: 24px;
	color: var(--epd-ink);
	line-height: 1;
}

.epd-user-recent {
	margin-top: 14px;
	padding: 20px 22px 8px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--epd-line);
}

.epd-user-recent-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.epd-user-recent-head h3 {
	margin: 0;
	font-family: var(--epd-serif);
	font-size: 17px;
}

.epd-user-recent-head a {
	font-size: 12.5px;
	color: var(--epd-accent);
	text-decoration: none;
}

.epd-order-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.epd-order-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	border-top: 1px solid var(--epd-line);
}

.epd-order-main {
	flex: 1 1 auto;
	min-width: 0;
}

.epd-order-main strong {
	display: block;
	font-size: 13.5px;
	color: var(--epd-ink);
	letter-spacing: 0.02em;
}

.epd-order-main span {
	font-size: 11.5px;
	color: var(--epd-muted);
}

.epd-order-amount {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--epd-ink);
}

.epd-order-status {
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	background: #f2f4f7;
	color: var(--epd-muted);
}

.epd-order-status.st-pending { background: #fff4e5; color: #b45309; }
.epd-order-status.st-paid { background: #e7f5ef; color: #0f6b5c; }
.epd-order-status.st-shipped { background: #e8f1fe; color: #1d4ed8; }
.epd-order-status.st-completed { background: #f0fdf4; color: #15803d; }

.epd-user-empty {
	padding: 18px 0 24px;
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: var(--epd-muted);
}

/* 側欄與內容卡 */
.has-epd-shop .container-user {
	align-items: flex-start;
	gap: 22px;
}

.has-epd-shop .userside {
	background: #fff;
	border: 1px solid var(--epd-line);
	border-radius: 18px;
	padding: 18px 16px;
	box-shadow: var(--epd-shadow-sm);
	overflow: hidden;
}

.has-epd-shop .usertitle {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--epd-line);
}

.has-epd-shop .userside h2 {
	font-family: var(--epd-serif);
	font-size: 18px;
}

.has-epd-shop .usermenu {
	display: grid;
	gap: 4px;
	margin-top: 12px;
}

.has-epd-shop .usermenu li a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	color: var(--epd-ink-soft);
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.has-epd-shop .usermenu li a:hover {
	background: var(--epd-paper);
	color: var(--epd-ink);
}

.has-epd-shop .usermenu li.active a {
	background: var(--epd-accent-soft);
	color: var(--epd-accent-dark);
	font-weight: 600;
}

.has-epd-shop .usermenu-epdorders a {
	background: var(--epd-accent);
	color: #fff !important;
	margin: 6px 0;
}

.has-epd-shop .usermenu-epdorders a:hover {
	background: var(--epd-accent-dark);
	color: #fff;
}

/* 隱藏與商城無關的會員分頁 */
.has-epd-shop .usermenu-question,
.has-epd-shop .usermenu-answer,
.has-epd-shop .usermenu-faqs,
.has-epd-shop .usermenu-post,
.has-epd-shop .usermenu-comments {
	display: none !important;
}

.has-epd-shop .user-main,
.has-epd-shop .user-main .box,
.has-epd-shop .user-main .panel {
	border-radius: 18px;
}

.has-epd-shop .user-main input[type="text"],
.has-epd-shop .user-main input[type="email"],
.has-epd-shop .user-main input[type="password"],
.has-epd-shop .user-main input[type="number"],
.has-epd-shop .user-main select,
.has-epd-shop .user-main textarea {
	border-radius: 10px;
	border-color: var(--epd-line);
}

.has-epd-shop .user-main .btn,
.has-epd-shop .user-main button[type="submit"] {
	border-radius: 999px;
	background: var(--epd-accent);
	border-color: var(--epd-accent);
	color: #fff;
}

@media (max-width: 1024px) {
	.epd-user-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.epd-user-dash {
		padding: 0 16px;
		margin-top: 16px;
	}

	.epd-user-dash-head {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px 20px;
	}

	.epd-user-stat {
		padding: 14px 16px;
	}

	.epd-order-list li {
		flex-wrap: wrap;
		gap: 6px 10px;
	}

	.epd-order-amount {
		font-size: 13px;
	}
}

.epd-home-products .epd-card-price {
	color: var(--epd-accent);
	font-weight: 700;
}

.epd-home-products .epd-price {
	color: var(--epd-accent);
}

.epd-home-products .epd-price-regular {
	color: var(--epd-muted);
	font-weight: 400;
	font-size: 12px;
}

.epd-home-products .epd-price-alt {
	color: var(--epd-muted);
	font-size: 11px;
}

.epd-home-products.is-compact .epd-card-actions {
	display: flex;
	gap: 6px;
}

.epd-home-products.is-compact .epd-card-actions .epd-btn {
	flex: 1 1 0;
	justify-content: center;
	padding: 7px 8px;
	font-size: 11.5px;
	line-height: 1.2;
	white-space: nowrap;
}

.epd-home-products.is-compact .epd-stock,
.epd-home-products.is-compact .epd-price-alt {
	display: none;
}

.epd-home-products.is-compact .epd-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* =========================================================
   新書上架：六欄小卡，一屏 12 本
   ========================================================= */
.epd-home-products.is-compact .epd-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	gap: 14px;
}

.epd-home-products.is-compact .epd-card-media {
	aspect-ratio: auto;
	height: 132px;
	background: var(--epd-cream);
}

.epd-home-products.is-compact .epd-card-media img {
	object-fit: contain;
}

.epd-home-products.is-compact .epd-card-body {
	padding: 10px 12px 12px;
}

.epd-home-products.is-compact .epd-card-title,
.epd-home-products.is-compact .epd-card-title a {
	font-size: 13px;
	line-height: 1.35;
}

.epd-home-products.is-compact .epd-card-actions .epd-btn {
	padding: 6px 4px;
	font-size: 11px;
}

@media (max-width: 1024px) {
	.epd-home-products.is-compact .epd-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.epd-home-products.is-compact .epd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.epd-home-products.is-compact .epd-card-media {
		height: 118px;
	}
}

/* =========================================================
   隱藏 VIP 與舊服務入口
   ========================================================= */
.has-epd-shop .nav-vip,
.has-epd-shop .user-vip,
.has-epd-shop .nav-login .vip,
.has-epd-shop .nav-login.yes span.vip {
	display: none !important;
}

.has-epd-shop .rollbar li.qq-li,
.has-epd-shop .sidebar .tuikuan,
.has-epd-shop .footer-fixed-nav a[href*="vip"] {
	display: none !important;
}

.has-epd-shop .footer-fixed-nav {
	grid-template-columns: repeat(3, 1fr);
}

/* 搜尋結果舊提示 */
.has-epd-shop .search-tips {
	display: none !important;
}

/* =========================================================
   頂部導覽（商場版）
   ========================================================= */
.header {
	background: rgba(251, 248, 243, 0.94) !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--epd-line);
	box-shadow: none;
}

.header.scrolled {
	box-shadow: 0 8px 30px rgba(22, 24, 29, 0.08);
}

.header .logo img {
	max-height: 40px;
	width: auto;
}

.header .nav-main {
	font-size: 15px;
	margin-left: 22px;
}

.header .nav-main a {
	color: var(--epd-ink);
	letter-spacing: 0.01em;
}

.header .nav-main > li > a {
	padding-left: 13px;
	padding-right: 13px;
}

.header .nav-main > li.current-menu-item > a {
	color: var(--epd-accent) !important;
}

.header .nav-main > li.current-menu-item > a:after {
	background: var(--epd-accent);
	height: 2px;
}

/* 商城膠囊入口：白底描邊，購物車橙色 */
.nav-shop {
	display: flex;
	align-items: center;
	gap: 8px;
	float: left;
	margin: 16px 0 0 6px;
	padding: 0;
	list-style: none;
}

.nav-shop li {
	list-style: none;
}

.nav-shop a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 13px;
	border-radius: 999px;
	border: 1px solid var(--epd-line);
	background: #fff;
	color: var(--epd-ink-soft) !important;
	font-size: 12.5px;
	line-height: 1;
	text-decoration: none !important;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 6px rgba(22, 24, 29, 0.04);
}

.nav-shop a:hover {
	border-color: var(--epd-accent);
	color: var(--epd-accent) !important;
	background: #fff;
	transform: translateY(-1px);
}

.nav-shop .epd-nav-cart {
	background: var(--epd-accent);
	border-color: var(--epd-accent);
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(255, 92, 53, 0.26);
}

.nav-shop .epd-nav-cart:hover {
	background: var(--epd-accent-dark);
	border-color: var(--epd-accent-dark);
	color: #fff !important;
}

.nav-shop .epd-nav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: var(--epd-accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.nav-shop .dripicons {
	font-size: 14px;
	opacity: 0.85;
}

.header .nav-right .icon {
	color: var(--epd-ink-soft);
	transition: color 0.2s ease;
}

.header .nav-right a:hover .icon {
	color: var(--epd-accent);
}

.header .nav-right .nav-search a,
.header .nav-right .nav-login a {
	border-radius: 10px;
}

.header .nav-right .nav-search a:hover,
.header .nav-right .nav-login a:hover {
	background: var(--epd-accent-soft);
}

.header .nav-right .nav-login .avatar {
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--epd-line);
}

.header .nav-button a:hover {
	background: var(--epd-accent-soft);
	border-radius: 10px;
}

@media (max-width: 1100px) {
	.nav-shop {
		margin-left: 0;
	}

	.nav-shop a {
		padding: 0 10px;
		font-size: 12px;
	}
}

@media (max-width: 900px) {
	.nav-shop {
		display: none;
	}
}

/* =========================================================
   頁腳信任條：替換失效圖片，改用圖示
   ========================================================= */
.k_bottomContentBox {
	display: block !important;
	background: linear-gradient(135deg, #16181d, #24272f);
	border-top: 3px solid var(--epd-accent);
}

.k_bottomContent {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 24px;
	box-sizing: border-box;
}

.k_bottomContentItem {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 22px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.k_bottomContentItem:last-child {
	border-right: 0;
}

.k_bciImg {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	background: rgba(255, 92, 53, 0.14);
	color: #ff9b7d;
	font-size: 20px;
	overflow: hidden;
}

.k_bciImg img {
	display: none !important;
}

.k_bciImg::after {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--epd-sans);
	font-size: 19px;
	line-height: 1;
}

.k_bottomContentItem:nth-child(1) .k_bciImg::after { content: "◈"; }
.k_bottomContentItem:nth-child(2) .k_bciImg::after { content: "↺"; }
.k_bottomContentItem:nth-child(3) .k_bciImg::after { content: "☎"; }
.k_bottomContentItem:nth-child(4) .k_bciImg::after { content: "⚡"; }

.k_bciText .k_bcitTitle {
	color: #fff;
	font-family: var(--epd-serif);
	font-size: 15px;
	line-height: 1.4;
	margin-bottom: 4px;
}

.k_bciText .k_bcitContent {
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.k_bottomContent {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 0;
	}

	.k_bottomContentItem {
		border-right: 0;
		padding: 4px 10px;
	}
}

@media (max-width: 560px) {
	.k_bottomContent {
		grid-template-columns: 1fr;
	}

	.k_bciImg {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}
}

/* =========================================================
   本週精選：控制圖片高度，桌面四欄、手機兩欄
   ========================================================= */
.epd-featured:not(.epd-arrivals) .epd-home-products .epd-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-media {
	aspect-ratio: auto;
	height: 190px;
	background: var(--epd-cream);
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-media img {
	object-fit: cover;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-body {
	padding: 14px 15px 16px;
	gap: 8px;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-title {
	font-size: 15px;
	line-height: 1.4;
	min-height: 42px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-excerpt {
	display: none;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-price {
	margin-top: 2px;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-price .epd-price {
	font-size: 18px;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-actions {
	margin-top: auto;
}

.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-actions .epd-btn {
	padding: 8px 6px;
	font-size: 12px;
	border-radius: 9px;
}

@media (max-width: 1024px) {
	.epd-featured:not(.epd-arrivals) .epd-home-products .epd-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.epd-home-products .epd-grid,
	.epd-featured:not(.epd-arrivals) .epd-home-products .epd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-media {
		height: 140px;
	}

	.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-title {
		font-size: 13.5px;
		min-height: 38px;
	}

	.epd-featured:not(.epd-arrivals) .epd-home-products .epd-card-price .epd-price {
		font-size: 16px;
	}
}

/* 商品卡價格列微調：避免 0 與原價擠在一起 */
.epd-home-products .epd-card-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.epd-home-products .epd-price-regular {
	order: 2;
}

/* =========================================================
   本週精選 / 新書上架：書架式橫列（取代大卡片）
   ========================================================= */
.epd-home-products.is-list .epd-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.epd-home-products.is-list.is-dense .epd-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.epd-home-products.is-list .epd-card {
	flex-direction: row;
	align-items: stretch;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.epd-home-products.is-list .epd-card-media {
	position: relative;
	flex: 0 0 92px;
	width: 92px;
	height: 122px;
	aspect-ratio: auto;
	background: var(--epd-cream);
	overflow: hidden;
}

.epd-home-products.is-list .epd-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.epd-home-products.is-list .epd-card:hover .epd-card-media img {
	transform: scale(1.05);
}

.epd-home-products.is-list .epd-card-body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 11px 13px 11px 12px;
	min-width: 0;
}

.epd-home-products.is-list .epd-card-title,
.epd-home-products.is-list .epd-card-title a {
	font-family: var(--epd-serif);
	font-size: 14px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.epd-home-products.is-list .epd-card-excerpt {
	display: none;
}

.epd-home-products.is-list .epd-card-price {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-top: auto;
}

.epd-home-products.is-list .epd-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--epd-accent);
}

.epd-home-products.is-list .epd-price-alt,
.epd-home-products.is-list .epd-stock,
.epd-home-products.is-list .epd-price-regular {
	display: none;
}

.epd-home-products.is-list .epd-card-actions {
	display: flex;
	gap: 6px;
	margin-top: 2px;
}

.epd-home-products.is-list .epd-card-actions .epd-btn {
	flex: 1 1 0;
	justify-content: center;
	padding: 6px 6px;
	border-radius: 8px;
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
}

.epd-home-products.is-list .epd-card-actions .epd-btn-outline {
	display: none;
}

.epd-home-products.is-list .epd-card-actions .epd-btn-primary {
	background: var(--epd-accent);
	border-color: var(--epd-accent);
	color: #fff;
}

@media (max-width: 1024px) {
	.epd-home-products.is-list.is-dense .epd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.epd-home-products.is-list .epd-grid,
	.epd-home-products.is-list.is-dense .epd-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.epd-home-products.is-list .epd-card-media {
		flex-basis: 80px;
		width: 80px;
		height: 104px;
	}

	.epd-home-products.is-list .epd-card-body {
		padding: 10px 12px;
	}
}

/* Google 登录按钮 */
.epd-google-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 10px;
	border: 1px solid #dadce0;
	background: #fff;
	color: #3c4043;
	font-weight: 600;
	text-decoration: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.epd-google-btn:hover {
	border-color: #c6c9cd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: #202124;
}

/* 雙價格（電子書 / 紙質書）在書架橫列裡縮一號 */
.epd-home-products.is-list .epd-price-multi .epd-price {
	font-size: 13px;
}

.epd-home-products.is-list .epd-price-row {
	gap: 5px;
}

.epd-home-products.is-list .epd-mode-tag {
	font-size: 10px;
	padding: 0 4px;
}
