/*
Theme Name: Hong Chi
Theme URI: 
Author: 310solutions
Author URI: 
Description: A custom WordPress theme built with Bootstrap 5
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-bootstrap-theme
Tags: bootstrap, responsive, modern
*/

body {
	font-family: 'Arial', sans-serif;
	background-color: #efefef;
}

#main {
	margin-top: 3rem;
}

a, .lead, h1, h2, h3, h4{
	color:#333333;
}
p {
	color: #888888;
}

.py-5 {
	padding:112px 0 !important;
}

.woocommerce .woocommerce-ordering select {
	display:none;
}
/* Add your custom styles here */
.bg-teal {
	background-color: #0c9bae;
}
.bg-teal-g {
	background: linear-gradient(to right, #0699ab, #6ad0dd);
}
.color-teal {
	color: #0095A8;
}
.onsale {
	display: none;
}


/* Header Styles */


/* footer */

footer .site-footer {
	background-color: #0095A8 !important;
	color: #ffffff !important;
}
.site-footer {
	background-color: #0095A8;
	font-size: 0.95rem;
	color: #ffffff !important;
}

.footer-title {
	font-size: 1rem;
	font-weight: 600;
color: #ffffff !important;
	margin-bottom: 0.5rem;
}

.footer-company-info p {
	margin-bottom: 0.5rem;
color: #ffffff !important;
}

.footer-nav .footer-menu {
	margin: 0;
	padding: 0;
}

.footer-nav .footer-menu li {
	margin-bottom: 0.75rem;
}

.footer-nav .footer-menu a {
color: #ffffff !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.copyright, .footer-nav .footer-menu a:hover {
color: #ffffff !important;
}

.footer-link {
color: #ffffff !important;
	text-decoration: none;
	transition: color 0.2s ease;
	margin-left: 1.5rem;
}

.footer-link:first-child {
	margin-left: 0;
}

.footer-link:hover {

}

.footer-bottom {

}

.copyright {
	font-size: 0.9rem;
}

@media (max-width: 767.98px) {
	.footer-links {
		text-align: left;
		margin-top: 1rem;
	}
	
	.footer-link {
		display: block;
		margin: 0.5rem 0;
	}
	
	.footer-bottom {
		text-align: center;
	}
}

.footer-nav {
	display: flex;
	justify-content: flex-end; /* 右對齊 */
}

.footer-menu {
	display: flex;
	gap: 2rem; /* 選單項目之間的間距 */
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin: 0; /* 重置原有的 margin */
}

.footer-menu a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap; /* 防止文字換行 */
}

.footer-menu a:hover {
	color: #0095A8;
}

/* 響應式調整 */
@media (max-width: 991.98px) {
	.footer-nav {
		justify-content: flex-start; /* 在手機版時左對齊 */
	}
	
	.footer-menu {
		flex-direction: column; /* 在手機版時改為垂直排列 */
		gap: 1rem;
	}
}

.social-icons {
	display: flex;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.social-icon {
	color: #ffffff;
	font-size: 1.5rem;
	transition: color 0.2s ease;
}

.social-icon:hover {
	color: #ffffff;
}

/* 特定社交媒體的顏色 */
.social-icon:hover .bi-facebook {
	color: #ffffff;
}

.social-icon:hover .bi-instagram {
	color: #ffffff;
}

.social-icon:hover .bi-line {
	color: #ffffff;
}

.social-icon:hover .bi-youtube {
	color: #ffffff;
}

/* style.css - 手機版 header 樣式 */

/* 基本導航樣式 */
.navbar {
	padding: 1rem 0;
}

/* Logo 樣式 */
.main-logo {
	height: auto;
	max-width: 200px;
	object-fit: contain;
}

@media (max-width: 991.98px) {
	.main-logo {
		max-width: 150px;
	}
}

/* 手機版選單樣式 */
.navbar-toggler {
	padding: 0.5rem;
	border: none;
}

.navbar-toggler:focus {
	box-shadow: none;
	outline: none;
}

/* 手機版下拉選單樣式 */
@media (max-width: 991.98px) {
	.navbar-collapse {
	}

	/* WooCommerce 手機版選單樣式 */
	.mobile-woo-nav {
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		margin-top: 1rem;
		padding-top: 1rem;
	}

	.mobile-woo-nav .nav-item {
		width: 100%;
	}

	.mobile-woo-nav .nav-link {
		padding: 0.75rem 0;
		display: flex;
		align-items: center;
		color: #333;
	}

	.mobile-woo-nav .nav-link i {
		font-size: 1.25rem;
		margin-right: 0.5rem;
	}

	.mobile-woo-nav .cart-count {
		background-color: #0095A8;
		color: white;
		border-radius: 50%;
		padding: 0.25rem 0.5rem;
		font-size: 0.75rem;
		margin-left: 0.5rem;
	}

	/* 主選單項目樣式 */
	.navbar-nav .nav-item {
		padding: 0.5rem 0;
	}

	.navbar-nav .nav-link {
		padding: 0.5rem 0;
	}
}

/* 桌面版 WooCommerce 圖標樣式 */
.woocommerce-nav-wrapper .navbar-nav {
	display: flex;
	gap: 1rem;
}

.woocommerce-nav-wrapper .nav-link {
	padding: 0.5rem;
	color: #333;
	position: relative;
}

.woocommerce-nav-wrapper .nav-link i {
	font-size: 1.25rem;
}

.woocommerce-nav-wrapper .cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: #0095A8;
	color: white;
	border-radius: 50%;
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	min-width: 1.5rem;
	text-align: center;
}

