/** Shopify CDN: Minification failed

Line 644:0 Unexpected "}"

**/
/* Font Awesome 圖標調整 */
.btn i.fa,
.btn i.fas,
.btn i.far,
.btn i.fab,
.btn i.fal,
.btn i.fa-solid,
.btn i.fa-regular,
.btn i.fa-light,
.m-button i.fa,
.m-button i.fas,
.m-button i.far,
.m-button i.fab,
.m-button i.fal,
.m-button i.fa-solid,
.m-button i.fa-regular,
.m-button i.fa-light {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}/* ============================================
   自定義按鈕系統 - Custom Button System
   適用於 Minimog 主題 - 優化版
   ============================================ */

/* ---------- Font Awesome Light 字體定義（如果需要） ---------- */
/*
@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url('{{ 'fa-light-300.woff2' | asset_url }}') format('woff2'),
       url('{{ 'fa-light-300.woff' | asset_url }}') format('woff');
}

.fa-light,
.fal {
  font-family: 'Font Awesome 6 Pro';
  font-weight: 300;
}
*/

/* ---------- CSS 變數定義 ---------- */
:root {
  --btn-primary-bg: #00514E;
  --btn-primary-hover-bg: #DEEDE2;
  --btn-primary-hover-color: #00726E;
  --btn-primary-active-bg: #003A38;
  
  --btn-secondary-border: #B1B1B1;
  --btn-secondary-hover-bg: #DEEDE2;
  
  --btn-link-color: #000000;
  --btn-link-hover-color: #00AF9A;
  --btn-link-underline: #00AF9A;
  
  --btn-text-color: #00514E;
  --btn-text-hover: #00AF9A;
  --btn-text-active: #003A38;
}

/* ---------- 按鈕基本樣式 ---------- */
.btn,
.m-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  min-height: 44px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 禁用狀態 */
.btn[disabled],
.btn--disabled,
.m-button[disabled],
.m-button--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #CCCCCC !important;
  color: #FFFFFF !important;
  border-color: #CCCCCC !important;
  pointer-events: none;
}

/* ---------- Primary 按鈕樣式 - 使用更具體的選擇器 ---------- */
.m-richtext__button .btn--primary,
.m-rich-text .btn--primary,
a.btn.btn--primary,
.btn--primary,
.m-button--primary {
  background-color: var(--btn-primary-bg) !important;
  color: white !important;
  border: 1px solid var(--btn-primary-bg) !important;
  transform: translateY(0) !important;
}

.m-richtext__button .btn--primary:hover,
.m-rich-text .btn--primary:hover,
a.btn.btn--primary:hover,
.btn--primary:hover,
.m-button--primary:hover {
  background-color: var(--btn-primary-hover-bg) !important;
  border-color: var(--btn-primary-hover-color) !important;
  color: var(--btn-primary-hover-color) !important;
  transform: translateY(0) !important;
}

.m-richtext__button .btn--primary:active,
.m-rich-text .btn--primary:active,
a.btn.btn--primary:active,
.btn--primary:active,
.m-button--primary:active {
  background-color: var(--btn-primary-active-bg) !important;
  border-color: var(--btn-primary-active-bg) !important;
  color: white !important;
  transform: translateY(0) !important;
}

/* ---------- Secondary 按鈕樣式 - 使用更具體的選擇器 ---------- */
.m-richtext__button .btn--secondary,
.m-rich-text .btn--secondary,
a.btn.btn--secondary,
.btn--secondary,
.m-button--secondary {
  background-color: white !important;
  color: var(--btn-primary-bg) !important;
  border: 1px solid var(--btn-secondary-border) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(0) !important;
}

.m-richtext__button .btn--secondary:hover,
.m-rich-text .btn--secondary:hover,
a.btn.btn--secondary:hover,
.btn--secondary:hover,
.m-button--secondary:hover {
  background-color: var(--btn-secondary-hover-bg) !important;
  color: var(--btn-primary-bg) !important;
  border-color: var(--btn-primary-bg) !important;
  transform: translateY(0) !important;
}

.m-richtext__button .btn--secondary:active,
.m-rich-text .btn--secondary:active,
a.btn.btn--secondary:active,
.btn--secondary:active,
.m-button--secondary:active {
  background-color: white !important;
  color: var(--btn-primary-active-bg) !important;
  border-color: var(--btn-primary-active-bg) !important;
  transform: translateY(0) !important;
}

