/* 置頂欄大選單（電腦）—— inc/header-mega.php、assets/js/header-mega.js
   顏色、細框、白膠囊＋細長箭頭照首頁；拉開動畫照「品牌」下拉（header.css）。 */

.igo-mega-arrow { position: relative; display: inline-block; flex: none; height: 10px; background: linear-gradient(currentColor, currentColor) left center / calc(100% - 2px) 1.2px no-repeat; }
.igo-mega-arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1.2px solid currentColor; border-right: 1.2px solid currentColor; transform: translateY(-50%) rotate(45deg); }

/* ---------- 電腦：大選單 ---------- */
.igo-mega { position: fixed; left: 0; right: 0; z-index: 9990; display: none; pointer-events: none; font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; color: #2A2B2A; }
@media (min-width: 1025px) {
	.igo-mega:not([hidden]) { display: block; }
}
.igo-mega__pane { pointer-events: auto; display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 30px 40px 34px; background: #FDF8F3; border: 1px solid rgba(42, 43, 42, .14); /* 很淡的奶茶色：比置頂欄（#FBEEE2）淡很多（老闆 2026-10-21：淺綠不好看、不要跟置頂欄同色） */ border-top: 0; border-radius: 0 0 22px 22px; box-shadow: 0 26px 46px rgba(0, 0, 0, .12);
	clip-path: inset(0 -60px 100% -60px round 0 0 22px 22px); transform: translateY(-6px); transition: clip-path .42s cubic-bezier(.2, .8, .2, 1), transform .42s cubic-bezier(.2, .8, .2, 1); }
.igo-mega__pane[hidden] { display: none; }
.igo-mega.is-open .igo-mega__pane { clip-path: inset(0 -60px -80px -60px round 0 0 22px 22px); transform: none; }

/* 項目一個個浮上來（跟品牌下拉同一款）。
   用 animation 不用 transition：transition 的延遲會連帶讓「滑過商品的底色」也慢半拍出現（老闆 2026-10-21 抓到）。 */
@keyframes igoMegaUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.igo-mega__ph, .igo-mega__mid > *, .igo-mega__hot > * { opacity: 0; }
.igo-mega.is-open .igo-mega__ph, .igo-mega.is-open .igo-mega__mid > *, .igo-mega.is-open .igo-mega__hot > * { animation: igoMegaUp .4s cubic-bezier(.2, .8, .2, 1) both; }
.igo-mega.is-open .igo-mega__ph { animation-delay: .08s; }
.igo-mega.is-open .igo-mega__mid > :nth-child(1) { animation-delay: .12s; }
.igo-mega.is-open .igo-mega__mid > :nth-child(2) { animation-delay: .16s; }
.igo-mega.is-open .igo-mega__mid > :nth-child(3) { animation-delay: .22s; }
.igo-mega.is-open .igo-mega__mid > :nth-child(n+4) { animation-delay: .28s; }
.igo-mega.is-open .igo-mega__hot > :nth-child(1) { animation-delay: .2s; }
.igo-mega.is-open .igo-mega__hot > :nth-child(2) { animation-delay: .26s; }
.igo-mega.is-open .igo-mega__hot > :nth-child(3) { animation-delay: .32s; }

.igo-mega__ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #2A2B2A; border-radius: 18px; background: #fff center / cover no-repeat; }
.igo-mega__ph.is-icon { display: flex; align-items: center; justify-content: center; }
.igo-mega__ph.is-icon img { width: 42%; height: auto; opacity: .9; }
.igo-mega__pill { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 16px; border: 1px solid #2A2B2A; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: #2A2B2A; }

.igo-mega__name { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.3; }
.igo-mega__sub { margin: 4px 0 16px; font-size: 14px; color: #6B655D; }
.igo-mega__kids { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.igo-mega__kids li { margin: 0; }
.igo-mega__kids a { display: flex; align-items: center; justify-content: space-between; height: 46px; border-bottom: 1px solid rgba(42, 43, 42, .14); font-size: 15.5px; color: #2A2B2A; transition: color .2s, padding .3s cubic-bezier(.2, .8, .2, 1); }
.igo-mega__kids a:hover { color: #B81820; padding-left: 6px; }
.igo-mega__all { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 42px; padding: 0 18px; border: 1.5px solid #2A2B2A; border-radius: 999px; font-size: 14px; font-weight: 700; color: #2A2B2A; transition: background .2s, color .2s; }
.igo-mega__all:hover { background: #2A2B2A; color: #fff; }

.igo-mega__hot-h { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #6B655D; }
.igo-mega__prod { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px; margin-bottom: 8px; border-radius: 14px; color: #2A2B2A; transition: background .12s ease; }
.igo-mega__prod:hover { background: #F3E8DC; }
.igo-mega__prod img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; }
.igo-mega__prod b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.5; }
.igo-mega__prod em { display: block; margin-top: 2px; font-style: normal; font-size: 14px; font-weight: 700; }

@media (max-width: 1280px) {
	.igo-mega__pane { grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 28px; padding: 26px 28px 30px; }
}
