/**
 * 置頂欄重做
 *
 * 原本的問題：搜尋列寬到 1000px 把整條吃掉、logo 被壓得很小、
 * 右邊四顆圖示各自包在灰圓圈裡、只有「比較」有字，輕重不一。
 *
 * 做法是只調樣式、不動佈景主題的結構（版面是 Woodmart 的置頂欄產生器排的，
 * 動結構等於把後台那份設定作廢）。
 *
 * @package woodmart-child
 */

.whb-header {
	--igo-h-line: #E5E5E7;
	--igo-h-ink: #1F1F22;
	--igo-h-ink-2: #4B4B52;
	--igo-h-muted: #85858E;
	--igo-h-hover: #F0F0F2;
	--igo-h-brand: #B81820;
}

/* --- 最上面那條小字列 ------------------------------------------------- */

.whb-top-bar .wd-nav-secondary > li > a {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--igo-h-muted);
	transition: color .15s ease;
}

.whb-top-bar .wd-nav-secondary > li > a:hover {
	color: var(--igo-h-ink);
}

/* --- 主列：logo ｜ 搜尋 ｜ 圖示 ---------------------------------------- */

@media (min-width: 1025px) {
	/* logo 放大一點，不然被搜尋列壓得像附屬品 */
	.whb-header .whb-col-left .site-logo img {
		max-height: 46px;
		width: auto;
	}

	/* 搜尋列收到 460px 並置中，中間那一欄本來就是彈性寬，不用動欄位 */
	.whb-header .whb-col-center .wd-search-form {
		width: 100%;
		max-width: 460px;
		margin: 0 auto;
	}
}

/* 搜尋框本體：細框、白底、圓角，滑過去與游標進去時邊框加深。
   ⚠️ 只管「中間那一欄」的搜尋列。內頁那個壓縮版置頂欄把搜尋放在右邊、
   只留一顆圖示，套同一組樣式會把放大鏡擠到列外面去（踩過）。 */
.whb-header .whb-col-center .wd-search-form form.searchform {
	position: relative;
}

.whb-header .whb-col-center .wd-search-form form.searchform input[type="text"] {
	height: 44px;
	padding: 0 18px 0 46px;
	border: 1px solid var(--igo-h-line);
	border-radius: 999px;
	background-color: #fff;
	box-shadow: none;
	font-size: 15px;
	color: var(--igo-h-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.whb-header .whb-col-center .wd-search-form form.searchform input[type="text"]::placeholder {
	color: var(--igo-h-muted);
	opacity: 1;
}

.whb-header .whb-col-center .wd-search-form form.searchform:hover input[type="text"] {
	border-color: #D3D3D8;
}

.whb-header .whb-col-center .wd-search-form form.searchform input[type="text"]:focus {
	border-color: var(--igo-h-ink-2);
	box-shadow: 0 0 0 3px rgba(31, 31, 34, .06);
}

/* 放大鏡固定在左邊，按鈕本身不要有底色與框 */
.whb-header .whb-col-center .wd-search-form form.searchform button,
.whb-header .whb-col-center .wd-search-form form.searchform .searchsubmit {
	position: absolute;
	top: 50%;
	left: 4px;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--igo-h-muted);
	transition: color .15s ease;
}

.whb-header .whb-col-center .wd-search-form form.searchform button:hover {
	background: none;
	color: var(--igo-h-ink);
}

.whb-header .whb-col-center .wd-search-form form.searchform button:before,
.whb-header .whb-col-center .wd-search-form form.searchform .searchsubmit:before {
	font-size: 17px;
}

/* 內頁壓縮版：搜尋只是一顆圖示，跟右邊其他圖示一樣大、對齊同一條中線 */
.whb-header .whb-col-right .wd-search-form {
	display: flex;
	align-items: center;
	align-self: center;
}

/* --- 右邊那排圖示 ------------------------------------------------------ */

/* 灰圓圈拿掉，改成滑過去才出現的淺底；四顆大小一致。
   ⚠️ 底色與尺寸是佈景主題的置頂欄產生器逐一產生的（選擇器帶一串亂碼、
   權重比一般寫法高），所以這裡一定要 important 才蓋得掉。 */
.whb-header .wd-tools-element .wd-tools-icon,
.whb-header .wd-tools-element .wd-tools-inner {
	width: 40px !important;
	height: 40px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background-color: transparent !important;
	color: var(--igo-h-ink) !important;
	transition: background-color .15s ease, color .15s ease;
}

.whb-header .wd-tools-element:hover .wd-tools-icon,
.whb-header .wd-tools-element:hover .wd-tools-inner,
.whb-header .wd-tools-element > a:focus-visible .wd-tools-icon {
	background-color: var(--igo-h-hover) !important;
	color: var(--igo-h-ink) !important;
}

.whb-header .wd-tools-element .wd-tools-icon:before,
.whb-header .wd-tools-element .wd-tools-inner:before {
	font-size: 21px !important;
	line-height: 40px !important;
}

/* 只有「比較」有字，四顆看起來輕重不一 —— 字收起來 */
.whb-header .wd-header-compare .wd-tools-text {
	display: none;
}

.whb-header .whb-col-right .wd-tools-element {
	margin-left: 2px;
}

/* 購物車上的數字：小一點、貼右上角 */
.whb-header .wd-header-cart .wd-cart-number {
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background-color: var(--igo-h-brand);
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
}

/* --- 分類列 ------------------------------------------------------------ */

.whb-header .wd-header-main-nav .wd-nav > li > a {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--igo-h-ink-2);
	transition: color .15s ease;
}

