/* Mizzy Site Kit — 前台樣式
   顏色／留白／背景圖都來自後台欄位輸出的 CSS 變數，這裡只寫結構。 */

.mz,
.mz *,
.mz-blk,
.mz-blk * { box-sizing: border-box; }

.mz-main {
	background: var(--mz-bg);
	color: var(--mz-ink);
	font-family: var(--mz-font-body);
	font-size: 16px;
	line-height: 1.75;
	letter-spacing: .01em;
	-webkit-font-smoothing: antialiased;
}
.mz-main h1, .mz-main h2, .mz-main h3, .mz-main h4 { margin: 0; line-height: 1.28; text-wrap: balance; font-weight: 700; }
.mz-main p { margin: 0; }
.mz-main img, .mz-main svg { max-width: 100%; }
.mz-main a { color: inherit; text-decoration: none; }
.mz-main a:hover { text-decoration: none; }
.mz-main :focus-visible { outline: 2px solid var(--mz-brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- 區塊外殼 ---------- */
.mz-blk {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--blk-bg, var(--mz-bg));
	color: var(--blk-text, var(--mz-ink));
	padding-block: var(--blk-pt, 72px) var(--blk-pb, 72px);
}
.mz-blk-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--blk-img, none);
	background-size: cover;
	background-position: center;
	pointer-events: none;
}
.mz-blk.has-bg .mz-blk-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--blk-bg, #000);
	opacity: var(--blk-overlay, .5);
}
.mz-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--mz-container, 1180px);
	margin-inline: auto;
	padding-inline: 20px;
}
.mz-anchor { position: absolute; top: -80px; }

/* ---------- 文字元件 ---------- */
.mz-eyebrow {
	font-family: "DM Mono", ui-monospace, monospace;
	font-size: 11px; font-weight: 500;
	letter-spacing: .22em; text-transform: uppercase;
	color: var(--blk-muted, var(--mz-ink-2));
	opacity: .95;
}
.mz-kicker {
	display: block;
	font-family: var(--mz-font-display);
	font-weight: 700;
	letter-spacing: .055em;
	font-size: .52em;
	opacity: .85;
	margin-bottom: 8px;
}
.mz-lede { color: var(--blk-muted, var(--mz-ink-2)); font-size: 15px; line-height: 1.9; margin-top: 12px; max-width: 56ch; }
.mz-mono-sm { font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .1em; color: var(--mz-ink-2); }
.mz-note { color: var(--mz-ink-2); font-size: 14px; }

.mz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.mz-head h2 { font-size: clamp(25px, 3vw, 34px); margin-top: 8px; }
.mz-more { color: var(--mz-brand); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.mz-more:hover { gap: 11px; }
.mz-arw { transition: transform .22s; display: inline-block; }
.mz-more:hover .mz-arw { transform: translateX(3px); }

/* 按鈕裡的箭頭做成圓形晶片，滑過往右滑並反白 */
.mz-btn .mz-btn-tx { position: relative; z-index: 1; }
.mz-btn .mz-arw {
	position: relative; z-index: 1;
	display: inline-grid; place-items: center;
	width: 1.7em; height: 1.7em; border-radius: 50%;
	background: color-mix(in srgb, currentColor 14%, transparent);
	transition: transform .4s cubic-bezier(.2,.8,.3,1), background .3s, color .3s;
}
.mz-btn .mz-arw svg { width: .92em; height: .92em; display: block; }
.mz-btn:hover .mz-arw { transform: translateX(.28em); }
.mz-btn-primary:hover .mz-arw { background: #fff; color: var(--mz-brand); }
.mz-btn-onDark:hover .mz-arw { background: var(--mz-brand); color: #fff; }
.mz-btn-ghostDark:hover .mz-arw { background: var(--mz-cream); color: var(--mz-brand-deep, #094D2A); }

/* ---------- 按鈕 ---------- */
.mz-btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border-radius: 99px;
	font-weight: 700; font-size: 15px; border: 1px solid transparent;
	cursor: pointer; text-align: center;
	transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .22s, background .2s, border-color .2s;
}
.mz-btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
	transform: translateX(-120%);
}
.mz-btn:hover::after { animation: mz-sheen .85s ease; }
.mz-btn:hover { transform: translateY(-2px); }
.mz-btn:active { transform: translateY(0); }
.mz-btn-lg { padding: 16px 30px; font-size: 16px; }
.mz-btn-block { width: 100%; }
.mz-btn-primary { background: var(--mz-brand); color: #fff; box-shadow: 0 1px 2px rgba(22,33,26,.06), 0 14px 32px -20px rgba(22,33,26,.5); }
.mz-btn-onDark { background: var(--mz-cream); color: #123A24; }
.mz-btn-onDark:hover { background: #fff; }
.mz-btn-ghostDark {
	color: var(--mz-cream);
	background: rgba(255,255,255,.14);
	border-color: rgba(255,255,255,.34);
	backdrop-filter: blur(12px) saturate(1.3);
	-webkit-backdrop-filter: blur(12px) saturate(1.3);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 26px -18px rgba(0,0,0,.7);
}
.mz-btn-ghostDark:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }

@keyframes mz-sheen { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(220%); } }
@keyframes mz-drift { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-14px,0); } }
@keyframes mz-draw { to { stroke-dashoffset: 0; } }
@keyframes mz-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes mz-fade { from { opacity: .001; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.mz *, .mz-blk * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 頁首／頁尾（外掛自帶版） ---------- */
.mz-site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--mz-bg) 90%, transparent);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mz-line);
	font-family: var(--mz-font-body);
}
.mz-site-header-in { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.mz-logo { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; color: var(--mz-ink); }
.mz-logo img { height: var(--mz-logo-h, 30px); width: auto; display: block; }
.mz-logo-sub { font-size: 11px; color: var(--mz-ink-2); letter-spacing: .12em; }
.mz-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mz-nav a { padding: 7px 13px; border-radius: 99px; font-size: 14.5px; color: var(--mz-ink-2); display: block; transition: background .18s, color .18s; }
.mz-nav a:hover { background: color-mix(in srgb, var(--mz-brand) 12%, transparent); color: var(--mz-ink); }
.mz-cart { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--mz-line); color: var(--mz-ink-2); }
.mz-cart:hover { border-color: var(--mz-brand); color: var(--mz-brand); }
.mz-cart-n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--mz-sale); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.mz-site-footer { font-family: var(--mz-font-body); font-size: 14px; }
.mz-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.mz-foot-logo { height: 28px; width: auto; margin-bottom: 14px; display: block; }
.mz-site-footer h4 { color: var(--blk-text); font-size: 14px; letter-spacing: .06em; margin-bottom: 14px; }
.mz-site-footer, .mz-foot-contact, .mz-foot-list { color: var(--blk-muted); }
.mz-foot-contact p { line-height: 1.9; }
.mz-foot-list { display: flex; flex-direction: column; gap: 9px; }
.mz-foot-list a { transition: color .18s; }
.mz-foot-list a:hover { color: var(--mz-gold); }
.mz-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mz-pay span { padding: 5px 10px; border: 1px solid currentColor; border-radius: 5px; font-size: 11px; letter-spacing: .04em; opacity: .8; font-family: "DM Mono", monospace; }
.mz-foot-legal { margin-top: 38px; padding-top: 20px; border-top: 1px solid currentColor; opacity: .7; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
/* 滿版高度：整段撐到幾乎一個螢幕，內容垂直置中。 */
.mz-blk--hero.is-tall {
	display: flex; align-items: center;
	min-height: var(--mz-hero-vhf, 88vh);   /* 舊瀏覽器 */
}
.mz-blk--hero.is-tall { min-height: var(--mz-hero-vh, 88svh); } /* 手機網址列會收合的新瀏覽器 */
.mz-blk--hero.is-tall > .mz-inner { width: 100%; }
.mz-hero .mz-hero-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: 40px; align-items: center; }
.mz-hero h1 { font-size: clamp(32px, 5.1vw, 56px); line-height: 1.22; margin-top: 14px; font-weight: 900; letter-spacing: -.01em; }
.mz-hero .mz-kicker { font-size: clamp(19px, 2.3vw, 27px); }
.mz-hero .mz-lede { max-width: 38ch; font-size: clamp(15px, 1.45vw, 17px); margin-top: 18px; }
.mz-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.mz-chips { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.mz-chip {
	display: inline-flex; align-items: baseline; gap: 7px;
	padding: 8px 15px; border-radius: 99px; font-size: 13px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.24);
	backdrop-filter: blur(10px) saturate(1.2);
	-webkit-backdrop-filter: blur(10px) saturate(1.2);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.mz-gift-opts span {
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	background: rgba(255,255,255,.1);
}
.mz-chip b { font-family: "DM Mono", monospace; font-size: 14px; color: var(--mz-gold); filter: brightness(1.6); font-weight: 500; }
.mz-hero-art {
	border-radius: 14px; overflow: hidden;
	box-shadow: 0 34px 70px -30px rgba(0,0,0,.65);
	transform: perspective(900px) rotateY(-3deg);
	transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.mz-hero-art:hover { transform: perspective(900px) rotateY(0) translateY(-4px); }
/* 滿版：往右溢出到視窗邊緣 */
.mz-hero.is-bleed .mz-hero-art {
	margin-right: calc(-1 * max(0px, (100vw - var(--mz-container, 1180px)) / 2) - 20px);
	border-radius: 14px 0 0 14px;
	transform: none;
}
.mz-hero.is-bleed .mz-hero-art:hover { transform: translateY(-4px); }
.mz-hero-art img { width: 100%; height: auto; display: block; }
.mz-hero-circles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* 主視覺背景圖的三種擺法 */
.mz-blk--hero.bg-band .mz-blk-bg { background-size: 100% auto; background-position: center bottom; background-repeat: no-repeat; }
/* 靠下滿寬時，文字要讓開下緣那排插圖 */
.mz-blk--hero.bg-band.has-bg > .mz-inner { padding-bottom: min(19vw, 300px); }
.mz-blk--hero.bg-cover .mz-blk-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.mz-blk--hero.bg-tile .mz-blk-bg { background-size: auto 38%; background-position: center bottom; background-repeat: repeat-x; }
/* 柔邊光暈球：沒有硬邊，像打在底色上的光，飄動幅度大、速度慢。 */
.mz-hero-circles i {
	position: absolute; border-radius: 50%; will-change: transform;
	background: radial-gradient(circle at 36% 32%,
		rgba(255,255,255,.22),
		rgba(255,255,255,.07) 46%,
		rgba(255,255,255,0) 72%);
}
.mz-hero-circles i.is-dark {
	background: radial-gradient(circle at 42% 40%,
		rgba(0,0,0,.20),
		rgba(0,0,0,.07) 50%,
		rgba(0,0,0,0) 74%);
}
.mz-hero-circles .mz-c1 { animation: mz-float1 linear infinite alternate; }
.mz-hero-circles .mz-c2 { animation: mz-float2 linear infinite alternate; }
@keyframes mz-float1 {
	0%   { transform: translate3d(0,0,0) scale(1); }
	50%  { transform: translate3d(3vw,-4vh,0) scale(1.08); }
	100% { transform: translate3d(-2vw,-7vh,0) scale(.94); }
}
@keyframes mz-float2 {
	0%   { transform: translate3d(0,0,0) scale(1); }
	50%  { transform: translate3d(-4vw,3vh,0) scale(1.06); }
	100% { transform: translate3d(3vw,6vh,0) scale(.93); }
}

/* ---------- 信任條 ---------- */
.mz-trust { border-block: 1px solid var(--mz-line); }
.mz-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mz-trust-item { display: flex; gap: 11px; align-items: flex-start; padding: 20px 18px; border-right: 1px solid var(--mz-line); }
.mz-trust-item:last-child { border-right: 0; }
.mz-trust-item svg { flex: none; color: var(--mz-brand); margin-top: 2px; }
.mz-trust-item .t { font-weight: 700; font-size: 14px; line-height: 1.5; }
.mz-trust-item .d { font-size: 12.5px; color: var(--blk-muted); line-height: 1.6; }

/* ---------- 商品卡 ---------- */
.mz-grid { display: grid; gap: 20px; }
.mz-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mz-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mz-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mz-card {
	background: var(--mz-surface); border: 1px solid var(--mz-line);
	border-radius: var(--mz-radius); overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s, border-color .24s;
}
.mz-card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(22,33,26,.06), 0 30px 64px -32px rgba(22,33,26,.5); }
.mz-card-art { position: relative; display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--mz-line) 35%, var(--mz-surface)); overflow: hidden; }
.mz-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.mz-card:hover .mz-card-art img { transform: scale(1.05); }
.mz-pill { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: var(--mz-sale); color: #fff; }
.mz-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; color: var(--mz-ink); }
.mz-card-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mz-ink-2); font-family: "DM Mono", monospace; }
.mz-card-cat a { color: inherit; }
.mz-card h3 { font-size: 16.5px; line-height: 1.55; }
.mz-card-note { font-size: 13px; color: var(--mz-ink-2); line-height: 1.65; }
.mz-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.mz-price { font-family: "DM Mono", monospace; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mz-ink); }
.mz-price del { opacity: .45; font-size: .7em; margin-right: 6px; }
.mz-price ins { text-decoration: none; }
.mz-unit { font-size: 12px; color: var(--mz-ink-2); }
.mz-card .mz-btn { margin-top: 12px; }

