/* CSS Document */
.page-filter {
	margin-left: auto !important;
	width: 130px !important;
}
.page-filter:not(.bootstrap-select) li {
	margin-left: 1.5rem;
}
.page-filter:not(.bootstrap-select) li a {
	position: relative;
	padding-bottom: 8px;
	color: var(--dark);
}
.page-filter:not(.bootstrap-select) li.active a:before {
	content: '';
	display: block;
	width: 100%;
	height: 3px;
	background-color: var(--bg-color);
	position: absolute;
	left: 0;
	bottom: 0;
}
.page-filter:not(.bootstrap-select) li.active a, .page-filter:not(.bootstrap-select) li:hover a {
	color: var(--color-link);
}
.page-filter:not(.bootstrap-select) li.active a .st0, .page-filter:not(.bootstrap-select) li a:hover .st0 {
	fill: var(--color-link);
}
.page-filter .dropdown-item.active, .page-filter .dropdown-item:active {
	background-color: var(--secondary-color);
}
.page-filter .btn-light {
	background-color: #fff;
	border-color: #D0D0D0;
}
.page-filter .btn-light:not(:disabled):not(.disabled):active, 
.page-filter .btn-light:not(:disabled):not(.disabled).active, 
.page-filter.show > .btn-light.dropdown-toggle {
	background-color: #fff;
	border-color: #D0D0D0;
}
.page-filter .dropdown-item.active {
	color: #fff;
}
.sale-flash {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
	min-width: 60px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}
.sale-flash .badge {
	display: block;
	text-align: center;
}
.product-list-toolbar {
	flex-wrap: nowrap;
}
#view-type {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
}
#view-type > a.btn,
#view-type > a.btn-sm {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}
#view-type .material-symbols-outlined {
	display: inline-block;
	line-height: 1;
	font-size: 20px;
}
#cart_modal .product-modal-specs .checkbox-style-3-label {
	margin-bottom: 0;
}

/* 詳情頁：不顯示右側第二商品區塊時改全寬 2026/8/5 */
.product-detail-no-sidebar .product-detail-main-full {
	max-width: 100%;
	flex: 0 0 100%;
}
.product-detail-no-sidebar .product_detail_block {
	width: 100%;
}
.product-detail-no-sidebar #myTab.nav-tabs.sticky {
	width: 100%;
	left: 0;
	right: 0;
}

@media (max-width: 991.98px) {
	#page-title {
		display: none;
	}
	.content-wrap {
		padding-top: 0;
	}
	#view-type {
		margin-left: auto;
	}
	.page-filter {
		margin-left: 10px !important;
		width: 90px !important;
	}
	.product-type-title-xs {
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* 無售價時：操作圖示貼標題右側，避免空洞底欄 2026/08/11 starfire */
.shop .product-title .product-item-action,
.shop .product-title .product-actions,
.oc-item .product-title .product-item-action {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.5rem;
	margin-left: 0.5rem;
	padding-top: 0.15rem;
}
.shop .product-title > h3,
.oc-item .product-title > h3 {
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0;
}
.shop:not(.list-view) .product-desc:not(:has(.product-price-box)) h3 a,
.oc-item .product-desc:not(:has(.product-price-box)) h3 a {
	min-height: 0;
}
.shop .product-price-box .product-item-action,
.oc-item .product-price-box .product-item-action {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
	gap: 0.5rem;
}
.shop.list-view .product-footer .product-actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
	gap: 0.75rem;
}