/* ---------- White 按鈕樣式 - 使用更具體的選擇器 ---------- */
.m-richtext__button .btn--white,
.m-rich-text .btn--white,
a.btn.btn--white,
.btn--white,
.m-button--white {
  background-color: white !important;
  color: var(--btn-primary-bg) !important;
  border: 1px solid white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(0) !important;
}

.m-richtext__button .btn--white:hover,
.m-rich-text .btn--white:hover,
a.btn.btn--white:hover,
.btn--white:hover,
.m-button--white:hover {
  background-color: #f8f8f8 !important;
  transform: translateY(0) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.m-richtext__button .btn--white:active,
.m-rich-text .btn--white:active,
a.btn.btn--white:active,
.btn--white:active,
.m-button--white:active {
  background-color: #f0f0f0 !important;
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 深色背景上的白色按鈕 */
.m-color-dark .btn--white,
.m-color-inverse .btn--white,
[data-color-scheme="dark"] .btn--white,
[data-color-scheme="inverse"] .btn--white {
  background-color: white !important;
  color: var(--btn-primary-bg) !important;
}

.m-color-dark .btn--white:hover,
.m-color-inverse .btn--white:hover,
[data-color-scheme="dark"] .btn--white:hover,
[data-color-scheme="inverse"] .btn--white:hover {
  background-color: var(--btn-primary-hover-bg) !important;
  color: var(--btn-primary-bg) !important;
}

/* ---------- Link 按鈕樣式（Minimog 底線動態）- 修正版 ---------- */
.m-richtext__button .btn--link,
.m-rich-text .btn--link,
a.btn.btn--link,
.btn--link,
.m-button--link {
  background-color: transparent !important;
  color: var(--btn-link-color) !important;
  padding: 0 0 4px 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  min-height: auto !important;
  transform: translateY(0) !important;
}

/* 底線基礎樣式 */
.m-richtext__button .btn--link::after,
.m-rich-text .btn--link::after,
a.btn.btn--link::after,
.btn--link::after,
.m-button--link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background-color: var(--btn-link-underline) !important;
  transform: scaleX(1) !important;
  transform-origin: bottom left !important;
  transition: transform 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) !important;
}

/* 移除 ::before */
.m-richtext__button .btn--link::before,
.m-rich-text .btn--link::before,
a.btn.btn--link::before,
.btn--link::before,
.m-button--link::before {
  display: none !important;
}

/* Hover 狀態 */
.m-richtext__button .btn--link:hover,
.m-rich-text .btn--link:hover,
a.btn.btn--link:hover,
.btn--link:hover,
.m-button--link:hover {
  color: var(--btn-link-hover-color) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
}

/* Hover 時底線動畫 - 先縮小 */
.m-richtext__button .btn--link:hover::after,
.m-rich-text .btn--link:hover::after,
a.btn.btn--link:hover::after,
.btn--link:hover::after,
.m-button--link:hover::after {
  transform: scaleX(0) !important;
  transform-origin: bottom right !important;
}

/* 新增第二個偽元素來實現完整動畫 */
.m-richtext__button .btn--link,
.m-rich-text .btn--link,
a.btn.btn--link,
.btn--link,
.m-button--link {
  z-index: 1 !important;
}

/* 創建第二層底線用於動畫 */
.m-richtext__button .btn--link::before,
.m-rich-text .btn--link::before,
a.btn.btn--link::before,
.btn--link::before,
.m-button--link::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background-color: var(--btn-link-underline) !important;
  transform: scaleX(0) !important;
  transform-origin: bottom left !important;
  transition: transform 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0.1s !important;
  z-index: -1 !important;
}

/* Hover 時第二層底線展開 */
.m-richtext__button .btn--link:hover::before,
.m-rich-text .btn--link:hover::before,
a.btn.btn--link:hover::before,
.btn--link:hover::before,
.m-button--link:hover::before {
  transform: scaleX(1) !important;
}