/* ---------- 拆解圖 ---------- */
.mz-ana-stage { margin-top: 30px; }
.mz-ana-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.mz-cal-line { fill: none; stroke-width: 1.2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: mz-draw 1.1s ease forwards; }
.mz-cal-dot { transform-box: fill-box; transform-origin: center; animation: mz-pop .4s cubic-bezier(.3,1.5,.5,1) both; }
.mz-cal-t { fill: var(--blk-text); font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: .06em; }
.mz-cal-s { fill: var(--blk-muted); font-family: var(--mz-font-body); font-size: 12px; }
.mz-ana-list { display: none; list-style: none; margin: 24px 0 0; padding: 0; }
.mz-ana-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.mz-ana-list strong { display: block; font-family: "DM Mono", monospace; font-size: 14px; }
.mz-ana-list span { font-size: 13.5px; color: var(--blk-muted); }

/* ---------- 配方 ---------- */
.mz-spec-grid { display: grid; gap: 1px; margin-top: 40px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; overflow: hidden; }
.mz-spec { background: var(--blk-bg); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.mz-spec-icon { display: block; color: var(--mz-gold); filter: brightness(1.7); margin-bottom: 4px; }
.mz-spec-icon svg { display: block; }
.mz-spec .k { font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .14em; color: var(--mz-gold); filter: brightness(1.7); }
.mz-spec .n { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--blk-text); }
.mz-spec .d { font-size: 13.5px; color: var(--blk-muted); line-height: 1.75; }

/* ---------- 保存刻度 ---------- */
.mz-scale { margin-top: 34px; }
.mz-scale-track { height: 8px; border-radius: 99px; margin: 0 6%; }
.mz-scale-stops { display: grid; gap: 12px; margin-top: -5px; }
.mz-stop { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mz-stop .dot { width: 14px; height: 14px; border-radius: 99px; background: var(--blk-bg); border: 3px solid var(--blk-text); margin-bottom: 12px; }
.mz-stop .k { font-weight: 700; font-size: 15px; }
.mz-stop .v { font-family: "DM Mono", monospace; font-size: 13px; color: var(--mz-brand); font-weight: 500; }
.mz-stop .d { font-size: 12.5px; color: var(--blk-muted); line-height: 1.6; max-width: 20ch; }
.mz-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 32px; padding: 15px 18px; border-radius: 12px; background: color-mix(in srgb, var(--mz-sale) 10%, transparent); border: 1px solid color-mix(in srgb, var(--mz-sale) 30%, transparent); font-size: 14px; }
.mz-warn svg { flex: none; color: var(--mz-sale); margin-top: 3px; }

/* ---------- 禮盒 ---------- */
.mz-gift-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 46px; align-items: center; }
.mz-gift h2 { font-size: clamp(25px, 3vw, 34px); margin-top: 8px; }
.mz-gift-opts { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.mz-gift-opts span { padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); font-size: 13.5px; }
.mz-gift-dims { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--blk-muted); }
.mz-gift-dims b { display: block; font-family: "DM Mono", monospace; font-size: 16px; color: var(--blk-text); font-weight: 500; }
.mz-gift-art { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55); }
.mz-gift-art img { width: 100%; height: auto; display: block; }

/* ---------- 門市 / 面板 ---------- */
.mz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mz-panel { background: var(--mz-surface); border: 1px solid var(--mz-line); border-radius: var(--mz-radius); padding: 30px; color: var(--mz-ink); }
.mz-panel h3 { font-size: 19px; margin-bottom: 6px; }
.mz-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 18px 0 0; font-size: 14.5px; align-items: baseline; }
.mz-dl dt { color: var(--mz-ink-2); font-size: 13px; white-space: nowrap; }
.mz-dl dd { margin: 0; font-weight: 500; }
.mz-hours { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.mz-hour { display: flex; justify-content: space-between; gap: 16px; padding: 11px 15px; border-radius: 6px; background: color-mix(in srgb, var(--mz-line) 30%, var(--mz-surface)); font-size: 14.5px; }
.mz-hour.is-closed { color: var(--mz-ink-2); }
.mz-hour b { font-family: "DM Mono", monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.mz-callout { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--mz-brand) 12%, transparent); font-size: 14px; line-height: 1.8; }
.mz-callout b { color: var(--mz-brand); }
.mz-callout-gold { background: color-mix(in srgb, var(--mz-gold) 14%, transparent); }

/* ---------- FAQ ---------- */
.mz-faq-list { display: grid; gap: 10px; max-width: 820px; }
.mz-q { background: var(--mz-surface); border: 1px solid var(--mz-line); border-radius: 12px; overflow: hidden; color: var(--mz-ink); }
.mz-q summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.mz-q summary::-webkit-details-marker { display: none; }
.mz-q summary::after { content: "+"; font-family: "DM Mono", monospace; font-size: 20px; color: var(--mz-brand); flex: none; }
.mz-q[open] summary::after { content: "–"; }
.mz-q .a { padding: 0 22px 20px; color: var(--mz-ink-2); font-size: 14.5px; line-height: 1.85; animation: mz-fade .3s ease; }

