/* 淨水器商城自定義樣式 - 參考 Mr. Blue 淨水商城設計 */

/* 全域樣式 - 全站使用 Chiron Hei HK、Noto Sans */
body {
	font-family: 'Chiron Hei HK', 'Noto Sans', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
	line-height: 1.6;
	color: #333;
}
nav{display:none}
.p3{width:32.333333%;}
/* 頂部聯絡資訊欄 */
.top-bar {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	font-size: 0.9rem;
}
    .sale-flash-thumb {
        background-color: transparent;
        border: 0px !important;
    }
.sale-flash-thumb.active {
    border: 0px !important;
}
.sale-flash-module div.bg-light {
    background-color: transparent !important;
}
.sale-flash-original-amount,.sale-flash-original-label {
    color: #383838 !important;
}
.text-danger {
    color: rgb(177 0 0) !important;
    font-size: 16px;
    line-height: 22px;
    margin-right: 6px;
}
.bg-danger {
    --bs-bg-opacity: 1;
    background-color: rgb(177 0 0) !important;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 6px;
    position: absolute;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}
}
/* 同時有 text-center 與 mb-3 時套用此樣式 */
.cart-ui-pickup-detail small.li{font-size:10px;}
.text-center.mb-3 {
	text-align: left !important;
	border-left: 1px solid #666666;
	text-indent: 0.5em;
	margin-left: 1em;
	margin-top: -20px;
}
    .sale-flash-main .sale-flash-title {
        font-size: 2rem;
    }