/* Active 狀態 */
.m-richtext__button .btn--link:active,
.m-rich-text .btn--link:active,
a.btn.btn--link:active,
.btn--link:active,
.m-button--link:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* ---------- Pure Text 按鈕樣式（無底線）- 使用更具體的選擇器 ---------- */
.m-richtext__button .btn--text,
.m-rich-text .btn--text,
a.btn.btn--text,
.btn--text,
.m-button--text {
  background-color: transparent !important;
  color: var(--btn-text-color) !important;
  padding: 0 !important;
  border: none !important;
  min-height: auto !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.m-richtext__button .btn--text:hover,
.m-rich-text .btn--text:hover,
a.btn.btn--text:hover,
.btn--text:hover,
.m-button--text:hover {
  color: var(--btn-text-hover) !important;
}

.m-richtext__button .btn--text:active,
.m-rich-text .btn--text:active,
a.btn.btn--text:active,
.btn--text:active,
.m-button--text:active {
  color: var(--btn-text-active) !important;
}

/* ---------- 按鈕尺寸變體 - 使用更具體的選擇器 ---------- */
.m-richtext__button .btn--small,
a.btn.btn--small,
.btn--small,
.m-button--small {
  padding: 6px 14px !important;
  font-size: 16px;
  min-height: 34px !important;
}

.m-richtext__button .btn--large,
a.btn.btn--large,
.btn--large,
.m-button--large {
  padding: 14px 28px !important;
  font-size: 18px;
  min-height: 54px !important;
}

/* 純文字按鈕特殊處理 */
.btn--text.btn--small,
.btn--text.btn--large,
.btn--link.btn--small,
.btn--link.btn--large,
.m-button--text.m-button--small,
.m-button--text.m-button--large,
.m-button--link.m-button--small,
.m-button--link.m-button--large {
  padding: 0 !important;
  padding-bottom: 4px !important;
}

/* ---------- 帶圖標的按鈕樣式 ---------- */
.btn--with-icon,
.m-button--with-icon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* 圖標樣式 */
.btn__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Font Awesome 圖標調整 */
.btn i.fa,
.btn i.fas,
.btn i.far,
.btn i.fab,
.btn i.fa-solid,
.m-button i.fa,
.m-button i.fas,
.m-button i.far,
.m-button i.fab,
.m-button i.fa-solid {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 小尺寸按鈕的圖標 */
.btn--small .btn__icon,
.btn--small .btn__icon svg,
.btn--small .btn__icon img,
.btn--small i.fa,
.btn--small i.fa-solid,
.m-button--small .btn__icon,
.m-button--small .btn__icon svg,
.m-button--small .btn__icon img,
.m-button--small i.fa,
.m-button--small i.fa-solid {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
}

/* 大尺寸按鈕的圖標 */
.btn--large .btn__icon,
.btn--large .btn__icon svg,
.btn--large .btn__icon img,
.btn--large i.fa,
.btn--large i.fa-solid,
.m-button--large .btn__icon,
.m-button--large .btn__icon svg,
.m-button--large .btn__icon img,
.m-button--large i.fa,
.m-button--large i.fa-solid {
  width: 24px !important;
  height: 24px !important;
  font-size: 20px !important;
}

/* Hover 時箭頭向右移動 - 統一處理所有箭頭類圖標 */
.m-richtext__button .btn:hover .btn__icon--arrow,
.m-richtext__button .btn:hover .fa-arrow-right,
.m-richtext__button .btn:hover .fa-chevron-right,
.m-richtext__button .btn:hover .fa-arrow-up-right,
.m-richtext__button .btn:hover .fa-arrow-right-long,
.m-richtext__button .btn:hover .fa-angle-right,
a.btn:hover .btn__icon--arrow,
a.btn:hover .fa-arrow-right,
a.btn:hover .fa-chevron-right,
a.btn:hover .fa-arrow-up-right,
a.btn:hover .fa-arrow-right-long,
a.btn:hover .fa-angle-right,
.btn:hover .btn__icon--arrow,
.btn:hover .fa-arrow-right,
.btn:hover .fa-chevron-right,
.btn:hover .fa-arrow-up-right,
.btn:hover .fa-arrow-right-long,
.btn:hover .fa-angle-right,
.m-button:hover .btn__icon--arrow,
.m-button:hover .fa-arrow-right,
.m-button:hover .fa-chevron-right,
.m-button:hover .fa-arrow-up-right,
.m-button:hover .fa-arrow-right-long,
.m-button:hover .fa-angle-right {
  transform: translateX(4px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 脈衝效果（選用） */
@keyframes btnPulse {
  0% { transform: translateX(0) scale(1); }
  50% { transform: translateX(2px) scale(1.1); }
  100% { transform: translateX(0) scale(1); }
}

.btn:hover .btn__icon--pulse,
.m-button:hover .btn__icon--pulse {
  animation: btnPulse 0.8s ease-in-out;
}

/* ---------- 按鈕容器對齊修正 ---------- */
.m-richtext__button {
  margin: 20px 0;
}

.m-richtext__button .btn {
  display: inline-flex;
  vertical-align: middle;
}

/* ---------- RTL 支援 ---------- */
[dir="rtl"] .btn__icon,
[dir="rtl"] .btn i.fa {
  margin-left: 0;
  margin-right: 8px;
}

[dir="rtl"] .btn:hover .btn__icon--arrow,
[dir="rtl"] .btn:hover .fa-arrow-right,
[dir="rtl"] .btn:hover .fa-chevron-right,
[dir="rtl"] .m-button:hover .btn__icon--arrow,
[dir="rtl"] .m-button:hover .fa-arrow-right,
[dir="rtl"] .m-button:hover .fa-chevron-right {
  transform: translateX(-3px);
}

[dir="rtl"] .btn--link::after,
[dir="rtl"] .m-button--link::after {
  transform-origin: bottom left;
}

[dir="rtl"] .btn--link:hover::after,
[dir="rtl"] .m-button--link:hover::after {
  transform-origin: bottom right;
}

/* ---------- 響應式調整 ---------- */
@media screen and (max-width: 767px) {
  .btn,
  .m-button {
    padding: 8px 16px !important;
    font-size: 16px !important;
  }
  
  .btn--large,
  .m-button--large {
    padding: 12px 24px !important;
    font-size: 16px !important;
  }
  
  .btn--small,
  .m-button--small {
    padding: 4px 10px !important;
    font-size: 12px !important;
  }
  
  /* 移動端全寬按鈕 */
  .btn--mobile-full,
  .m-button--mobile-full {
    width: 100% !important;
  }
}

/* ---------- 特殊狀態 ---------- */
/* 載入中狀態 */
.btn--loading,
.m-button--loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn--loading::after,
.m-button--loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--btn-primary-bg);
  border-radius: 50%;
  animation: btnSpin 1s linear infinite;
}

@keyframes btnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- 與 Minimog 主題整合 ---------- */
/* 覆蓋 Minimog 預設按鈕樣式 */
.m-button.btn--primary,
.m-button.btn--secondary,
.m-button.btn--white,
.m-button.btn--link,
.m-button.btn--text {
  /* 使用我們的自定義樣式 */
  min-width: auto !important;
}

/* 確保在產品卡片中正常顯示 */
.m-product-card .btn,
.m-product-card .m-button {
  width: 100%;
  justify-content: center;
}

/* ---------- 修正任何 Minimog 覆蓋問題 ---------- */
/* 確保我們的樣式優先級最高 */
.m-section .btn,
.m-section .m-button,
#MainContent .btn,
#MainContent .m-button {
  /* 繼承我們的樣式 */
}

/* ---------- 自定義箭頭樣式（選用） ---------- */
/* 如果想要統一更換箭頭圖標，可以使用偽元素 */
/*
.btn--primary .fa-arrow-right::before {
  content: "\f054" !important;  /* 這會將 arrow-right 改為 chevron-right */
}
*/

