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

/* 全域樣式 */
body {
	font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #333;
}
/* 頂部聯絡資訊欄 */
.top-bar {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	font-size: 0.9rem;
}
.mainarea {
	overflow: hidden;
}
.pagetitle {
	position: absolute;
	bottom: 10px;
	width: 100%;
}
.bg-white {
	background-color: rgb(58 71 84) !important;
}
.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) {
	.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);
}
.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;
}
.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;
	overflow: hidden;
	transition: all 0.3s ease;
}
.product-card:hover {
	border-color: #0d6efd;
	box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}
.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: #1a1a1a !important;
	border-top: 3px solid #0d6efd;
}
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;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transition: all 0.3s ease;
}
#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;
}
.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: 90%;
	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;
	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(100% / 1) !important;
		width: calc(100% / 1) !important;
		max-width: calc(100% / 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="1"] .slider-item {
		flex: 0 0 calc(100% / 1) !important;
		width: calc(100% / 1) !important;
		max-width: calc(100% / 1) !important;
		min-width: calc(100% / 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 .slider-wrapper {
		display: flex !important;
		flex-wrap: nowrap !important;
	}
	
	/* 確保內容完整顯示 */
	.image-slider-module .slide-content {
		overflow: visible !important;
		height: auto !important;
		min-height: auto !important;
	}
	
	.image-slider-module .slider-image {
		height: auto !important;
		max-height: none !important;
		object-fit: contain !important;
	}
}

.image-slider-module .slide-content {
	position: relative;
	overflow: visible;
}

.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 {
	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;
}
.product-list-module .text-center .text-muted {
	font-size: 1.1rem;
	margin-bottom: 2rem;
}
.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;
}
.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) {
.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;
	right: 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;
}
}