.text-center.mb-3 p.article-display-subtitle{
    font-size: 11px;
	font-weight: 400;
	letter-spacing: 0px;
}
.text-center.mb-3 h3{
    font-size: 20px;
	font-weight: bolder;
	line-height: 1;
}
.sale-flash-main{min-height: auto!important;}
.sale-flash-countdown {
    background-image: url(/img/clock.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 185px;
    text-align: center;
    padding-bottom: 0px !important;
    height: 40px;
}
.sale-flash-time-unit {
    font-size: 11px;
}
.card {
    background-color: #ffffff;
}
.article-display-card {
    box-shadow: none!important;
    border-radius: 0px!important;
    transition: none!important;
	background-color: transparent!important;
}
/* 一般輪播不套用固定背景與 70% 寬度，改由文章顯示模組專用規則套用 */
.sale-flash-main {
    background-image: url(/img/salemainbg.png);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
}
.sale-flash-thumb {
    background-image: url(/img/salepbg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.sale-flash-thumb img {
    width: 80% !important;
    margin: 10% !important;
    height: auto !important;
}
.sale-flash-thumb.active {
    border-color:transparent!important;
}
.mainarea {
	overflow: hidden;
}
.pagetitle {
	position: absolute;
	bottom: 10px;
	width: 100%;
}
.sale-flash-title {
	margin-top: 0px !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bg-white {
	background-color: rgb(58 71 84) !important;
}
.card-body a.btn{display:none;}
.barea {
    margin-top: -80px;
    margin-bottom: 40px;
	text-align: center;
}
.barea img {
    width: 31%;
    margin: 0% 1% !important;
    padding: 1%;
}
.sarea {
    margin-top: -60px;
    margin-bottom: 40px;
    text-align: center;
    margin-left: 10% !important;
    position: relative;
    z-index: 1000;
    touch-action: auto;
    pointer-events: auto;
    width: 80%;
}
.sarea a {
    position: relative;
    z-index: 1001;
    touch-action: auto;
    pointer-events: auto;
    display: inline-block;
	width: 50%;
}
.sarea img {
    width: 40% !important;
    margin: 0% 1% !important;
    padding: 1%;
    float: left;
    z-index: 1002;
    position: relative;
    pointer-events: none;
    touch-action: auto;
}
.c1 img {
	width: 100%;
	margin: 0px!important;
	padding: 5px;
	float: left;
	box-shadow: none!important;
}
.c2 img {
	width: 50%;
	margin: 0px!important;
	padding: 5px;
	float: left;
	box-shadow: none!important;
}
.c3 img {
	width: 33.33333333333%;
	margin: 0px!important;
	padding: 5px;
	float: left;
	box-shadow: none!important;
}
.c4 img {
	width: 25%;
	margin: 0px!important;
	padding: 5px;
	float: left;
	box-shadow: none!important;
}
.c5 img {
	width: 20%;
	margin: 0px!important;
	padding: 5px;
	float: left;
	box-shadow: none!important;
}
.c1, .c2, .c3, .c4, .c5 {
	display: block;
	float: left;
	width: 100%;
}
/* .article-content h3, .article-content h4 樣式已移除 */

/* 文章內容表格樣式 */
.article-content table {
	width: 100% !important;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content table th {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	color: #495057;
	font-weight: 600;
	padding: 12px 15px;
	text-align: left;
	border-bottom: 2px solid #dee2e6;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.article-content table td {
	padding: 12px 15px;
	border-bottom: 1px solid #e9ecef;
	color: #495057;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* 雙色表格 - 奇數行 */
.article-content table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

/* 雙色表格 - 偶數行 */
.article-content table tbody tr:nth-child(even) {
	background-color: #f8f9fa;
}

/* 表格懸停效果 */
.article-content table tbody tr:hover {
	background-color: #e3f2fd !important;
	transition: background-color 0.3s ease;
}

/* 表格邊框 */
.article-content table {
	border: 1px solid #dee2e6;
}

.article-content table th,
.article-content table td {
	border-right: 1px solid #dee2e6;
}

.article-content table th:last-child,
.article-content table td:last-child {
	border-right: none;
}

/* 表格最後一行 */
.article-content table tbody tr:last-child td {
	border-bottom: none;
}

/* 響應式表格 */
@media (max-width: 768px) {
	.p3{width:100%;}
	.article-content table {
		font-size: 0.8rem;
	}
	
	.article-content table th,
	.article-content table td {
		padding: 8px 10px;
	}
	
	.article-content table th {
		font-size: 0.8rem;
	}
}
.darktheme {
	background-color: #b9b9b9;
}
.product-description img {
	width: 100%;
}
.badge-success,.badge-secondary{color: #666666}
.action-buttons .btn-outline-secondary {
    color: #646464;
}
/* .slider-item{width:100%!important;} - 已移除，改為動態計算 */
.navbar-light .navbar-nav .nav-link {
	color: rgb(255 255 255);
	font-size: 13px;
}
.dropdown .btn-outline-secondary{color: #ffffff;}
#filterForm .btn-outline-secondary {
	color: #6c757d;
	border-color: #6c757d;
}

.product-card .btn-outline-primary, .d-lg-none .btn-outline-primary {
	color: #0d6efd;
	border-color: #0d6efd;
}
.d-lg-none .btn-outline-primary:hover {
	color: #ffffff;
}
.navbar-nav .nav-link.active {
	background-color: #e3f2fd;
	color: #3a4754 !important;
}
.top-bar .social-links a {
	transition: color 0.3s ease;
}
.top-bar .social-links a:hover {
	color: #ffd700 !important;
}
/* 推薦碼樣式 */
.referral-info .badge {
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
	border-radius: 15px;
	animation: pulse 2s infinite;
}
.product-description img {
	max-width: 100%;
}
.addon-product-card .price h6 {
	font-size: 0.8em;
}
.addon-product-card .card-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.addon-product-card .align-items-start {
	overflow: hidden;
}
@keyframes pulse {
 0% {
 box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
}
 70% {
 box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
}
 100% {
 box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
}
}
/* 導航欄樣式 */
.navbar {
	border-bottom: 1px solid #e9ecef;
}
.navbar-brand {
	font-size: 1.8rem;
	font-weight: 700;
}
.navbar-nav .nav-link {
	font-weight: 500;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
	border-radius: 5px;
	margin: 0 2px;
}
/* 大型下拉選單 */
.mega-menu {
	width: 800px !important;
	max-width: 90vw;
	padding: 1.5rem;
	left: 50% !important;
	transform: translateX(-50%) !important;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	z-index: 1050;
}
.mega-menu .row {
	margin: 0;
}
.mega-menu .col-md-3 {
	padding: 0 15px;
}
.mega-menu .dropdown-header {
	color: #0d6efd;
	font-weight: 600;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}
.mega-menu .dropdown-item {
	padding: 0.5rem 0;
	transition: color 0.3s ease;
	font-size: 0.9rem;
	border-radius: 4px;
	margin-bottom: 2px;
}
.mega-menu .dropdown-item:hover {
	color: #0d6efd;
	background-color: #f8f9fa;
	padding-left: 8px;
}


/* 搜尋框樣式 */
.navbar .input-group .form-control {
	border-radius: 25px 0 0 25px;
	border-right: none;
}
.navbar .input-group .btn {
	border-radius: 0 25px 25px 0;
	border-left: none;
}
/* 麵包屑導航 */
.breadcrumb {
	background-color: transparent;
	padding: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
	content: ">";
	color: #6c757d;
}
.breadcrumb-item a {
	color: #0d6efd;
	text-decoration: none;
}
.breadcrumb-item a:hover {
	text-decoration: underline;
}
/* 導航欄樣式 */
.navbar-brand {
	font-size: 1.5rem;
	margin-left: 1rem;
}
.navbar-nav .nav-link {
	font-weight: 500;
	padding: 0.5rem 1rem;
	transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
	color: #0d6efd !important;
}
/* 主要橫幅樣式 */
.hero-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 500px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="water" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23water)"/></svg>');
	opacity: 0.3;
	animation: float 20s ease-in-out infinite;
}
 @keyframes float {
 0%, 100% {
transform: translateY(0px);
}
 50% {
transform: translateY(-10px);
}
}
.hero-section h1 {
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	position: relative;
	z-index: 2;
}
.hero-icon {
	position: relative;
	z-index: 2;
	animation: pulse 2s ease-in-out infinite;
}
.hero-image {
	position: relative;
	z-index: 2;
	animation: bounce 3s ease-in-out infinite;
}
 @keyframes bounce {
 0%, 20%, 50%, 80%, 100% {
 transform: translateY(0);
}
 40% {
 transform: translateY(-10px);
}
 60% {
 transform: translateY(-5px);
}
}
/* 產品列表頁面專用樣式 */
.products-hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 4rem 0;
	position: relative;
	overflow: hidden;
}
.products-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bubbles" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="5" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="5" r="1.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23bubbles)"/></svg>');
	opacity: 0.4;
	animation: float 25s ease-in-out infinite;
}
.hero-features {
	position: relative;
	z-index: 2;
}
.hero-features .d-flex {
	transition: all 0.3s ease;
}
.hero-features .d-flex:hover {
	transform: translateX(5px);
}
.hero-features i {
	transition: all 0.3s ease;
}
.hero-features .d-flex:hover i {
	color: #ffd700 !important;
	transform: scale(1.1);
}
/* 卡片樣式 */
.card {
	border: none;
	border-radius: 10px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}
.card-img-top {
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}
/* 按鈕樣式 */
.btn {
	border-radius: 25px;
	font-weight: 500;
	transition: all 0.3s ease;
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
}
.btn-primary:hover {
	background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
/* 特色圖標樣式 */
.feature-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 2rem;
}
/* 產品卡片樣式 */
.product-card {
	height: 100%;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	transition: all 0.3s ease;
}
.product-card:hover {
	border-color: #0d6efd;
	box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}
/* 產品列表 products.php：兩欄、1:1 方圖 + 雙行標題（與示意卡片一致） */
.products-list-two-col {
	width: 90%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.products-list-two-col .product-list-card-inner {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}
.products-list-two-col .product-list-card-inner:hover {
	border-color: transparent !important;
	box-shadow: none !important;
}
.products-list-two-col .product-image.product-list-card-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    background: #f8f9fa;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 2px 1px 5px rgba(0, 0, 0, 0.3);
    display: block;
    transition: box-shadow 0.25s ease;
}
.products-list-two-col .product-list-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.products-list-two-col .product-list-card-placeholder {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f3f5;
}
.products-list-two-col .product-list-card-link:hover .product-list-card-visual {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.products-list-two-col .product-list-card-caption {
    padding: 0rem 0.65rem 0;
    margin-top: .7rem;
    background: transparent;
    border-left: 1px solid #626262;
    border-right: 1px solid #626262;
    border-top: none;
    border-bottom: none;
}
.products-list-two-col .product-list-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 0.775rem;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.4;
    min-height: calc(1.45em * 2);
    word-break: break-word;
}
@supports not (aspect-ratio: 1 / 1) {
	.products-list-two-col .product-list-card-visual {
		height: 0;
		padding-bottom: 100%;
		position: relative;
	}
	.products-list-two-col .product-list-card-visual .product-list-card-img,
	.products-list-two-col .product-list-card-visual .product-list-card-placeholder {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}
}

/* products.php：分類橫幅（header 下方、分類列上方） */
.products-category-banner-wrap {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	background: #f3f4f6;
}
.products-category-banner-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 320px;
}
@media (max-width: 991.98px) {
	.products-category-banner-img {
		max-height: 220px;
	}
}

/* products.php：行動版內容區寬度比例（約手機版面）+ 分類下方 TAG 橫向滑動 */
@media (max-width: 991.98px) {
	.products-page-mobile-shell {
		max-width: 430px;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		padding-left: max(0px, env(safe-area-inset-left, 0px));
		padding-right: max(0px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
	}
	.products-page-mobile-shell > .container {
		padding-left: 0;
		padding-right: 0;
		max-width: 100%;
	}
	.products-tag-bar-outer.container {
		padding-left: 0;
		padding-right: 0;
	}
	.products-page-mobile-shell .products-list-section-heading-outer.container {
		padding-left: 12px;
		padding-right: 12px;
	}
}
.products-tag-bar-wrap {
	margin: 2px 0 6px;
	width: 100%;
}
/* TAG 橫列：淺灰漸層底帶 + 底部柔影 */
.products-tag-bar-strip .products-tag-bar-wrap {
	margin: 0 0 4px;
	padding: 10px 12px 12px;
	border-radius: 0 0 14px 14px;
	background: linear-gradient(180deg, #f7f8fa 0%, #e8ebf0 100%);
	box-shadow:
		0 12px 28px rgba(38, 44, 58, 0.09),
		0 4px 10px rgba(38, 44, 58, 0.05);
}
.products-tag-bar-scroll {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 2px 10px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.products-tag-bar-scroll::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}
.products-tag-chip {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: #2f2f2f;
	background: transparent;
	scroll-snap-align: start;
	transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.products-tag-chip.is-active {
	color: #fff;
	background: linear-gradient(145deg, #6a85a0 0%, #7d8a96 38%, #a8b0ba 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		inset 0 -3px 6px rgba(25, 35, 48, 0.22),
		0 4px 14px rgba(55, 72, 90, 0.28);
}
.products-tag-chip:not(.is-active):hover,
.products-tag-chip:not(.is-active):focus-visible {
	color: #1989fa;
}

/* 產品列表上方：標題 + 副標 + 右側膠囊（對齊示意圖） */
.products-list-section-heading-outer {
	padding-top: 14px;
	padding-bottom: 8px;
}
.products-list-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.products-list-section-heading-text {
    flex: 1;
    min-width: 0;
    border-left: 2px solid #989898;
    padding-left: 10px;
}
.products-list-section-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #1a1d22;
	margin: 0 0 4px;
	line-height: 1.25;
	letter-spacing: 0.02em;
}
.products-list-section-sub {
    margin: 0;
    font-size: 0.7rem;
    color: #5a5a5a;
    line-height: 1;
}
.products-list-section-actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	align-items: flex-start;
}
.products-list-action-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #3a4048;
	background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
	box-shadow:
		0 8px 20px rgba(38, 44, 58, 0.12),
		0 2px 8px rgba(38, 44, 58, 0.07);
}
.products-list-action-pill-chevron {
	font-size: 0.65em;
	opacity: 0.72;
}

.products-brand-filter-form {
	margin: 0;
}
.products-list-brand-select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}
.products-list-brand-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 4px 21px 4px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #3a4048;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    border: 0;
    box-shadow: 0 8px 20px rgba(38, 44, 58, 0.12), 2px 2px 6px rgba(38, 44, 58, 0.4);
    cursor: pointer;
    min-width: 5.25rem;
    max-width: 11rem;
    text-overflow: ellipsis;
}
.products-list-brand-select:focus {
	outline: 2px solid rgba(25, 137, 250, 0.35);
	outline-offset: 2px;
}
.products-list-brand-select-chevron {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 0.65em;
	opacity: 0.72;
	color: #3a4048;
}