/* 或者使用 CSS 創建自定義箭頭 */
/*
.btn__icon--custom-arrow {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  display: inline-block;
  margin-left: 8px;
}
*/

/* ============================================================
   YOUNGER 偏好：所有按鈕 hover 不要垂直位移（往上彈）
   涵蓋 Minimog .m-button(含 --plain) 與 YOUNGER .btn / .bd-line-fab
   只鎖定垂直位移；箭頭 icon 的水平位移等子元素效果不受影響
   ============================================================ */
.btn:hover,
a.btn:hover,
button.btn:hover,
.m-button:hover,
a.m-button:hover,
.m-button--plain:hover,
.bd-line-fab:hover {
  transform: translateY(0) !important;
}

/* ── supplement_package（營養素打包）· FastBundle 按鈕順序修正 ──
   FastBundle app 改版後把 bundle 盒注入在「加入購物車」之後，造成 ATC 在上、Bundle 在下。
   改回 Bundle 盒在上、加入購物車在下。只鎖定此範本的 body class，不影響其他商品頁。
   註：加入購物車務必保留 —— FastBundle 選完後仍要按 ATC 才會進購物車。 */
body.supplement_package .main-product__block-buy_buttons {
  display: flex;
  flex-direction: column;
}
body.supplement_package .main-product__block-buy_buttons > product-form.m-product-form--main {
  order: 2;
  margin-top: 16px;
}
