/* ─── Design Tokens & CSS Variables ─────────────────────────────────── */
:root {
  --encore-bg:          oklch(99% 0.002 240);
  --encore-surface:     #ffffff;
  --encore-fg:          oklch(18% 0.012 250);
  --encore-muted:       oklch(54% 0.012 250);
  --encore-border:      oklch(92% 0.005 250);
  --encore-accent:      #B00000; /* 安可品牌主色 CI 紅色 */
  --encore-accent-oklch: oklch(48% 0.19 29);

  --encore-accent-soft: color-mix(in oklch, var(--encore-accent) 12%, transparent);
  --encore-fg-soft:     color-mix(in oklch, var(--encore-fg) 6%, transparent);

  --encore-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Sans TC', system-ui, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
  --encore-font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Noto Sans TC', system-ui, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
  --encore-font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --encore-container: 1200px;
  --encore-header-container: 1280px; /* 4K/2K 完美居中旗艦版心 */
  --encore-gutter: 24px;
  --encore-header-gutter: 24px;
  --encore-radius: 10px;
  --encore-radius-lg: 16px;
  --encore-nav-h: 70px;

  --encore-shadow-sm: 0 1px 2px color-mix(in oklch, var(--encore-fg) 7%, transparent);
  --encore-shadow-md: 0 16px 36px -18px color-mix(in oklch, var(--encore-fg) 28%, transparent);
  --encore-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 徹底清除全站頁首與主容器的異常邊距與填充 */
html,
body,
#main-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
  --theme-frame-size: 0px !important;
}

/* 隱藏 Blocksy 預設 Header (以自訂 Header 取代) 與佔位層 */
.ct-header,
#header,
.site-header,
[data-header],
.ct-header-placeholder {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* 全站預設不顯示頁面標題 (Hero Section / Page Title / Entry Title) */
.hero-section,
.entry-header:not(.encore-keep-title),
.page-title,
.ct-page-title,
header.entry-header {
  display: none !important;
}

/* ─── Utility Base & Sprites ────────────────────────────────────────── */
.encore-header-wrapper *,
.encore-header-wrapper *::before,
.encore-header-wrapper *::after,
.encore-drawer *,
.encore-drawer *::before,
.encore-drawer *::after {
  box-sizing: border-box;
}

.encore-sprite {
  display: none;
}

.encore-ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none !important;
}

.encore-ic * {
  pointer-events: none !important;
}

.encore-container {
  width: 100%;
  max-width: var(--encore-container, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--encore-gutter, 24px);
  padding-right: var(--encore-gutter, 24px);
  box-sizing: border-box;
}

.encore-header-container {
  width: 100%;
  max-width: var(--encore-header-container, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--encore-header-gutter, 24px);
  padding-right: var(--encore-header-gutter, 24px);
  box-sizing: border-box;
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.encore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: var(--encore-radius);
  border: 1px solid transparent;
  font-family: var(--encore-font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.06s ease;
}

.encore-btn:active {
  transform: translateY(1px);
}

.encore-btn:focus-visible {
  outline: 2px solid var(--encore-accent);
  outline-offset: 2px;
}

.encore-btn-primary {
  background: var(--encore-accent);
  color: #ffffff !important;
  border-color: var(--encore-accent);
}

.encore-btn-primary:hover {
  background: color-mix(in oklch, var(--encore-accent) 84%, black);
  color: #ffffff !important;
}

.encore-btn-secondary {
  background: var(--encore-surface);
  color: var(--encore-fg) !important;
  border-color: var(--encore-border);
}

.encore-btn-secondary:hover {
  border-color: var(--encore-fg);
  color: var(--encore-fg) !important;
}

.encore-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--encore-fg, #334155);
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.encore-iconbtn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.encore-iconbtn:focus-visible {
  outline: 2px solid var(--encore-accent, #B00000);
  outline-offset: 2px;
}

.encore-cart-btn {
  position: relative;
}

.encore-cart-btn .encore-ic {
  width: 21px;
  height: 21px;
}

/* ─── 頂層工具列 (Utility Bar) ─────────────────────────────────────── */
.encore-utilbar {
  border-bottom: 1px solid var(--encore-border);
  background: color-mix(in oklch, var(--encore-fg) 2.5%, var(--encore-bg));
  font-family: var(--encore-font-body);
  font-size: 12.5px;
  color: var(--encore-muted);
  padding: 6px 0;
  box-sizing: border-box;
}

.encore-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  flex-wrap: wrap;
}

.encore-util-left,
.encore-util-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.encore-util-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.encore-util-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.encore-util-item .encore-ic {
  font-size: 15px;
}

.encore-util-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--encore-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.encore-util-right a:hover {
  color: var(--encore-fg);
}

.encore-cart-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  box-sizing: border-box;
  z-index: 2;
}
.encore-cart-badge.is-zero,
.encore-cart-badge:empty {
  display: none !important;
}

.encore-utilbar .encore-searchbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  width: 220px;
  padding: 0 14px;
  background: var(--encore-bg, #ffffff);
  border: 1px solid var(--encore-border, #cbd5e1);
  border-radius: 999px;
  box-sizing: border-box;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.encore-utilbar .encore-searchbox:focus-within {
  border-color: var(--encore-accent);
  box-shadow: 0 0 0 2px rgba(176, 0, 0, 0.12);
}

.encore-utilbar .encore-searchbox .encore-ic {
  font-size: 14px;
  color: var(--encore-muted);
  flex: none;
}

.encore-utilbar .encore-searchbox input {
  font-size: 12.5px;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

@media (max-width: 768px) {
  .encore-util-hide-sm {
    display: none !important;
  }
}

/* ─── 搜尋輸入框 ────────────────────────────────────────────────────── */
.encore-searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--encore-border);
  border-radius: 999px;
  background: var(--encore-surface);
  color: var(--encore-muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.encore-searchbox .encore-ic {
  font-size: 16px;
}

.encore-searchbox input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--encore-font-body);
  font-size: 13.5px;
  color: var(--encore-fg);
  width: 100%;
}

.encore-searchbox input::placeholder {
  color: var(--encore-muted);
}

.encore-searchbox:focus-within {
  border-color: var(--encore-accent);
  box-shadow: 0 0 0 3px var(--encore-accent-soft);
}

/* ─── 主導覽標頭 (Masthead) ─────────────────────────────────────────── */
.encore-masthead {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--encore-border);
  font-family: var(--encore-font-body);
}