/* ---------- 品牌故事 ---------- */
.mz-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.mz-story-grid h1 { font-size: clamp(26px, 3.2vw, 38px); }
.mz-story-body p { color: var(--mz-ink-2); font-size: 15.5px; line-height: 2; margin-top: 16px; }
.mz-story-art { border-radius: var(--mz-radius); overflow: hidden; box-shadow: 0 30px 64px -32px rgba(22,33,26,.5); }
.mz-story-art img { width: 100%; height: auto; display: block; }
.mz-band .mz-band-copy { text-align: center; max-width: 56ch; margin-inline: auto; }
.mz-band h3 { font-size: clamp(22px, 3vw, 32px); margin-top: 10px; }
.mz-band p { margin-top: 14px; color: var(--blk-muted); font-size: 15px; line-height: 1.9; }
.mz-steps { display: grid; gap: 20px; margin-top: 38px; counter-reset: mzstep; }
.mz-step { position: relative; padding-top: 22px; border-top: 2px solid var(--mz-line); transition: border-color .25s; }
.mz-step:hover { border-top-color: var(--mz-brand); }
.mz-step::before { counter-increment: mzstep; content: counter(mzstep, decimal-leading-zero); position: absolute; top: -13px; left: 0; background: var(--blk-bg); padding-right: 10px; font-family: "DM Mono", monospace; font-size: 13px; color: var(--mz-brand); }
.mz-step-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 12px; }
.mz-step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-step h4 { font-size: 16px; margin-bottom: 7px; }
.mz-step p { font-size: 13.5px; color: var(--mz-ink-2); line-height: 1.8; }
.mz-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.mz-trio figure { margin: 0; }
.mz-trio .ph { border-radius: var(--mz-radius); overflow: hidden; aspect-ratio: 1/1; background: color-mix(in srgb, var(--mz-line) 35%, var(--mz-surface)); border: 1px solid var(--mz-line); }
.mz-trio .ph:empty { display: none; }
.mz-trio .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.mz-trio figure:hover .ph img { transform: scale(1.06); }
.mz-trio figcaption { margin-top: 13px; }
.mz-trio .n { font-weight: 700; font-size: 15.5px; }
.mz-trio .d { font-size: 13.5px; color: var(--mz-ink-2); line-height: 1.75; margin-top: 3px; }
.mz-quote { margin: 0; padding: 34px 38px; border-radius: var(--mz-radius); background: color-mix(in srgb, var(--mz-brand) 12%, transparent); font-size: clamp(17px, 2vw, 21px); line-height: 1.8; font-weight: 500; color: var(--mz-ink); }
.mz-quote .who { display: block; margin-top: 14px; font-size: 13px; color: var(--mz-ink-2); font-weight: 400; }
.mz-prose { font-size: 15.5px; line-height: 2; color: var(--mz-ink-2); }