/* 品牌旗艦分類頁 category.php */
.brand-category-page .brand-category-sections {
	padding-left: 12px;
	padding-right: 12px;
}
.brand-category-page .brand-category-section + .brand-category-section {
	padding-top: 8px;
	border-top: 1px solid rgba(140, 155, 170, 0.2);
}
.brand-category-page .brand-category-section-heading {
	margin-bottom: 12px;
	margin-left: 25px;
}

.product-image {
	height: 200px;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
}
.product-price {
	font-size: 1.25rem;
	font-weight: bold;
	color: #dc3545;
}
.product-price-original {
	text-decoration: line-through;
	color: #6c757d;
	font-size: 0.9rem;
}
/* 頁腳樣式 - 參考 Mr. Blue 淨水商城 */
footer {
    background: #eeeeee !important;
    border-top: 0px;
}
footer h5, footer h6 {
	color: #fff;
	margin-bottom: 1rem;
	font-weight: 600;
}
footer .contact-info .fas {
	width: 20px;
	text-align: center;
}
footer a {
	color: #adb5bd;
	text-decoration: none;
	transition: color 0.3s ease;
}
footer a:hover {
	color: #0d6efd;
}
footer .social-links a {
	display: inline-block;
	width: 40px;
	height: 40px;
	background-color: #333;
	border-radius: 50%;
	text-align: center;
	line-height: 40px;
	transition: all 0.3s ease;
	margin-right: 10px;
}
footer .social-links a:hover {
	background-color: #0d6efd;
	color: #fff !important;
	transform: translateY(-2px);
}
/* 回到頂部按鈕 */
#backToTop {
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 50%;
	transition: all 0.3s ease;
}
#backToTop img {
	width: 100%;
	height: 100%;
	display: block;
}
#backToTop:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* 響應式設計 */
@media (max-width: 768px) {
.hero-section {
	min-height: 400px;
	text-align: center;
}
.hero-section h1 {
	font-size: 2.5rem;
}
.feature-icon {
	width: 60px;
	height: 60px;
	font-size: 1.5rem;
}
}