.encore-masthead-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--encore-nav-h);
  position: relative;
}

.encore-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.encore-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.encore-mainnav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: clamp(16px, 2.2vw, 36px);
  margin-right: 0;
}

.encore-nav-item {
  display: flex;
  position: static;
}

.encore-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: var(--encore-nav-h);
  padding: 0 12px;
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--encore-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.encore-nav-link:visited {
  color: var(--encore-muted);
}

.encore-nav-link:hover,
.encore-nav-link:hover:visited {
  color: var(--encore-fg);
}

.encore-nav-item.is-open > .encore-nav-link,
.encore-nav-item.is-open > .encore-nav-link:visited {
  color: var(--encore-fg);
  border-bottom-color: var(--encore-accent);
}

.encore-nav-link .encore-ic {
  font-size: 13px;
  color: var(--encore-muted);
  transition: transform 0.18s ease, color 0.15s ease;
}

.encore-nav-item.is-open > .encore-nav-link .encore-ic {
  transform: rotate(180deg);
  color: var(--encore-accent);
}

.encore-nav-link:focus-visible {
  outline: 2px solid var(--encore-accent);
  outline-offset: -3px;
  border-radius: 6px;
}

.encore-masthead-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.encore-navtoggle {
  display: none;
}

/* ─── 大型下拉選單 (Mega Menu) ─────────────────────────────────────── */
.encore-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1000;
  background: var(--encore-surface);
  border-top: 1px solid var(--encore-border);
  border-bottom: 1px solid var(--encore-border);
  box-shadow: var(--encore-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.24s var(--encore-ease), visibility 0.24s ease;
}

.encore-nav-item.is-open > .encore-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.encore-mega-inner {
  max-width: var(--encore-header-container);
  margin-inline: auto;
  padding: clamp(26px, 2.5vw, 38px) var(--encore-header-gutter) clamp(30px, 3vw, 42px);
  display: grid;
  grid-template-columns: repeat(var(--enc-cols, 3), minmax(0, 1fr)) minmax(0, 320px);
  gap: 28px 48px;
  align-items: start;
}

.encore-mega-wide .encore-mega-inner {
  max-width: var(--encore-header-container);
  grid-template-columns: repeat(var(--enc-cols, 5), minmax(0, 1fr));
  gap: 24px 28px;
}

/* 欄位數 >= 4：取消保留空白軌道，全欄位同列填滿並允許與右下角 IP 區塊重疊 */
.encore-mega-inner.encore-mega-dense,
.encore-mega-wide .encore-mega-inner.encore-mega-dense {
  grid-template-columns: repeat(var(--enc-cols, 4), minmax(0, 1fr)) !important;
}

/* 3 欄 + CTA 卡片：底部預留空間給右下角 IP 吉祥物 */
.encore-mega-inner.has-cta {
  padding-bottom: var(--enc-ip-space, 200px);
}

.encore-mega-col h4 {
  font-family: var(--encore-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encore-muted);
  margin: 0 0 10px;
  font-weight: 700;
}

.encore-mega-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--encore-fg);
  text-decoration: none;
  border-radius: 6px;
  gap: 7px;
  flex-wrap: wrap;
  transition: color 0.14s ease, transform 0.18s var(--encore-ease);
}

.encore-mega-col a:hover {
  color: var(--encore-accent);
  transform: translateX(4px);
}

.encore-mi-label {
  min-width: 0;
}

.encore-mega-edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--encore-border);
  background: color-mix(in oklch, var(--encore-fg) 3%, var(--encore-surface));
  color: var(--encore-muted);
  transition: color 0.14s ease, border-color 0.14s ease;
}

.encore-mega-edit .encore-ic {
  font-size: 12px;
}

.encore-mega-col a:hover .encore-mega-edit {
  color: var(--encore-fg);
  border-color: color-mix(in oklch, var(--encore-fg) 20%, var(--encore-border));
}

.encore-mega-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  color: color-mix(in oklch, var(--encore-fg) 66%, var(--encore-surface));
  border: 1px solid var(--encore-border);
  background: color-mix(in oklch, var(--encore-fg) 4%, var(--encore-surface));
}

.encore-mega-tag.is-accent {
  color: var(--encore-accent);
  border-color: color-mix(in oklch, var(--encore-accent) 28%, var(--encore-border));
  background: color-mix(in oklch, var(--encore-accent) 7%, var(--encore-surface));
}

/* Mega Menu 特色卡片 */
.encore-mega-feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--encore-border);
  border-radius: var(--encore-radius-lg);
  padding: 18px;
  background: linear-gradient(152deg, color-mix(in oklch, var(--encore-accent) 9%, var(--encore-surface)), var(--encore-surface) 62%);
  text-decoration: none;
  color: var(--encore-fg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.encore-mega-feature:hover {
  border-color: var(--encore-accent);
  transform: translateY(-2px);
}

.encore-mega-feature .mf-tag {
  font-family: var(--encore-font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--encore-accent);
  font-weight: 700;
}

.encore-mega-feature h4 {
  font-family: var(--encore-font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 9px 0 6px;
  color: var(--encore-fg);
}

.encore-mega-feature p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--encore-muted);
  line-height: 1.5;
}

.encore-mega-feature .mf-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--encore-accent);
}