/* Header 滾動效果 */
.site-header {
	transition: all 0.3s ease;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
}

/* style.css - 添加/更新以下樣式 */
.navbar-toggler {
	padding: 0.5rem;
	border: none;
}

.navbar-toggler:focus {
	box-shadow: none;
	outline: none;
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230095A8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* hover 狀態也保持相同顏色 */
.navbar-toggler:hover .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230095A8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 更新的樣式 */
.login-form-wrapper {
	max-width: 90%;
	margin: 0 auto;
}

.testimonial-wrapper {
	max-width: 90%;
	margin: 0 auto;
}

/* 表單元素樣式 */
.form-control {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
	font-size: 1rem;
}

.form-control:focus {
	border-color: #007a8a;
	box-shadow: 0 0 0 0.2rem rgba(0, 122, 138, 0.25);
}

/* 登入按鈕樣式 */
.btn-primary {
	background-color: #0095a8 !important;
	border-color: #0095a8 !important;
	border-radius: 100px;  /* 更圓的按鈕 */
	padding: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btn-primary:hover {
	background-color: #0095a8;
	border-color: #0095a8;
	color: #ffffff;
}

/* 社群登入按鈕 */
.line-login-btn,
.facebook-login-btn {
	border-radius: 50px;
	padding: 1rem;
	transition: all 0.3s ease;
}

.line-login-btn {
	background-color: #00B900;
	color: white;
}

.facebook-login-btn {
	background-color: #1877F2;
	color: white;
}

/* 更新輪播區域樣式 */
.testimonial-card {
	background: white;
	padding: 3rem 2rem;
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	position: relative;
}

/* 垂直分隔線 */
.vertical-divider {
	width: 1px;
	height: 40px;
	background-color: #000000;
}

/* 作者和品牌區域 */
.testimonial-footer {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.brand-logo img {
	width: 150px;
	height: auto;
	object-fit: contain;
}


.bi-star-fill {
	color: #0095A8;
}
.author-info h5{
	color: #0095A8;
}


/* 導航包裝器樣式 */
.carousel-navigation-wrapper {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

/* 控制按鈕樣式 */
.carousel-control-prev,
.carousel-control-next {
	position: relative;
	width: 40px;
	height: 40px;
	background: transparent;
	opacity: 1;
	margin: 0;
	padding: 0;
	transform: none;
	top: auto;
	left: auto;
	right: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007a8a'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
	width: 20px;
	height: 20px;
}

.carousel-control-next-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007a8a'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* 指示器樣式 */
.carousel-indicators {
	position: relative;
	margin: 0;
	bottom: auto;
	display: flex;
	gap: 10px;
}

.carousel-indicators [data-bs-target] {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #007a8a;
	border: none;
	opacity: 0.3;
	margin: 0;
}

.carousel-indicators .active {
	opacity: 1;
}

/* 響應式調整 */
@media (max-width: 767.98px) {
	.carousel-navigation-wrapper {
		padding: 0 20px;
	}
}

/* 添加這些樣式來確保全寬顯示 */
.custom-login-container {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	background-color: #ffffff;
}

.custom-login-page {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* 覆蓋 WooCommerce 默認樣式 */
.woocommerce {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* 確保沒有不必要的邊距 */
.woocommerce-account .woocommerce {
	padding: 0;
	margin: 0;
}

/* 移除任何可能的額外容器樣式 */
.content-area,
.site-content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}


/* 背景圖片相關樣式 */
.testimonial-section {
	position: relative;
	background: url('') no-repeat center center;
	background-size: cover;
	min-height: 100vh;
}



/* 確保內容在背景覆蓋層上方 */
.testimonial-wrapper {
	position: relative;
	z-index: 1;
}



/* 響應式調整 */
@media (max-width: 767.98px) {
	.testimonial-section {
		min-height: auto;
		padding: 4rem 0;
	}
}



.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt {
	background-color: #007a8a !important;
}

.woocommerce table.shop_table {
	border:0px !important);
}
.cart-site-main .woocommerce {
	background-color: #9ecbd0;
}

/* 進度條容器樣式 */
.steps {
	background-color: #d4e8ea;
	width: 100%;
	height: 80px; /* 固定容器高度 */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.steps-img {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.steps-img img {
	height: 80px;
	width: auto; /* 讓寬度自動調整以保持圖片比例 */
	object-fit: contain; /* 確保圖片完整顯示且不變形 */
	max-width: 100%; /* 確保圖片不會超出容器寬度 */
}

/* 響應式調整 */
@media (max-width: 768px) {
	.steps, .steps-img, .steps-img img {
		height: 60px; /* 在手機版可以適當縮小高度 */
	}
}

/* 結帳表單樣式 */
.woocommerce form .form-row {
	margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: #333;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	border: 1px solid #E0E0E0;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	width: 100%;
	background-color: #fff;
	font-size: 1rem;
	transition: border-color 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: none;
	border-color: #0095A8;
	box-shadow: 0 0 0 2px rgba(0, 122, 138, 0.1);
}

/* Placeholder 樣式 */
.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder {
	color: #999;
	font-size: 0.9rem;
}

/* 必填欄位標記 */
.woocommerce form .form-row .required {
	color: #007a8a;
	font-weight: 400;
}

/* 選擇性欄位標籤 */
.woocommerce form .form-row label .optional {
	color: #999;
	font-weight: normal;
	font-size: 0.9em;
}

/* 錯誤提示樣式 */
.woocommerce form .form-row.woocommerce-invalid label {
	color: #dc3545;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text {
	border-color: #dc3545;
}

/* 選取框樣式 */
.woocommerce form .form-row select {
	border: 1px solid #E0E0E0;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	width: 100%;
	background-color: #fff;
	font-size: 1rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}

/* 複選框樣式 */
.woocommerce form .form-row .input-checkbox {
	margin: -2px 8px 0 0;
}

/* 表單分組標題 */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
	font-size: 1.25rem;
	color: #333;
	margin-bottom: 1.5rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
	.woocommerce form .form-row input.input-text,
	.woocommerce form .form-row textarea,
	.woocommerce form .form-row select {
		font-size: 16px; /* 防止 iOS 自動縮放 */
	}
}

.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3{
	text-align: center;
	padding-bottom: 20px;
	border-bottom: 1px solid white;
}


/* archive page */
.page-numbers {
	display: flex;
	justify-content: center;
	padding-left: 0;
	list-style: none;
}

.page-numbers li {
	margin: 0 0.25rem;
}

.page-numbers .page-link {
	display: block;
	padding: 0.5rem 0.75rem;
	border: 1px solid #dee2e6;
	border-radius: 0.25rem;
	text-decoration: none;
	color: #0095A8;
}

.page-numbers .current {
	background-color: #0095A8;
	color: white;
	border-color: #0095A8;
}

.page-numbers .page-link:hover {
	background-color: #e9ecef;
}


/* single product */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border: 0px solid #d3ced2;
	background-color: transparent !important;
	color: #515151;
	display: inline-block;
	position: relative;
	z-index: 0;
	border-radius: 0;
	margin: 0 -5px;
	padding: 0 1em
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active  {
	border-bottom: 3px solid #e25964;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::after, .woocommerce div.product .woocommerce-tabs ul.tabs li::before  {
	border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before {
	box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
	box-shadow: none;
}

.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images {
	width: 100% !important;
}

.card {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 25px !important;
}
.productcard {
	border-radius: 25px !important;
	border: 0px;
}
.productcard .add_to_cart_button {
	display: none !important;
}
.productcard img, .card-img, .card-img-top, .product-thumbnail-wrapper{
	border-radius: 25px 25px 0px 0px !important;
	border: 0px;
}

.productcard .woocommerce-loop-product__title, .productcard .price {
	color: #222222 !important;
	margin: 15px !important;
}

/* 產品容器 */
.woocommerce ul.products li.product {
	/* 確保產品容器有足夠的寬度 */
	overflow: hidden; /* 防止內容溢出 */
	clear: none !important;
}
.woocommerce-product-gallery__wrapper
{
	background-color:#ffffff;
}
/* 建立固定尺寸的正方形容器 */
.product-thumbnail-wrapper {
	width: 100%; /* 使用相對寬度而不是固定寬度 */
padding-top: 100%; /* 創建 1:1 的寬高比 */
position: relative;
overflow: hidden;
margin-bottom: 1em;
background-color:#ffffff; /* 添加底部間距 */
}

/* 讓圖片完全覆蓋容器 */
.product-thumbnail-wrapper img {
	position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

/* 確保下拉選單正確顯示 */
.navbar-nav .dropdown:hover > .dropdown-menu {
	display: block;
}

/* 移除 Bootstrap 默認的下拉箭頭 */
.navbar-nav .dropdown-toggle::after {
	display: none;
}

/* 確保所有連結可點擊 */
.navbar-nav .nav-link {
	cursor: pointer;
	pointer-events: auto !important;
}

/* 下拉指示器樣式 */
.dropdown-indicator {
	font-size: 12px;
	opacity: 0.8;
}

/* 下拉選單樣式 */
.dropdown-menu {
	margin-top: 0;
	border-top: 2px solid #0095A8;
}

.info-card {
	position: relative;
	background-color: #E7F2F3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.eng-icon {
	background: url(https://uat.hongchi-ksmg.com/wp-content/themes/hongchi/assets/images/medicine.png) no-repeat center center;
	background-size: contain;
	padding: 20px 0;
	display: inline-block;
}

.woocommerce-tabs .entry-content img {
	width: 100% !important;
	text-align: center !important;
}

.woocommerce-lost-password .entry-header {
	text-align: center;
	margin-top: 50px;
}