/**
 * 實體門市頁（inc/gyms-page.php）—— 只吃 body.igo-gym。
 * 色調跟分類頁同一套：白底、淺灰框 #E5E5E7、深灰字 #1F1F22、灰字 #85858E。
 *
 * 滿版照片輪播（上方疊縣市／行政區的半透明條、下緣壓一排門市縮圖）
 * →「目前這家店」：左 Google 地圖、右店內照片（點了開置中大圖）。手機改上下排。
 */

body.igo-gym {
	--g-ink: #1F1F22;
	--g-ink-2: #4B4B52;
	--g-muted: #85858E;
	--g-line: #E5E5E7;
	--g-media: #F4F4F2;
	--g-soft: #F7F7F8;
	--g-brand: #B81820;
	--g-brand-deep: #8E1319;
	--g-amber: #E8A317;
	--g-r: 14px;
	background: #FFFFFF;
}

body.igo-gym .wd-page-content,
body.igo-gym .wd-page-content.main-page-wrapper {
	background-color: #FFFFFF !important;
	padding-top: 0;
}

/* ⚠️ 主題的格線容器在手機會把整頁右邊切掉（分類頁、品牌頁都踩過） */
body.igo-gym #main-content {
	display: block;
	max-width: none;
	min-width: 0;
	padding-left: 0;
	padding-right: 0;
}

.gym {
	font-family: Urbanist, "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	color: var(--g-ink-2);
	font-size: 15px;
	line-height: 1.7;
	padding-bottom: 72px;
}

.gym *,
.gym *::before,
.gym *::after { box-sizing: border-box; }

.gym h1, .gym h2, .gym h3, .gym button, .gym select { font-family: inherit; color: var(--g-ink); letter-spacing: 0; text-transform: none; }
.gym h1, .gym h2, .gym h3 { margin: 0; font-weight: 700; line-height: 1.35; }
.gym p { margin: 0; }
.gym a { color: inherit; text-decoration: none; }
.gym button { min-height: 0; cursor: pointer; font-weight: 500; }
.gym [hidden] { display: none !important; }

/* 圖片外掛會把 img 包進 picture，height:100% 的版面會塌掉 */
.gym picture { display: contents; }
.gym-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gym-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.gym-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 頁首 ---------- */
.gym-crumb { font-size: 12px; color: var(--g-muted); margin-bottom: 26px; text-align: left; max-width: 1192px; }
.gym-crumb span { margin: 0 8px; }
.gym-title { font-size: 34px; letter-spacing: .02em; }
.gym .gym-lead { margin-top: 12px; color: var(--g-muted); font-size: 15px; }
.gym .gym-note { max-width: 1240px; margin: 56px auto 0; padding: 0 24px; text-align: center; font-size: 13px; color: var(--g-muted); }

.gx { --gx-side: max(24px, calc((100vw - 1240px) / 2 + 24px)); padding-bottom: 8px; }

.gx-head { padding-top: 28px; padding-bottom: 16px; }
.gx-head .gym-crumb { margin-bottom: 0; }
.gym-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 縣市頁籤：輪播上方，白底深字 */
.gm-tabs { display: flex; justify-content: safe center; gap: 2px; border-bottom: 1px solid var(--g-line); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.gm-tabs::-webkit-scrollbar { display: none; }
.gym .gm-tabs button {
	flex: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
	padding: 12px 16px; font-size: 16px; color: var(--g-muted); white-space: nowrap; cursor: pointer;
}
.gym .gm-tabs button:hover { color: var(--g-ink); }
.gym .gm-tabs button.is-on { color: var(--g-ink); border-color: var(--g-ink); font-weight: 700; }

/* 行政區：疊在輪播照片上方中間的半透明膠囊條 */
.gx-filter { position: absolute; z-index: 4; top: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 2 * var(--gx-side)); padding: 7px; border-radius: 999px; background: rgba(18,18,20,.42); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gm-dists { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gm-dists::-webkit-scrollbar { display: none; }
.gym .gm-dists button { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); font-size: 13.5px; color: #FFF; white-space: nowrap; cursor: pointer; }
.gym .gm-dists button:hover { background: rgba(255,255,255,.18); }
.gym .gm-dists button.is-on { background: #FFF; border-color: #FFF; color: var(--g-ink); font-weight: 600; }

/* ---------- 舞台 ---------- */
.gx-stage { position: relative; height: 580px; margin-bottom: 72px; }
.gx-photo { position: absolute; inset: 0; overflow: hidden; background: #1B1B1D; }
.gx-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.gx-bg.is-on { opacity: 1; }
.gx-bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.gx-bg.is-on img { transform: scale(1); }
.gx-photo::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.26) 42%, rgba(0,0,0,0) 62%),
		linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45));
}