.encore-mega-feature .mf-go .encore-ic {
  font-size: 15px;
  transition: transform 0.16s ease;
}

.encore-mega-feature:hover .mf-go .encore-ic {
  transform: translateX(3px);
}

/* ─── Mega Menu 右下角可愛 IP 吉祥物導購區 (絕對定位貼齊右下角) ─── */
.encore-mega-ip-float {
  position: absolute;
  right: clamp(16px, 2.5vw, 36px);
  bottom: 0;
  z-index: 20;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.encore-mega-ip-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.encore-ip-bubble-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 60px;
  margin-bottom: -4px;
  position: relative;
  z-index: 2;
}

.encore-ip-bubble {
  background: #fff8ef;
  border: 1.5px solid #fed7aa;
  color: #292524;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.15);
  position: relative;
}

.encore-ip-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff8ef;
}

.encore-ip-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.encore-ip-stage {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
}

.encore-ip-avatar-wrap {
  width: var(--enc-ip-w, 190px);
  height: var(--enc-ip-h, 95px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.encore-ip-avatar-wrap:hover {
  transform: translateY(-3px) scale(1.03);
}

.encore-ip-custom-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.encore-ip-mascot-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 按鈕以吉祥物框右下角為原點獨立定位，可自由上移／左右移動並與圖片重疊 */
.encore-ip-action-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translate(var(--enc-ip-btn-x, 0px), calc(-1 * var(--enc-ip-btn-y, 60px)));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--enc-ip-btn-bg, #B00000);
  color: var(--enc-ip-btn-fg, #ffffff) !important;
  font-size: var(--enc-ip-btn-fs, 13.5px);
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--enc-ip-btn-radius, 999px);
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: filter 0.18s ease;
}

.encore-ip-action-btn:hover {
  filter: brightness(0.88);
}


/* ─── 行動版側邊抽屜 (Mobile Drawer) ────────────────────────────────── */
.encore-scrim {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: color-mix(in oklch, var(--encore-fg) 30%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.encore-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(370px, 88vw);
  z-index: 9999;
  background: var(--encore-surface);
  border-left: 1px solid var(--encore-border);
  padding: 18px 20px 32px;
  overflow-y: auto;
  box-shadow: var(--encore-shadow-md);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s var(--encore-ease), visibility 0.28s ease;
  font-family: var(--encore-font-body);
}

body.encore-menu-open {
  overflow: hidden;
}

body.encore-menu-open .encore-scrim {
  opacity: 1;
  visibility: visible;
}

body.encore-menu-open .encore-drawer {
  transform: none;
  visibility: visible;
}

.encore-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.encore-drawer-title {
  font-family: var(--encore-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encore-muted);
  font-weight: 700;
}

.encore-drawer .encore-searchbox {
  min-width: 0;
  width: 100%;
  margin-bottom: 24px;
}

.encore-drawer-group {
  margin-bottom: 20px;
}

.encore-drawer-group h3 {
  font-family: var(--encore-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encore-muted);
  margin: 0 0 8px;
  font-weight: 700;
}

.encore-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--encore-border);
  font-size: 15px;
  color: var(--encore-fg);
  text-decoration: none;
  transition: color 0.15s ease;
}

.encore-drawer-link:hover {
  color: var(--encore-accent);
}

.encore-drawer-link .encore-ic {
  font-size: 16px;
  color: var(--encore-muted);
}

.encore-drawer-link.has-sub {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--encore-border);
  text-align: left;
  cursor: pointer;
}

.encore-drawer-link .encore-ic.chev2 {
  transition: transform 0.22s ease, color 0.15s ease;
}

.encore-drawer-link[aria-expanded="true"] .encore-ic.chev2 {
  transform: rotate(180deg);
  color: var(--encore-accent);
}

.encore-drawer-sub {
  display: none;
  padding: 6px 0 16px;
}

.encore-drawer-sub.is-open {
  display: block !important;
}

.encore-drawer-sub-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: none !important;
  border-left: none !important;
}

.encore-drawer-sub-group {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.encore-drawer-sub-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  margin: 4px 0 8px 2px;
  background: transparent;
  border: none;
  padding: 0;
}

.encore-drawer-sub-heading::before {
  content: '';
  width: 3px;
  height: 12px;
  background: #B00000;
  border-radius: 2px;
  display: inline-block;
  flex: none;
}

.encore-drawer-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 360px) {
  .encore-drawer-sub-grid {
    grid-template-columns: 1fr;
  }
}

.encore-drawer-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13.5px;
  color: #1e293b;
  font-weight: 600;
  min-height: 44px;
  box-sizing: border-box;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.encore-drawer-sub-item:hover,
.encore-drawer-sub-item:active {
  background: #ffffff;
  border-color: #B00000;
  color: #B00000;
  box-shadow: 0 2px 8px rgba(176, 0, 0, 0.08);
}

.encore-sub-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 4px;
}

.encore-mega-tag {
  font-size: 9.5px;
  padding: 1.5px 6.5px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
  flex: none;
  white-space: nowrap;
}

.encore-mega-tag.is-accent {
  background: #fee2e2;
  color: #dc2626;
}

.encore-sub-edit-ic {
  color: #0284c7;
  width: 13px;
  height: 13px;
  margin-left: 2px;
  flex: none;
}

/* 抽屜內 IP 吉祥物導購 (純透明背景，無底色無外框，直接完美展示自訂 PNG 插畫) */
.encore-drawer-ip-card {
  margin-top: var(--enc-mip-top, 10px);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}

.encore-dip-bubble {
  background: var(--enc-ip-bubble-bg, #ffffff);
  border: 1.5px solid var(--enc-ip-bubble-bd, #fed7aa);
  border-radius: 12px;
  padding: 7px 14px;
  font-size: var(--enc-mip-bubble-fs, 13px);
  font-weight: 700;
  color: var(--enc-ip-bubble-fg, #292524);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.12);
  line-height: 1.35;
  position: relative;
}

.encore-dip-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 22px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--enc-ip-bubble-bg, #ffffff);
}

.encore-dip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--enc-mip-row-gap, 14px);
}