/* 動畫效果 */
@keyframes fadeInUp {
 from {
 opacity: 0;
 transform: translateY(30px);
}
 to {
 opacity: 1;
 transform: translateY(0);
}
}
.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}
/* 載入動畫 */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0d6efd;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
 @keyframes spin {
 0% {
transform: rotate(0deg);
}
 100% {
transform: rotate(360deg);
}
}
/* 表單樣式 */
.form-control {
	border-radius: 8px;
	border: 1px solid #ced4da;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
	border-color: #0d6efd;
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
/* 警告訊息樣式 */
.alert {
	border-radius: 8px;
	border: none;
}
.alert-success {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	color: #155724;
}
.alert-danger {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	color: #721c24;
}
.alert-info {
	background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
	color: #0c5460;
}
/* 徽章樣式 */
.badge {
	font-size: 0.75rem;
	padding: 0.375rem 0.75rem;
	border-radius: 20px;
}
/* 分頁樣式 */
.pagination {
	justify-content: center;
}
.page-link {
	border-radius: 8px;
	margin: 0 2px;
	border: 1px solid #dee2e6;
	color: #0d6efd;
}
.page-link:hover {
	background-color: #e9ecef;
	border-color: #adb5bd;
}
.page-item.active .page-link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
}
/* 搜尋框樣式 */
.search-box {
	position: relative;
}
.search-box .form-control {
	padding-right: 40px;
}
.search-box .btn {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	width: 35px;
	height: 35px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* 購物車樣式 */
.cart-item {
	border-bottom: 1px solid #e9ecef;
	padding: 1rem 0;
}
.cart-item:last-child {
	border-bottom: none;
}
.cart-total {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1rem;
}
/* 產品詳情頁樣式 */
.product-gallery {
	position: relative;
}
.product-gallery .main-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 10px;
}
.product-gallery .thumbnails {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}
.product-gallery .thumbnail {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}
.product-gallery .thumbnail:hover, .product-gallery .thumbnail.active {
	opacity: 1;
}
/* 產品描述樣式 */
.product-description {
	font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.8;
	color: #333;
}
.product-description h1, .product-description h2, .product-description h3, .product-description h4, .product-description h5, .product-description h6 {
	color: #2c3e50;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	font-weight: 600;
}
.product-description p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 150%;
}
.product-description ul, .product-description ol {
	margin-bottom: 1rem;
	padding-left: 2rem;
}
.product-description li {
	margin-bottom: 0.5rem;
}
.product-description img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1rem 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-description strong, .product-description b {
	font-weight: 600;
	color: #2c3e50;
}
.product-description em, .product-description i {
	font-style: italic;
}
.product-description a {
	color: #007bff;
	text-decoration: none;
}
.product-description a:hover {
	color: #0056b3;
	text-decoration: underline;
}
.product-description blockquote {
	border-left: 4px solid #007bff;
	padding-left: 1rem;
	margin: 1rem 0;
	font-style: italic;
	color: #6c757d;
}
.product-description table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}
.product-description table th, .product-description table td {
	border: 1px solid #dee2e6;
	padding: 0.75rem;
	text-align: left;
}
.product-description table th {
	background-color: #f8f9fa;
	font-weight: 600;
}
/* 管理後台樣式 */
.sidebar {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
}
.sidebar .nav-link {
	color: rgba(255, 255, 255, 0.8);
	transition: all 0.3s ease;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.1);
}
.sidebar .nav-link i {
	width: 20px;
	text-align: center;
}
/* 統計卡片樣式 */
.stat-card {
	border-left: 4px solid;
	transition: transform 0.3s ease;
}
.stat-card:hover {
	transform: translateY(-2px);
}
.stat-card .card-body {
	padding: 1.5rem;
}
.stat-card .stat-number {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}
.stat-card .stat-label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0;
}
/* 表格樣式 */
.table {
	border-radius: 8px;
	overflow: hidden;
}
.table thead th {
	background-color: #f8f9fa;
	border-bottom: 2px solid #dee2e6;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.5px;
}
.table tbody tr:hover {
	background-color: #f8f9fa;
}
/* 表單群組樣式 */
.form-group {
	margin-bottom: 1.5rem;
}
.form-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #495057;
}
/* 按鈕群組樣式 */
.btn-group .btn {
	border-radius: 0;
}
.btn-group .btn:first-child {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}
.btn-group .btn:last-child {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}
/* 載入狀態 */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
/* 成功/錯誤訊息動畫 */
.alert {
	animation: slideDown 0.3s ease-out;
}
 @keyframes slideDown {
 from {
 opacity: 0;
 transform: translateY(-20px);
}
 to {
 opacity: 1;
 transform: translateY(0);
}
}
/* ===== 模組相關樣式 ===== */