/* ---------- 商品內頁 ---------- */
.mz-crumb { font-size: 13px; color: var(--mz-ink-2); padding-block: 4px 0; }
.mz-crumb a:hover { color: var(--mz-brand); }
.mz-crumb .sep { margin: 0 4px; }
.mz-pdp { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 48px; padding-block: 28px 20px; }
.mz-gallery-main { border-radius: var(--mz-radius); overflow: hidden; background: color-mix(in srgb, var(--mz-line) 35%, var(--mz-surface)); border: 1px solid var(--mz-line); aspect-ratio: 1/1; position: relative; }
.mz-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.mz-thumb { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--mz-line); background: var(--mz-surface); aspect-ratio: 1/1; padding: 0; cursor: pointer; transition: border-color .2s; }
.mz-thumb[aria-pressed="true"] { border-color: var(--mz-brand); }
.mz-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.mz-badge { padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.mz-badge.is-hot { background: var(--mz-sale); color: #fff; }
.mz-badge.is-soft { background: color-mix(in srgb, var(--mz-brand) 14%, transparent); color: var(--mz-brand); }
.mz-pdp-title { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; margin-top: 10px; }
.mz-pdp-sub { color: var(--mz-ink-2); margin-top: 8px; font-size: 15px; }
.mz-pdp-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mz-pdp-price .big { font-family: "DM Mono", monospace; font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mz-pdp-price .big del { opacity: .45; font-size: .6em; margin-right: 8px; }
.mz-pdp-price .big ins { text-decoration: none; }
.mz-pdp-desc { margin-top: 16px; color: var(--mz-ink-2); font-size: 15px; line-height: 1.9; }
.mz-buy { margin-top: 26px; }
.mz-buy form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mz-buy .quantity { display: flex; align-items: center; border: 1px solid color-mix(in srgb, var(--mz-line) 100%, #000 10%); border-radius: 99px; overflow: hidden; }
.mz-buy .quantity input { border: 0; background: transparent; width: 64px; text-align: center; font-family: "DM Mono", monospace; font-size: 16px; padding: 14px 0; color: var(--mz-ink); }
.mz-buy .single_add_to_cart_button,
.mz-buy button[type="submit"] {
	background: var(--mz-brand); color: #fff; border: 0; border-radius: 99px;
	padding: 16px 30px; font-weight: 700; font-size: 16px; cursor: pointer;
	transition: transform .16s, box-shadow .22s; flex: 1; min-width: 180px;
}
.mz-buy .single_add_to_cart_button:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22,33,26,.06), 0 30px 64px -32px rgba(22,33,26,.5); }
.mz-buy table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.mz-buy table.variations th { text-align: left; font-size: 13px; color: var(--mz-ink-2); padding: 8px 12px 8px 0; white-space: nowrap; }
.mz-buy table.variations td { padding: 8px 0; }
.mz-buy table.variations select { width: 100%; padding: 12px 14px; border-radius: 99px; border: 1px solid var(--mz-line); background: var(--mz-surface); color: var(--mz-ink); font-size: 14.5px; }
.mz-ship-note { font-size: 13px; color: var(--mz-ink-2); margin-top: 14px; line-height: 1.8; }
.mz-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--mz-line); margin-top: 44px; overflow-x: auto; }
.mz-tabs button { background: none; border: 0; padding: 13px 18px; font-size: 14.5px; font-weight: 500; color: var(--mz-ink-2); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; transition: .2s; }
.mz-tabs button[aria-selected="true"] { color: var(--mz-ink); border-bottom-color: var(--mz-brand); font-weight: 700; }
.mz-tabpanel { padding-top: 24px; font-size: 14.5px; line-height: 1.95; color: var(--mz-ink-2); animation: mz-fade .3s ease; }
.mz-tabpanel h2, .mz-tabpanel h3, .mz-tabpanel h4 { color: var(--mz-ink); margin: 22px 0 8px; }
.mz-list { margin: 8px 0; padding-left: 20px; }
.mz-list li { margin: 5px 0; }
.mz-spectable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mz-spectable th, .mz-spectable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--mz-line); vertical-align: top; }
.mz-spectable th { width: 34%; color: var(--mz-ink-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.mz-spectable td { color: var(--mz-ink); }

/* ---------- RWD ---------- */
@media (max-width: 1000px) {
	.mz-hero .mz-hero-grid { grid-template-columns: 1fr; gap: 30px; }
	.mz-hero-art { order: -1; }
	.mz-hero.is-bleed .mz-hero-art { margin-inline: -20px; border-radius: 0; }
	/* 手機：插圖改成固定高度橫向重複，才不會小到看不見 */
	.mz-blk--hero.bg-band .mz-blk-bg { background-size: auto 22%; background-repeat: repeat-x; }
	.mz-blk--hero.bg-band.has-bg > .mz-inner { padding-bottom: 22svh; }
	.mz-video-grid { grid-template-columns: 1fr; gap: 28px; }
	.mz-trust-grid { grid-template-columns: 1fr 1fr; }
	.mz-trust-item:nth-child(2) { border-right: 0; }
	.mz-trust-item:nth-child(1), .mz-trust-item:nth-child(2) { border-bottom: 1px solid var(--mz-line); }
	.mz-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.mz-cols-3 { grid-template-columns: repeat(2, 1fr); }
	.mz-spec-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.mz-gift-grid { grid-template-columns: 1fr; gap: 30px; }
	.mz-two { grid-template-columns: 1fr; }
	.mz-pdp { grid-template-columns: 1fr; gap: 34px; }
	.mz-story-grid { grid-template-columns: 1fr; gap: 30px; }
	.mz-steps { grid-template-columns: repeat(2, 1fr) !important; }
	.mz-foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.mz-nav { display: none; }
}
@media (max-width: 640px) {
	.mz-blk { padding-block: max(40px, calc(var(--blk-pt) * .7)) max(40px, calc(var(--blk-pb) * .7)); }
	.mz-inner { padding-inline: 16px; }
	.mz-trust-grid { grid-template-columns: 1fr; }
	.mz-trust-item { border-right: 0 !important; border-bottom: 1px solid var(--mz-line); }
	.mz-trust-item:last-child { border-bottom: 0; }
	.mz-cols-4, .mz-cols-3, .mz-cols-2 { grid-template-columns: 1fr; }
	.mz-spec-grid { grid-template-columns: 1fr !important; }
	.mz-scale-track { display: none; }
	.mz-scale-stops { grid-template-columns: 1fr 1fr !important; gap: 22px 12px; }
	.mz-stop .dot { margin-bottom: 8px; }
	.mz-steps { grid-template-columns: 1fr !important; }
	.mz-trio { grid-template-columns: 1fr; }
	.mz-foot-grid { grid-template-columns: 1fr; }
	.mz-panel { padding: 22px; }
	.mz-quote { padding: 24px 22px; }
	.mz-hero.is-bleed .mz-hero-art { margin-inline: -16px; border-radius: 0; }
	.mz-video { max-width: 320px; }
	.mz-buy .single_add_to_cart_button { min-width: 0; }
}

/* =========================================================
   佈景主題衝突護欄
   有些佈景主題（Blocksy／Astra／OceanWP…）會用高權重規則指定
   標題色與連結色，把區塊文字蓋掉。下面用 body.mizzy-site-kit
   把權重拉高，並放在檔案最後，確保我們的顏色贏。
   ========================================================= */
body.mizzy-site-kit .mz-blk h1,
body.mizzy-site-kit .mz-blk h2,
body.mizzy-site-kit .mz-blk h3,
body.mizzy-site-kit .mz-blk h4,
body.mizzy-site-kit .mz-blk h5,
body.mizzy-site-kit .mz-blk h6,
body.mizzy-site-kit .mz-blk dt,
body.mizzy-site-kit .mz-blk dd,
body.mizzy-site-kit .mz-blk li,
body.mizzy-site-kit .mz-blk strong,
body.mizzy-site-kit .mz-blk summary { color: inherit; }

body.mizzy-site-kit .mz-blk a { color: inherit; text-decoration: none; box-shadow: none; }
body.mizzy-site-kit .mz-blk a:hover { color: inherit; }

/* 區塊內的次要文字，權重要蓋過上面的 inherit */
body.mizzy-site-kit .mz-blk .mz-lede,
body.mizzy-site-kit .mz-blk .mz-eyebrow,
body.mizzy-site-kit .mz-blk .mz-card-note,
body.mizzy-site-kit .mz-blk .mz-card-cat,
body.mizzy-site-kit .mz-blk .mz-unit,
body.mizzy-site-kit .mz-blk .mz-spec .d,
body.mizzy-site-kit .mz-blk .mz-stop .d,
body.mizzy-site-kit .mz-blk .mz-step p,
body.mizzy-site-kit .mz-blk .mz-trio .d,
body.mizzy-site-kit .mz-blk .mz-pdp-sub,
body.mizzy-site-kit .mz-blk .mz-pdp-desc,
body.mizzy-site-kit .mz-blk .mz-ship-note,
body.mizzy-site-kit .mz-blk .mz-trust-item .d,
body.mizzy-site-kit .mz-blk .mz-gift-dims,
body.mizzy-site-kit .mz-blk .mz-q .a,
body.mizzy-site-kit .mz-blk .mz-tabpanel,
body.mizzy-site-kit .mz-blk .mz-story-body p { color: var(--blk-muted, var(--mz-ink-2)); }

body.mizzy-site-kit .mz-blk .mz-card-body,
body.mizzy-site-kit .mz-blk .mz-card h3,
body.mizzy-site-kit .mz-blk .mz-panel,
body.mizzy-site-kit .mz-blk .mz-panel h3,
body.mizzy-site-kit .mz-blk .mz-q,
body.mizzy-site-kit .mz-blk .mz-q summary,
body.mizzy-site-kit .mz-blk .mz-quote,
body.mizzy-site-kit .mz-blk .mz-price,
body.mizzy-site-kit .mz-blk .mz-spectable td { color: var(--mz-ink); }

body.mizzy-site-kit .mz-blk .mz-card-cat,
body.mizzy-site-kit .mz-blk .mz-panel .mz-dl dt,
body.mizzy-site-kit .mz-blk .mz-spectable th { color: var(--mz-ink-2); }

body.mizzy-site-kit .mz-blk .mz-spec .n,
body.mizzy-site-kit .mz-blk .mz-stop .k,
body.mizzy-site-kit .mz-blk .mz-trio .n,
body.mizzy-site-kit .mz-blk .mz-trust-item .t { color: var(--blk-text, var(--mz-ink)); }

body.mizzy-site-kit .mz-blk .mz-spec .k { color: var(--mz-gold); filter: brightness(1.7); }
body.mizzy-site-kit .mz-blk .mz-more,
body.mizzy-site-kit .mz-blk .mz-stop .v,
body.mizzy-site-kit .mz-blk .mz-callout b,
body.mizzy-site-kit .mz-blk .mz-q summary::after { color: var(--mz-brand); }
body.mizzy-site-kit .mz-blk .mz-chip b { color: var(--mz-gold); filter: brightness(1.6); }

/* 按鈕：文字顏色一定要贏 */
body.mizzy-site-kit .mz-btn,
body.mizzy-site-kit a.mz-btn,
body.mizzy-site-kit button.mz-btn { text-decoration: none; }
body.mizzy-site-kit .mz-btn-primary,
body.mizzy-site-kit a.mz-btn-primary { background: var(--mz-brand); color: #fff; }
body.mizzy-site-kit .mz-btn-onDark,
body.mizzy-site-kit a.mz-btn-onDark { background: var(--mz-cream); color: #123A24; }
body.mizzy-site-kit .mz-btn-onDark:hover,
body.mizzy-site-kit a.mz-btn-onDark:hover { background: #fff; color: #123A24; }
body.mizzy-site-kit .mz-btn-ghostDark,
body.mizzy-site-kit a.mz-btn-ghostDark { color: var(--mz-cream); border-color: rgba(242,239,230,.5); }
body.mizzy-site-kit .mz-buy .single_add_to_cart_button { color: #fff; }

/* 佈景主題常見的全域盒子樣式，不要影響區塊 */
body.mizzy-site-kit .mz-blk *,
body.mizzy-site-kit .mz-blk *::before,
body.mizzy-site-kit .mz-blk *::after { box-sizing: border-box; }
body.mizzy-site-kit .mz-main { max-width: none; margin: 0; padding: 0; }

.mz-video-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 46px; align-items: center; }
.mz-videoblk h2 { font-size: clamp(25px, 3vw, 34px); margin-top: 8px; }
.mz-video {
	border-radius: var(--mz-radius); overflow: hidden; background: #000;
	box-shadow: 0 34px 70px -30px rgba(0,0,0,.75); max-width: 420px; width: 100%; margin-inline: auto;
}
.mz-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 地圖 ---------- */
.mz-map { display: block; border-radius: var(--mz-radius); overflow: hidden; border: 1px solid var(--mz-line); background: var(--mz-surface); }
.mz-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.mz-map-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--mz-ink-2); padding: 24px; }
.mz-map-cta { color: var(--mz-brand); font-weight: 700; }
.mz-storeinfo-page .mz-band h1 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 10px; }

/* ---------- 捲動進場動畫 ---------- */
.mz-reveal { opacity: 0; transform: translateY(var(--mz-anim-y, 18px)); }
.mz-reveal.is-in {
	opacity: 1; transform: none;
	transition: opacity var(--mz-anim-ms, 700ms) cubic-bezier(.2,.75,.3,1),
	            transform var(--mz-anim-ms, 700ms) cubic-bezier(.2,.75,.3,1);
	transition-delay: var(--mz-delay, 0ms);
}
/* 沒有 JS 或關閉動畫時，一律可見 */
.no-js .mz-reveal, .mz-nomotion .mz-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.mz-reveal { opacity: 1 !important; transform: none !important; }
}
.mz-hero-art.mz-parallax { will-change: transform; }
.mz-site-header.is-shrunk { padding-block: 0; box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.mz-site-header.is-shrunk .mz-site-header-in { padding-block: 7px; }
.mz-site-header .mz-site-header-in { transition: padding .25s ease; }

/* 主視覺沒有圖片時：文字單欄，右側留給漂浮圓 */
.mz-hero.no-art .mz-hero-grid { grid-template-columns: 1fr; }
.mz-hero.no-art .mz-hero-copy { max-width: 62ch; }
.mz-hero.no-art h1 { font-size: clamp(34px, 5.6vw, 62px); }
.mz-hero.no-art .mz-lede { max-width: 44ch; }
.mz-hero.no-art .mz-blk { padding-block: calc(var(--blk-pt) + 20px) calc(var(--blk-pb) + 20px); }
/* 禮盒圖是細長的包裝主視覺時不要被壓扁 */
.mz-gift-art img { width: 100%; height: auto; display: block; }

/* =========================================================
   懸浮按鈕
   ========================================================= */
.mz-float {
	position: fixed; z-index: 90;
	bottom: calc(var(--flt-offset, 22px) + env(safe-area-inset-bottom, 0px));
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
	pointer-events: none;
}
.mz-float.is-right { right: var(--flt-offset, 22px); align-items: flex-end; }
.mz-float.is-left  { left: var(--flt-offset, 22px); align-items: flex-start; }
.mz-float > * { pointer-events: auto; }

.mz-float-btn {
	position: relative;
	display: inline-flex; align-items: center; gap: 0;
	height: var(--flt-size, 58px); min-width: var(--flt-size, 58px);
	padding: 0; border-radius: 99px;
	background: var(--flt-bg, #06C755); color: var(--flt-fg, #fff);
	text-decoration: none; overflow: hidden;
	box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--flt-bg, #06C755) 70%, transparent),
	            0 4px 10px rgba(0,0,0,.18);
	transition: min-width .32s cubic-bezier(.2,.75,.3,1), padding .32s cubic-bezier(.2,.75,.3,1),
	            transform .2s, box-shadow .25s;
}
.mz-float-btn:hover { transform: translateY(-3px); text-decoration: none; color: var(--flt-fg, #fff); }
.mz-float-ic {
	width: var(--flt-size, 58px); height: var(--flt-size, 58px);
	display: grid; place-items: center; flex: none;
}
.mz-float-tx {
	max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden;
	font-size: 14.5px; font-weight: 700; letter-spacing: .02em;
	transition: max-width .32s cubic-bezier(.2,.75,.3,1), opacity .22s, padding .32s;
}
.mz-float-btn.can-expand:hover .mz-float-tx,
.mz-float-btn.can-expand:focus-visible .mz-float-tx { max-width: 220px; opacity: 1; padding-right: 22px; }

/* 脈動光暈 */
.mz-float-btn.has-pulse::before,
.mz-float-btn.has-pulse::after {
	content: ""; position: absolute; inset: 0; border-radius: 99px;
	border: 2px solid var(--flt-bg, #06C755);
	animation: mz-pulse 2.6s cubic-bezier(.2,.6,.3,1) infinite;
	pointer-events: none;
}
.mz-float-btn.has-pulse::after { animation-delay: 1.3s; }
@keyframes mz-pulse {
	0%   { transform: scale(1); opacity: .55; }
	70%  { transform: scale(1.7); opacity: 0; }
	100% { transform: scale(1.7); opacity: 0; }
}
.mz-float-btn.has-pulse:hover::before,
.mz-float-btn.has-pulse:hover::after { animation-play-state: paused; opacity: 0; }

/* 回到頂端 */
.mz-float-top {
	width: 42px; height: 42px; border-radius: 99px; cursor: pointer;
	display: grid; place-items: center;
	background: color-mix(in srgb, var(--mz-surface, #fff) 92%, transparent);
	color: var(--mz-ink, #16211A);
	border: 1px solid var(--mz-line, #DEDDCE);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 8px 22px -12px rgba(0,0,0,.4);
	transition: transform .2s, border-color .2s, color .2s, opacity .25s;
	opacity: 0;
}
.mz-float-top.is-in { opacity: 1; }
.mz-float-top:hover { transform: translateY(-3px); border-color: var(--mz-brand); color: var(--mz-brand); }
.mz-float-btn[data-hide-top] { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.mz-float-btn[data-hide-top].is-in { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 640px) {
	.mz-float { bottom: calc(var(--flt-offset, 22px) + env(safe-area-inset-bottom, 0px)); gap: 8px; }
	.mz-float-btn.can-expand .mz-float-tx { max-width: 160px; opacity: 1; padding-right: 18px; }
	.mz-float-top { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
	.mz-float-btn.has-pulse::before, .mz-float-btn.has-pulse::after { animation: none; opacity: 0; }
}

/* =========================================================
   商店頁標題重複（「商店 商店」）
   WooCommerce 自己的 <h1>、以及部分佈景主題的頁面標題列，
   會和我們的區塊標頭同時出現。這裡一律藏掉，只留我們的。
   ========================================================= */
body.mizzy-site-kit.woocommerce-shop .woocommerce-products-header,
body.mizzy-site-kit.tax-product_cat .woocommerce-products-header,
body.mizzy-site-kit.tax-product_tag .woocommerce-products-header,
body.mizzy-site-kit.woocommerce-shop .woocommerce-products-header__title,
body.mizzy-site-kit.tax-product_cat .woocommerce-products-header__title,
body.mizzy-site-kit.tax-product_tag .woocommerce-products-header__title,
body.mizzy-site-kit.woocommerce-shop .page-title:not(.mz-pdp-title),
body.mizzy-site-kit.tax-product_cat .page-title:not(.mz-pdp-title),
body.mizzy-site-kit.tax-product_tag .page-title:not(.mz-pdp-title),
body.mizzy-site-kit.single-product .product_title + .product_title,
body.mizzy-site-kit .mz-shoparchive > .woocommerce-notices-wrapper:empty { display: none !important; }

/* 商店頁的麵包屑保留，但不要再重複輸出標題 */
body.mizzy-site-kit .mz-shoparchive .woocommerce-products-header { display: none !important; }

/* =========================================================
   數量加減號
   ========================================================= */
.mz-qty {
	display: inline-flex !important;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--mz-line, #DEDDCE);
	border-radius: 99px;
	background: var(--mz-surface, #fff);
	width: auto !important;
	float: none !important;
	vertical-align: middle;
}
.mz-qty input.qty {
	width: 3.2em !important;
	min-width: 0;
	height: 34px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	color: var(--mz-ink, #16211A);
	-moz-appearance: textfield;
	appearance: textfield;
}
.mz-qty input.qty::-webkit-outer-spin-button,
.mz-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mz-qty input.qty:focus { outline: none; }
.mz-qty-b {
	flex: 0 0 auto;
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border: 0; border-radius: 99px;
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 10%, transparent);
	color: var(--mz-brand, #0F6B3C);
	cursor: pointer; padding: 0;
	transition: background .18s, transform .14s, opacity .18s;
	-webkit-tap-highlight-color: transparent;
}
.mz-qty-b svg { width: 15px; height: 15px; display: block; }
.mz-qty-b:hover { background: var(--mz-brand, #0F6B3C); color: #fff; }
.mz-qty-b:active { transform: scale(.9); }
.mz-qty-b[disabled] { opacity: .32; pointer-events: none; }
.mz-qty:focus-within { border-color: var(--mz-brand, #0F6B3C); }
.woocommerce .mz-buy .quantity { margin-right: 10px; }

/* =========================================================
   登入／註冊彈窗
   ========================================================= */
.mz-acct {
	position: relative; width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 99px; border: 1px solid var(--mz-line, #DEDDCE);
	background: none; color: var(--mz-ink-2, #4A5449);
	cursor: pointer; padding: 0;
	transition: border-color .18s, color .18s, transform .18s;
}
.mz-acct:hover { border-color: var(--mz-brand); color: var(--mz-brand); transform: translateY(-1px); }

body.mz-modal-open { overflow: hidden; }
.mz-modal, .mz-modal * { box-sizing: border-box; }
.mz-modal {
	position: fixed; inset: 0; z-index: 9999;
	display: grid; place-items: center;
	padding: 20px;
	font-family: var(--mz-font-body);
}
.mz-modal[hidden] { display: none; }
.mz-modal-back {
	position: absolute; inset: 0;
	background: rgba(12, 26, 18, .55);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .24s;
}
.mz-modal.is-in .mz-modal-back { opacity: 1; }
.mz-modal-box {
	position: relative;
	width: min(560px, 100%);
	max-height: min(86svh, 780px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--mz-surface, #fff);
	color: var(--mz-ink, #16211A);
	border-radius: var(--mz-radius, 20px);
	padding: 34px clamp(20px, 4vw, 38px) 32px;
	box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
	opacity: 0; transform: translateY(16px) scale(.98);
	transition: opacity .26s cubic-bezier(.2,.8,.3,1), transform .26s cubic-bezier(.2,.8,.3,1);
}
.mz-modal.is-in .mz-modal-box { opacity: 1; transform: none; }
.mz-modal-x {
	position: absolute; top: 14px; right: 14px;
	width: 36px; height: 36px; display: grid; place-items: center;
	border: 1px solid var(--mz-line); border-radius: 99px;
	background: none; color: var(--mz-ink-2); cursor: pointer; padding: 0;
	transition: border-color .18s, color .18s, transform .18s;
}
.mz-modal-x:hover { border-color: var(--mz-brand); color: var(--mz-brand); transform: rotate(90deg); }
/* 彈窗內容：自己的表單，不用 WooCommerce 那組樣式 */
.mz-modal-head { text-align: center; margin-bottom: 22px; }
.mz-modal-mark {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 12%, transparent);
	color: var(--mz-brand, #0F6B3C);
	margin-bottom: 14px;
}
.mz-modal-h { font-size: clamp(21px, 3vw, 26px); margin: 0 0 6px; color: var(--mz-ink); }
.mz-modal-lede { color: var(--mz-ink-2); font-size: 14px; margin: 0; line-height: 1.7; }

/* 登入／註冊切換 */
.mz-mtabs {
	position: relative; display: grid; grid-template-columns: 1fr 1fr;
	background: var(--mz-bg, #F2F2EB); border-radius: 99px; padding: 4px;
	margin-bottom: 22px;
}
.mz-mtabs button {
	position: relative; z-index: 1;
	border: 0; background: none; cursor: pointer;
	padding: 11px 10px; border-radius: 99px;
	font-size: 14.5px; font-weight: 700; color: var(--mz-ink-2);
	transition: color .24s;
	font-family: inherit;
}
.mz-mtabs button.is-on { color: #fff; }
.mz-mtabs-ink {
	position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
	width: calc(50% - 4px); border-radius: 99px;
	background: var(--mz-brand, #0F6B3C);
	box-shadow: 0 8px 20px -12px rgba(22,33,26,.8);
	transition: transform .32s cubic-bezier(.2,.8,.3,1);
}
.mz-mtabs.is-reg .mz-mtabs-ink { transform: translateX(100%); }

.mz-mpanel[hidden] { display: none; }
.mz-mpanel { animation: mz-fade .3s ease; }

.mz-form { display: grid; gap: 15px; }
.mz-field { display: block; }
.mz-field-l { display: block; font-size: 13px; color: var(--mz-ink-2); margin-bottom: 7px; letter-spacing: .02em; }
.mz-form input[type=text],
.mz-form input[type=email],
.mz-form input[type=password],
.mz-form input[type=tel] {
	width: 100%; padding: 13px 16px; font-size: 15.5px;
	border: 1px solid var(--mz-line, #DEDDCE); border-radius: 13px;
	background: var(--mz-bg, #F7F7F1); color: var(--mz-ink, #16211A);
	font-family: inherit; line-height: 1.4;
	transition: border-color .2s, background .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.mz-form input:focus {
	outline: none; background: var(--mz-surface, #fff);
	border-color: var(--mz-brand, #0F6B3C);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mz-brand, #0F6B3C) 16%, transparent);
}
.mz-field-pw { position: relative; display: block; }
.mz-field-pw input { padding-right: 48px !important; }
.mz-eye {
	position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
	width: 34px; height: 34px; display: grid; place-items: center;
	border: 0; background: none; border-radius: 99px;
	color: var(--mz-ink-2); cursor: pointer; padding: 0;
	transition: color .18s, background .18s;
}
.mz-eye:hover { color: var(--mz-brand); background: color-mix(in srgb, var(--mz-brand) 10%, transparent); }
.mz-eye.is-on { color: var(--mz-brand); }

.mz-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mz-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mz-ink-2); cursor: pointer; }
.mz-check input { width: 18px; height: 18px; accent-color: var(--mz-brand, #0F6B3C); margin: 0; }
.mz-form-link { font-size: 13.5px; color: var(--mz-brand, #0F6B3C); font-weight: 500; }
.mz-form-link:hover { text-decoration: underline; }
.mz-form-note { font-size: 13px; color: var(--mz-ink-2); margin: -4px 0 0; line-height: 1.7; }
.mz-form .mz-btn { margin-top: 6px; }
.mz-form .mz-btn-block { width: 100%; }

.mz-modal-notice { margin-bottom: 16px; }
.mz-modal-notice ul, .mz-modal-notice .woocommerce-message, .mz-modal-notice .woocommerce-error {
	list-style: none; margin: 0 0 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6;
}
.mz-modal-notice .woocommerce-error, .mz-modal-notice ul.woocommerce-error {
	background: color-mix(in srgb, var(--mz-sale, #A8341F) 10%, transparent); color: var(--mz-sale, #A8341F);
}
.mz-modal-notice .woocommerce-message {
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 10%, transparent); color: var(--mz-brand, #0F6B3C);
}
.mz-modal-notice a { color: inherit; text-decoration: underline; }
/* WooCommerce 的註冊欄位外掛（電話等）也套同一組樣式 */
.mz-form .woocommerce-form-row { margin: 0; }
.mz-form label { font-size: 13px; color: var(--mz-ink-2); }

/* =========================================================
   額外動態：主要 CTA 的擴散光暈
   ========================================================= */
.mz-btn.has-glow::before {
	content: "";
	position: absolute; inset: 0; border-radius: inherit;
	box-shadow: 0 0 0 0 currentColor;
	opacity: .55;
	animation: mz-ring 2.6s cubic-bezier(.2,.7,.3,1) infinite;
	pointer-events: none;
}
.mz-btn.has-glow:hover::before { animation-play-state: paused; opacity: 0; }
@keyframes mz-ring {
	0%   { box-shadow: 0 0 0 0 currentColor; opacity: .45; }
	70%  { box-shadow: 0 0 0 14px currentColor; opacity: 0; }
	100% { box-shadow: 0 0 0 0 currentColor; opacity: 0; }
}
.mz-nomotion .mz-btn.has-glow::before { animation: none; opacity: 0; }

/* 卡片與圖片的滑過放大 */
.mz-card .mz-card-ph img,
.mz-trio figure img,
.mz-step .ph img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.mz-card:hover .mz-card-ph img,
.mz-trio figure:hover img { transform: scale(1.05); }

/* 小標題底線隨進場展開（底線佔自己的空間，不會壓到下一行字） */
.mz-head h2 { position: relative; padding-bottom: 16px; }
.mz-head .mz-lede { margin-top: 0; }
.mz-head.is-in h2::after {
	content: ""; position: absolute; left: 0; bottom: 5px; height: 3px; border-radius: 3px;
	background: var(--mz-gold, #E4B33F);
	width: 0; animation: mz-underline .8s .25s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes mz-underline { to { width: 52px; } }
.mz-nomotion .mz-head.is-in h2::after { animation: none; width: 52px; }

/* =========================================================
   WooCommerce 會把 img 的 height 強制成 auto，
   Logo 在商品頁／商店頁就會爆大。這裡把高度鎖回來。
   ========================================================= */
body.mizzy-site-kit .mz-foot-logo,
.woocommerce .mz-foot-logo,
.woocommerce-page .mz-foot-logo { height: 28px !important; width: auto !important; max-width: 200px; }
body.mizzy-site-kit .mz-logo img,
.woocommerce .mz-logo img,
.woocommerce-page .mz-logo img { height: var(--mz-logo-h, 30px) !important; width: auto !important; max-width: 220px; }

/* 數量欄位裡的隱藏標籤（有些佈景主題沒有 .screen-reader-text 樣式） */
.mz-qty label,
.mz-qty .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

/* =========================================================
   點擊漣漪（重要按鈕）
   ========================================================= */
.mz-btn, .mz-qty-b, .mz-mtabs button,
.woocommerce button.button, .woocommerce a.button,
.single_add_to_cart_button { position: relative; overflow: hidden; }
.mz-ripple {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: currentColor;
	opacity: .28;
	pointer-events: none;
	z-index: 0;
	animation: mz-ripple .62s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes mz-ripple {
	to { transform: scale(2.6); opacity: 0; }
}
.mz-nomotion .mz-ripple { animation: none; display: none; }

/* 靜止時的擴散光環（比 has-glow 更明顯，用在加入購物車） */
.mz-halo::after {
	content: "";
	position: absolute; inset: -2px;
	border-radius: inherit;
	border: 2px solid currentColor;
	opacity: 0;
	animation: mz-halo 2.8s cubic-bezier(.2,.7,.3,1) infinite;
	pointer-events: none;
}
@keyframes mz-halo {
	0%   { transform: scale(1); opacity: .45; }
	70%  { transform: scale(1.22); opacity: 0; }
	100% { transform: scale(1.22); opacity: 0; }
}
.mz-halo:hover::after { animation-play-state: paused; opacity: 0; }
.mz-nomotion .mz-halo::after { animation: none; opacity: 0; }

/* =========================================================
   更多細節動畫
   ========================================================= */
/* 頂端捲動進度條 */
.mz-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9998;
	background: none; pointer-events: none;
}
.mz-progress i {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--mz-brand, #0F6B3C), var(--mz-gold, #E4B33F));
	transform-origin: left center;
	transition: width .12s linear;
}

/* 主視覺／禮盒的圖片緩慢浮動 */
.mz-gift-art.mz-drift, .mz-story-art.mz-drift { animation: mz-drift 7.5s ease-in-out infinite; }
.mz-nomotion .mz-drift { animation: none; }

/* 信任條圖示進場彈一下、滑過轉一下 */
.mz-trust-item .mz-ic, .mz-trust-item svg { transition: transform .4s cubic-bezier(.2,.8,.3,1); }
.mz-trust-item:hover svg { transform: translateY(-3px) rotate(-6deg); }

/* 保存刻度的點依序跳出 */
.mz-stop.is-in .dot { animation: mz-pop .5s cubic-bezier(.2,1.4,.4,1) backwards; animation-delay: var(--mz-delay, 0ms); }
.mz-nomotion .mz-stop .dot { animation: none; }

/* 規格卡滑過抬起 */
.mz-spec, .mz-panel, .mz-q { transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s, border-color .3s; }
.mz-spec:hover, .mz-panel:hover { transform: translateY(-3px); }

/* 價格在進場時輕輕上滑 */
.mz-card.is-in .mz-card-price { animation: mz-rise .55s .16s cubic-bezier(.2,.8,.3,1) backwards; }
@keyframes mz-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mz-nomotion .mz-card .mz-card-price { animation: none; }

/* 連結底線由左展開 */
.mz-link-u { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px;
	background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.mz-link-u:hover { background-size: 100% 1px; }

/* =========================================================
   拆解一顆Ｑ餅：圖文兩欄
   ========================================================= */
.mz-ana-split {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	margin-top: 14px;
}
.mz-ana-img { position: relative; aspect-ratio: 1; border-radius: 50%; }
.mz-ana-img img {
	width: 100%; height: 100%; display: block;
	object-fit: cover; border-radius: 50%;
}
.mz-ana-ring {
	position: absolute; inset: -14px;
	border: 1px solid currentColor;
	border-radius: 50%;
	opacity: .34;
	animation: mz-ana-ring 5s ease-in-out infinite;
}
@keyframes mz-ana-ring {
	0%, 100% { transform: scale(1); opacity: .34; }
	50%      { transform: scale(1.035); opacity: .16; }
}
.mz-nomotion .mz-ana-ring { animation: none; }

.mz-ana-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.mz-ana-steps li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	align-items: start;
}
.mz-ana-steps li:first-child { border-top: 0; padding-top: 0; }
.mz-ana-steps li:last-child { padding-bottom: 0; }
.mz-ana-steps .n {
	font-family: "DM Mono", ui-monospace, monospace;
	font-size: 14px; font-weight: 500; letter-spacing: .08em;
	line-height: 1.6; padding-top: 2px;
}
.mz-ana-steps .t { display: block; min-width: 0; }
.mz-ana-steps strong { display: block; font-size: clamp(16px, 1.7vw, 18.5px); line-height: 1.5; }
.mz-ana-steps .d {
	display: block; margin-top: 5px;
	font-size: 14.5px; line-height: 1.85;
	color: var(--blk-muted, var(--mz-ink-2));
}
.mz-ana-split.is-in .mz-ana-steps li {
	animation: mz-rise .6s cubic-bezier(.2,.8,.3,1) backwards;
	animation-delay: var(--mz-delay, 0ms);
}
.mz-nomotion .mz-ana-steps li { animation: none; }

@media (max-width: 860px) {
	.mz-ana-split { grid-template-columns: 1fr; gap: 28px; }
	.mz-ana-img { max-width: 320px; margin-inline: auto; }
}

/* 標線圖：只有夠寬的螢幕才顯示，否則 SVG 的字會跟著整張圖一起縮小。
   窄螢幕改顯示同一份圖文兩欄（.is-fallback）。 */
.mz-ana-split.is-fallback { display: none; }
@media (max-width: 1080px) {
	.mz-ana-stage { display: none; }
	.mz-ana-split.is-fallback { display: grid; margin-top: 14px; }
}
@media (max-width: 1080px) and (min-width: 861px) {
	.mz-ana-split.is-fallback { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

/* =========================================================
   量購價格級距表
   ========================================================= */
.mz-bulk {
	margin-top: 22px;
	border: 1px solid var(--mz-line, #DEDDCE);
	border-radius: 16px;
	padding: 18px 18px 14px;
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 4%, transparent);
}
.mz-bulk-h {
	font-size: 14.5px; font-weight: 700; margin: 0 0 12px;
	color: var(--mz-ink, #16211A);
	display: flex; align-items: center; gap: 8px;
}
.mz-bulk-h::before {
	content: ""; width: 4px; height: 15px; border-radius: 2px;
	background: var(--mz-brand, #0F6B3C); flex: 0 0 auto;
}
.mz-bulk-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.mz-bulk-t th, .mz-bulk-t td { text-align: right; padding: 9px 4px; }
.mz-bulk-t thead th {
	font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	color: var(--mz-ink-2, #4A5449);
	border-bottom: 1px solid var(--mz-line, #DEDDCE);
	padding-bottom: 7px;
}
.mz-bulk-t tbody th {
	text-align: left; font-weight: 700; white-space: nowrap;
	color: var(--mz-ink, #16211A);
}
.mz-bulk-t tbody tr + tr th,
.mz-bulk-t tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--mz-line, #DEDDCE) 70%, transparent); }
.mz-bulk-t td { font-family: "DM Mono", ui-monospace, monospace; color: var(--mz-ink, #16211A); }
.mz-bulk-t td del { opacity: .45; font-size: .88em; }
.mz-bulk-tag {
	display: inline-block; margin-left: 7px; padding: 2px 8px; border-radius: 99px;
	font-size: 11px; font-weight: 700; letter-spacing: .02em;
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 14%, transparent);
	color: var(--mz-brand, #0F6B3C);
	vertical-align: 1px;
}
.mz-bulk-save {
	display: block; font-family: var(--mz-font-body); font-size: 11.5px;
	color: var(--mz-sale, #A8341F); margin-top: 1px; letter-spacing: .02em;
}
.mz-bulk-note { font-size: 12.5px; color: var(--mz-ink-2, #4A5449); margin: 12px 0 0; line-height: 1.7; }

/* 目前數量落在哪一級 */
.mz-bulk-t tbody tr {
	transition: background .25s, box-shadow .25s;
	outline: 0;
}
.mz-bulk-t tbody tr.is-now th,
.mz-bulk-t tbody tr.is-now td { background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 11%, transparent); }
.mz-bulk-t tbody tr.is-now th:first-child { border-radius: 9px 0 0 9px; }
.mz-bulk-t tbody tr.is-now td:last-child { border-radius: 0 9px 9px 0; }

@media (max-width: 420px) {
	.mz-bulk { padding: 15px 14px 12px; }
	.mz-bulk-t { font-size: 13.5px; }
	.mz-bulk-tag { display: block; margin: 3px 0 0; }
}

/* =========================================================
   優惠與運費說明區塊
   ========================================================= */
.mz-deal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(20px, 3vw, 32px);
	align-items: start;
}
.mz-deal-card {
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: var(--mz-radius, 20px);
	padding: clamp(22px, 3vw, 32px);
	background: color-mix(in srgb, var(--mz-surface, #fff) 55%, transparent);
	transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s;
}
.mz-deal-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -34px rgba(22,33,26,.55); }
.mz-deal-card h3 { font-size: clamp(17px, 2vw, 20px); margin: 0 0 18px; }

.mz-deal-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.mz-deal-t thead th {
	font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	color: var(--blk-muted, var(--mz-ink-2)); text-align: right;
	padding: 0 4px 10px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.mz-deal-t thead th:first-child { text-align: left; }
.mz-deal-t tbody th {
	text-align: left; font-weight: 700; white-space: nowrap; padding: 13px 4px;
}
.mz-deal-t tbody td {
	text-align: right; padding: 13px 4px;
	font-family: "DM Mono", ui-monospace, monospace;
}
.mz-deal-t tbody tr + tr th,
.mz-deal-t tbody tr + tr td { border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.mz-deal-t tbody tr:last-child th,
.mz-deal-t tbody tr:last-child td { font-weight: 700; }

.mz-deal-best {
	margin-top: 18px; padding: 18px 20px;
	border: 1px solid color-mix(in srgb, var(--mz-brand, #0F6B3C) 45%, transparent);
	border-radius: 14px;
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 7%, transparent);
}
.mz-deal-best strong {
	display: block; margin-top: 8px;
	font-size: clamp(28px, 4vw, 38px); line-height: 1.1; font-weight: 900;
	font-family: "DM Mono", ui-monospace, monospace;
}
.mz-deal-best .d { display: block; margin-top: 6px; font-size: 13.5px; color: var(--blk-muted, var(--mz-ink-2)); }

.mz-deal-list { list-style: none; margin: 0; padding: 0; }
.mz-deal-list li {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	padding: 13px 0;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.mz-deal-list li:first-child { border-top: 0; padding-top: 0; }
.mz-deal-list li.is-sep { border-top-width: 2px; border-top-style: solid; margin-top: 4px; }
.mz-deal-list .k { font-weight: 700; font-size: 14.5px; }
.mz-deal-list .v { font-family: "DM Mono", ui-monospace, monospace; white-space: nowrap; }
.mz-deal-note { font-size: 13px; line-height: 1.8; color: var(--blk-muted, var(--mz-ink-2)); margin: 14px 0 0; }
.mz-deal-card .mz-btn { margin-top: 20px; }

@media (max-width: 420px) {
	.mz-deal-grid { grid-template-columns: 1fr; }
	.mz-deal-t { font-size: 14px; }
}

/* =========================================================
   主視覺：沒有配圖時的排版（1.5.7）
   沒有右欄配圖時，文字若維持左欄寬度，大螢幕右半邊會整片空掉。
   預設改成置中一欄，並把寬度放寬；要靠左的話後台可切回來。
   ========================================================= */
.mz-hero.no-art .mz-hero-copy { max-width: 760px; }
.mz-hero.no-art .mz-lede { max-width: 52ch; }

.mz-hero.is-center .mz-hero-grid { justify-items: center; }
.mz-hero.is-center .mz-hero-copy { margin-left: auto; margin-right: auto; text-align: center; }
.mz-hero.is-center .mz-lede { margin-left: auto; margin-right: auto; }
.mz-hero.is-center .mz-cta,
.mz-hero.is-center .mz-chips { justify-content: center; }

/* 靠左但內容過窄時，至少讓整欄撐開一點，不要縮在角落。 */
.mz-hero.is-left.no-art .mz-hero-copy { max-width: 820px; }

@media (max-width: 760px) {
	/* 手機一律靠左讀起來比較順。 */
	.mz-hero.is-center .mz-hero-copy { text-align: left; }
	.mz-hero.is-center .mz-cta,
	.mz-hero.is-center .mz-chips { justify-content: flex-start; }
}

/* =========================================================
   購物車／結帳／我的帳號（外掛接管，1.5.7）
   ========================================================= */
.mz-blk--woo { overflow: visible; }            /* 不要裁切到下拉選單與彈出層 */
.mz-woo-page .mz-head { margin-bottom: 26px; }
.mz-woo-page .mz-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.mz-woo-page .woocommerce { max-width: none; }
.woocommerce-checkout .mz-woo-page form.checkout { margin-left: auto; margin-right: auto; }
.mz-woo--account .woocommerce-MyAccount-content { min-width: 0; }
@media (min-width: 821px) {
	.mz-woo--account .woocommerce-account .woocommerce {
		display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start;
	}
}

/* ---------- 購物車：自動更新 + 總計滿版（1.5.7） ---------- */
.woocommerce-cart-form.mz-cart-auto [name="update_cart"] { display: none !important; }
.woocommerce-cart-form.mz-cart-auto.is-updating { opacity: .55; pointer-events: none; transition: opacity .2s; }
.woocommerce-cart-form.mz-cart-auto td.actions { text-align: left; }

/* 總計原本是靠右浮動的半欄，左下角會整片空白；改成跟上面的表格一樣滿版。 */
.mz-woo--cart .cart-collaterals,
.woocommerce-cart .mz-main .cart-collaterals { width: 100%; float: none; }
.mz-woo--cart .cart-collaterals .cart_totals,
.woocommerce-cart .mz-main .cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
.mz-woo--cart .cart_totals h2,
.woocommerce-cart .mz-main .cart_totals h2 { margin: 30px 0 14px; }
.mz-woo--cart .cart_totals table,
.woocommerce-cart .mz-main .cart_totals table { width: 100%; }
.mz-woo--cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .mz-main .wc-proceed-to-checkout .checkout-button {
	display: block; width: 100%; text-align: center;
	background: var(--mz-brand); color: #fff;
}

/* =========================================================
   購物車側邊彈窗（1.5.8）
   ========================================================= */
html.mz-noscroll { overflow: hidden; }

.mz-drawer { position: fixed; inset: 0; z-index: 9999; }
.mz-drawer[hidden] { display: none; }
.mz-drawer-back {
	position: absolute; inset: 0; background: rgba(10, 18, 13, .46);
	opacity: 0; transition: opacity .26s ease;
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mz-drawer.is-open .mz-drawer-back { opacity: 1; }

.mz-drawer-box {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(420px, 92vw);
	display: flex; flex-direction: column;
	background: var(--mz-surface, #FFFEF9); color: var(--mz-ink, #16211A);
	box-shadow: -28px 0 60px -30px rgba(10, 18, 13, .55);
	transform: translateX(100%); transition: transform .28s cubic-bezier(.22, .61, .36, 1);
	box-sizing: border-box;
}
.mz-drawer.is-open .mz-drawer-box { transform: none; }
.mz-drawer-box * { box-sizing: border-box; }

.mz-drawer-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 20px 22px; border-bottom: 1px solid var(--mz-line, rgba(0, 0, 0, .1));
}
.mz-drawer-h { margin: 0; font-size: 19px; font-weight: 800; }
.mz-drawer-x {
	display: grid; place-items: center; width: 38px; height: 38px; flex: none;
	border: 1px solid var(--mz-line, rgba(0, 0, 0, .12)); border-radius: 50%;
	background: transparent; color: inherit; cursor: pointer;
	transition: background .18s, transform .18s;
}
.mz-drawer-x:hover { background: rgba(0, 0, 0, .05); transform: rotate(90deg); }

.mz-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px 22px; }

/* WooCommerce 原生 mini cart 的樣式調整 */
.mz-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
/* 注意：WooCommerce 的 mini cart 把 <img> 放在商品連結「裡面」，
   所以格線要下在那個 <a> 上，下在 <li> 上會把圖片和標題擠成同一欄。 */
.mz-drawer .woocommerce-mini-cart-item {
	position: relative; display: block;
	padding: 14px 32px 14px 0; margin: 0;
	border-bottom: 1px solid var(--mz-line, rgba(0, 0, 0, .08));
}
.mz-drawer .woocommerce-mini-cart-item > a:not(.remove) {
	display: grid; grid-template-columns: 58px minmax(0, 1fr);
	gap: 14px; align-items: center;
	color: inherit; text-decoration: none; font-weight: 600; line-height: 1.45;
	overflow-wrap: anywhere;
}
.mz-drawer .woocommerce-mini-cart-item img {
	width: 58px; height: 58px; object-fit: cover; border-radius: 10px;
	margin: 0; float: none; display: block;
}
.mz-drawer .woocommerce-mini-cart-item .quantity,
.mz-drawer .woocommerce-mini-cart-item dl.variation {
	display: block; margin: 8px 0 0 72px;
	color: var(--mz-ink-2, #4A5449); font-size: 14px;
}
.mz-drawer .woocommerce-mini-cart-item dl.variation dt,
.mz-drawer .woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0; font-weight: 400; }
.mz-drawer .woocommerce-mini-cart-item dl.variation dd p { display: inline; margin: 0; }
.mz-drawer .woocommerce-mini-cart-item a.remove,
.mz-drawer .woocommerce-mini-cart-item a.remove_from_cart_button {
	position: absolute; top: 14px; right: 0;
	width: 24px; height: 24px; line-height: 22px; text-align: center;
	border-radius: 50%; font-size: 17px; color: var(--mz-ink-2, #4A5449);
	background: rgba(0, 0, 0, .05);
}
.mz-drawer .woocommerce-mini-cart-item a.remove:hover { background: var(--mz-sale, #A8341F); color: #fff; }
.mz-drawer .woocommerce-mini-cart__total {
	display: flex; align-items: baseline; justify-content: space-between;
	margin: 18px 0 0; padding-top: 16px; font-size: 16px;
	border-top: 2px solid var(--mz-line, rgba(0, 0, 0, .12));
}
.mz-drawer .woocommerce-mini-cart__total strong { font-weight: 700; }
.mz-drawer .woocommerce-mini-cart__total .amount { font-size: 20px; font-weight: 800; }
.mz-drawer .woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; color: var(--mz-ink-2, #4A5449); }

.mz-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 18px 0 0; }
.mz-drawer .woocommerce-mini-cart__buttons a.button {
	display: block; width: 100%; text-align: center; float: none; margin: 0;
	padding: 14px 20px; border-radius: 99px; font-weight: 700; font-size: 15px;
	background: transparent; color: var(--mz-ink, #16211A);
	border: 1.5px solid var(--mz-line, rgba(0, 0, 0, .18));
}
.mz-drawer .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--mz-brand, #0F6B3C); color: #fff; border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	.mz-drawer-box, .mz-drawer-back { transition: none; }
}

/* ---------- 商品頁：分頁區塊獨立成一段（1.5.8） ---------- */
.mz-blk--pdptabs .mz-head { margin-bottom: 22px; }
.mz-blk--pdptabs .mz-tabs { margin-top: 0; }
.mz-blk--pdptabs .mz-tabpanel { max-width: 940px; }
.mz-blk--pdptabs .mz-tabpanel p { margin: 0 0 10px; }

/* 後台管理列會蓋住固定定位的側邊購物車，往下讓開。 */
body.admin-bar .mz-drawer-box { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .mz-drawer-box { top: 46px; }
}

/* ---------- 門市自取資訊（完成頁 / 訂單詳細，1.5.9） ---------- */
.mz-pickup-box {
	margin: 26px 0; padding: 22px 24px;
	border: 1px solid var(--mz-line, rgba(0, 0, 0, .12));
	border-left: 5px solid var(--mz-brand, #0F6B3C);
	border-radius: 14px;
	background: color-mix(in srgb, var(--mz-brand, #0F6B3C) 5%, var(--mz-surface, #FFFEF9));
}
.mz-pickup-h { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--mz-brand, #0F6B3C); }
.mz-pickup-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.mz-pickup-list dt { margin: 0; color: var(--mz-ink-2, #4A5449); font-size: 14px; white-space: nowrap; }
.mz-pickup-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mz-pickup-list dd a { color: var(--mz-brand, #0F6B3C); }
.mz-pickup-note { margin: 14px 0 0; font-size: 14px; line-height: 1.75; color: var(--mz-ink-2, #4A5449); }
@media (max-width: 520px) {
	.mz-pickup-list { grid-template-columns: 1fr; gap: 2px; }
	.mz-pickup-list dd { margin-bottom: 10px; }
}