/* 店家資訊（壓在照片左邊） */
.gx-cap { position: absolute; z-index: 2; left: var(--gx-side); bottom: 120px; width: min(520px, 46vw); color: #FFF; }
.gx-cap.is-in { animation: gx-in .55s ease both; }
@keyframes gx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gx-cap__top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .06em; opacity: .9; }
.gx-cap__top b { margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.4); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.gym .gx-cap h2 { color: #FFF; font-size: 40px; line-height: 1.2; margin: 8px 0 12px; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.gym .gx-cap p { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; opacity: .92; margin-top: 3px; }
.gx-cap p .gym-i { margin-top: 4px; }

/* ---------- 照片箭頭（換店）、門市列兩端箭頭（電腦版） ---------- */
.gx-tnav.is-prev .gym-i { transform: rotate(180deg); }
/* 照片沒有箭頭按鈕：滑鼠在左半／右半，游標變成左／右箭頭（點了換上一家／下一家） */
.gx-photo.is-nav { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23FFFFFF' fill-opacity='.92' stroke='%231F1F22' stroke-opacity='.12'/%3E%3Cpath d='M17 24h14M25 18l6 6-6 6' fill='none' stroke='%231F1F22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 24 24, e-resize; }
.gx-photo.is-nav.is-l { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23FFFFFF' fill-opacity='.92' stroke='%231F1F22' stroke-opacity='.12'/%3E%3Cpath d='M31 24H17M23 18l-6 6 6 6' fill='none' stroke='%231F1F22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 24 24, w-resize; }
.gx-photo .gx-filter { cursor: default; }
/* 門市列兩端：跟照片箭頭同一款，小一號 */
.gym .gx-tnav { position: absolute; z-index: 6; top: 50%; width: 38px; height: 38px; margin-top: -10px; border-radius: 50%; border: 1px solid var(--g-line); padding: 0; background: rgba(255,255,255,.95); color: var(--g-ink); box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-50%); display: grid; place-items: center; }
.gx-tnav.is-prev { left: -19px; }
.gx-tnav.is-next { right: -19px; }
.gx-thumbs { cursor: grab; }
.gx-thumbs.is-drag { cursor: grabbing; scroll-behavior: auto; }
.gx-thumbs.is-drag button { pointer-events: none; }

/* 縮圖列（壓在照片下緣） */
.gx-thumbs-wrap { position: absolute; z-index: 5; left: var(--gx-side); right: var(--gx-side); bottom: -56px; }
.gx-thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 10px; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.gx-thumbs::-webkit-scrollbar { display: none; }
.gym .gx-thumbs button {
	flex: 0 0 168px; display: flex; flex-direction: column; text-align: left; padding: 7px; background: #FFF;
	border: 1px solid var(--g-line); border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.08); transition: border-color .15s, transform .15s;
}
.gym .gx-thumbs button:first-child { margin-left: 18px; }
.gym .gx-thumbs button:last-child { margin-right: 18px; }
.gym .gx-thumbs button:hover { border-color: #BDBDC3; }
.gym .gx-thumbs button.is-on { border-color: var(--g-ink); transform: translateY(-4px); }
.gx-thumbs img { width: 100%; height: 72px; object-fit: cover; border-radius: 9px; display: block; }
.gx-thumbs span { display: block; padding: 7px 3px 1px; font-size: 13.5px; font-weight: 600; color: var(--g-ink); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-thumbs small { display: block; font-size: 11.5px; color: var(--g-muted); font-weight: 500; }


/* ---------- 目前這家店：地圖＋店內照片 ---------- */
.gx-detail { padding-top: 8px; }
.gx-detail__head { margin-bottom: 16px; }
.gx-detail__head span { font-size: 12.5px; letter-spacing: .06em; color: var(--g-muted); }
.gym .gx-detail__head h2 { font-size: 24px; margin-top: 2px; }
.gx-detail__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.gx-detail__map { height: 460px; border-radius: 18px; overflow: hidden; border: 1px solid var(--g-line); background: #E9E9EC; }
.gx-detail__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.gx-detail__pics { display: flex; flex-direction: column; height: 460px; }
.gym .gx-detail__pics h3 { font-size: 14px; font-weight: 600; color: var(--g-ink-2); margin-bottom: 10px; }
.gx-detail__grid2 { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); }
.gx-detail__grid2.is-n1 { grid-template-columns: 1fr; }
.gx-detail__grid2.is-n2 { grid-template-columns: 1fr; }
.gx-detail__grid2.is-n3 > :first-child { grid-column: 1 / -1; }
.gym .gx-detail__grid2 button { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--g-media); cursor: zoom-in; min-height: 0; }
.gx-detail__grid2 img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gym .gx-detail__grid2 button:hover img { transform: scale(1.04); }
.gx-detail__grid2 .gym-i { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--g-ink); opacity: 0; transition: opacity .15s; }
.gym .gx-detail__grid2 button:hover .gym-i { opacity: 1; }
/* 還沒有店內照片的門市（OA 自動帶進來的）：照片欄收起，地圖撐滿 */
.gx-detail.is-nopics .gx-detail__grid { grid-template-columns: 1fr; }
.gx-detail.is-nopics .gx-detail__pics { display: none; }