/* 圖片滑動模組樣式 */
.image-slider-module {
	position: relative;
	max-width: 98%;
	margin: auto;
}

.image-slider-module .slider-container {
	overflow: hidden;
	position: relative;
}

.image-slider-module .slider-wrapper {
	display: flex !important;
	transition: transform 0.5s ease-in-out;
	/* 寬度由 JS 依 totalSlides/itemsPerView 設定，以支援自由滑動到完整內容 */
	min-width: 100%;
}

.image-slider-module .slider-item {
	flex: 0 0 100%;
	position: relative;
	flex-shrink: 0 !important;
}

/* 桌面版顯示設定 - 使用動態計算 */
.image-slider-module[data-desktop-items="1"] .slider-wrapper .slider-item {
	flex: 0 0 calc(100% / 1) !important;
	width: calc(100% / 1) !important;
}

.image-slider-module[data-desktop-items="2"] .slider-wrapper .slider-item {
	flex: 0 0 calc(100% / 2) !important;
	width: calc(100% / 2) !important;
}

.image-slider-module[data-desktop-items="3"] .slider-wrapper .slider-item {
	flex: 0 0 calc(100% / 3) !important;
	width: calc(100% / 3) !important;
}

.image-slider-module[data-desktop-items="4"] .slider-wrapper .slider-item {
	flex: 0 0 calc(100% / 4) !important;
	width: calc(100% / 4) !important;
}

/* 行動裝置顯示設定 - 使用動態計算 */
@media (max-width: 768px) {
	.image-slider-module .slider-wrapper .slider-item {
		flex: 0 0 calc(100% / 1) !important; /* 預設行動裝置顯示1個 */
		width: calc(100% / 1) !important;
		max-width: calc(100% / 1) !important;
	}
	
	.image-slider-module[data-mobile-items="1"] .slider-wrapper .slider-item {
		flex: 0 0 calc(96% / 1) !important;
		width: calc(96% / 1) !important;
		max-width: calc(96% / 1) !important;
	}
	
	.image-slider-module[data-mobile-items="2"] .slider-wrapper .slider-item {
		flex: 0 0 calc(100% / 2) !important; /* 行動裝置顯示2個 */
		width: calc(100% / 2) !important;
		max-width: calc(100% / 2) !important;
		margin-right: 1%;
	}
	
	.image-slider-module[data-mobile-items="3"] .slider-wrapper .slider-item {
		flex: 0 0 calc(100% / 3) !important;
		width: calc(100% / 3) !important;
		max-width: calc(100% / 3) !important;
	}
	
	.image-slider-module[data-mobile-items="4"] .slider-wrapper .slider-item {
		flex: 0 0 calc(100% / 4) !important;
		width: calc(100% / 4) !important;
		max-width: calc(100% / 4) !important;
	}
	
	/* 最強力的覆蓋規則 - 使用動態計算 */
	.image-slider-module[data-mobile-items="1"] .slider-item {
		flex: 0 0 calc(96% / 1) !important;
		width: calc(96% / 1) !important;
		max-width: calc(96% / 1) !important;
		min-width: calc(96% / 1) !important;
	}
		.star5 div.image-slider-module[data-mobile-items="1"] .slider-item {
		flex: 0 0 calc(75% / 1) !important;
		width: calc(75% / 1) !important;
		max-width: calc(75% / 1) !important;
		min-width: calc(75% / 1) !important;
	}
	.image-slider-module[data-mobile-items="2"] .slider-item {
		flex: 0 0 calc(100% / 2) !important;
		width: calc(100% / 2) !important;
		max-width: calc(100% / 2) !important;
		min-width: calc(100% / 2) !important;
	}
	
	.image-slider-module[data-mobile-items="3"] .slider-item {
		flex: 0 0 calc(100% / 3) !important;
		width: calc(100% / 3) !important;
		max-width: calc(100% / 3) !important;
		min-width: calc(100% / 3) !important;
	}
	
	.image-slider-module[data-mobile-items="4"] .slider-item {
		flex: 0 0 calc(100% / 4) !important;
		width: calc(100% / 4) !important;
		max-width: calc(100% / 4) !important;
		min-width: calc(100% / 4) !important;
	}
	
	/* 確保容器也正確設定 */
	.image-slider-module .slider-wrapper {
		display: flex !important;
		flex-wrap: nowrap !important;
	}
	.image-slider-module[data-mobile-items="1"] .slider-item {
        flex: 0 0 calc(96% / 1) !important;
        width: calc(96% / 1) !important;
        max-width: calc(96% / 1) !important;
        min-width: calc(86% / 1) !important;
    }
	/* 確保內容完整顯示 */
	.image-slider-module .slide-content {
		overflow: visible !important;
		height: auto !important;
		min-height: auto !important;
	}
	

}

.image-slider-module .slide-content {
    position: relative;
    overflow: hidden !important;
}