/* 商品詳情頁籤：完整顯示標籤文字，禁止省略 2026/08/11 starfire */
.product_detail_block .nav.nav-tabs .nav-item {
	flex: 1 1 0;
	min-width: 0;
}
.product_detail_block .nav-tabs .nav-link {
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
@media (max-width: 575.98px) {
	.product_detail_block .nav.nav-tabs .nav-item {
		flex: 1 1 auto;
	}
	.product_detail_block .nav-tabs .nav-link {
		font-size: 0.875rem;
		padding-left: 0.25rem;
		padding-right: 0.25rem;
	}
}

/* sticky 數量列：桌機／手機共用結構 2026/08/12 starfire */
.product-sticky-qty-ctrl {
	display: flex;
	align-items: stretch;
	width: 100%;
}
.product-sticky-qty-ctrl .minus,
.product-sticky-qty-ctrl .plus {
	flex: 0 0 40px;
	width: 40px;
	cursor: pointer;
}
.product-sticky-qty-ctrl .qty {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	text-align: center;
}

/* 手機詳情底欄購物車：對齊、滿寬、消除右側白邊 2026/08/12 starfire */
@media (max-width: 991.98px) {
	.single-product .product {
		padding-bottom: 64px;
	}
	.product-sticky-cart {
		position: fixed;
		z-index: 199;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		margin: 0 !important;
		padding: 0;
		padding-bottom: env(safe-area-inset-bottom, 0);
		background: #fff;
		border-top: 1px solid #e6e6e6;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
		display: flex !important;
		flex-wrap: wrap;
		align-items: stretch;
		min-height: 52px;
	}
	.product-sticky-cart > [class*="col"] {
		padding-left: 0 !important;
		padding-right: 0 !important;
		float: none;
		max-width: none;
	}
	.product-sticky-cart .sticky-spec-mobile-wrapper {
		flex: 0 0 100%;
		width: 100%;
		order: -1;
		padding: 8px 12px !important;
		border-bottom: 1px solid #eee;
		background: #fff;
	}
	.product-sticky-cart-fav {
		flex: 0 0 56px;
		width: 56px;
		border-right: 1px solid #ececec;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.product-sticky-cart-fav .add-to-fav {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 52px;
		padding: 0;
		margin: 0;
		line-height: 1.1;
		font-size: 11px;
		color: #555;
		text-decoration: none;
	}
	.product-sticky-cart-fav .add-to-fav i {
		font-size: 22px;
		line-height: 1;
		margin-bottom: 2px;
	}
	.product-sticky-cart-qty {
		flex: 0 0 118px;
		width: 118px;
		display: flex;
		align-items: stretch;
		border-right: 1px solid #ececec;
	}
	.product-sticky-cart-qty .quantity {
		width: 100%;
		margin: 0;
		float: none;
	}
	.product-sticky-qty-ctrl {
		display: flex;
		align-items: stretch;
		width: 100%;
		height: 52px;
	}
	.product-sticky-qty-ctrl .minus,
	.product-sticky-qty-ctrl .plus,
	.product-sticky-qty-ctrl .qty {
		height: 52px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
		margin: 0 !important;
	}
	.product-sticky-qty-ctrl .minus,
	.product-sticky-qty-ctrl .plus {
		flex: 0 0 36px;
		width: 36px;
		padding: 0;
		color: #515154 !important;
		font-size: 18px;
		line-height: 52px;
		cursor: pointer;
	}
	.product-sticky-qty-ctrl .qty {
		flex: 1 1 auto;
		min-width: 0;
		width: auto !important;
		text-align: center;
		font-size: 15px;
		line-height: 52px;
		padding: 0;
		color: #222;
	}
	.product-sticky-cart-action {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		align-items: stretch;
	}
	.product-sticky-cart-action > .row {
		width: 100%;
		margin: 0 !important;
		display: flex;
		align-items: stretch;
	}
	.product-sticky-cart-action > .row > .col {
		padding: 0 !important;
		display: flex;
	}
	.product-sticky-cart-action .button,
	.product-sticky-cart-action .add-to-cart {
		width: 100%;
		min-height: 52px;
		height: 100%;
		margin: 0 !important;
		padding: 0 12px !important;
		border: 0 !important;
		border-radius: 0 !important;
		line-height: 52px !important;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0.02em;
	}
}