/* ---------- 照片放大（置中） ---------- */
.gx-lock, .gx-lock body { overflow: hidden; }
.gx-lb { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; font-family: Urbanist, "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; }
.gx-lb[hidden] { display: none; }
.gx-lb__bg { position: absolute; inset: 0; background: rgba(15,15,17,.82); animation: gx-fade .2s ease both; }
@keyframes gx-fade { from { opacity: 0; } to { opacity: 1; } }
.gx-lb__box { position: relative; margin: 0; max-width: min(1100px, 100%); animation: gx-pop .25s ease both; }
@keyframes gx-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.gx-lb__box img { display: block; max-width: 100%; max-height: calc(100vh - 110px); border-radius: 14px; }
.gx-lb__box figcaption { margin-top: 12px; text-align: center; color: #FFF; font-size: 14px; opacity: .9; }
.gx-lb .gx-lb__x { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #FFF; color: #1F1F22; font-size: 24px; line-height: 40px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.gx-lb .gx-lb__nav { position: absolute; top: calc(50% - 40px); width: 46px; height: 46px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #1F1F22; display: grid; place-items: center; cursor: pointer; }
.gx-lb__nav.is-prev { left: -64px; }
.gx-lb__nav.is-prev .gym-i { transform: rotate(180deg); }
.gx-lb__nav.is-next { right: -64px; }
.gx-lb.is-single .gx-lb__nav { display: none; }
.gx-lb .gym-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 自適應 ---------- */
@media (max-width: 1240px) {
	.gx-lb__nav.is-prev { left: 10px; }
	.gx-lb__nav.is-next { right: 10px; }
	.gx-lb .gx-lb__x { top: 10px; right: 10px; }
}

@media (max-width: 1100px) {
	.gx-cap { width: min(460px, 50vw); }
	.gym .gx-cap h2 { font-size: 32px; }
}

@media (max-width: 900px) {
	.gm-tabs { justify-content: flex-start; margin-bottom: 14px; }
	.gym .gm-tabs button { padding: 11px 12px; font-size: 15px; }
	.gx-filter { top: 12px; left: 12px; right: auto; transform: none; max-width: calc(100% - 24px); padding: 6px; }
	.gym .gm-dists button { height: 30px; padding: 0 12px; font-size: 13px; }

	.gx-stage { height: auto; margin-bottom: 0; display: flex; flex-direction: column; }
	.gx-photo { position: relative; inset: auto; height: 560px; }
	.gx-photo::after { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.72)); }
	.gx-cap { left: 16px; right: 16px; bottom: 104px; width: auto; }
	.gym .gx-cap h2 { font-size: 28px; margin: 6px 0 8px; }
	.gym .gx-cap p { font-size: 13.5px; }
	.gym .gx-tnav { display: none; }

	/* 縮圖蓋在照片下緣（跟電腦版一樣大約六成壓在照片上） */
	.gx-thumbs-wrap { position: relative; z-index: 5; left: auto; right: auto; bottom: auto; margin-top: -87px; }
	.gx-thumbs { mask-image: none; padding: 6px 0 6px; }
	.gym .gx-thumbs button { flex-basis: 132px; }
	.gym .gx-thumbs button:first-child { margin-left: 16px; }
	.gym .gx-thumbs button:last-child { margin-right: 16px; }
	.gx-thumbs img { height: 60px; }

	.gx-detail { padding-top: 26px; }
	.gym .gx-detail__head h2 { font-size: 20px; }
	.gx-detail__grid { grid-template-columns: 1fr; }
	.gx-detail__map { height: 300px; border-radius: 14px; }
	.gx-detail__pics { height: auto; }
	.gx-detail__grid2 { grid-auto-rows: 150px; }
	.gx-detail__grid2.is-n1, .gx-detail__grid2.is-n2 { grid-template-columns: 1fr 1fr; }
	.gx-detail__grid2.is-n1 > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	.gx-head { padding-top: 14px; padding-bottom: 12px; }
	.gx-photo { height: 480px; }
	.gx-detail__grid2 { grid-auto-rows: 120px; }
	.gx-lb { padding: 12px; }
	.gx-lb .gx-lb__nav { width: 40px; height: 40px; }
}

/**
 * 置頂欄重做
 *
 * 原本的問題：搜尋列寬到 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; }