.image-slider-module .slider-image {
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.image-slider-module .slider-nav {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	transform: translateY(-50%);
	z-index: 10;
}

.image-slider-module .slider-prev, 
.image-slider-module .slider-next {
	background: rgba(0,0,0,0.5);
	color: white;
	border: none;
	padding: 15px;
	cursor: pointer;
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

.image-slider-module .slider-prev:hover, 
.image-slider-module .slider-next:hover {
	background: rgba(0,0,0,0.8);
}

/* 解除定位控制：隱藏控制點，改為自由滑動 */
.image-slider-module .slider-dots {
	display: none !important;
}
.image-slider-module .slider-dots.visible {
	text-align: center;
	padding: 20px;
}

.image-slider-module .dot {
	height: 4px;
	width: 30px;
	margin: 0 3px;
	background-color: #ddd;
	border-radius: 2px;
	display: inline-block;
	cursor: pointer;
	transition: background-color 0.6s ease;
}

.image-slider-module .dot.active {
	background-color: #666;
}

/* 產品列表模組滑動樣式 */
.product-grid-slider {
	position: relative;
	margin: 0 -15px;
}
.product-grid-slider .slider-container {
	overflow: hidden;
	padding: 0 15px;
}
.product-grid-slider .slider-wrapper {
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: flex;
	gap: 15px;
	width: 100%;
}
.product-grid-slider .slider-item {
	flex-shrink: 0;
	flex-basis: auto !important;
	max-width: none !important;
}
/* 動態設定產品寬度 */
.product-grid-slider[data-items="2"] .slider-item {
	width: 50% !important;
}
.product-grid-slider[data-items="3"] .slider-item {
	width: 33.3333% !important;
}
.product-grid-slider[data-items="4"] .slider-item {
	width: 24% !important;
}
.product-grid-slider[data-items="6"] .slider-item {
	width: 16.6667% !important;
}
.product-grid-slider .slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.6);
	color: white;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.product-grid-slider .slider-prev {
	left: 5px;
}
.product-grid-slider .slider-next {
	right: 5px;
}
.product-grid-slider .slider-nav:hover {
	background: rgba(0,0,0,0.8);
	transform: translateY(-50%) scale(1.1);
}
.product-grid-slider .slider-nav:active {
	transform: translateY(-50%) scale(0.95);
}
.product-grid-slider .slider-nav i {
	font-size: 16px;
}
.product-grid-slider .slider-nav[style*="opacity: 0.5"] {
	pointer-events: none;
}


/* 幻燈片模組樣式 */
.slider-module {
	position: relative;
	max-width: 100%;
	margin: auto;
	user-select: none;
}
.slider-module .slider-wrapper {
	position: relative;
	overflow: hidden;
	cursor: grab;
}
.slider-module .slider-wrapper:active {
	cursor: grabbing;
}
.slider-module .slider-container {
	display: flex;
	transition: transform 0.5s ease-in-out;
}
.slider-module .slider-item {
	min-width: 100%;
	position: relative;
}
.slider-module .slider-image {
	width: 100%;
	object-fit: cover;
	pointer-events: none;
}
.slider-module .slider-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
	color: white;
	padding: 30px;
	text-align: center;
	pointer-events: none;
}
.slider-module .slider-nav {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	transform: translateY(-50%);
	z-index: 10;
}
.slider-module .slider-prev, .slider-module .slider-next {
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 8px 20px;
	cursor: pointer;
	font-size: 18px;
	border-radius: 50%;
	transition: background-color 0.3s ease;
}
.slider-module .slider-prev:hover, .slider-module .slider-next:hover {
	background: rgba(0,0,0,0.8);
}
.slider-module .slider-dots {
	text-align: center;
	padding: 20px;
}
.slider-module .dot {
	height: 15px;
	width: 15px;
	margin: 0 5px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-block;
	cursor: pointer;
	transition: background-color 0.6s ease;
}
.slider-module .dot.active {
	background-color: #007bff;
}
.slider-module .slider-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 18px;
	z-index: 5;
}
/* 產品列表模組樣式 */
.product-list-module {
	margin: 2rem 0;
}
.sale-flash-main-content-col{padding: 0rem !important;}
.product-list-module .text-center .text-muted {
    font-size: 12px;
    margin-bottom: 2rem;
    text-decoration-line: none;
    letter-spacing: 0px;
	color: #383838!important;
}
.product-list-module .card {
	border: 1px solid #e9ecef;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	height: 100%;
}
.product-list-module .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	border-color: #0d6efd;
}
.product-list-module .card-img-top {
	height: 200px;
	object-fit: cover;
	border-radius: 0;
}
.product-list-module .card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
}
.product-list-module .card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 0.75rem;
	line-height: 1.4;
	margin-top: 0rem;
	text-align: center;
}
.product-list-module .card-title a {
	transition: color 0.3s ease;
}
.product-list-module .card-title a:hover {
	color: #0d6efd !important;
}
.product-list-module .position-relative {
	overflow: hidden;
}
.product-list-module .position-relative img {
	transition: transform 0.3s ease;
}
.product-list-module .card:hover .position-relative img {
	transform: scale(1.05);
}
.product-list-module .card-text {
	font-size: 0.875rem;
	color: #6c757d;
	margin-bottom: 1rem;
	flex-grow: 1;
}
.product-list-module .btn {
	margin-top: auto;
	border-radius: 20px;
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
}
.product-list-module .badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
}
.product-list-module .position-absolute.badge {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2;
}
.product-list-module .position-absolute.badge.bg-warning {
	top: 0.5rem;
	right: 0.5rem;
	left: auto;
}
/* 用戶評價模組樣式 */
.testimonials-module {
	padding: 1rem 0;
	background: #f8f9fc;
}
.testimonials-module .testimonials-container {
	position: relative;
}
.testimonials-module .testimonials-slider {
	position: relative;
	overflow: hidden;
}
.testimonials-module .slider-wrapper {
	display: flex;
	gap: 20px;
	transition: transform 0.5s ease-in-out;
}
.testimonials-module .testimonial-item {
	flex: 0 0 auto;
	width: calc(33.3333% - 14px);
}
.testimonials-module .slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.6);
	color: white;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.testimonials-module .slider-prev {
	left: 15px;
}
.testimonials-module .slider-next {
	right: 15px;
}
.testimonials-module .slider-nav:hover {
	background: rgba(0,0,0,0.8);
	transform: translateY(-50%) scale(1.1);
}
.testimonials-module .slider-dots {
	text-align: center;
	margin-top: 2rem;
}
.testimonials-module .dot {
	height: 12px;
	width: 12px;
	margin: 0 6px;
	background-color: #ddd;
	border-radius: 50%;
	display: inline-block;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.testimonials-module .dot.active {
	background-color: #007bff;
}
.testimonials-module .card {
	border: none;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
}
.testimonials-module .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.testimonials-module .testimonial-avatar {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.testimonials-module .blockquote {
	border: none;
	margin: 0;
}
.testimonials-module .blockquote p {
	line-height: 1.6;
	font-size: 0.8em;
	font-style: normal!important;
	color: #555;
}
.testimonials-module .blockquote-footer {
	margin-top: 1rem;
	font-weight: 600;
	color: #333;
	background-color: transparent!important;
}
.testimonials-module .fas.fa-star, .testimonials-module .far.fa-star {
	font-size: 1.1rem;
}
/* 響應式下拉選單 */
@media (max-width: 991px) {
.mega-menu {
	width: 100% !important;
	left: 0 !important;
	transform: none !important;
	max-width: 100vw;
	margin: 0;
	border-radius: 0;
	border-left: none;
	border-right: none;
}
.mega-menu .col-md-3 {
	padding: 0 10px;
	margin-bottom: 1rem;
}
}

@media (max-width: 768px) {
.mega-menu {
	padding: 1rem;
}
.mega-menu .col-md-3 {
	width: 100%;
	margin-bottom: 1.5rem;
}
.product-grid-slider .slider-nav {
	width: 35px;
	height: 35px;
}
.product-grid-slider .slider-nav i {
	font-size: 12px;
}
.product-grid-slider .slider-prev {
	left: 2px;
}
.product-grid-slider .slider-next {
	right: 2px;
}
.product-list-module .card-img-top {
	height: 150px;
}
.product-list-module .card-title {
	font-size: 0.9rem;
}
.product-list-module .card-text {
	font-size: 0.8rem;
}
/* 行動裝置產品列表模組滑動樣式 */
.product-list-module .product-grid-slider {
	position: relative;
	margin: 0 -15px;
}
.product-list-module .product-grid-slider .slider-container {
	overflow: hidden;
	padding: 0 15px;
}
.product-list-module .product-grid-slider .slider-wrapper {
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: flex;
	gap: 15px;
	width: 100%;
}
.product-list-module .product-grid-slider .slider-item {
	flex-shrink: 0;
	width: 100% !important;
	max-width: none !important;
}
.product-list-module .product-grid-slider .slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.6);
	color: white;
	border: none;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.product-list-module .product-grid-slider .slider-prev {
	left: 5px;
}
.product-list-module .product-grid-slider .slider-next {
	right: 5px;
}
.product-list-module .product-grid-slider .slider-nav:hover {
	background: rgba(0,0,0,0.8);
	transform: translateY(-50%) scale(1.1);
}
.product-list-module .product-grid-slider .slider-nav i {
	font-size: 12px;
}
.product-list-module .product-grid-slider .slider-nav[style*="opacity: 0.5"] {
	pointer-events: none;
}
.slider-module .slider-caption {
	padding: 15px;
}
.slider-module .slider-prev, .slider-module .slider-next {
	padding: 10px 15px;
	font-size: 16px;
}
.testimonials-module .testimonial-item {
	width: calc(50% - 10px);
}
.testimonials-module .slider-nav {
	width: 35px;
	height: 35px;
}
.testimonials-module .slider-prev {
	left: 5px;
}
.testimonials-module .slider-next {
	right: 5px;
}
}

@media (max-width: 576px) {
	    .sale-flash-main .sale-flash-title {
        font-size: 28px!important;
    }
	.sale-flash-main-content-col div.mb-2{
		margin-bottom: 0rem !important;		
	}
	    .article-content .row {
        flex-direction: row!important;
    }
	.container div.col-12{
	padding-right: 0;
    padding-left: 0;
	}
	.sale-flash-thumbs {
    gap: 0rem !important;
        width: 89%;
        margin: 0 auto;
}
	.navbar-brand img{height: 30px!important}
.testimonials-module .testimonial-item {
	width: 100%;
}
	.input-group {
    margin: 0 auto;
}
	.table>:not(caption)>*>* {
    width: 100%;
    display: block;
    text-align: center;
}
footer .col-md-6, .top-bar, .dropdown-header, footer hr {
	display: none;
}
.social-links {
	text-align: center;
}
footer {
	text-align: center;
	margin-bottom: 0px;
}
.mega-menu .col-md-3 {
	margin-bottom: 0rem;
}
.mega-menu .dropdown-item {
	width: 50%;
	float: left;
	text-align: center;
}
.mega-menu .col-md-3 {
	display: contents;
}
.product-grid-slider[data-items="6"] .slider-item {
	width: 100% !important;
}
#navbarNav div.ms-3 {
	position: absolute;
	top: 10px;
	right: 55px;
}
.navbar-toggler {
	padding: 0px;
	top: 15px;
	position: absolute;
	left: 10px;
}
.navbar-nav .nav-link:hover {
	color: #dfdfdf !important;
}
.navbar-light .navbar-nav .nav-link {
	text-align: center;
}
.container-fluid {
	padding-right: 0;
	padding-left: 0;
	margin-right: 0;
	margin-left: 0;
}
}