.encore-dip-mascot {
  width: var(--enc-mip-w, 110px);
  height: var(--enc-mip-h, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: none;
}

.encore-dip-mascot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.encore-dip-mascot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.encore-dip-btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  background: var(--enc-ip-btn-bg, #B00000);
  color: var(--enc-ip-btn-fg, #ffffff);
  font-size: var(--enc-mip-btn-fs, 14px);
  font-weight: var(--enc-mip-btn-weight, 700);
  letter-spacing: var(--enc-mip-btn-ls, 0);
  padding: var(--enc-mip-btn-py, 11px) var(--enc-mip-btn-px, 16px);
  border-radius: var(--enc-ip-btn-radius, 999px);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
}

.encore-drawer-ip-card.is-btn-full .encore-dip-btn {
  flex: 1;
}

/* 手機版 IP 卡：上下排列 (吉祥物在上、按鈕在下) */
.encore-drawer-ip-card.is-layout-column .encore-dip-row {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.encore-drawer-ip-card.is-layout-column .encore-dip-mascot {
  width: 100%;
  height: var(--enc-mip-h, 56px);
  justify-content: center;
}
.encore-drawer-ip-card.is-layout-column .encore-dip-btn {
  width: 100%;
  flex: 0 0 auto;
}

/* 手機吉祥物使用 % 單位：寬度為卡片百分比，高度依圖片自然比例自動 */
.encore-drawer-ip-card.is-unit-pct .encore-dip-mascot {
  height: auto;
}
.encore-drawer-ip-card.is-unit-pct .encore-dip-mascot svg,
.encore-drawer-ip-card.is-unit-pct .encore-dip-mascot img {
  width: 100%;
  height: auto;
}
.encore-drawer-ip-card.is-layout-column.is-unit-pct .encore-dip-mascot {
  width: var(--enc-mip-w, 45%);
  height: auto;
  align-self: center;
}

.encore-dip-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

.encore-drawer-cta {
  width: 100%;
  margin-top: 24px;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

/* ─── 會員中心下拉選單 (User Dropdown) ─────────────────────────────────── */
.encore-user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.encore-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--encore-bg, #ffffff);
  border: 1px solid var(--encore-border, #e2e8f0);
  border-radius: var(--encore-radius-md, 12px);
  box-shadow: var(--encore-shadow-lg, 0 10px 25px -5px rgba(0,0,0,0.1));
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1050;
  font-family: var(--encore-font-body);
}
.encore-user-menu-wrap.is-open .encore-user-dropdown,
.encore-user-menu-wrap:hover .encore-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.encore-ud-header {
  padding: 8px 16px 10px;
  border-bottom: 1px solid color-mix(in oklch, var(--encore-border) 60%, transparent);
}
.encore-ud-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--encore-fg, #0f172a);
}
.encore-ud-sub {
  font-size: 11.5px;
  color: var(--encore-muted, #64748b);
  margin-top: 2px;
}
.encore-ud-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.encore-ud-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--encore-fg, #334155);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.encore-ud-list a:hover {
  background: color-mix(in oklch, var(--encore-fg) 4%, var(--encore-bg));
  color: var(--encore-accent, #B00000);
}
.encore-ud-logout {
  border-top: 1px solid color-mix(in oklch, var(--encore-border) 60%, transparent);
  padding-top: 6px;
  margin-top: 4px;
}

/* ─── 購物車下拉浮動卡片 (Dropdown Mini-Cart) ─────────────────────────── */
.encore-cart-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.encore-cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--encore-bg, #ffffff);
  border: 1px solid var(--encore-border, #e2e8f0);
  border-radius: var(--encore-radius-md, 14px);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.14), 0 6px 14px -4px rgba(0, 0, 0, 0.06);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1050;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--encore-font-body);
}
.encore-cart-menu-wrap.is-open .encore-cart-dropdown,
.encore-cart-menu-wrap:hover .encore-cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.encore-cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid color-mix(in oklch, var(--encore-border) 60%, transparent);
  background: color-mix(in oklch, var(--encore-fg) 2%, var(--encore-bg));
}
.encore-cd-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--encore-fg);
}
.encore-cd-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--encore-accent, #B00000);
  text-decoration: none;
}
.encore-cd-link:hover {
  text-decoration: underline;
}
.encore-cart-dropdown .encore-cd-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 0 16px 14px;
}
.encore-cart-empty {
  text-align: center;
  padding: 32px 10px;
}
.encore-cart-empty-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--encore-fg);
  margin-top: 10px;
}
.encore-cart-empty-sub {
  font-size: 12px;
  color: var(--encore-muted);
  margin: 4px 0 0;
}
.encore-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--encore-border) 60%, transparent);
}
.encore-ci-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--encore-radius-sm, 6px);
  border: 1px solid var(--encore-border);
}
.encore-ci-info {
  flex: 1;
  min-width: 0;
}
.encore-ci-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--encore-fg);
  line-height: 1.35;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.encore-ci-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.encore-ci-price {
  font-weight: 700;
  color: var(--encore-accent);
}
.encore-ci-qty {
  color: var(--encore-muted);
}
.encore-ci-del {
  background: none;
  border: none;
  color: var(--encore-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s;
  text-decoration: none;
}
.encore-ci-del:hover {
  color: #ef4444;
}
.encore-cart-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--encore-border);
  background: color-mix(in oklch, var(--encore-fg) 2%, var(--encore-bg));
}
.encore-cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.subtotal-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--encore-muted);
}
.subtotal-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--encore-accent);
}
.encore-cart-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.encore-cart-btn-checkout {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--encore-radius-sm, 8px);
}
.encore-cart-btn-view {
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--encore-radius-sm, 8px);
}

