﻿/* 空狀態 */
.empty-state {
		text-align: center;
		padding: 60px 20px;
}
.empty-icon {
		font-size: 4rem;
		color: #d1cccd;
		margin-bottom: 20px;
}
.empty-text {
		font-size: 1.1rem;
		color: #999;
		margin-bottom: 25px;
}
/* 商品分類下拉選單樣式 */
.filter-dropdowns {
		display: flex;
		gap: 15px;
		align-items: center;
		flex-wrap: wrap;
}
.filter-dropdowns .input-group .btn {
		border-color: var(--bs-border-color);
}
/* 調整商品網格為1行4個 */
.products-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
}
/* 商品詳細頁 */
.product-gallery {
		position: sticky;
		top: 110px;
}
/* 主圖區域 */
.main-image-container {
		position: relative;
		margin-bottom: 15px;
}
.main-image-wrapper {
		position: relative;
		width: 100%;
		padding-top: 100%;
		background: #F9F5F5;
		border-radius: 15px;
		overflow: hidden;
		cursor: zoom-in;
}
.main-image-wrapper img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.3s;
}
.main-image-wrapper:hover img {
		transform: scale(1.05);
}
/* 圖片數量指示器 */
.image-counter {
		position: absolute;
		top: 15px;
		left: 15px;
		background: rgba(0, 0, 0, 0.6);
		color: #fff;
		padding: 6px 12px;
		border-radius: 20px;
		font-size: 1rem;
		font-weight: 500;
		z-index: 2;
		backdrop-filter: blur(10px);
}
/* 商品標籤 */
.product-badges {
		position: absolute;
		top: 15px;
		right: 15px;
		display: flex;
		flex-direction: column;
		gap: 8px;
		z-index: 2;
}
.badge-tag {
		padding: 6px 15px;
		border-radius: 20px;
		font-size: 0.75em;
		font-weight: 600;
		letter-spacing: 0.05em;
		backdrop-filter: blur(10px);
}
.badge-tag.new {
		background: rgba(212, 165, 165, 0.95);
		color: #fff;
}
.badge-tag.hot {
		background: rgba(255, 107, 107, 0.95);
		color: #fff;
}
.badge-tag.sale {
		background: rgba(255, 193, 7, 0.95);
		color: #fff;
}
/* 放大圖示 */
.zoom-icon {
		position: absolute;
		bottom: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
		background: rgba(255, 255, 255, 0.9);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.2rem;
		color: var(--primary-color);
		z-index: 2;
		transition: all 0.3s;
}
.main-image-wrapper:hover .zoom-icon {
		background: var(--primary-color);
		color: #fff;
		transform: scale(1.1);
}
/* 縮圖列表 - 水平排列 */
.thumbnail-list {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		padding: .5rem 0 1rem 0;
		scrollbar-width: thin;
		scrollbar-color: var(--primary-color) #F5F5F5;
}
.thumbnail-list::-webkit-scrollbar {
		height: 6px;
}
.thumbnail-list::-webkit-scrollbar-track {
		background: #F5F5F5;
		border-radius: 3px;
}
.thumbnail-list::-webkit-scrollbar-thumb {
		background: var(--primary-color);
		border-radius: 3px;
}
.thumbnail-list::-webkit-scrollbar-thumb:hover {
		background: #C89B9B;
}
.thumbnail-item {
		position: relative;
		width: 80px;
		height: 80px;
		flex-shrink: 0;
		background: #F9F5F5;
		border-radius: 10px;
		overflow: hidden;
		cursor: pointer;
		border: 2px solid transparent;
		transition: all 0.3s;
}
.thumbnail-item:hover {
		border-color: var(--primary-color);
		transform: translateY(-2px);
}
.thumbnail-item.active {
		border-color: var(--primary-color);
		box-shadow: 0 2px 8px rgba(212, 165, 165, 0.3);
}
.thumbnail-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
}
/* 商品資訊區 */
.product-info-section {
		background: #fff;
		border-radius: 15px;
		padding: 40px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
}
.product-title {
		font-size: 2rem;
		color: #333;
		margin-bottom: 10px;
		font-weight: 500;
}
.product-title-en {
		font-size: 1.1rem;
		color: #999;
		margin-bottom: 20px;
		font-style: italic;
}
/* 評分區 */
.product-rating {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 20px;
}
.rating-stars {
		color: #FFB800;
		font-size: 1rem;
}
.rating-count {
		font-size: 0.9rem;
		color: #999;
}
.product-short-desc {
		font-size: 0.95rem;
		color: #666;
		line-height: 1.8;
		margin-bottom: 25px;
		padding-bottom: 25px;
		border-bottom: 1px solid #F5E5E7;
}
/* 價格區 */
.product-price-section {
		margin-bottom: 30px;
}
.price-wrapper {
		display: flex;
		align-items: baseline;
		gap: 15px;
		margin-bottom: 10px;
}
.current-price {
		font-size: 2.2rem;
		color: var(--primary-color);
		font-weight: 600;
}
.current-price-label {
		font-size: 0.9rem;
		color: #999;
		margin-right: 5px;
}
.original-price {
		font-size: 1.3rem;
		color: #999;
		text-decoration: line-through;
}
.discount-badge {
		background: #FF6B6B;
		color: #fff;
		padding: 4px 12px;
		border-radius: 15px;
		font-size: 1rem;
		font-weight: 600;
}
.stock-status {
		font-size: 0.9rem;
		color: #666;
}
.stock-status.in-stock {
		color: #4CAF50;
}
.stock-status.low-stock {
		color: #FF9800;
}
.stock-status.out-stock {
		color: #F44336;
}
/* 商品選項 */
.product-options {
		margin-bottom: 30px;
}
.option-group {
		margin-bottom: 25px;
}
.option-label {
		font-size: 0.95rem;
		color: #666;
		margin-bottom: 12px;
		font-weight: 500;
}
.spec-options {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
}
.spec-option {
		padding: 10px 20px;
		border: 2px solid #E5E5E5;
		border-radius: 8px;
		background: #fff;
		cursor: pointer;
		transition: all 0.3s;
		font-size: 0.9rem;
		color: #666;
}
.spec-option:hover {
		border-color: var(--primary-color);
		color: var(--primary-color);
}
.spec-option.active {
		border-color: var(--primary-color);
		background: var(--primary-color);
		color: #fff;
}
.spec-option.disabled {
		opacity: 0.4;
		cursor: not-allowed;
}
/* 數量選擇 */
.quantity-selector {
		display: flex;
		align-items: center;
		gap: 15px;
}
.quantity-controls {
		display: flex;
		align-items: center;
		border: 2px solid #E5E5E5;
		border-radius: 8px;
		overflow: hidden;
}
.quantity-btn {
		width: 40px;
		height: 40px;
		border: none;
		background: #F9F5F5;
		color: #666;
		cursor: pointer;
		transition: all 0.3s;
		font-size: 1.2rem;
}
.quantity-btn:hover {
		background: var(--primary-color);
		color: #fff;
}
.quantity-input {
		width: 60px;
		height: 40px;
		border: none;
		text-align: center;
		font-size: 1rem;
		font-weight: 500;
}
/* 操作按鈕 */
.action-buttons {
		display: flex;
		gap: 15px;
		margin-bottom: 25px;
}
.btn-add-to-cart {
		flex: 1;
		background: var(--primary-color);
		color: #fff;
		border: none;
		padding: .5rem 1rem;
		border-radius: 10px;
		font-size: 1.05rem;
		font-weight: 500;
		cursor: pointer;
		transition: all 0.3s;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
}
.btn-add-to-cart:hover {
		background: var(--click-color);
		transform: translateY(-2px);
		box-shadow: 0 4px 15px rgba(212, 165, 165, 0.3);
}
.btn-buy-now {
		flex: 1;
		background: #fff;
		color: var(--primary-color);
		border: 2px solid var(--primary-color);
		padding: .5rem 1rem;
		border-radius: 10px;
		font-size: 1.05rem;
		font-weight: 500;
		cursor: pointer;
		transition: all 0.3s;
}
.btn-buy-now:hover {
		background: #FFF5F7;
}
.btn-favorite {
		width: 50px;
		height: 50px;
		border: 2px solid #E5E5E5;
		background: #fff;
		border-radius: 10px;
		cursor: pointer;
		transition: all 0.3s ease;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1rem;
		color: #999;
}
.btn-favorite:hover {
		border-color: var(--primary-color);
		color: var(--primary-color);
}
.btn-favorite.active {
		border-color: var(--primary-color);
		background: var(--primary-color);
		color: #fff;
}
/* 商品資訊 */
.product-meta {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding-top: 25px;
		border-top: 1px solid #F5E5E7;
}
.meta-item {
		display: flex;
		font-size: 0.9rem;
		color: #666;
}
.meta-label {
		min-width: 100px;
		font-weight: 500;
}
.meta-value {
		color: #999;
}
/* 商品 Tabs */
.product-tabs {
		margin-top: 60px;
}
.product-tabs .nav-tabs {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
}
.product-tabs .nav-tabs::-webkit-scrollbar {
		display: none;
}
.product-tabs .nav-tabs .nav-item {
		text-wrap: nowrap;
}
.nav-tabs {
		border-bottom: 2px solid #F5E5E7;
		margin-bottom: 30px;
}
.nav-tabs .nav-link {
		border: none;
		color: #999;
		font-size: 1.05rem;
		padding: 15px 30px;
		cursor: pointer;
		transition: all 0.3s;
		border-bottom: 3px solid transparent;
		margin-bottom: -2px;
}
.nav-tabs .nav-link:hover {
		color: var(--primary-color);
}
.nav-tabs .nav-link.active {
		color: var(--primary-color);
		border-bottom-color: var(--primary-color);
		background: transparent;
}
.tab-content {
		background: #fff;
		border-radius: 15px;
		padding: 40px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
}
.tab-pane {
		font-size: 0.95rem;
		line-height: 1.8;
		color: #666;
}
.tab-pane h3 {
		font-size: 1.3rem;
		color: #333;
		margin-bottom: 20px;
		font-weight: 500;
}
.tab-pane h4 {
		font-size: 1.1rem;
		color: #666;
		margin-top: 25px;
		margin-bottom: 15px;
		font-weight: 500;
}
.tab-pane ul {
		padding-left: 20px;
}
.tab-pane ul li {
		margin-bottom: 10px;
}
/* 商品分類頁專用樣式 */
.filter-sidebar {
		background: #fff;
		border-radius: 15px;
		padding: 25px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
		position: sticky;
		top: 110px;
}
.filter-title {
		font-size: 1.2rem;
		color: var(--primary-color);
		margin-bottom: 20px;
		font-weight: 500;
		padding-bottom: 15px;
		border-bottom: 2px solid #F5E5E7;
}
.filter-group {
		margin-bottom: 25px;
}
.filter-group-title {
		font-size: 0.95rem;
		color: #666;
		margin-bottom: 12px;
		font-weight: 500;
}
.filter-option {
		display: flex;
		align-items: center;
		padding: 8px 0;
}
.filter-option input[type="checkbox"] {
		width: 18px;
		height: 18px;
		margin-right: 10px;
		cursor: pointer;
		accent-color: var(--primary-color);
}
.filter-option label {
		font-size: 0.9rem;
		color: #666;
		cursor: pointer;
		margin: 0;
}
.price-range-inputs {
		display: flex;
		gap: 10px;
		align-items: center;
}
.price-range-inputs input {
		width: 100%;
		padding: 8px 12px;
		border: 1px solid #E5E5E5;
		border-radius: 8px;
		font-size: 0.9rem;
}
.btn-filter-apply {
		width: 100%;
		background: var(--primary-color);
		color: #fff;
		border: none;
		padding: 10px;
		border-radius: 8px;
		font-size: 0.9rem;
		margin-top: 10px;
		cursor: pointer;
		transition: all 0.3s;
}
.btn-filter-apply:hover {
		background: #C89B9B;
}
.btn-filter-reset {
		width: 100%;
		background: transparent;
		color: #999;
		border: 1px solid #E5E5E5;
		padding: 8px;
		border-radius: 8px;
		font-size: 1rem;
		margin-top: 8px;
		cursor: pointer;
		transition: all 0.3s;
}
.btn-filter-reset:hover {
		border-color: var(--primary-color);
		color: var(--primary-color);
}
.products-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 30px;
		padding: 20px;
		background: #fff;
		border-radius: 15px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
}
.products-count {
		font-size: 0.95rem;
		color: #666;
}
.products-sort {
		display: flex;
		align-items: center;
		gap: 10px;
}
.products-sort label {
		font-size: 0.9rem;
		color: #666;
		margin: 0;
}
.products-sort select {
		padding: 8px 25px 8px 15px;
		border: 1px solid #E5E5E5;
		border-radius: 8px;
		font-size: 0.9rem;
		cursor: pointer;
		background: #fff;
}
.products-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 30px;
		margin-bottom: 40px;
}
	.product-tabs .tab-content .tab-pane img{
		max-width: 100%;
		aspect-ratio: auto !important;
		height: auto;
	}