/* YouTube 影片區塊：給予高度並維持 16:9 比例 */
.youtube {
	position: relative;
	width: 100%;
	height: 0;
	min-height: 280px;
	overflow: hidden;
	margin: 1rem 0;
	background: #000;
}
.youtube iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	min-height: 280px;
	border: 0;
	display: block;
}

/* 行動裝置：YouTube 影片滿寬、維持比例與最小高度 */
@media (max-width: 991.98px) {
	.youtube {
		max-width: 100%;
		width: 100%;
		min-height: 200px;
		margin-left: 0;
		margin-right: 0;
	}
	.youtube iframe {
		max-width: 100%;
		min-height: 200px;
	}
}

/* ===== 文章顯示模組（卡片輪播） ===== */
.article-display-module .article-display-title {
	font-size: 1.75rem;
	font-weight: 700;
}
.article-display-module .article-display-subtitle {
	font-size: 0.95rem;
}
/* 文章輪播：txtbg 背景、內容區約 70% 寬、固定高度，滑動不亂跑 */
.article-display-carousel .carousel-item {
	background-image: url(/img/txtbg.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	min-height: 450px;
	max-height: 470px;
	height: 470px;
	overflow: hidden;
	padding: 4% 0;
	box-sizing: border-box;
	backface-visibility: hidden;
}
.article-display-carousel .carousel-inner {
	overflow: hidden;
}
.article-display-carousel .carousel-item .row {
	width: 70%;
	max-width: 70%;
	margin-left: auto;
	margin-right: auto;
	min-height: 450px;
	max-height: 470px;
	overflow: hidden;
	align-items: stretch;
	box-sizing: border-box;
}
/* 文章顯示：自由滑動捲動條（取代 Carousel），每張 70% 寬、右側露出下一篇 */
.article-display-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	min-height: 450px;
	max-height: 470px;
	padding: 4% 20px 4% 0;
}
.article-display-scroll-item {
    -ms-overflow-style: none;
    background-image: url(/img/txtbg.png1);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    padding: 10px;
    min-height: 390px;
}
.article-display-scroll::-webkit-scrollbar {
	display: none;
}
.article-display-scroll-inner {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	min-height: 450px;
}
.article-display-scroll-item {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	box-sizing: border-box;
	min-width: 0;
	margin: 0% 7px;
}
.article-display-scroll-item .row {
	width: 90%;
	max-width: 100%;
	justify-content: flex-start;
	margin: 0 auto;
	min-height: 450px;
}
.article-display-scroll-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}
.article-display-scroll-dots .article-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	background-color: #a0aec0;
	transition: background-color 0.2s ease;
	cursor: default;
}
.article-display-scroll-dots .article-dot.active {
	background-color: #dc3545;
}
@media (max-width: 767.98px) {
	.article-display-scroll {
		min-height: 380px;
		padding: 3% 0;
		margin-left: 4%;
	}
	.article-display-scroll-inner {
		min-height: 380px;
	}
	.article-display-scroll-item .row {
		min-height: 380px;
	}
}
/* 手機：內容區加寬以利閱讀，背景與高度保留 */
@media (max-width: 767.98px) {
	.article-display-carousel-mobile .carousel-item {
		min-height: 380px;
		max-height: 470px;
		height: 470px;
		overflow: hidden;
		padding: 3% 0;
	}
	    .article-display-carousel-mobile .carousel-item .row {
        width: 83%;
        max-width: 92%;
        min-height: 380px;
        max-height: 470px;
        overflow: hidden;
    }
}
/* 文章輪播內引文（text-muted）最多顯示三行 */
.article-display-carousel .article-display-card .card-text.text-muted,
.article-display-carousel-mobile .article-display-card .card-text.text-muted,
.article-display-scroll .article-display-card .card-text.text-muted {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* 分頁點提示：下方獨立區塊，圓點紅／灰 */
.article-display-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.5rem 0;
}
.article-display-dots .carousel-indicators {
	position: static;
	margin: 0;
}
.article-display-carousel .carousel-indicators {
	gap: 0.5rem;
}
.article-display-carousel .carousel-indicators button,
.article-display-carousel .article-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	opacity: 1;
	background-color: #a0aec0;
	transition: background-color 0.2s ease;
	margin: 0 2px;
}
.article-display-carousel .carousel-indicators button.active,
.article-display-carousel .article-dot.active {
	background-color: #dc3545;
}
/* 輪播支援觸控滑動 */
.article-display-carousel .carousel-inner {
	touch-action: pan-y pinch-zoom;
}
.article-display-carousel-mobile .carousel-inner {
	-webkit-overflow-scrolling: touch;
}
/* 卡片：下凹立體感（內陰影＋輕微外陰影營造邊框深度） */
.article-display-card {
	box-shadow: inset 0 2px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
	border-radius: 0.5rem;
	transition: box-shadow .2s ease;
}
.article-display-card:hover {
	box-shadow: inset 0 2px 10px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.1);
}
.article-display-card .article-display-card-img {
	position: relative;
	height: 150px;
}
.article-display-card .article-display-card-img img {
	height: 150px;
	object-fit: cover;
}
.article-content .row > [class*="col-"] {
	max-width: 98%!important;
        padding-top: 5px!important;
}
.article-display-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0px;
    line-height: 1.4;
}
.article-display-views {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}
.article-display-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-display-read-more {
    display: block;
    text-align: right;
    color: #666666;
    font-size: 12px;
}
.article-display-meta {
    color: #666 !important;
    margin-top: 8px;
    padding: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