/* ─── 隱藏 Blocksy 預設 Footer (以自訂 Footer 取代) ─────────────────── */
body > footer.ct-footer,
.site-footer,
body footer.ct-footer {
  display: none !important;
}

/* ─── 全站自訂 Footer 樣式 (Encore Custom Footer) ────────────────────── */
.encore-pagefoot {
  display: block !important;
  width: 100%;
  background: var(--encore-surface, #ffffff);
  border-top: 1px solid var(--encore-border, oklch(92% 0.005 250));
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(28px, 3.5vw, 40px);
  color: var(--encore-muted, oklch(54% 0.012 250));
  font-family: var(--encore-font-body);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.encore-pagefoot *,
.encore-pagefoot *::before,
.encore-pagefoot *::after,
.encore-fab *,
.encore-fab *::before,
.encore-fab *::after {
  box-sizing: border-box;
}

.encore-foot-cols {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* 欄位 1: 品牌與聯絡資訊 */
.encore-foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.encore-foot-brand-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.encore-foot-logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.encore-foot-logo-text {
  font-family: var(--encore-font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--encore-fg);
  letter-spacing: -0.02em;
}

.encore-foot-logo-text span {
  font-size: 11px;
  font-weight: 700;
  color: var(--encore-accent);
  margin-left: 6px;
  letter-spacing: 0.1em;
}

.encore-foot-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--encore-muted);
  margin: 0 0 16px 0;
  max-width: 36ch;
}

.encore-foot-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.encore-foot-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--encore-muted);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.encore-foot-contact-item .encore-ic {
  font-size: 16px;
  color: var(--encore-muted);
  flex-shrink: 0;
  transition: color 0.16s ease;
}

a.encore-foot-contact-item:hover {
  color: var(--encore-accent);
}

a.encore-foot-contact-item:hover .encore-ic {
  color: var(--encore-accent);
}

.encore-foot-tax {
  font-family: var(--encore-font-mono);
  font-size: 12px;
  opacity: 0.85;
  padding-top: 4px;
  border-top: 1px dashed var(--encore-border);
}

/* 欄位 2 & 3: 次選單與常見問題 */
.encore-foot-col {
  display: flex;
  flex-direction: column;
}

.encore-foot-heading {
  font-family: var(--encore-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--encore-fg);
  letter-spacing: 0.02em;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in oklch, var(--encore-accent) 25%, transparent);
  display: inline-block;
}

.encore-foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.encore-foot-links li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.8px;
  font-weight: 500;
  color: var(--encore-muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1.4;
}

.encore-foot-links li a:hover {
  color: var(--encore-accent);
  transform: translateX(4px);
}

.encore-foot-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--encore-accent) 10%, transparent);
  color: var(--encore-accent);
  border: 1px solid color-mix(in oklch, var(--encore-accent) 22%, transparent);
}

/* 欄位 4: 線上客服與 LINE@ 專區 */
.encore-foot-service-col {
  display: flex;
  flex-direction: column;
}

.encore-foot-service-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--encore-muted);
  margin: 0 0 14px 0;
}

.encore-foot-line-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  background: #06C755;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
  margin-bottom: 12px;
}

.encore-foot-line-btn:hover {
  background: #05b34c;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.encore-foot-line-btn .encore-ic {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: #ffffff;
  flex-shrink: 0;
}

.encore-foot-line-btn-text {
  display: flex;
  flex-direction: column;
}

.encore-line-btn-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.encore-line-btn-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.encore-foot-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.encore-foot-quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--encore-radius, 8px);
  border: 1px solid var(--encore-border);
  background: var(--encore-bg);
  color: var(--encore-fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.encore-foot-quote-link:hover {
  border-color: var(--encore-accent);
  color: var(--encore-accent);
  background: color-mix(in oklch, var(--encore-accent) 5%, var(--encore-surface));
}

.encore-foot-quote-link .encore-ic {
  font-size: 15px;
}

.encore-foot-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.encore-foot-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--encore-border);
  background: var(--encore-surface);
  color: var(--encore-muted);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all 0.16s ease;
}

.encore-foot-social-btn:hover {
  border-color: var(--encore-fg);
  color: var(--encore-fg);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 頁尾底端宣告列 (Foot Base) */
.encore-foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--encore-border);
  font-size: 12.5px;
  color: var(--encore-muted);
}

.encore-foot-copy {
  font-family: var(--encore-font-body);
  font-weight: 500;
}

.encore-foot-meta {
  font-size: 12px;
  opacity: 0.85;
}

/* ─── 右下角浮動按鍵 (Floating Action Buttons - FAB) ──────────────────── */
.encore-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.encore-fab-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--encore-border);
  background: var(--encore-surface);
  color: var(--encore-fg);
  font-family: var(--encore-font-body);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15), 0 6px 12px -3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.encore-fab-top {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  background: #ffffff;
  color: var(--encore-fg);
  transition: opacity 0.25s ease, transform 0.22s ease, background 0.15s ease;
}

.encore-fab-top:hover {
  background: var(--encore-fg);
  color: #ffffff;
  border-color: var(--encore-fg);
  transform: translateY(-3px);
}

.encore-fab-top .encore-ic {
  font-size: 20px;
  stroke-width: 2.2;
}

.encore-fab-service {
  padding: 0 20px;
  background: #06C755;
  color: #ffffff !important;
  border-color: #06C755;
  box-shadow: 0 10px 25px -3px rgba(6, 199, 85, 0.45);
}

.encore-fab-service:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(6, 199, 85, 0.6);
}

