@charset "utf-8";
/* =====================================================================
   產品介紹 前台專屬樣式（列表頁 products / 詳細頁 products-view）
   設計基調：沿用站上診所淺藍醫療風，乾淨、精緻、留白、字級適中
   主色：#76bfe3 / #77c0e4   輔色：#d2e6f9   深字：#3a3a3a / #6b6b6b
   ===================================================================== */

:root {
	--pd-primary: #76bfe3;
	--pd-primary-deep: #4ea8d4;
	--pd-soft: #d2e6f9;
	--pd-soft-bg: #f4f9fd;
	--pd-ink: #3a3a3a;
	--pd-gray: #8a8a8a;
	--pd-line: #e7eef4;
	--pd-radius: 0;
	--pd-shadow: 0 6px 24px rgba(73, 142, 180, .10);
	--pd-shadow-hover: 0 14px 38px rgba(73, 142, 180, .20);
}

/* 產品區塊整體字距收斂（站上 body 預設 letter-spacing:2px 太寬） */
.products_filter_menu,
.products-card,
.products-recommend-card,
.products-view-info,
.products-section-title { letter-spacing: normal; }

/* ============ 共用：區段標題 ============ */
.products-section-title {
	font-family: 'Noto Serif TC', 'Montserrat', sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pd-ink);
	letter-spacing: 2px;
	position: relative;
	display: inline-block;
	padding-bottom: 10px;
}
.products-section-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 46px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--pd-primary), var(--pd-soft));
}
.products-section-sub {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--pd-primary);
	margin-top: 4px;
}

/* ============ 列表頁：左側篩選器 ============ */
.products_filter_menu {
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--pd-shadow);
}
.products_filter_menu .nav-item { margin: 0; }
.products_filter_menu .products_filter_link {
	display: block;
	padding: 14px 20px;
	font-size: 15px;
	color: var(--pd-ink);
	border-bottom: 1px solid var(--pd-line);
	transition: all .25s ease;
	position: relative;
}
.products_filter_menu .nav-item:last-child .products_filter_link { border-bottom: 0; }
.products_filter_menu .products_filter_link::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 0;
	background: var(--pd-primary);
	transition: width .25s ease;
}
.products_filter_menu .products_filter_link:hover {
	background: var(--pd-soft-bg);
	color: var(--pd-primary-deep);
	padding-left: 26px;
	text-decoration: none;
}
.products_filter_menu .products_filter_link.active {
	background: var(--pd-soft-bg);
	color: var(--pd-primary-deep);
	font-weight: 600;
}
.products_filter_menu .products_filter_link.active::before { width: 4px; }

/* ============ 列表頁：九宮格產品卡 ============ */
.products-card {
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	box-shadow: var(--pd-shadow);
}
.products-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--pd-shadow-hover);
	border-color: var(--pd-soft);
}
.products-card-images {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--pd-soft-bg);
}
.products-card-images a { display: block; width: 100%; height: 100%; }
.products-card-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
	margin: 0;
}
.products-card:hover .products-card-images img { transform: scale(1.06); }
.products-card-details {
	padding: 20px 18px;
	text-align: center;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.products-card-title {
	font-family: 'Noto Serif TC', sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	color: var(--pd-ink) !important;
	margin-bottom: 8px !important;
	line-height: 1.6;
	letter-spacing: .5px;
	transition: color .25s ease;
}
.products-card:hover .products-card-title { color: var(--pd-primary-deep) !important; }
.products-card-volume {
	font-size: 12px;
	color: var(--pd-gray);
	letter-spacing: 1px;
	display: inline-block;
	padding: 3px 14px;
	background: var(--pd-soft-bg);
}

/* ============ 列表頁：分頁 ============ */
.products_list_container .pagination .page-link,
#products_list_container .pagination .page-link {
	color: var(--pd-ink);
	border: 1px solid var(--pd-line);
	margin: 0 4px;
	border-radius: 0 !important;
	min-width: 40px;
	text-align: center;
	transition: all .2s ease;
}
#products_list_container .pagination .page-item.active .page-link,
#products_list_container .pagination .page-link:hover {
	background: var(--pd-primary);
	border-color: var(--pd-primary);
	color: #fff;
}
#products_list_container .pagination .page-item.disabled .page-link {
	color: #c4c4c4;
	background: #fafafa;
}

/* ============ 詳細頁：主圖 + 小圖 ============ */
.products-main-image {
	border-radius: var(--pd-radius);
	overflow: hidden;
	border: 1px solid var(--pd-line);
	background: var(--pd-soft-bg);
	box-shadow: var(--pd-shadow);
}
.products-main-image a { display: block; }
.products-main-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	transition: transform .5s ease;
}
.products-main-image:hover img { transform: scale(1.04); }

.products_thumbs_owl { position: relative; padding: 0 44px; }
.products_thumbs_owl .item {
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color .25s ease;
}
.products_thumbs_owl .item:hover { border-color: var(--pd-primary); }
.products_thumbs_owl .item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
}