.whb-header .wd-header-main-nav .wd-nav > li > a:hover,
.whb-header .wd-header-main-nav .wd-nav > li.current-menu-item > a {
	color: var(--igo-h-brand);
}

/* 分類前面那些小圖統一大小，不然一排高高低低 */
.whb-header .wd-header-main-nav .wd-nav > li > a img,
.whb-header .wd-header-main-nav .wd-nav > li > a svg {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* --- 手機 -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.whb-header .wd-tools-element .wd-tools-icon,
	.whb-header .wd-tools-element .wd-tools-inner {
		width: 38px !important;
		height: 38px !important;
	}

	.whb-header .wd-tools-element .wd-tools-icon:before,
	.whb-header .wd-tools-element .wd-tools-inner:before {
		font-size: 20px !important;
		line-height: 38px !important;
	}

	.whb-header .site-logo img {
		max-height: 38px;
		width: auto;
	}
}

/* ======================================================================
 * 2026-09-24 照老闆的 Canva 首頁範本改，全站套用（老闆 9/24 確認）。
 *   選擇器前面的 html body:not(.igo-nohd) 是為了壓過 category-cw.css 裡 body.igo-ccw 開頭的置頂欄樣式；
 *   分類頁原本把三條併成一條的腳本已在 category-cw.js 關掉（IGO_COMPACT_HEADER）。
 *   米色底、logo 後面緊接搜尋框（深色細框）＋篩選圖示、右邊三顆紅色線條圖示、
 *   分類列置中粗體＋紅色下拉箭頭；首頁的分類列半透明疊在主視覺上。
 *   最上面那條小字列範本上沒有，收起來。
 * ====================================================================== */

html body:not(.igo-nohd) .whb-header {
	--igo-h-cream: #faefe0;
	--igo-h-red: #b02023;
	--igo-h-dark: #2a2b2a;
}

html body:not(.igo-nohd) .whb-header .whb-top-bar {
	display: none;
}

html body:not(.igo-nohd) .whb-header .whb-main-header,
html body:not(.igo-nohd) .whb-header .whb-general-header,
html body:not(.igo-nohd) .whb-header .whb-header-bottom {
	background-color: var(--igo-h-cream) !important;
	border-bottom: 0 !important;
}