/* 響應式調整 */
@media (max-width: 1199px) {
		.products-grid {
				grid-template-columns: repeat(3, 1fr);
		}  
		.product-tabs .tab-content .tab-pane{
		word-break: break-word;
	}
}
@media (max-width: 991px) {
		.products-grid {
				grid-template-columns: repeat(2, 1fr);
		}
		.products-header {
				flex-direction: column !important;
		}
		.filter-dropdowns {
				flex-direction: column !important;
				align-items: stretch;
				width: 100% !important;
		}
		.products-sort, .filter-dropdowns .input-group, .filter-dropdowns select {
				width: 100% !important;
		}
		.product-gallery {
				position: static;
				margin-bottom: 30px;
		}
		.product-info-section {
				padding: 30px 20px;
		}
		.product-title {
				font-size: 1.6rem;
		}
		.current-price {
				font-size: 1.8rem;
		}
		.action-buttons {}
		.btn-buy-now, .btn-add-to-cart {
				padding: .25rem .75rem;
				border-radius: 10px;
				font-size: .85rem;
		}
		.btn-favorite {
				width: 40px;
				height: 40px;
		}
		.nav-tabs .nav-link {
				padding: .5rem .75rem;
				font-size: .875rem;
		}
		.tab-content {
				padding: 25px 20px;
		}
		.filter-sidebar {
				position: static;
				margin-bottom: 30px;
		}
		.products-grid {
				grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
				gap: 20px;
		}
}
@media (max-width: 576px) {
		.products-grid {
				grid-template-columns: 1fr;
		}
		.spec-options {
				gap: 8px;
		}
		.spec-option {
				padding: .25rem .5rem;
				font-size: .85rem;
		}
		.thumbnail-item {
				width: 60px;
				height: 60px;
		}
		.image-counter {
				top: 8px;
				left: 8px;
				padding: .25rem .7rem;
				border-radius: 20px;
				font-size: .75rem;
		}
		.products-header {
				flex-direction: column;
				gap: 15px;
				align-items: flex-start;
		}
		.products-sort {
				width: 100%;
		}
		.products-sort select {
				flex: 1;
		}
		.products-grid {
				grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
				gap: 15px;
		}
		.action-buttons {
				position: fixed;
				bottom: 0;
				top: auto;
				width: 100%;
				left: 0;
				right: 0;
				margin: auto;
				z-index: 2;
				padding: 1rem;
				background-color: #ffffff;
		}
		.product-title {
				font-size: 1.25rem;
		}
		.product-short-desc {
				font-size: .8125rem;
				letter-spacing: normal;
				line-height: 1.5;
		}
		.product-tabs .tab-content .tab-pane {
				font-size: .8125rem;
				line-height: 1.5;
		}
		.btn-add-to-cart i {
				display: none;
		}
		.btn-buy-now, .btn-add-to-cart {
				padding: .25rem .5rem;
				font-size: .8125rem;
		}
		.empty-state {
				padding: 30px 20px;
		}
		.empty-icon {
				font-size: 3rem;
		}
		.empty-text {
				font-size: 1rem;
		}
}