/* 新版分類頁（Caraway 式）—— 只吃 body.igo-ccw */

.igo-ccw {
	--igo-canvas: #F7F7F8;
	--igo-surface: #FFFFFF;
	--igo-line: #E5E5E7;
	--igo-ink: #1F1F22;
	--igo-ink-2: #4B4B52;
	--igo-muted: #85858E;
	--igo-brand: #B81820;
	--igo-brand-deep: #8E1319;
	--igo-amber: #E8A317; --igo-amber-bg: #FDF3DE;
	--igo-rose: #E0577A;  --igo-rose-bg: #FDECF1;
	--igo-green: #3FA35C; --igo-green-bg: #E8F5EC;
	--igo-blue: #3F8BD6;  --igo-blue-bg: #E9F1FB;
	--igo-grey-bg: #F0F0F2;
	--ccw-media: #F4F4F2;
	--ccw-star: #D9A13B;
	--ccw-mark: #FBECCB;
	--ccw-warm: #F4F3EC;
	background: #FCFCFA;
}

body.igo-ccw { --wd-main-bgcolor: #FCFCFA; }
body.igo-ccw, .igo-ccw .wd-page-wrapper, .igo-ccw .wd-page-content, .igo-ccw .main-page-wrapper { background-color: #FCFCFA; }
/* 佈景主題用更重的選擇器把內容區塗成暖灰，這裡要壓過去，商品圖的淺灰底才分得出來 */
body.igo-ccw .wd-page-content.main-page-wrapper { background-color: #FCFCFA !important; padding-top: 0; }
.igo-ccw .ccw-area { grid-column: 1 / -1; }

.ccw {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 72px;
	font-family: Urbanist, "Work Sans", "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	color: var(--igo-ink-2);
	font-variant-numeric: tabular-nums;
}
/* 佈景主題給標題自己指定了字體，這裡讓它跟著上面那組走（英數 Urbanist、中文 Noto Sans TC） */
.ccw h1, .ccw h2, .ccw h3, .ccw h4, .ccw button, .ccw input, .ccw select { font-family: inherit; }
.ccw svg { display: block; width: 100%; height: 100%; }
.ccw button { min-height: 0; font-family: inherit; letter-spacing: 0; text-transform: none; }

/* ---------- 麵包屑＋標題 ---------- */
.ccw-crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 18px 0 0; font-size: 13px; color: var(--igo-muted); }
.ccw-crumbs a { color: var(--igo-muted); }
.ccw-crumbs a:hover { color: var(--igo-ink); }
.ccw-crumbs a::after { content: "/"; margin: 0 10px; color: #C9C9CE; }
.ccw-crumbs span { color: var(--igo-ink-2); }

.ccw-head { text-align: center; padding: 44px 0 26px; }
.ccw-head__title { margin: 0; font-size: 36px; line-height: 1.3; font-weight: 900; color: var(--igo-ink); letter-spacing: 0; }
.ccw-head__desc { max-width: 620px; margin: 12px auto 0; font-size: 15px; line-height: 1.75; color: var(--igo-muted); }

.ccw-demo { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--igo-amber-bg); color: #8A5A00; font-size: 13px; font-weight: 500; }

/* ---------- 子分類膠囊（點了捲到那一區；捲動時黏在頁首下方） ---------- */
.ccw-jump {
	position: sticky; top: var(--ccw-top, 0px); z-index: 25;
	/* 底色要滿版（黏在上面時才蓋得住底下的商品），用這個寫法不會超出畫面 */
	width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); margin-bottom: 22px;
	padding: 10px 24px;
	background: #FCFCFA; transition: box-shadow .2s;
}
.ccw-jump.is-stuck { box-shadow: 0 1px 0 var(--igo-line); }
.ccw-jump__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ccw .ccw-sub[hidden] { display: none; }
.ccw .ccw-sub {
	text-decoration: none;
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--igo-line); background: var(--igo-surface);
	font-size: 14px; font-weight: 500; color: var(--igo-ink-2); cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.ccw .ccw-sub span { font-size: 12px; color: var(--igo-muted); font-weight: 400; }
.ccw .ccw-sub:hover { border-color: var(--igo-ink); color: var(--igo-ink); background: var(--igo-surface); }
.ccw .ccw-sub.is-on { background: var(--igo-ink); border-color: var(--igo-ink); color: #fff; }
.ccw .ccw-sub.is-on span { color: rgba(255,255,255,.65); }

/* ---------- 篩選列 ---------- */
.ccw-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 0 0 14px; border-bottom: 1px solid var(--igo-line);
}
.ccw-bar__left, .ccw-bar__right { display: flex; align-items: center; gap: 6px; }
.ccw .ccw-bar__all, .ccw .ccw-dd__btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
	font-size: 15px; font-weight: 500; color: var(--igo-ink); cursor: pointer; white-space: nowrap;
}
.ccw .ccw-bar__all { font-weight: 700; padding-left: 0; }
.ccw .ccw-bar__all svg { width: 18px; height: 18px; }
.ccw .ccw-dd__btn svg { width: 14px; height: 14px; color: var(--igo-muted); transition: transform .15s; }
.ccw .ccw-dd__btn:hover { background: var(--igo-grey-bg); }
.ccw .ccw-dd__btn[aria-expanded="true"] { background: var(--igo-grey-bg); }
.ccw .ccw-dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ccw-dd__btn.has-value { color: var(--igo-ink); }
.ccw-dd__btn .ccw-dd__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--igo-ink); color: #fff; font-size: 11px; font-weight: 700; }
.ccw-dd__btn .ccw-dd__n[hidden] { display: none; }
.ccw-bar__count:not(:empty) { margin-left: 2px; }
.ccw-bar__total { font-size: 13px; color: var(--igo-muted); margin-right: 4px; white-space: nowrap; }