.encore-fab-service .encore-ic {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

/* ─── 行動端快捷搜尋按鈕 (預設桌面隱藏) ─────────────────────────── */
.encore-mobile-search-toggle {
  display: none;
}

/* ─── 響應式斷點 (Media Queries) ─────────────────────────────────────── */
@media (max-width: 1240px) {
  .encore-masthead-cta-2 {
    display: none;
  }
  .encore-mainnav {
    display: none;
  }
  .encore-navtoggle {
    display: inline-flex;
  }
  .encore-masthead-tools {
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .encore-utilbar {
    display: none !important;
  }
  .encore-mainnav {
    display: none !important;
  }
  .encore-masthead-cta-1,
  .encore-masthead-cta-2,
  .encore-user-menu-wrap {
    display: none !important;
  }
  .encore-mobile-search-toggle {
    display: inline-flex !important;
  }
  .encore-navtoggle {
    display: inline-flex !important;
  }
  .encore-masthead {
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04) !important;
    z-index: 9999 !important;
  }
  .encore-header-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .encore-masthead-inner {
    min-height: 56px !important;
    height: 56px !important;
    justify-content: space-between !important;
  }
  .encore-brand-logo {
    max-height: 32px !important;
    height: 32px !important;
    width: auto !important;
  }
  .encore-masthead-tools {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
  }
  .encore-mobile-search-toggle,
  .encore-cart-btn,
  .encore-navtoggle {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
    padding: 0 !important;
  }
  .encore-foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
}

@media (max-width: 768px) {
  /* 手機端隱藏浮動客服按鈕 (底部 APP MENU 已有客服) */
  .encore-fab-service {
    display: none !important;
  }
  /* 回到頂端按鈕精準位於底部 APP MENU 上方，不遮擋任何按鈕 */
  .encore-fab {
    right: 16px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .encore-fab-top {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
  }
}

@media (max-width: 640px) {
  .encore-foot-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .encore-foot-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ─── 行動端全版抽屜選單 (Fullscreen Mobile Drawer) ────────────────────── */
.encore-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 999990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  pointer-events: none;
}

body.encore-menu-open .encore-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.encore-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.encore-fullscreen-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

body.encore-menu-open .encore-fullscreen-drawer {
  transform: translateX(0);
}

.encore-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  flex: none;
  min-height: 60px;
  box-sizing: border-box;
}

.encore-drawer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.encore-drawer-logo-txt {
  font-family: var(--encore-font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--encore-fg);
  letter-spacing: -0.02em;
}

.encore-drawer-logo-txt span {
  color: var(--encore-accent);
  font-size: 13px;
  margin-left: 4px;
  font-weight: 700;
}

.encore-drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.encore-drawer-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.encore-drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 80px;
  box-sizing: border-box;
}

/* 抽屜即時搜尋框 */
.encore-drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 6px 0 16px;
  height: 44px;
  margin-bottom: 18px;
  transition: border-color 0.2s, background 0.2s;
}

.encore-drawer-search:focus-within {
  background: #ffffff;
  border-color: var(--encore-accent);
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.1);
}

.encore-drawer-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #1e293b;
  padding: 0;
  margin: 0;
}

.encore-drawer-search .encore-ic {
  color: #94a3b8;
  width: 18px;
  height: 18px;
  flex: none;
}

.encore-drawer-search-btn {
  padding: 6px 14px;
  background: var(--encore-accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.encore-drawer-search-btn:hover {
  opacity: 0.9;
}

/* 抽屜頂部 CTA 捷徑 */
.encore-drawer-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.encore-drawer-cta-primary {
  background: var(--encore-accent);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 10px;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(176, 0, 0, 0.25);
}

.encore-drawer-cta-secondary {
  background: #f8fafc;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  border-radius: 10px;
  min-height: 44px;
}

/* 抽屜商品分類區塊與手風琴 */
.encore-drawer-group {
  margin-bottom: 24px;
}

.encore-drawer-group-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
  padding-left: 4px;
}

.encore-drawer-link-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  text-decoration: none;
  color: #9f1239;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.encore-drawer-item {
  border-bottom: 1px solid #f1f5f9;
}

.encore-drawer-item:last-child {
  border-bottom: none;
}

.encore-drawer-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--encore-font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: color 0.15s;
}

.encore-drawer-link:hover {
  color: var(--encore-accent);
}

.encore-dl-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.encore-drawer-link .chev2 {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94a3b8;
}

.encore-drawer-link[aria-expanded="true"] .chev2 {
  transform: rotate(180deg);
  color: var(--encore-accent);
}

.encore-drawer-sub {
  display: none;
  padding: 10px 0 16px;
}

.encore-drawer-sub.is-open {
  display: block !important;
}

.encore-drawer-sub-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.encore-drawer-sub-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.encore-drawer-sub-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2.5px 8px;
  border-radius: 6px;
}

.encore-drawer-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 360px) {
  .encore-drawer-sub-grid {
    grid-template-columns: 1fr;
  }
}

.encore-drawer-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  min-height: 42px;
  box-sizing: border-box;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.encore-drawer-sub-item:hover,
.encore-drawer-sub-item:active {
  background: #fff1f2;
  border-color: #fca5a5;
  color: #B00000;
}

.encore-mega-tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.encore-mega-tag.is-accent {
  background: #fee2e2;
  color: #dc2626;
}

/* 抽屜服務與支援專區 */
.encore-drawer-service-section {
  margin-top: 20px;
  margin-bottom: 24px;
}

.encore-drawer-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.encore-drawer-service-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.encore-drawer-service-link:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--encore-accent);
}

/* 抽屜底部聯絡資訊與 LINE@ */
.encore-drawer-footer-contact {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.encore-drawer-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #06C755;
  color: #ffffff !important;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform 0.15s;
}

.encore-drawer-line-btn:active {
  transform: scale(0.98);
}