@media (min-width: 1025px) {
	html body:not(.igo-nohd) .whb-header .whb-general-header-inner {
		height: 85px !important;
		max-height: 85px !important;
	}

	html body:not(.igo-nohd) .whb-header .whb-header-bottom-inner {
		height: 50px !important;
		max-height: 50px !important;
	}

	html body:not(.igo-nohd) .whb-header .whb-col-left .site-logo img {
		max-height: 52px;
	}

	/* 搜尋框緊接在 logo 後面，不再置中 */
	html body:not(.igo-nohd) .whb-header .whb-general-header .whb-col-center {
		justify-content: flex-start;
		padding-left: 22px;
	}

	html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form {
		max-width: 256px;
		margin: 0;
	}
}

html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform input[type="text"] {
	height: 38px;
	padding: 0 44px 0 18px;
	border: 1.5px solid var(--igo-h-dark);
	background-color: transparent;
	font-size: 15px;
	font-weight: 700;
}

html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform input[type="text"]::placeholder {
	color: #9a948b;
}

html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform:hover input[type="text"] {
	border-color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform input[type="text"]:focus {
	border-color: var(--igo-h-dark);
	background-color: #fff;
	box-shadow: none;
}

/* 放大鏡換到右邊、深色 */
html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform button,
html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform .searchsubmit {
	left: auto;
	right: 4px;
	color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform button:before,
html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform .searchsubmit:before {
	font-size: 18px;
	font-weight: 700;
}

/* 搜尋框旁邊的篩選圖示（連到所有商品頁的篩選） */
html body:not(.igo-nohd) .igo-h-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin-left: 10px;
	border-radius: 999px;
	color: #7a756e;
	transition: background-color .15s ease, color .15s ease;
}

html body:not(.igo-nohd) .igo-h-filter:hover {
	background-color: rgba(0, 0, 0, .05);
	color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .igo-h-filter svg {
	width: 30px;
	height: 26px;
}

/* 右邊圖示：範本只有 收藏／帳號／購物車，紅色線條 */
html body:not(.igo-nohd) .whb-header .wd-header-compare {
	display: none !important;
}

html body:not(.igo-nohd) .whb-header .wd-tools-element .wd-tools-icon,
html body:not(.igo-nohd) .whb-header .wd-tools-element .wd-tools-inner,
html body:not(.igo-nohd) .whb-header .wd-tools-element:hover .wd-tools-icon,
html body:not(.igo-nohd) .whb-header .wd-tools-element:hover .wd-tools-inner {
	color: var(--igo-h-red) !important;
}

html body:not(.igo-nohd) .whb-header .wd-tools-element:hover .wd-tools-icon,
html body:not(.igo-nohd) .whb-header .wd-tools-element:hover .wd-tools-inner {
	background-color: rgba(176, 32, 35, .07) !important;
}

@media (min-width: 1025px) {
	html body:not(.igo-nohd) .whb-header .wd-tools-element .wd-tools-icon,
	html body:not(.igo-nohd) .whb-header .wd-tools-element .wd-tools-inner {
		width: 46px !important;
		height: 46px !important;
	}

	html body:not(.igo-nohd) .whb-header .wd-tools-element .wd-tools-icon:before,
	html body:not(.igo-nohd) .whb-header .wd-tools-element .wd-tools-inner:before {
		font-size: 27px !important;
		line-height: 46px !important;
	}

	html body:not(.igo-nohd) .whb-header .whb-col-right .wd-tools-element {
		margin-left: 26px;
	}
}

html body:not(.igo-nohd) .whb-header .wd-header-cart .wd-cart-number {
	border-color: var(--igo-h-cream);
}

/* 分類列：置中、粗體、不放小圖，有下拉的後面接紅色箭頭 */
html body:not(.igo-nohd) .whb-header .whb-header-bottom .whb-col-left {
	flex: 1 1 auto;
	justify-content: center;
}

html body:not(.igo-nohd) .whb-header .whb-header-bottom .whb-col-center.whb-empty-column,
html body:not(.igo-nohd) .whb-header .whb-header-bottom .whb-col-right.whb-empty-column {
	display: none;
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav {
	justify-content: center;
	column-gap: 6px;
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a {
	padding-left: 14px;
	padding-right: 14px;
	font-size: 17px;
	font-weight: 700;
	color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a picture,
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a img.wd-nav-img {
	display: none;
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li.menu-item-has-children > a:after {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: -5px 0 0 9px;
	border: solid var(--igo-h-red);
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg);
	font-family: inherit;
	vertical-align: middle;
}

/* 首頁：分類列半透明，疊在主視覺上（捲動後黏在上方時改回實心） */
html body.home .whb-header {
	position: relative;
	z-index: 30;
}

html body.home .whb-header:not(.whb-sticked) .whb-main-header {
	background-color: transparent !important;
}

html body.home .whb-header:not(.whb-sticked) .whb-header-bottom {
	background-color: rgba(236, 230, 219, .72) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

@media (max-width: 1024px) {
	html body:not(.igo-nohd) .whb-header .whb-general-header {
		background-color: var(--igo-h-cream) !important;
	}
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav {
	text-align: center;
}

@media (min-width: 1025px) {
	html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form {
		display: flex;
		align-items: center;
		max-width: 306px;
	}

	html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform {
		flex: 0 0 256px;
	}

	/* 搜尋框外層改成並排（右邊接篩選圖示）之後，下拉結果的外框也變成並排的一格、
	   寬度被擠成 0，結果有抓到卻看不到（踩過）。改成貼在搜尋框正下方、給固定寬度。 */
	html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form {
		position: relative;
	}

	html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form > .wd-search-results-wrapper {
		position: absolute;
		top: 100%;
		left: 0;
		width: 420px;
	}

	html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-results-wrapper .wd-dropdown-results {
		left: 0;
		right: 0;
		margin-top: 8px;
		border-radius: 14px;
	}
}

/* 「清除」叉叉：佈景主題把它算在送出鈕左邊，但放大鏡被我們移到框內右側，
   叉叉就整個疊在放大鏡上。改放在放大鏡左邊，打了字之後輸入框右側多留位置。 */
html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform .wd-clear-search,
html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform .wd-clear-search {
	inset-inline-end: 42px;
	padding-inline-end: 0;
	border: 0;
	color: #9a948b;
}

html body:not(.igo-nohd) .whb-header .whb-col-center .wd-search-form form.searchform:has(.wd-clear-search:not(.wd-hide)) input[type="text"],
html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform:has(.wd-clear-search:not(.wd-hide)) input[type="text"] {
	padding-right: 74px;
}

/* 分類頁那套樣式在選單字下面畫了一條滑過才出現的底線，這版不用 */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li:not(.menu-item-has-children) > a::after {
	display: none;
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li.menu-item-has-children > a::after {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	background: none;
	transition: none;
}

/* ======================================================================
 * 手機側邊選單（漢堡鈕打開的那一欄）— 跟桌機置頂欄同一套風格（2026-09-25）
 *   米色底、深色細框圓角搜尋框、分類粗體深色字不放小圖、
 *   有子選單的用紅色箭頭、分頁標籤是粗體＋紅色底線。
 * ====================================================================== */

html body:not(.igo-nohd) .mobile-nav {
	--igo-h-cream: #faefe0;
	--igo-h-red: #b02023;
	--igo-h-dark: #2a2b2a;
	--igo-h-line: rgba(42, 43, 42, .14);
	/* 半透明米色＋毛玻璃，後面的畫面隱約透出來 */
	background-color: rgba(250, 239, 224, .86);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
	color: var(--igo-h-dark);
}

/* 選單打開時蓋在頁面上的暗幕調淡：毛玻璃會把它一起透進來，太暗選單會變成灰濁色 */
html body:not(.igo-nohd) .mobile-nav.wd-opened ~ .wd-close-side,
html body:not(.igo-nohd) .wd-close-side.wd-close-side-opened {
	background-color: rgba(42, 30, 20, .22);
}

/* 「商品分類」跟「選單」兩個分頁內容一模一樣，分頁列拿掉，只留商品分類 */
html body:not(.igo-nohd) .mobile-nav .wd-nav-mob-tab,
html body:not(.igo-nohd) .mobile-nav .mobile-pages-menu {
	display: none !important;
}

html body:not(.igo-nohd) .mobile-nav .mobile-categories-menu {
	display: block !important;
}

/* 搜尋：跟桌機一樣的深色細框圓角膠囊，放大鏡在右 */
html body:not(.igo-nohd) .mobile-nav .wd-search-form {
	padding: 18px 16px 14px;
	border-bottom: 0;
	background: transparent;
}

html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform {
	background: transparent;
	box-shadow: none;
}

html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform input[type="text"] {
	height: 42px;
	padding: 0 46px 0 18px;
	border: 1.5px solid var(--igo-h-dark);
	border-radius: 999px;
	background-color: transparent;
	color: var(--igo-h-dark);
	font-size: 15px;
	font-weight: 700;
}

html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform input[type="text"]::placeholder {
	color: #9a948b;
}

html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform input[type="text"]:focus {
	background-color: #fff;
	box-shadow: none;
}

html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform .searchsubmit {
	right: 6px;
	left: auto;
	width: 40px;
	color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .mobile-nav .wd-search-form form.searchform .searchsubmit:before {
	font-size: 18px;
	font-weight: 700;
}

/* 「商品分類／選單」分頁：不要灰底方塊，改粗體字＋紅色底線 */
html body:not(.igo-nohd) .mobile-nav .wd-nav-mob-tab {
	margin: 0 16px;
	border-bottom: 1px solid var(--igo-h-line);
	background: transparent;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mob-tab > li {
	background: transparent !important;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mob-tab > li > a {
	padding: 12px 0 10px;
	background: transparent !important;
	color: #8a847b;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mob-tab > li.wd-active > a {
	color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mob-tab > li > a:after {
	height: 2px;
	background-color: var(--igo-h-red);
}

/* 選單項目：粗體深色、不放小圖、細分隔線（左右留白，不頂到邊） */
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile {
	padding: 4px 16px 24px;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li {
	border-bottom-color: var(--igo-h-line);
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li a {
	padding-left: 4px;
	padding-right: 50px;
	color: var(--igo-h-dark);
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile > li > a {
	min-height: 54px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .04em;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile > li > a picture,
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile > li > a img.wd-nav-img {
	display: none;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li.current-menu-item > a,
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li > a:hover {
	color: var(--igo-h-red);
}

/* 子選單：縮一格、一般字重 */
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .wd-sub-menu,
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .sub-menu {
	background: transparent;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .wd-sub-menu li a,
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .sub-menu li a {
	padding-left: 20px;
	font-size: 15px;
	font-weight: 500;
}

/* 有子選單的展開鈕：紅色箭頭（跟桌機分類列一樣的細折線） */
html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .wd-nav-opener {
	border-left: 0;
	background: transparent !important;
	color: var(--igo-h-red);
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .wd-nav-opener:after {
	content: "";
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border: solid var(--igo-h-red);
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg);
	font-family: inherit;
	transition: transform .2s ease;
}

html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .wd-nav-opener.wd-active:after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

/* 帳號圖示：照 Canva 範本放大到跟愛心差不多高（原本字型圖示只有 16px 高）。
   改用 SVG 遮罩畫，放大時線條仍維持約 1.8px，不會跟著變粗 */
html body:not(.igo-nohd) .whb-header .wd-header-my-account .wd-tools-icon:before,
html body:not(.igo-nohd) .whb-header .wd-header-my-account .wd-tools-inner:before {
	content: "" !important;
	display: block;
	width: 20px;
	height: 23px;
	margin: auto;
	font-size: 0 !important;
	line-height: 0 !important;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 23' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='6.1' r='4.9'/%3E%3Cpath d='M1.4 22.1C1.4 16.6 5.2 13.4 10 13.4S18.6 16.6 18.6 22.1'/%3E%3C/svg%3E") center / 20px 23px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 23' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='6.1' r='4.9'/%3E%3Cpath d='M1.4 22.1C1.4 16.6 5.2 13.4 10 13.4S18.6 16.6 18.6 22.1'/%3E%3C/svg%3E") center / 20px 23px no-repeat;
}

html body:not(.igo-nohd) .whb-header .wd-header-my-account .wd-tools-icon,
html body:not(.igo-nohd) .whb-header .wd-header-my-account .wd-tools-inner {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

/* 置頂欄分類選單：滑過時字底下一條黃色螢光筆由左往右刷過去（跟商品卡品名同一款，2026-10-06） */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a .nav-link-text {
	/* 商品卡用的淡黃在置頂欄米色底上看不見，這裡用深一點的黃 */
	background-image: linear-gradient(#F4CF6E, #F4CF6E);
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0 42%;
	padding: 0 2px;
	margin: 0 -2px;
	transition: background-size .32s cubic-bezier(.4, 0, .2, 1);
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li:hover > a .nav-link-text,
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a:focus-visible .nav-link-text {
	background-size: 100% 42%;
}

/* 標題字滑過時稍微放大（底下黃線照舊刷過去） */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a .nav-link-text {
	display: inline-block;
	transition: background-size .32s cubic-bezier(.4, 0, .2, 1), transform .32s cubic-bezier(.3, 1.4, .5, 1);
	will-change: transform;
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li:hover > a .nav-link-text,
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li > a:focus-visible .nav-link-text {
	transform: scale(1.08);
}

/* ---------- 「品牌」下拉：展開動畫（2026-10-06） ----------
   1. 箭頭轉成朝上
   2. 白卡從上往下「拉開」（遮罩由上往下打開＋微微下滑）
   3. 品牌名一個接一個由下浮上來
   4. 滑過品牌名：跟標題一樣的黃色螢光筆刷過去，右邊滑出小箭頭 */
/* 箭頭是斜 45 度的方框畫的，朝上要轉成 225 度（不能只寫 180，會蓋掉原本的 45 度）；
   前面那段寫了 transition:none，這裡要帶 html body 同權重再後寫才蓋得掉 */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li.menu-item-has-children > a::after {
	transition: transform .3s ease, margin .3s ease;
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-nav > li.menu-item-has-children:hover > a::after {
	margin: 2px 0 0 13px; /* 字放大了，箭頭往右讓一點 */
	transform: rotate(225deg);
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown > .wd-dropdown-menu {
	clip-path: inset(0 0 100% 0 round 18px);
	transform: translateY(-6px);
	transition: clip-path .42s cubic-bezier(.2, .8, .2, 1), transform .42s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility .42s;
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover > .wd-dropdown-menu,
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown.wd-opened > .wd-dropdown-menu {
	clip-path: inset(0 0 0 0 round 18px);
	transform: none;
}

/* 滑鼠從「品牌」往下移到白卡的路上有一小段空隙；佈景主題原本墊在白卡上方的透明「橋」被上面的拉開動畫（clip-path）裁掉了，
   滑鼠經過空隙就算離開、選單收起來。這裡改在「品牌」底下自己墊一塊透明的橋（只在打開時有）。 */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 100%;
	left: -10px;
	right: -10px;
	height: 24px;
}

html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown .wd-sub-menu > li {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li,
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown.wd-opened .wd-sub-menu > li {
	opacity: 1;
	transform: none;
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li:nth-child(1) { transition-delay: .12s; }
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li:nth-child(2) { transition-delay: .19s; }
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li:nth-child(3) { transition-delay: .26s; }
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li:nth-child(4) { transition-delay: .33s; }
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li:nth-child(5) { transition-delay: .40s; }
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown:hover .wd-sub-menu > li:nth-child(n+6) { transition-delay: .46s; }

/* 滑過品牌名（2026-10-06 改，不用黃線、不要右邊細線）：聚光燈——滑到的那個字變深、往右挪一點、字距拉開，
   其他幾個同時變淡，視線自然落在選中的那個 */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-sub-menu > li > a {
	display: inline-flex;
	align-items: center;
	color: var(--igo-h-dark);
	letter-spacing: .04em;
	transition: color .3s ease, opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), letter-spacing .4s ease;
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-sub-menu:hover > li > a {
	opacity: .38;
}
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-sub-menu > li > a:hover,
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .wd-sub-menu > li > a:focus-visible {
	opacity: 1;
	color: #000;
	letter-spacing: .08em;
	transform: translateX(6px);
}

/* 下拉白卡縮到內容寬，不要右邊空一大塊 */
html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown > .wd-dropdown-menu {
	width: auto;
	min-width: 220px;
}

/* ---------- 手機側邊選單動畫（2026-10-06） ----------
   1. 打開選單時，一列一列由下往上浮出來
   2. 手指按下去那一列微微縮一下、底色變深（按到的回饋）
   3. 「品牌」展開時，底下的品牌一個接一個滑進來 */
@media (max-width: 1024px) {
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile > li {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
	}
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li {
		opacity: 1;
		transform: none;
	}
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(1) { transition-delay: .10s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(2) { transition-delay: .14s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(3) { transition-delay: .18s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(4) { transition-delay: .22s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(5) { transition-delay: .26s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(6) { transition-delay: .30s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(7) { transition-delay: .34s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(8) { transition-delay: .38s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(9) { transition-delay: .42s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(10) { transition-delay: .46s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(11) { transition-delay: .50s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(12) { transition-delay: .54s; }
	html body:not(.igo-nohd) .mobile-nav.wd-opened .wd-nav-mobile > li:nth-child(n+13) { transition-delay: .58s; }

	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li > a {
		transition: background-color .2s ease, transform .2s ease, color .2s ease;
		-webkit-tap-highlight-color: transparent;
	}
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li > a:active {
		transform: scale(.97);
		background-color: rgba(42, 43, 42, .06);
	}

	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .wd-sub-menu > li {
		opacity: 0;
		transform: translateX(-12px);
		transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
	}
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .opener-page > .wd-sub-menu > li {
		opacity: 1;
		transform: none;
	}
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .opener-page > .wd-sub-menu > li:nth-child(1) { transition-delay: .08s; }
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .opener-page > .wd-sub-menu > li:nth-child(2) { transition-delay: .15s; }
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .opener-page > .wd-sub-menu > li:nth-child(3) { transition-delay: .22s; }
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile .opener-page > .wd-sub-menu > li:nth-child(n+4) { transition-delay: .29s; }

	html body:not(.igo-nohd) .mobile-nav .wd-nav-opener {
		transition: transform .3s ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown > .wd-dropdown-menu,
	html body:not(.igo-nohd) .whb-header .wd-header-main-nav .menu-simple-dropdown .wd-sub-menu > li,
	html body:not(.igo-nohd) .mobile-nav .wd-nav-mobile li { transition: none; transition-delay: 0s; }
}

/* 2026-10-16 老闆要求：拿掉右上角的收藏愛心。
   不動置頂欄產生器的結構（見 igo-wp-header 記憶），只把那個元件藏起來；
   手機選單裡的「我的收藏」（li.igo-mnav-wish，沒有 wd-tools-element）不受影響。 */
.whb-header div.wd-header-wishlist.wd-tools-element { display: none !important; }

/* 側邊購物車空的時候不放「返回商店」按鈕（2026-10-22 老闆）。放在這支是因為每一頁都會載 */
.cart-widget-side .wd-empty-mini-cart .btn,
.cart-widget-side .wd-empty-mini-cart .button,
.cart-widget-side .wd-empty-mini-cart .wc-backward,
.wd-empty-mini-cart .return-to-shop,
.wd-empty-mini-cart a.btn { display: none !important; }