.ccw-dd { position: relative; }
.ccw-dd__panel {
	position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
	min-width: 230px; padding: 8px; border: 1px solid var(--igo-line); border-radius: 14px;
	background: var(--igo-surface); box-shadow: 0 12px 32px rgba(20,20,30,.12);
}
.ccw-dd.is-right .ccw-dd__panel { left: auto; right: 0; min-width: 190px; }

.ccw-check, .ccw-radio {
	display: flex; align-items: center; gap: 10px;
	min-height: 44px; margin: 0; padding: 0 10px; border-radius: 10px;
	font-size: 14px; color: var(--igo-ink-2); cursor: pointer;
}
.ccw-check:hover, .ccw-radio:hover { background: var(--igo-canvas); }
.ccw-check span, .ccw-radio span { flex: 1; }
.ccw-check em { font-style: normal; font-size: 12px; color: var(--igo-muted); }
.ccw-check input, .ccw-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--igo-ink); flex: none; }

.ccw-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0 0 0 6px; padding: 0 8px; font-size: 15px; font-weight: 500; color: var(--igo-ink); cursor: pointer; white-space: nowrap; }
.ccw-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ccw-toggle__track { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #D6D6DA; transition: background .15s; flex: none; }
.ccw-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ccw-toggle input:checked + .ccw-toggle__track { background: var(--igo-green); }
.ccw-toggle input:checked + .ccw-toggle__track::after { transform: translateX(14px); }
.ccw-toggle input:focus-visible + .ccw-toggle__track { outline: 2px solid var(--igo-ink); outline-offset: 2px; }

/* 已選條件 */
.ccw-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0 0; }
.ccw-active[hidden] { display: none; }
.ccw .ccw-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px;
	border: 0; border-radius: 999px; background: var(--igo-grey-bg); font-size: 13px; color: var(--igo-ink); cursor: pointer;
}
.ccw .ccw-chip svg { width: 14px; height: 14px; color: var(--igo-muted); }
.ccw .ccw-chip:hover { background: #E4E4E8; }

/* ---------- 商品格子 ---------- */
.ccw-grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px 16px; padding-top: 24px;
}

.ccw-card { display: flex; flex-direction: column; min-width: 0; }
.ccw-card[hidden], .ccw-promo[hidden] { display: none; }

.ccw-card__media {
	position: relative; display: block; aspect-ratio: 1 / 1.12; overflow: hidden;
	border-radius: 14px; background: var(--ccw-media);
}
.ccw-card__media img {
	position: absolute; inset: 8%; width: 84%; height: 84%; max-width: none;
	object-fit: contain;
	mix-blend-mode: multiply; /* 白底商品照融進淺灰底 */
	transition: opacity .35s ease, transform .5s ease;
}
/* 換顏色時淡一下再亮起來：顏色很接近的照片也看得出換過 */
.ccw-card__img.is-swapping { opacity: .25; transition: opacity .12s ease; }
.ccw-card__img2 { opacity: 0; }
.ccw-card__video {
	/* 影片要塏滿整個首圖格子（照片是白底去背所以留邊，影片有背景，留邊就變成一小塊長條） */
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
	object-fit: cover; opacity: 0; transition: opacity .3s ease;
}
.ccw-card.is-playing .ccw-card__video { opacity: 1; }
.ccw-card.is-playing .ccw-card__img, .ccw-card.is-playing .ccw-card__img2 { opacity: 0; }
@media (hover: hover) {
	.ccw-card:hover .ccw-card__img2 { opacity: 1; }
	.ccw-card:hover .ccw-card__media:has(.ccw-card__img2) .ccw-card__img { opacity: 0; }
	.ccw-card:hover .ccw-card__img { transform: scale(1.03); }
}
/* ⚠️ 滑過卡片本來會換成第二張照片（img2 疊在上面）。
   滑到顏色圓點、或已經選了顏色時，要把第二張收起來，不然看到的是第二張照片、不是那個顏色 */
.ccw-card.is-colorhover:hover .ccw-card__img2 { opacity: 0; }
.ccw-card.is-colorhover:hover .ccw-card__media:has(.ccw-card__img2) .ccw-card__img { opacity: 1; }
/* 手機：點了顏色就固定顯示那個顏色（沒有滑鼠可以一直停著） */
.ccw-card.is-colorlocked .ccw-card__img2 { opacity: 0; }
.ccw-card.is-colorlocked .ccw-card__media:has(.ccw-card__img2) .ccw-card__img { opacity: 1; }

.ccw-card.is-soldout .ccw-card__media { opacity: .55; }
.ccw-card.is-soldout .ccw-badges { opacity: 1; }