/* 小圖輪播左右按鈕：放在容器左右兩側、加大美化 */
.products_thumbs_owl.owl-theme .owl-nav { margin: 0; }
.products_thumbs_owl.owl-theme .owl-nav [class*="owl-"] {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--pd-primary-deep);
	border: 1px solid var(--pd-line);
	box-shadow: var(--pd-shadow);
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	transition: all .25s ease;
}
.products_thumbs_owl.owl-theme .owl-nav [class*="owl-"]:hover {
	background: var(--pd-primary);
	color: #fff;
	border-color: var(--pd-primary);
}
.products_thumbs_owl.owl-theme .owl-nav .owl-prev { left: 0; }
.products_thumbs_owl.owl-theme .owl-nav .owl-next { right: 0; }
.products_thumbs_owl.owl-theme .owl-nav .disabled { opacity: .3; cursor: default; }

/* ============ 詳細頁：右側產品資訊 ============ */
.products-view-info { padding-left: 10px; }
.products-view-title {
	font-family: 'Noto Serif TC', sans-serif;
	font-size: 30px;
	font-weight: 600;
	color: var(--pd-ink);
	line-height: 1.5;
	letter-spacing: 1px;
	margin-bottom: 14px;
	position: relative;
	padding-bottom: 18px;
}
.products-view-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 44px; height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--pd-primary), var(--pd-soft));
}
.products-view-volume {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}
.products-view-volume-tag {
	display: inline-block;
	font-size: 14px;
	color: var(--pd-primary-deep);
	background: var(--pd-soft-bg);
	border: 1px solid var(--pd-soft);
	border-radius: 4px;
	padding: 6px 18px;
	letter-spacing: .5px;
}
.products-view-desc {
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .5px;
	color: #5f5f5f;
}

/* ============ 推薦商品輪播 ============ */
.products-recommend-section { background: var(--pd-soft-bg); }
.products-recommend-card {
	display: block;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	overflow: hidden;
	box-shadow: var(--pd-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}
.products-recommend-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--pd-shadow-hover);
	text-decoration: none;
}
.products-recommend-images {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--pd-soft-bg);
}
.products-recommend-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	transition: transform .5s ease;
}
.products-recommend-card:hover .products-recommend-images img { transform: scale(1.07); }
.products-recommend-mask {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pd-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(10px);
	transition: all .3s ease;
}
.products-recommend-card:hover .products-recommend-mask {
	opacity: 1;
	transform: translateY(0);
}
.products-recommend-info {
	padding: 16px 16px 20px;
	text-align: center;
}
.products-recommend-title {
	font-family: 'Noto Serif TC', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--pd-ink);
	margin: 0 0 8px;
	line-height: 1.6;
	letter-spacing: .5px;
	transition: color .25s ease;
}
.products-recommend-card:hover .products-recommend-title { color: var(--pd-primary-deep); }
.products-recommend-volume {
	display: inline-block;
	font-size: 12px;
	color: var(--pd-gray);
	letter-spacing: 1px;
	padding: 2px 12px;
	background: var(--pd-soft-bg);
}

/* ---- Owl nav 按鈕（加大美化）---- */
.products_recommend_owl.owl-theme .owl-nav { margin-top: 0; }
.products_recommend_owl.owl-theme .owl-nav [class*="owl-"] {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #fff;
	color: var(--pd-primary-deep);
	border: 1px solid var(--pd-line);
	box-shadow: var(--pd-shadow);
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .25s ease;
	margin: 0;
}
.products_recommend_owl.owl-theme .owl-nav [class*="owl-"]:hover {
	background: var(--pd-primary);
	color: #fff;
	border-color: var(--pd-primary);
}
.products_recommend_owl.owl-theme .owl-nav .owl-prev { left: -22px; }
.products_recommend_owl.owl-theme .owl-nav .owl-next { right: -22px; }
.products_recommend_owl.owl-theme .owl-nav .disabled { opacity: .35; cursor: default; }

/* ---- Owl dots pagination ---- */
.products_recommend_owl.owl-theme .owl-dots { margin-top: 30px; text-align: center; }
.products_recommend_owl.owl-theme .owl-dots .owl-dot span {
	width: 10px;
	height: 10px;
	margin: 0 5px;
	background: #cfe2ef;
	transition: all .3s ease;
}
.products_recommend_owl.owl-theme .owl-dots .owl-dot.active span {
	background: var(--pd-primary);
	width: 26px;
	border-radius: 6px;
}
.products_recommend_owl.owl-theme .owl-dots .owl-dot:hover span { background: var(--pd-primary-deep); }

/* ============ 返回列表按鈕 ============ */
.products-back-btn {
	display: inline-block;
	padding: 12px 40px;
	font-size: 15px;
	color: #fff;
	background: var(--pd-primary);
	border: 0;
	letter-spacing: 1px;
	transition: all .25s ease;
	box-shadow: 0 6px 18px rgba(118, 191, 227, .35);
}
.products-back-btn:hover {
	background: var(--pd-primary-deep);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(78, 168, 212, .4);
}

/* ============ 無商品提示 ============ */
.products-empty {
	padding: 60px 20px;
	text-align: center;
	color: var(--pd-gray);
	font-size: 16px;
}

/* ============ RWD ============ */
@media (max-width: 991px) {
	.products_recommend_owl.owl-theme .owl-nav .owl-prev { left: 4px; }
	.products_recommend_owl.owl-theme .owl-nav .owl-next { right: 4px; }
	.products-view-info { padding-left: 0; margin-top: 26px; }
	.products-view-title { font-size: 24px; }
}
@media (max-width: 575px) {
	.products-card-title { font-size: 16px !important; }
	.products-section-title { font-size: 22px; }
}