.encore-drawer-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.encore-drawer-phone .encore-ic {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

/* ─── 手機底部 APP 導航列 (Bottom Navigation Bar) ───────────────────── */
.encore-mobile-app-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .encore-mobile-app-bar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.85) !important;
    z-index: 99998 !important;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.06) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  .encore-mab-inner {
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    height: 56px !important;
    max-width: 540px !important;
    margin: 0 auto !important;
  }

  .encore-mab-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #64748b !important;
    padding: 6px 2px !important;
    transition: color 0.15s ease, transform 0.1s ease !important;
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .encore-mab-item:active {
    transform: scale(0.92) !important;
    color: var(--encore-accent) !important;
  }

  .encore-mab-icon-wrap {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
  }

  .encore-mab-ic {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .encore-mab-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
  }

  .encore-mab-badge {
    position: absolute !important;
    top: -4px !important;
    right: -10px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    border-radius: 999px !important;
    line-height: 1.1 !important;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4) !important;
  }

  .encore-mab-cart-count {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    background: var(--encore-accent) !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    min-width: 15px !important;
    height: 15px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  }
}

/* ─── 側邊滑出式購物車抽屜 (Side Cart Drawer) ─────────────────────────── */
.encore-cart-scrim {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.3) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 999990 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
  pointer-events: none !important;
}
body.encore-cart-open .encore-cart-scrim {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}
body.encore-cart-open {
  overflow: hidden !important;
  touch-action: none !important;
}
.encore-cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 420px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #ffffff !important;
  z-index: 9999999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