.ccw-badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ccw-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 1; font-weight: 700; }
.ccw-badge.is-sale  { background: #FBEDEC; color: #A3262C; }
.ccw-badge.is-amber { background: var(--igo-amber-bg); color: #A86F00; }
.ccw-badge.is-green { background: var(--igo-green-bg); color: #2B7A43; }
.ccw-badge.is-rose  { background: var(--igo-rose-bg); color: #B63A5C; }
.ccw-badge.is-grey  { background: #fff; color: var(--igo-muted); border: 1px solid var(--igo-line); }

.ccw-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 2px 0; }

.ccw-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 12px; line-height: 1; color: var(--igo-muted); }
.ccw-rating__stars { position: relative; display: block; flex: none; width: 70px; height: 13px; }
.ccw-rating__base, .ccw-rating__fill { position: absolute; top: 0; left: 0; display: flex; gap: 1px; height: 13px; overflow: hidden; }
.ccw-rating__base { color: #E7DFCE; }
.ccw-rating__fill { color: var(--ccw-star); white-space: nowrap; }
.ccw-rating__stars svg { flex: none; width: 13px; height: 13px; }
.ccw-rating__num { font-weight: 700; color: #7A5B2C; }

/* 品牌照它自己的寫法（meoof 是小寫 logo），不要強制大寫 */
.ccw-card__brand { font-size: 11.5px; line-height: 1.4; font-weight: 600; color: var(--igo-muted); letter-spacing: .05em; }
/* 2026-09-24 老闆選的品牌寫法：「── PETLIBRO ──────」左邊短短一截線、右邊細線延伸到底、字距拉開 */
.ccw-card__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; font-size: 11px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.ccw-card__brand::before { content: ""; flex: 0 0 14px; height: 1px; background: #D8D2C8; }
.ccw-card__brand::after { content: ""; flex: 1; height: 1px; background: #D8D2C8; }
.ccw-card__title { margin: 5px 0 0; font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--igo-ink); letter-spacing: .01em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 滑過品名：暖色螢光筆從左往右刷過去（不是底線），字色同時加深 */
.ccw-card__title a {
	color: inherit;
	background-image: linear-gradient(var(--ccw-mark), var(--ccw-mark));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0 42%;
	padding: 0 2px; margin: 0 -2px;
	box-decoration-break: clone; -webkit-box-decoration-break: clone;
	transition: background-size .32s cubic-bezier(.4, 0, .2, 1), color .2s;
}
.ccw-card:hover .ccw-card__title a,
.ccw-card__title a:focus-visible { background-size: 100% 42%; color: #000; }

.ccw-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; }
.ccw-price del { font-size: 13px; color: var(--igo-muted); }
.ccw-price__now { font-size: 17px; font-weight: 700; color: var(--igo-ink); }
.ccw-price__now small { font-size: 12px; font-weight: 400; color: var(--igo-muted); }

.ccw-price { justify-content: flex-end; }
/* 評價跟價格同一行：星星靠左、價格靠右；卡片太窄放不下時價格自己換到下一行 */
.ccw-price .ccw-rating { align-self: center; margin: 0 auto 0 0; }

.ccw-swatches { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ccw .ccw-swatch {
	position: relative; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer; flex: none;
}
.ccw .ccw-swatch::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ccw .ccw-swatch.is-on { box-shadow: inset 0 0 0 1.5px var(--igo-ink); }
.ccw .ccw-swatch:hover { box-shadow: inset 0 0 0 1.5px var(--igo-ink-2); }
.ccw .ccw-swatch:hover::before { transform: scale(1.12); }
.ccw .ccw-swatch::before { transition: transform .15s ease; }
.ccw-swatches__name { margin-left: 4px; font-size: 12px; color: var(--igo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ccw-card__tag { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--igo-muted);
	display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.ccw-card__act { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; min-height: 34px; }
.ccw-card__act .ccw-link { margin-right: auto; }
.ccw-card__act .ccw-swatches { margin-left: auto; }
.ccw .ccw-link {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0; border: 0; background: none;
	font-size: 14px; font-weight: 700; color: var(--igo-ink); cursor: pointer;
	border-bottom: 1.5px solid var(--igo-ink); border-radius: 0; height: auto; padding-bottom: 2px;
}
.ccw .ccw-link svg { width: 15px; height: 15px; transition: transform .15s; }
.ccw .ccw-link:hover svg { transform: translateX(3px); }

/* 快速看看：滑過去時整排字往上捲走，底下捲上來一模一樣的紅字，
   底線與箭頭同時轉紅、箭頭往右挪一小格。
   三個動作同一條曲線同時發生，看起來是「整顆一起亮起來」，不是三段拼湊。 */
.ccw .ccw-link.ccw-qv {
	--ccw-qv-ease: cubic-bezier(.65, 0, .35, 1);
	--ccw-qv-line: 1.35em;

	border-bottom-color: var(--igo-ink);
	transition: border-bottom-color .34s var(--ccw-qv-ease), color .34s var(--ccw-qv-ease);
}

/* 這個框把第二份字裁在外面，滑過去才捲進來 */
.ccw .ccw-qv__roll {
	display: block;
	overflow: hidden;
	height: var(--ccw-qv-line);
}

.ccw .ccw-qv__roll > span {
	display: block;
	height: var(--ccw-qv-line);
	line-height: var(--ccw-qv-line);
	transition: transform .34s var(--ccw-qv-ease);
}

/* 第二份就是捲上來的那一份，先染成品牌紅 */
.ccw .ccw-qv__roll > span + span {
	color: var(--igo-brand);
}

.ccw .ccw-link.ccw-qv:hover,
.ccw .ccw-link.ccw-qv:focus-visible {
	border-bottom-color: var(--igo-brand);
	color: var(--igo-brand);
}

.ccw .ccw-link.ccw-qv:hover .ccw-qv__roll > span,
.ccw .ccw-link.ccw-qv:focus-visible .ccw-qv__roll > span {
	transform: translateY(calc(var(--ccw-qv-line) * -1));
}

/* 系統設定「減少動態效果」的人不要捲，直接換色就好 */
@media (prefers-reduced-motion: reduce) {
	.ccw .ccw-qv__roll > span { transition: none; }
	.ccw .ccw-link.ccw-qv:hover .ccw-qv__roll > span { transform: none; }
	.ccw .ccw-link.ccw-qv:hover .ccw-qv__roll > span:first-child { color: var(--igo-brand); }
}

.ccw .ccw-link.is-muted { color: var(--igo-muted); border-color: var(--igo-line); font-weight: 500; }
.ccw .ccw-link.is-loading { opacity: .5; pointer-events: none; }
.ccw .ccw-link.is-done { color: var(--igo-green); border-color: var(--igo-green); }

/* 每一區的「載入更多」 */
.ccw-more { display: flex; justify-content: center; padding-top: 32px; }
.ccw-more[hidden] { display: none; }

/* ---------- 穿插的優惠卡 ---------- */
.ccw-promo {
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: 14px; background: var(--ccw-warm);
	align-self: stretch; margin-bottom: 46px;   /* 底部比商品卡短一截，不跟「快速看看」對齊 */
}
.ccw-promo__text {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
	flex: 1; padding: 24px 22px;
}
/* 有照片的卡：上面固定正方形照片、下面色塊放字，大小螢幕構圖一致 */
.ccw-promo__photo {
	display: block; aspect-ratio: 1 / 1; flex: none;
	background-size: cover; background-repeat: no-repeat; background-color: #fff;
}
.ccw-promo.is-photo .ccw-promo__text { padding: 18px 18px 20px; }
.ccw-promo.is-warm { background: var(--ccw-warm); }
.ccw-promo.is-blue { background: var(--igo-blue-bg); }
.ccw-promo.is-green { background: var(--igo-green-bg); }
.ccw-promo.is-grey { background: var(--igo-grey-bg); }
.ccw-icon.is-warm { background: #fff; color: var(--igo-amber); }
.ccw-icon.is-green { background: #fff; color: var(--igo-green); }
.ccw-icon.is-grey { background: #fff; color: var(--igo-ink-2); }
.ccw-icon { display: block; flex: none; width: 48px; height: 48px; padding: 10px; border-radius: 12px; }
.ccw-icon.is-amber { background: #fff; color: var(--igo-amber); }
.ccw-icon.is-blue { background: #fff; color: var(--igo-blue); }
.ccw-icon.is-round { border-radius: 50%; width: 64px; height: 64px; padding: 16px; background: var(--igo-amber-bg); }
.ccw-promo__title { margin: 18px 0 0; font-size: 22px; line-height: 1.4; font-weight: 900; color: var(--igo-ink); letter-spacing: 0; }
.ccw-promo__desc { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: var(--igo-ink-2); }
.ccw-promo .ccw-btn-outline { margin-top: 18px; }

/* ---------- 按鈕 ---------- */
.ccw .ccw-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--igo-ink);
	background: transparent; font-size: 14px; font-weight: 700; color: var(--igo-ink); cursor: pointer;
}
.ccw .ccw-btn-outline svg { width: 15px; height: 15px; }
.ccw .ccw-btn-outline:hover { background: var(--igo-ink); color: #fff; }
.ccw .ccw-btn-primary {
	display: inline-flex; align-items: center; justify-content: center;
	height: 46px; padding: 0 26px; border: 0; border-radius: 999px;
	background: var(--igo-brand); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
	box-shadow: 0 3px 0 var(--igo-brand-deep);
}
.ccw .ccw-btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--igo-brand-deep); }
.ccw .ccw-btn-text { height: 46px; padding: 0 12px; border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--igo-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- 子分類區塊 ---------- */
.ccw-sec { padding-top: 48px; scroll-margin-top: 140px; }
.ccw-sec[hidden] { display: none; }
.ccw-active:not([hidden]) + .ccw-sec, .ccw-bar + .ccw-active[hidden] + .ccw-sec { padding-top: 28px; }
.ccw-sec__head { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.ccw-sec__title { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 900; color: var(--igo-ink); letter-spacing: 0; }
.ccw-sec__n { font-size: 13px; color: var(--igo-muted); }
.ccw-sec__head + .ccw-grid { padding-top: 16px; }

/* 優惠價第二版：售價 → 原價劃線 → 淡紅小膠囊「省 $」（不用實心紅塊） */
.ccw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ccw-price__save {
	display: inline-flex; align-items: center; align-self: center; height: 22px; padding: 0 8px; border-radius: 999px;
	background: #FBEDEC; color: #A3262C; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}

/* 快速看看載入中 */
.ccw .ccw-link.ccw-qv.is-loading { opacity: .5; cursor: progress; }

/* 借用商品頁的彈窗：它的顏色與字體變數原本掛在商品頁 body 上 */
body.igo-ccw {
	--cw-canvas: #FCFCFA; --cw-band: #F4F3EC; --cw-sand: #FAF2DD; --cw-surface: #FFFFFF;
	--cw-ink: #1F3438; --cw-ink-2: #4B5558; --cw-muted: #737373;
	--cw-line: #E7E5E0; --cw-line-2: #D2CFC7;
	--cw-brand: #B81820; --cw-brand-deep: #8E1319;
	--cw-r-img: 12px; --cw-r-card: 14px;
}
body.igo-ccw .cwp-modal { font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; color: var(--cw-ink); font-variant-numeric: tabular-nums; }

/* 空狀態 */
.ccw-empty[hidden] { display: none; }
.ccw-empty { display: flex; flex-direction: column; align-items: center; padding: 72px 16px; text-align: center; }
.ccw-empty h3 { margin: 18px 0 0; font-size: 19px; font-weight: 900; color: var(--igo-ink); }
.ccw-empty p { margin: 6px 0 20px; font-size: 14px; color: var(--igo-muted); }

/* ---------- 逛逛其他分類 ---------- */
.ccw-others { margin-top: 88px; }
.ccw-others__title { margin: 0 0 16px; font-size: 19px; font-weight: 900; color: var(--igo-ink); letter-spacing: 0; }
.ccw-others__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ccw-other {
	display: grid; grid-template-columns: 40px 1fr 16px; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 14px 16px; border-radius: 14px; background: var(--ccw-warm); color: var(--igo-ink);
	transition: background .15s;
}
.ccw-other:hover { background: #ECEAE0; color: var(--igo-ink); }
.ccw-other img { grid-row: 1 / 3; width: 40px; height: 40px; object-fit: contain; }
.ccw-other__name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.ccw-other__n { grid-column: 2; font-size: 12px; color: var(--igo-muted); }
.ccw-other svg { grid-column: 3; grid-row: 1 / 3; width: 16px; height: 16px; color: var(--igo-muted); transition: transform .15s; }
.ccw-other:hover svg { transform: translateX(3px); color: var(--igo-ink); }
.ccw-other:not(:has(img)) { grid-template-columns: 1fr 16px; }
.ccw-other:not(:has(img)) .ccw-other__n { grid-column: 1; }
.ccw-other:not(:has(img)) svg { grid-column: 2; }
/* 沒有件數那一行時（2026-10-16 前台不顯示件數），名字要佔滿兩行才會上下置中 */
.ccw-other img { grid-column: 1; }
.ccw-other:not(:has(.ccw-other__n)) .ccw-other__name { grid-row: 1 / 3; grid-column: 2; }
.ccw-other:not(:has(img)):not(:has(.ccw-other__n)) .ccw-other__name { grid-column: 1; }

/* 逛逛其他分類：插畫卡＋「裡面有什麼」小字（2026-10-27 照範本 O1，四欄排兩行） */
.ccw .ccw-o1 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ccw .ccw-o1__c { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #F4F3EC; color: var(--igo-ink); text-decoration: none; transition: background .15s; }
.ccw .ccw-o1__c:hover { background: #ECEAE0; color: var(--igo-ink); }
.ccw .ccw-o1__il { display: block; flex: none; width: 64px; height: 48px; }
.ccw .ccw-o1__t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ccw .ccw-o1__t b { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--igo-ink); }
.ccw .ccw-o1__t small { font-size: 12.5px; line-height: 1.5; color: var(--igo-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ccw .ccw-o1__c > svg:last-child { flex: none; width: 16px; height: 16px; color: var(--igo-muted); transition: transform .15s; }
.ccw .ccw-o1__c:hover > svg:last-child { transform: translateX(3px); color: var(--igo-ink); }

/* ---------- 右側滑出的頁面（優惠卡的連結都走這裡） ---------- */
.ccw-side { position: fixed; inset: 0; z-index: 100001; }
.ccw-side[hidden] { display: none; }
.ccw-side__scrim { position: absolute; inset: 0; background: rgba(20,20,26,.4); }
.ccw-side__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
	display: flex; flex-direction: column; background: #FCFCFA;
	animation: ccw-side-in .24s ease;
}
@keyframes ccw-side-in { from { transform: translateX(100%); } to { transform: none; } }
.ccw-side__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 14px 20px; border-bottom: 1px solid var(--igo-line); }
.ccw-side__head strong { font-size: 18px; font-weight: 900; color: var(--igo-ink); }
.ccw .ccw-side__x { width: 44px; height: 44px; padding: 13px; border: 0; border-radius: 50%; background: none; color: var(--igo-ink); cursor: pointer; flex: none; }
.ccw .ccw-side__x:hover { background: var(--igo-grey-bg); }
.ccw-side__body { flex: 1; overflow-y: auto; padding: 20px; font-size: 15px; line-height: 1.85; color: var(--igo-ink-2); }
.ccw-side__body h1, .ccw-side__body h2, .ccw-side__body h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 900; color: var(--igo-ink); line-height: 1.5; }
.ccw-side__body p { margin: 0 0 12px; }
.ccw-side__body ul, .ccw-side__body ol { margin: 0 0 12px; padding-left: 20px; }
.ccw-side__body li { margin: 0 0 6px; }
.ccw-side__body img { max-width: 100%; height: auto; border-radius: 10px; }
.ccw-side__body table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.ccw-side__body th, .ccw-side__body td { padding: 8px 10px; border: 1px solid var(--igo-line); text-align: left; }
.ccw-side__body th { background: var(--igo-grey-bg); font-weight: 700; color: var(--igo-ink); }
.ccw-side__loading { padding: 40px 0; text-align: center; color: var(--igo-muted); font-size: 14px; }
.ccw-side__foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--igo-line); }
.ccw-side__foot .ccw-btn-outline { width: 100%; }
/* 連到分類頁時，裡面的商品用兩欄排 */
.ccw-side__body .ccw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 8px; }
.ccw-side__body .ccw-sec { padding-top: 18px; }
.ccw-side__body .ccw-sec__title { font-size: 16px; }

/* ---------- 篩選抽屜 ---------- */
.ccw-drawer { position: fixed; inset: 0; z-index: 100000; }
.ccw-drawer[hidden] { display: none; }
.ccw-drawer__scrim { position: absolute; inset: 0; background: rgba(20,20,26,.4); }
.ccw-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(440px, 100%);
	display: flex; flex-direction: column; background: #FCFCFA;
	animation: ccw-in .24s ease;
}
@keyframes ccw-in { from { transform: translateX(-100%); } to { transform: none; } }
.ccw-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 12px 12px 20px; }
.ccw-drawer__head strong { font-size: 20px; font-weight: 900; color: var(--igo-ink); }
.ccw .ccw-drawer__x { width: 44px; height: 44px; padding: 13px; border: 0; border-radius: 50%; background: none; color: var(--igo-ink); cursor: pointer; }
.ccw .ccw-drawer__x:hover { background: var(--igo-grey-bg); }
.ccw-drawer__body { flex: 1; overflow-y: auto; padding: 0 20px 24px; }

/* 可收合的一塊：標題列 ＋ 右邊加減號 */
.ccw-fg { border-top: 1px solid var(--igo-line); }
.ccw-fg:last-child { border-bottom: 1px solid var(--igo-line); }
.ccw .ccw-fg__head {
	display: flex; align-items: center; gap: 10px; width: 100%; height: 56px; padding: 0; border: 0; background: none;
	font-size: 16px; font-weight: 500; color: var(--igo-ink); text-align: left; cursor: pointer;
}
.ccw-fg__head > span { flex: none; }
.ccw-fg__picked { flex: 1; min-width: 0; font-style: normal; font-size: 13px; color: var(--igo-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccw-fg__sign { position: relative; flex: none; width: 14px; height: 14px; }
.ccw-fg__sign::before, .ccw-fg__sign::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--igo-ink); transition: transform .2s; }
.ccw-fg__sign::after { transform: rotate(90deg); }
.ccw-fg__head[aria-expanded="true"] .ccw-fg__sign::after { transform: rotate(0); }
.ccw-fg__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 0 18px; }
.ccw-fg__body[hidden] { display: none; }

/* 選項是方框按鈕（不是小勾勾） */
.ccw-opt {
	position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 12px;
	border: 1px solid var(--igo-line); border-radius: 10px; background: var(--igo-surface);
	font-size: 14px; color: var(--igo-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ccw-opt:hover { border-color: #BDBDC3; }
.ccw-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ccw-opt__label { flex: 1; min-width: 0; line-height: 1.4; }
.ccw-opt__n { font-size: 12px; color: var(--igo-muted); }
.ccw-opt:has(input:checked) { border-color: var(--igo-ink); box-shadow: inset 0 0 0 1px var(--igo-ink); font-weight: 700; }
.ccw-opt:has(input:focus-visible) { outline: 2px solid var(--igo-ink); outline-offset: 2px; }

.ccw-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--igo-line); }
.ccw .ccw-btn-text.is-small { height: 32px; font-size: 13px; }
.ccw-drawer__foot .ccw-btn-primary { flex: 1; }
html.ccw-lock, html.ccw-lock body { overflow: hidden; }

/* ---------- 平板 ---------- */
/* 篩選列放不下時，一格一格收起來，其餘從「篩選」打開
   ⚠️ 一定要寫 .ccw 開頭：基礎樣式是 .ccw .ccw-dd__btn，權重比單一 class 高，不然收不掉 */
@media (max-width: 1279px) {
	.ccw .ccw-bar__left > .ccw-bar__group:nth-child(n+5) { display: none; }
}

@media (max-width: 1024px) {
	.ccw .ccw-o1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ccw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ccw .ccw-bar__group { display: none; }
	.ccw-jump { padding: 10px 15px; }
}

/* ---------- 手機 ---------- */
@media (max-width: 767px) {
	.ccw { padding: 0 0 56px; }
	.ccw-crumbs { padding-top: 12px; font-size: 12px; }
	.ccw-head { padding: 26px 0 18px; }
	.ccw-head__title { font-size: 28px; }
	.ccw-head__desc { font-size: 14px; }

	.ccw-jump { margin-bottom: 12px; padding: 8px 0; overflow: hidden; }
	.ccw-jump__row {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
		padding: 0 15px; scrollbar-width: none;
		scroll-snap-type: x proximity; scroll-padding-left: 15px;
		/* 右邊淡出，讓客人看得出還可以往右滑，而不是被螢幕切掉 */
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
		mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
	}
	.ccw-jump__row::-webkit-scrollbar { display: none; }
	.ccw .ccw-sub { flex: none; height: 34px; padding: 0 12px; font-size: 13px; scroll-snap-align: start; }
	.ccw .ccw-sub span { font-size: 11px; }

	.ccw .ccw-bar__all { height: 44px; }
	.ccw-sec { padding-top: 36px; }
	.ccw-sec__title { font-size: 19px; }
	.ccw-price__save { height: 20px; font-size: 11px; }
	.ccw-bar__total { display: none; }

	.ccw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; padding-top: 16px; }
	.ccw-card__media { border-radius: 12px; }
	.ccw-badges { top: 8px; left: 8px; gap: 4px; }
	.ccw-badge { height: 22px; padding: 0 6px; font-size: 11px; }
	.ccw-card__body { padding-top: 10px; }
	.ccw-card__title { font-size: 14px; }
	.ccw-price__now { font-size: 16px; }
	.ccw-swatches__name { display: none; }
	.ccw .ccw-swatch { width: 26px; height: 26px; }
	.ccw-card__act { gap: 6px; }
	.ccw-card__tag { display: none; }
	.ccw .ccw-link { font-size: 13px; }

	/* 優惠卡在手機也是「一格商品」的大小，不要橫躺整排 */
	.ccw-promo { margin-bottom: 38px; }
	.ccw-promo__text { padding: 14px 14px 16px; }
	.ccw-icon { width: 38px; height: 38px; padding: 8px; border-radius: 10px; }
	.ccw-promo__title { margin-top: 12px; font-size: 15px; line-height: 1.45; }
	.ccw-promo__desc { margin-top: 6px; font-size: 12px; line-height: 1.65; }
	.ccw-promo .ccw-btn-outline { margin-top: 12px; height: 36px; padding: 0 14px; font-size: 12.5px; }
	.ccw-promo.is-photo .ccw-promo__text { padding: 12px 12px 14px; }

	.ccw-others { margin-top: 56px; }
	.ccw-others__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ccw-other { padding: 12px; column-gap: 10px; grid-template-columns: 32px 1fr 14px; }
	.ccw-other img { width: 32px; height: 32px; }
	.ccw .ccw-o1 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ccw .ccw-o1__c { padding: 12px; gap: 8px; }
	.ccw .ccw-o1__il { width: 44px; height: 33px; }
	.ccw .ccw-o1__c > svg:last-child { display: none; }
	.ccw .ccw-o1__t b { font-size: 15px; }
	.ccw .ccw-o1__t small { font-size: 11.5px; line-height: 1.4; -webkit-line-clamp: 3; }

	/* 手機跟 Caraway 一樣：整個畫面從左邊滑進來，選項一行一個 */
	.ccw-drawer__panel { width: 100%; }
	.ccw-fg__body { grid-template-columns: 1fr; }
}

/* ==================================================================
 * 置頂標題欄・重做（A 的版面 ＋ C 的紅底公告條）
 *
 * ⚠️ 範圍只吃 body.igo-ccw（品類頁與 PETLIBRO 品牌頁才有）。
 *    首頁沒有這個標記，完全不受影響，不要拿掉這層。
 *
 * 併成兩條的部分再多吃一個 igo-hd，那是前端搬動成功才掛上的。
 * 搬不動就只會套用顏色，版面退回三條，不會開天窗。
 * ================================================================== */

body.igo-ccw .whb-header,
body.igo-ccw .whb-header input,
body.igo-ccw .whb-header button,
body.igo-ccw .whb-header select {
	font-family: Urbanist, "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* ---------- 最上面：促銷帶 ---------- */

/* 主題原本那條是功能連結（門市／帳戶／聯盟），不是促銷，整條收起來，
   改用我們自己印的那一條（見 igo_ccw_promo_bar）。 */
body.igo-ccw .whb-top-bar {
	display: none;
}

.ccw-promobar {
	background: var(--igo-brand);
	color: #fff;
}

.ccw-promobar__in {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 34px;
	max-width: 1370px;
	margin: 0 auto;
	padding: 11px 24px;
	font-family: Urbanist, "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .03em;
	line-height: 1.5;
}

/* 每一句之間點一個小圓點分隔 */
.ccw-promobar__in span + span::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	vertical-align: middle;
	margin-right: 34px;
	margin-left: -18px;
}

@media (max-width: 767px) {
	.ccw-promobar__in {
		gap: 2px 16px;
		padding: 8px 16px;
		font-size: 11.5px;
	}

	/* 手機排得下就排，排不下換行，不要出現半個圓點 */
	.ccw-promobar__in span + span::before {
		display: none;
	}
}

body.igo-ccw .whb-top-bar,
body.igo-ccw .whb-top-bar a,
body.igo-ccw .whb-top-bar .wd-nav > li > a {
	color: #fff;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .02em;
}

body.igo-ccw .whb-top-bar a:hover,
body.igo-ccw .whb-top-bar .wd-nav > li > a:hover {
	color: rgba(255, 255, 255, .72);
}

body.igo-ccw .whb-top-bar .wd-header-divider {
	border-color: rgba(255, 255, 255, .32) !important;
}

body.igo-ccw .whb-top-bar svg,
body.igo-ccw .whb-top-bar .wd-tools-icon {
	color: #fff;
}

/* 付款方式的圖示在紅底上很雜，收起來 */
body.igo-ccw .whb-top-bar img {
	display: none;
}

/* ---------- 中間：主列（LOGO 左・選單中・搜尋與工具右） ---------- */

body.igo-ccw .whb-general-header {
	background-color: var(--igo-surface) !important;
	border-bottom: 1px solid var(--igo-line);
}

body.igo-ccw.igo-hd .whb-general-header-inner {
	min-height: 70px;
}

body.igo-ccw.igo-hd .whb-general-header .whb-col-left,
body.igo-ccw.igo-hd .whb-general-header .whb-col-right {
	flex: 0 0 auto;
}

body.igo-ccw.igo-hd .whb-general-header .whb-col-center {
	flex: 1 1 auto;
	justify-content: center;
	padding: 0 12px;
}

/* 選單搬進來之後，原本那一整條就不需要了 */
body.igo-ccw.igo-hd .whb-header-bottom {
	display: none;
}

/* ---------- 主選單 ---------- */

/* ⚠️ 13 個品類要排在同一行。每個品類前面原本有一個小圖示，
   一個就多吃掉 20 幾像素，13 個加起來就擠不下、會折成兩行。
   A 的版面本來就是純文字選單，所以圖示在這裡收起來（手機的漢堡選單裡還在）。 */
body.igo-ccw.igo-hd .whb-general-header .wd-header-nav .wd-nav > li > a img,
body.igo-ccw.igo-hd .whb-general-header .wd-header-nav .wd-nav > li > a .wd-nav-img,
body.igo-ccw.igo-hd .whb-general-header .wd-header-nav .wd-nav > li > a picture {
	display: none !important;
}

/* 一行排不下也不准折行。
   ⚠️ 這裡千萬不能用 overflow 來處理超出：設了 overflow-x，垂直方向也會跟著被裁，
      「品牌」那種下拉選單就會整個被剪掉看不見。排不下改用下面的階梯式縮字級。 */
body.igo-ccw.igo-hd .whb-general-header .wd-header-nav .wd-nav {
	flex-wrap: nowrap;
}

/* 中欄要能被壓縮，右邊的搜尋與圖示才不會被擠出畫面 */
body.igo-ccw.igo-hd .whb-general-header .whb-col-center {
	min-width: 0;
}

/* 右邊那幾個圖示不准被壓扁 */
body.igo-ccw.igo-hd .whb-general-header .whb-col-right > * {
	flex: 0 0 auto;
}

body.igo-ccw .whb-header .wd-header-nav .wd-nav > li > a {
	position: relative;
	color: var(--igo-ink);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .01em;
	padding-left: 8px;
	padding-right: 8px;
	white-space: nowrap;
}

body.igo-ccw .whb-header .wd-header-nav .wd-nav > li > a::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 16px;
	height: 1.5px;
	background: var(--igo-brand);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .28s cubic-bezier(.65, 0, .35, 1);
}

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

body.igo-ccw .whb-header .wd-header-nav .wd-nav > li > a:hover::after,
body.igo-ccw .whb-header .wd-header-nav .wd-nav > li.current-menu-item > a::after,
body.igo-ccw .whb-header .wd-header-nav .wd-nav > li.current-menu-parent > a::after {
	transform: scaleX(1);
}

/* ---------- 搜尋框：平常收窄，點了才展開 ---------- */

/* 平常只剩一顆放大鏡，點了才展開成輸入框 */
body.igo-ccw.igo-hd .whb-general-header .wd-search-form {
	position: relative;
	width: 42px;
	margin-right: 10px;
	transition: width .3s cubic-bezier(.65, 0, .35, 1);
}

body.igo-ccw.igo-hd .whb-general-header .wd-search-form:focus-within {
	width: 300px;
}

/* 收起來的時候把輸入框藏到放大鏡底下，不要讓「搜尋商品」那幾個字露出來 */
body.igo-ccw.igo-hd .whb-general-header .wd-search-form .searchform input[type="text"] {
	padding-right: 42px;
	opacity: 0;
	transition: opacity .2s ease .06s;
}

body.igo-ccw.igo-hd .whb-general-header .wd-search-form:focus-within .searchform input[type="text"] {
	opacity: 1;
}

/* 放大鏡固定在右邊，收起來時它就是整顆按鈕 */
body.igo-ccw.igo-hd .whb-general-header .wd-search-form .searchsubmit {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 40px;
	z-index: 2;
	cursor: pointer;
}

/* 收起來時不要顯示清除鈕（會浮在放大鏡旁邊） */
body.igo-ccw.igo-hd .whb-general-header .wd-search-form:not(:focus-within) .wd-clear-search {
	display: none;
}

body.igo-ccw .whb-general-header .wd-search-form input[type="text"],
body.igo-ccw .whb-general-header .searchform input[type="text"] {
	height: 40px;
	border: 1px solid var(--igo-line);
	border-radius: 999px;
	background: var(--igo-canvas);
	color: var(--igo-ink);
	font-size: 13.5px;
}

body.igo-ccw .whb-general-header .wd-search-form input[type="text"]:focus {
	background: var(--igo-surface);
	border-color: var(--igo-ink);
}

body.igo-ccw .whb-general-header .wd-search-form input[type="text"]::placeholder {
	color: var(--igo-muted);
}

/* ---------- 右邊的工具 ---------- */

body.igo-ccw .whb-general-header a,
body.igo-ccw .whb-general-header .wd-tools-icon {
	color: var(--igo-ink-2);
}

body.igo-ccw .whb-general-header a:hover {
	color: var(--igo-brand);
}

body.igo-ccw .whb-header .wd-tools-count,
body.igo-ccw .whb-header .wd-cart-number {
	background-color: var(--igo-brand) !important;
	color: #fff !important;
}

/* 「比較」在主列太佔空間，桌機收起來（功能還在，商品卡上有） */
body.igo-ccw.igo-hd .whb-general-header .wd-header-compare {
	display: none;
}

/* ---------- 捲動時收起來的樣子 ---------- */

body.igo-ccw.igo-hd .whb-sticked .whb-general-header-inner {
	min-height: 56px;
}

body.igo-ccw .whb-sticky-shadow.whb-sticked .whb-main-header {
	box-shadow: 0 2px 10px rgba(31, 31, 34, .07);
}

/* ------------------------------------------------------------------
 * 置頂欄的寬度階梯
 *
 * 13 個品類＋LOGO＋搜尋＋三個圖示，在窄一點的桌機會擠不下。
 * 用階梯式收字級與留白，不要用 overflow 裁切（會把下拉選單剪掉）。
 * ------------------------------------------------------------------ */

@media (max-width: 1439px) {
	body.igo-ccw.igo-hd .whb-general-header .wd-header-nav .wd-nav > li > a {
		font-size: 13px;
		padding-left: 6px;
		padding-right: 6px;
	}

	body.igo-ccw.igo-hd .whb-general-header .wd-header-nav .wd-nav > li > a::after {
		left: 6px;
		right: 6px;
	}

	/* 收起來本來就只有一顆圖示，不需要再縮 */
}

@media (max-width: 1279px) {
	/* 展開的寬度收一點，才不會把圖示擠出去 */
	body.igo-ccw.igo-hd .whb-general-header .wd-search-form:focus-within {
		width: 220px;
	}
}

/* 收藏愛心：快速看看那一行最右邊（2026-10-05 從圖片右上角搬下來） */
.ccw .ccw-heart {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 32px; height: 32px; min-height: 0; padding: 0; margin: 0 -6px 0 0; border: 0; border-radius: 999px;
	background: none; color: #9A948B; cursor: pointer; box-shadow: none; transition: color .15s, transform .15s;
}
.ccw .ccw-heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.ccw .ccw-heart:hover { background: none; color: var(--igo-brand); transform: scale(1.08); }
.ccw .ccw-heart.is-on { color: var(--igo-brand); }
.ccw .ccw-heart.is-on svg { fill: currentColor; }
.ccw .ccw-heart.is-busy { opacity: .5; cursor: progress; }
.ccw .ccw-heart:focus-visible { outline: 2px solid var(--igo-ink); outline-offset: 2px; }

/* 所有商品頁往下捲自動載入：這格是觸發點，不要讓瀏覽器的「捲動錨點」挑它當錨點
   （上面一塞新商品就會被拉著維持在原位、一直觸發載入）。預防用。 */
.ccw[data-flat] .ccw-more { overflow-anchor: none; }

/* 2026-11-03 顏色圓點定案：在愛心旁邊、縮小、選中的有外框；太多就換到下一行整行排 */
.ccw-card__act { flex-wrap: wrap; }
.ccw-card__act .ccw-swatches { gap: 2px; }
.ccw-card__act .ccw-swatch { width: 22px; height: 22px; }
/* 外框用深奶茶色（跟篩選視窗的選中色同一個，老闆不要黑色）；滑鼠移到哪顆，框就跟到哪顆，離開整排再回到選中那顆 */
.ccw .ccw-card__act .ccw-swatch.is-on,
.ccw .ccw-card__act .ccw-swatch:hover { box-shadow: inset 0 0 0 1.5px #93694A; }
.ccw .ccw-card__act .ccw-swatches:hover .ccw-swatch.is-on:not(:hover) { box-shadow: none; }
.ccw-card__act .ccw-swatches.is-many-d { order: 3; flex-basis: 100%; flex-wrap: wrap; margin-left: -3px; }
@media (max-width: 767px) {
	.ccw-card__act .ccw-swatch { width: 20px; height: 20px; }
	.ccw-card__act .ccw-swatches.is-many-m { order: 3; flex-basis: 100%; flex-wrap: wrap; margin-left: -3px; }
}