body.encore-cart-open .encore-cart-drawer {
  transform: translateX(0) !important;
}
.encore-cart-drawer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  flex: none !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
}
.encore-cd-head-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.encore-cart-drawer-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background 0.15s, color 0.15s, transform 0.15s !important;
}
.encore-cart-drawer-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: rotate(90deg) !important;
}
.encore-cart-drawer-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.encore-side-cart-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}
.encore-cart-empty {
  text-align: center !important;
  padding: 48px 20px !important;
  margin: auto 0 !important;
}
.encore-cart-empty-text {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 14px !important;
}
.encore-cart-empty-sub {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 6px 0 0 !important;
}
.encore-cart-items-list {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 16px 20px !important;
  min-height: 0 !important;
}
.encore-cart-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.encore-ci-thumb img {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}
.encore-ci-info {
  flex: 1 !important;
  min-width: 0 !important;
}
.encore-ci-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-bottom: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.encore-ci-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
}
.encore-ci-price {
  font-weight: 700 !important;
  color: #B00000 !important;
}
.encore-ci-qty {
  color: #64748b !important;
}
.encore-ci-del {
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  transition: color 0.15s !important;
  text-decoration: none !important;
}
.encore-ci-del:hover {
  color: #ef4444 !important;
}
.encore-cart-footer {
  margin-top: auto !important;
  padding: 16px 20px 24px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  flex: none !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
  z-index: 10 !important;
}
.encore-cart-subtotal-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}
.subtotal-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}
.subtotal-amount {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #B00000 !important;
}
.encore-cart-btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.encore-cart-btn-checkout {
  width: 100% !important;
  text-align: center !important;
  padding: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  background: #B00000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
}
.encore-cart-btn-view {
  width: 100% !important;
  text-align: center !important;
  padding: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ─── Sticky Header 吸頂雙重保險架構 (Native Sticky + Fixed Fallback) ─── */
@keyframes encoreSlideDownHeader {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.encore-header-placeholder {
  width: 100% !important;
  display: none !important;
}

.encore-header-wrapper.is-sticky + .encore-header-placeholder {
  display: block !important;
}

.encore-header-wrapper.is-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  animation: encoreSlideDownHeader 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* WordPress Admin Bar 登入位移支援 */
.admin-bar .encore-header-wrapper.is-sticky {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .encore-header-wrapper.is-sticky {
    top: 46px !important;
  }
}

/* 吸頂狀態下的 Utilbar 與主導航微縮 */
.encore-header-wrapper.is-sticky .encore-utilbar {
  display: none !important;
}

.encore-header-wrapper.is-sticky .encore-masthead {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.encore-header-wrapper.is-sticky .encore-masthead-inner {
  min-height: 58px !important;
}

.encore-header-wrapper.is-sticky .encore-brand-logo {
  max-height: 34px !important;
}

.encore-header-wrapper.is-sticky .encore-nav-link {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.encore-header-wrapper.is-sticky .encore-masthead-cta-1,
.encore-header-wrapper.is-sticky .encore-masthead-cta-2 {
  padding: 8px 16px !important;
  font-size: 13px !important;
}


/* ─── Phase 5：迷你購物車 (側邊抽屜) 對齊原型 + 全站 Toast ────────────── */
.encore-side-cart-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

/* 空車態 */
.encore-sc-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  padding: 46px 20px;
  margin: auto 0;
}
.encore-sc-empty-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--encore-accent, #B00000) 12%, transparent);
  color: var(--encore-accent, #B00000);
}
.encore-sc-empty-ic .encore-ic { width: 28px !important; height: 28px !important; }
.encore-sc-empty-title { font-size: 15.5px; font-weight: 800; color: var(--encore-fg, #0f172a); }
.encore-sc-empty-sub { margin: 0; font-size: 13px; line-height: 1.6; color: var(--encore-muted, #64748b); max-width: 34ch; }
.encore-sc-empty .encore-sc-btn { margin-top: 4px; }

/* 商品清單 */
.encore-sc-list {
  flex: 1 1 auto !important;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 20px 4px;
}
.encore-sc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--encore-border, #e2e8f0) 60%, transparent);
  transition: opacity 0.2s ease;
}
.encore-sc-item:last-child { border-bottom: 0; }
.encore-sc-thumb {
  flex: none;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--encore-border, #e2e8f0);
  background: color-mix(in oklch, var(--encore-fg, #0f172a) 3%, #ffffff);
}
.encore-sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.encore-sc-info { flex: 1 1 auto; min-width: 0; }
.encore-sc-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--encore-fg, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.encore-sc-spec {
  margin-top: 3px;
  font-family: var(--encore-font-mono, ui-monospace, Consolas, monospace);
  font-size: 11.5px;
  color: var(--encore-muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.encore-sc-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.encore-sc-price { font-size: 13px; font-weight: 700; color: var(--encore-fg, #0f172a); }
.encore-sc-price .woocommerce-Price-amount,
.encore-sc-price .woocommerce-Price-amount bdi { font-size: inherit !important; font-weight: inherit !important; }
.encore-sc-qty { font-family: var(--encore-font-mono, ui-monospace, Consolas, monospace); font-size: 12px; color: var(--encore-muted, #64748b); }
.encore-sc-del {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--encore-muted, #64748b);
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.encore-sc-del:hover {
  color: var(--encore-accent, #B00000);
  background: color-mix(in oklch, var(--encore-accent, #B00000) 10%, transparent);
  border-color: color-mix(in oklch, var(--encore-accent, #B00000) 25%, transparent);
}
.encore-sc-del .encore-ic { width: 15px !important; height: 15px !important; }

/* 底部：免運 / 合計 / CTA */
.encore-sc-foot {
  flex: none;
  border-top: 1px solid var(--encore-border, #e2e8f0);
  background: color-mix(in oklch, var(--encore-fg, #0f172a) 2%, #ffffff);
  padding: 14px 20px 18px;
}
.encore-sc-ship {
  padding: 11px 13px;
  border: 1px solid color-mix(in oklch, var(--encore-border, #e2e8f0) 70%, transparent);
  border-radius: var(--encore-radius, 10px);
  background: color-mix(in oklch, var(--encore-accent, #B00000) 5%, #ffffff);
  margin-bottom: 12px;
}
.encore-sc-ship-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--encore-fg, #0f172a);
}
.encore-sc-ship-line .encore-ic { width: 15px !important; height: 15px !important; color: var(--encore-accent, #B00000); flex: none; }
.encore-sc-ship-line b { color: var(--encore-accent, #B00000); }
.encore-sc-ship-bar { height: 5px; border-radius: 999px; background: color-mix(in oklch, var(--encore-fg, #0f172a) 10%, transparent); overflow: hidden; }
.encore-sc-ship-bar span { display: block; height: 100%; border-radius: 999px; background: var(--encore-accent, #B00000); transition: width 0.34s cubic-bezier(0.16, 1, 0.3, 1); }
.encore-sc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.encore-sc-total-label { font-size: 13px; font-weight: 700; color: var(--encore-muted, #64748b); }
.encore-sc-total-amount { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--encore-fg, #0f172a); font-variant-numeric: tabular-nums; }
.encore-sc-total-amount .woocommerce-Price-amount,
.encore-sc-total-amount .woocommerce-Price-amount bdi { font-size: inherit !important; font-weight: inherit !important; font-family: inherit !important; color: inherit !important; }
.encore-sc-btns { display: grid; gap: 8px; }
.encore-sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--encore-radius, 10px);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.16s ease, border-color 0.16s ease, filter 0.16s ease, transform 0.06s ease;
}
.encore-sc-btn:active { transform: translateY(1px); }

/* 主要結帳 / 開始選購按鈕 (強效白字紅底，不受 Blocksy 預設 link 或 visited 顏色覆蓋) */
.encore-side-cart-content a.encore-sc-btn-primary,
.encore-sc-btn-primary,
.encore-sc-btn-primary:link,
.encore-sc-btn-primary:visited {
  background: var(--encore-accent, #B00000) !important;
  color: #ffffff !important;
  border-color: var(--encore-accent, #B00000) !important;
  text-decoration: none !important;
}
.encore-side-cart-content a.encore-sc-btn-primary:hover,
.encore-sc-btn-primary:hover {
  background: color-mix(in oklch, var(--encore-accent, #B00000) 84%, black) !important;
  color: #ffffff !important;
  border-color: color-mix(in oklch, var(--encore-accent, #B00000) 84%, black) !important;
  filter: brightness(0.92);
}
.encore-sc-btn-primary svg,
.encore-sc-btn-primary .encore-ic {
  color: #ffffff !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* 次要按鈕 (查看購物車) */
.encore-side-cart-content a.encore-sc-btn-ghost,
.encore-sc-btn-ghost,
.encore-sc-btn-ghost:link,
.encore-sc-btn-ghost:visited {
  background: #ffffff !important;
  color: var(--encore-fg, #0f172a) !important;
  border: 1px solid var(--encore-border, #e2e8f0) !important;
  text-decoration: none !important;
}
.encore-side-cart-content a.encore-sc-btn-ghost:hover,
.encore-sc-btn-ghost:hover {
  border-color: var(--encore-accent, #B00000) !important;
  color: var(--encore-accent, #B00000) !important;
  background: #ffffff !important;
}

/* 全站 Toast */
.encore-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  translate: -50% 12px;
  z-index: 9999999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--encore-fg, #0f172a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, translate 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.encore-toast.on { opacity: 1; translate: -50% 0; }
.encore-toast .encore-ic { width: 16px !important; height: 16px !important; color: color-mix(in oklch, #ffffff 74%, var(--encore-accent, #B00000)); }
.encore-toast[hidden] { display: none; }

/* ─── GPU Compositor 120 FPS 純化與隔離規則 ───────────────────────── */
.encore-header-wrapper,
.encore-mega,
.encore-drawer,
.ct-drawer,
.encore-quick-quote-modal,
.encore-toast,
#encoreToTop {
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  perspective: 1000px;
}

.encore-header-wrapper.is-sticky {
  will-change: transform;
}

.encore-nav-item.has-mega:hover .encore-mega,
.encore-nav-item.has-mega.is-open .encore-mega {
  will-change: opacity, transform;
}

.encore-drawer.is-open,
.ct-drawer.is-open {
  contain: layout paint;
  will-change: transform;
}

