/* ============================================================
   JX Header
   ============================================================ */
.jxh{
  --jxh-ink:#111;
  --jxh-soft:#5a5a58;
  --jxh-line:#e4e4e2;
  --jxh-bg:#fff;
  --jxh-h:74px;
  --jxh-pad:clamp(20px,4vw,56px);
  --jxh-maxw:1680px;
  --jxh-tr:180ms cubic-bezier(.4,0,.2,1);

  position:relative;
  z-index:200;
  background:var(--jxh-bg);
  isolation:isolate;
  color:var(--jxh-ink);
  border-bottom:1px solid transparent;
  transition:border-color var(--jxh-tr);
  font-family:inherit;
}
.jxh.is-sticky{position:sticky;top:0}
.jxh.is-open,.jxh.is-stuck{border-bottom-color:var(--jxh-line)}

.jxh *,.jxh-drawer *,.jxh-modal *{box-sizing:border-box}
.jxh svg,.jxh-drawer svg,.jxh-modal svg{
  fill:none !important;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block;
}
.jxh a{text-decoration:none;color:inherit}
.jxh button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

.jxh-bar{
  max-width:var(--jxh-maxw);margin:0 auto;
  padding:0 var(--jxh-pad);
  height:var(--jxh-h);
  display:flex;align-items:center;gap:24px;
}

/* 標誌 */
.jxh-logo{flex:0 0 auto;display:flex;align-items:center;line-height:0}
.jxh-logo img{
  max-height:var(--jxh-logo-h,38px);
  max-width:var(--jxh-logo-w,none);
  width:auto;height:auto;display:block;
  object-fit:contain;
}
.jxh-logo-text{
  font-size:24px;font-weight:600;letter-spacing:-.02em;
  line-height:1.2;white-space:nowrap;
}

/* 主選單 */
.jxh-nav{
  flex:1 1 auto;
  display:flex;justify-content:center;align-items:center;
  gap:clamp(18px,2.6vw,44px);
}
.jxh-nav-item{position:relative}
.jxh-nav-link{
  position:relative;
  display:inline-block;padding:8px 0;
  font-size:14px;letter-spacing:.02em;
}
.jxh-nav-link::after{
  content:"";position:absolute;left:0;right:0;bottom:2px;
  height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:center;
  transition:transform 260ms cubic-bezier(.4,0,.2,1);
}
.jxh-nav-item.is-active>.jxh-nav-link::after,
.jxh-nav-link:hover::after{transform:scaleX(1)}

/* 右側工具 */
.jxh-utils{
  flex:0 0 auto;
  display:flex;align-items:center;gap:clamp(12px,1.6vw,22px);
  font-size:13px;letter-spacing:.02em;
}
.jxh-icon{
  position:relative;
  width:24px;height:24px;
  display:grid;place-items:center;
  opacity:.9;transition:opacity var(--jxh-tr);
}
.jxh-icon:hover{opacity:.55}
.jxh-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.4;
  stroke-linecap:round;stroke-linejoin:round}

.jxh-cart-count{
  position:absolute;top:-4px;right:-7px;
  min-width:16px;height:16px;padding:0 4px;
  display:grid;place-items:center;
  font-size:10px;line-height:1;font-weight:600;
  background:var(--jxh-ink);color:var(--jxh-bg);
  border-radius:9px;
}
.jxh-cart-count:empty{display:none}

/* 語言／貨幣按鈕（開彈窗） */
.jxh-region{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 12px;
  font-size:13px;letter-spacing:.02em;white-space:nowrap;
  border:1px solid var(--jxh-line);border-radius:100px;
  transition:border-color var(--jxh-tr),background var(--jxh-tr);
}
.jxh-region:hover{border-color:var(--jxh-ink);background:rgba(0,0,0,.02)}
.jxh-region svg{width:15px;height:15px;stroke-width:1.3;opacity:.7}

/* 語言下拉（彈窗關閉時使用） */
.jxh-lang{position:relative;white-space:nowrap}
.jxh-lang-btn{
  display:inline-flex;align-items:center;gap:5px;
  padding:6px 2px;font-size:13px;letter-spacing:.02em;
  opacity:.9;transition:opacity var(--jxh-tr);
}
.jxh-lang-btn:hover{opacity:.6}
.jxh-lang-btn svg{
  width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform var(--jxh-tr);
}
.jxh-lang.on .jxh-lang-btn svg{transform:rotate(180deg)}

.jxh-lang-list{
  position:absolute;top:calc(100% + 8px);right:0;z-index:5;
  min-width:140px;margin:0;padding:6px 0;
  list-style:none;
  background:var(--jxh-bg);
  border:1px solid var(--jxh-line);
  border-radius:3px;
  box-shadow:0 8px 24px rgba(0,0,0,.09);
}
.jxh-lang-list[hidden]{display:none}
.jxh-lang-list a{
  display:block;padding:8px 16px;
  font-size:13px;color:var(--jxh-soft);
  transition:background var(--jxh-tr),color var(--jxh-tr);
}
.jxh-lang-list a:hover{background:rgba(0,0,0,.04);color:var(--jxh-ink)}
.jxh-lang-list a.on{color:var(--jxh-ink);font-weight:500}

/* 幣別切換器（短代碼 [jx_currency]） */
.jxh-cur{
  display:inline-block;white-space:nowrap;font-size:13px;
  font-family:inherit;
}
.jxh-cur select{
  font:inherit;color:inherit;cursor:pointer;
  background:none;border:1px solid var(--jxh-line,#e4e4e2);
  border-radius:3px;padding:6px 10px;
}
.jxh-cur .wcml-dropdown,
.jxh-cur .wcml_currency_switcher{font-family:inherit}

.jxh-burger{display:none}

/* ============================================================
   Mega menu
   ============================================================ */
.jxh-mega{
  position:absolute;left:0;right:0;top:100%;
  background:var(--jxh-bg);
  border-top:1px solid var(--jxh-line);
  box-shadow:0 22px 40px -28px rgba(0,0,0,.28);
  animation:jxh-drop 240ms cubic-bezier(.16,1,.3,1);
}
.jxh-mega[hidden]{display:none}
@keyframes jxh-drop{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}

.jxh-mega-inner{
  max-width:var(--jxh-maxw);margin:0 auto;
  padding:44px var(--jxh-pad) 60px;
  display:flex;flex-wrap:wrap;
  gap:clamp(30px,4vw,76px);
  align-items:flex-start;
}
.jxh-col{min-width:150px;animation:jxh-rise 320ms cubic-bezier(.16,1,.3,1) both}
.jxh-col:nth-child(2){animation-delay:40ms}
.jxh-col:nth-child(3){animation-delay:80ms}
.jxh-col:nth-child(4){animation-delay:120ms}
.jxh-col:nth-child(5){animation-delay:160ms}
.jxh-col:nth-child(6){animation-delay:200ms}
@keyframes jxh-rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
.jxh-col-title{
  font-size:13px;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;
  margin:0 0 16px;padding-bottom:8px;
  border-bottom:1px solid var(--jxh-line);
  display:block;
  color:var(--jxh-ink);
}
.jxh-col-title a{transition:opacity var(--jxh-tr)}
.jxh-col-title a:hover{opacity:.55}
.jxh-list{
  list-style:none;margin:0;padding:0;
  display:grid;
  grid-template-columns:repeat(var(--cols,1),minmax(0,1fr));
  gap:0 clamp(24px,3vw,56px);
}
.jxh-list li{margin:0}
.jxh-list a{
  display:block;padding:6px 0;
  font-size:14px;color:var(--jxh-soft);
  transition:color var(--jxh-tr),transform var(--jxh-tr);
}
.jxh-list a:hover{color:var(--jxh-ink);transform:translateX(3px)}

/* 遮罩 */
.jxh-scrim{
  position:fixed;inset:0;z-index:190;
  background:rgba(0,0,0,.18);
  opacity:0;pointer-events:none;
  transition:opacity var(--jxh-tr);
}
.jxh-scrim.on{opacity:1;pointer-events:auto}
.jxh-scrim[hidden]{display:block}

/* ============================================================
   行動版抽屜
   ============================================================ */
.jxh-drawer{
  position:fixed;z-index:210;
  top:0;right:0;bottom:0;
  width:min(92vw,420px);
  background:#fff;color:#111;
  transform:translateX(100%);
  transition:transform 260ms cubic-bezier(.4,0,.2,1);
  display:none;flex-direction:column;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  font-family:inherit;
}
.jxh-drawer.on{transform:none}
.jxh-drawer a{text-decoration:none;color:inherit}
.jxh-drawer button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.jxh-drawer-top{
  height:60px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 20px;border-bottom:1px solid var(--jxh-line,#e4e4e2);
}
.jxh-drawer-top .jxh-logo-text{font-size:19px}
.jxh-drawer-body{flex:1 1 auto;overflow-y:auto;padding:8px 20px 40px}
.jxh-acc{border-bottom:1px solid var(--jxh-line,#e4e4e2)}
.jxh-acc-btn{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:16px 0;font-size:15px;text-align:left;
}
.jxh-acc-btn .chev{
  width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5;
  transition:transform var(--jxh-tr,180ms);opacity:.5;
}
.jxh-acc.on .jxh-acc-btn .chev{transform:rotate(180deg)}
.jxh-acc-panel{padding:0 0 14px}
.jxh-acc-panel[hidden]{display:none}
.jxh-acc-panel .jxh-col{margin-bottom:18px;min-width:0}
.jxh-acc-panel .jxh-col-title{font-size:13px;margin-bottom:10px;opacity:.6;border:0;padding:0}
.jxh-acc-panel .jxh-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.jxh-drawer-foot{
  border-top:1px solid var(--jxh-line,#e4e4e2);padding:18px 20px;
  display:flex;align-items:center;justify-content:flex-start;
  gap:14px;font-size:13px;flex-wrap:wrap;
}
.jxh-drawer-foot .jxh-lang-list{
  top:auto;bottom:calc(100% + 8px);left:0;right:auto;
}

@media (max-width:1100px){
  .jxh{--jxh-h:60px}
  .jxh-nav{display:none}
  .jxh-burger{display:grid}
  .jxh-bar{gap:14px}
  .jxh-logo{flex:1 1 auto}
  .jxh-logo img{max-height:var(--jxh-logo-h-m,30px)}
  .jxh-logo-text{font-size:20px}
  /* 漢堡選單狀態：語言已經在抽屜裡了，上方不用再出現一次 */
  .jxh-utils>.jxh-lang,
  .jxh-utils>.jxh-region{display:none}
  .jxh-mega{display:none !important}
  .jxh-drawer{display:flex}
}

/* ============================================================
   商品頁篩選器
   ============================================================ */
.jxh-filter{
  --jxh-ink:#111;
  --jxh-soft:#5a5a58;
  --jxh-line:#e4e4e2;
  --jxh-pad:clamp(20px,4vw,56px);
  --jxh-maxw:1680px;
  --jxh-tr:180ms cubic-bezier(.4,0,.2,1);

  background:#fff;color:var(--jxh-ink);
  border-bottom:1px solid var(--jxh-line);
  font-family:inherit;
}
.jxh-filter *{box-sizing:border-box}
.jxh-filter a{text-decoration:none;color:inherit}
.jxh-filter-inner{
  max-width:var(--jxh-maxw);margin:0 auto;
  padding:26px var(--jxh-pad) 22px;
}
.jxh-filter-row{
  display:flex;align-items:baseline;
  gap:clamp(14px,2vw,32px);
  padding:9px 0;
  border-bottom:1px solid var(--jxh-line);
}
.jxh-filter-row:last-of-type{border-bottom:0}
.jxh-filter-label{
  flex:0 0 auto;width:86px;
  font-size:13px;font-weight:500;letter-spacing:.02em;
}
.jxh-filter-opts{
  flex:1 1 auto;
  display:flex;flex-wrap:wrap;
  gap:4px clamp(14px,1.8vw,26px);
}
.jxh-filter-opts a{
  font-size:13.5px;color:var(--jxh-soft);
  padding:3px 0;white-space:nowrap;
  border-bottom:1px solid transparent;
  transition:color var(--jxh-tr),border-color var(--jxh-tr);
}
.jxh-filter-opts a:hover{color:var(--jxh-ink)}
.jxh-filter-opts a.on{
  color:var(--jxh-ink);font-weight:500;
  border-bottom-color:currentColor;
}
.jxh-filter-clear{
  margin-top:14px;
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  font-size:12.5px;color:var(--jxh-soft);
}
.jxh-filter-clear a{
  color:var(--jxh-ink);
  text-decoration:underline;text-underline-offset:3px;
}

@media (max-width:900px){
  .jxh-filter-label{width:auto;font-size:12px;opacity:.6}
}

@media (prefers-reduced-motion:reduce){
  .jxh *,.jxh-drawer,.jxh-scrim{transition:none !important;animation:none !important}
}

/* ============================================================
   語言／貨幣彈窗
   ============================================================ */
.jxh-modal{
  --jxh-ink:#111;
  --jxh-soft:#5a5a58;
  --jxh-line:#e4e4e2;
  --jxh-bg:#fff;
  --jxh-tr:180ms cubic-bezier(.4,0,.2,1);

  position:fixed;inset:0;z-index:300;
  display:grid;place-items:center;
  padding:24px;
  font-family:inherit;color:var(--jxh-ink);
}
.jxh-modal[hidden]{display:none}

.jxh-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(17,17,17,.34);
  backdrop-filter:blur(2px);
  animation:jxh-fade 200ms ease;
}
@keyframes jxh-fade{from{opacity:0}to{opacity:1}}

.jxh-modal-panel{
  position:relative;
  width:min(100%,420px);
  max-height:min(80vh,640px);
  overflow-y:auto;
  background:var(--jxh-bg);
  border-radius:4px;
  padding:38px 34px 30px;
  box-shadow:0 28px 70px -20px rgba(0,0,0,.35);
  animation:jxh-pop 300ms cubic-bezier(.16,1,.3,1);
}
@keyframes jxh-pop{
  from{opacity:0;transform:translateY(14px) scale(.985)}
  to{opacity:1;transform:none}
}

.jxh-modal-x{
  position:absolute;top:14px;right:14px;
  width:32px;height:32px;
  display:grid;place-items:center;
  border-radius:50%;
  opacity:.5;transition:opacity var(--jxh-tr),background var(--jxh-tr);
}
.jxh-modal-x:hover{opacity:1;background:rgba(0,0,0,.05)}
.jxh-modal-x svg{width:16px;height:16px}

.jxh-modal-sec + .jxh-modal-sec{margin-top:30px}
.jxh-modal-sec h2{
  margin:0 0 14px;
  font-size:11px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--jxh-soft);
}

.jxh-modal-list{list-style:none;margin:0;padding:0}
.jxh-modal-list li + li{border-top:1px solid var(--jxh-line)}
.jxh-modal-list a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 4px;
  font-size:15px;color:var(--jxh-soft);
  text-decoration:none;
  transition:color var(--jxh-tr),padding-left var(--jxh-tr);
}
.jxh-modal-list a:hover{color:var(--jxh-ink);padding-left:8px}
.jxh-modal-list a.on{color:var(--jxh-ink);font-weight:500}
.jxh-modal-list a svg{width:17px;height:17px;stroke-width:1.6;flex:0 0 auto}

/* 彈窗內的 WCML 幣別切換器 */
.jxh-cur--modal select,
.jxh-cur--modal .wcml-dropdown{width:100%}
.jxh-cur--modal select{
  width:100%;padding:13px 14px;
  font:inherit;font-size:15px;color:var(--jxh-ink);
  background:transparent;
  border:1px solid var(--jxh-line);border-radius:3px;
  cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 13px center;
  background-size:15px;
}
.jxh-cur--modal select:focus{outline:none;border-color:var(--jxh-ink)}
.jxh-cur--modal .wcml-dropdown ul{list-style:none;margin:0;padding:0}
.jxh-cur--modal .wcml-dropdown li a{
  display:block;padding:12px 4px;font-size:15px;
  color:var(--jxh-soft);text-decoration:none;
  border-top:1px solid var(--jxh-line);
}
.jxh-cur--modal .wcml-dropdown li:first-child a{border-top:0}
.jxh-cur--modal .wcml-dropdown li a:hover{color:var(--jxh-ink)}

@media (max-width:600px){
  .jxh-modal{padding:0;place-items:end stretch}
  .jxh-modal-panel{
    width:100%;max-width:none;
    max-height:84vh;
    border-radius:14px 14px 0 0;
    padding:34px 24px calc(28px + env(safe-area-inset-bottom,0px));
    animation:jxh-sheet 320ms cubic-bezier(.16,1,.3,1);
  }
  @keyframes jxh-sheet{
    from{transform:translateY(100%)}
    to{transform:none}
  }
}


/* 後台／編輯器用的空狀態提示 */
.jxh-empty{
  padding:18px 22px;margin:0;
  font-size:14px;line-height:1.7;
  color:#8a6d00;background:#fff8e1;
  border:1px dashed #e0c36a;border-radius:4px;
}
.jxh-empty a{color:#8a6d00;text-decoration:underline}

/* ============================================================
   篩選器 — 分頁切換版面
   ============================================================ */
.jxh-filter--tabs .jxh-filter-tabs{
  display:flex;flex-wrap:wrap;
  gap:4px clamp(18px,2.4vw,40px);
  padding-bottom:14px;
  border-bottom:1px solid var(--jxh-line);
}
/* 沒有分隔線時，選中底線貼著按鈕，不要浮在半空 */
.jxh-filter-tabs[style*="transparent"] .jxh-tab::after{bottom:-2px}
.jxh-tab{
  position:relative;
  padding:6px 0;
  font:inherit;font-size:15px;font-weight:500;letter-spacing:.02em;
  color:var(--jxh-soft);
  background:none;border:0;cursor:pointer;
  text-decoration:none;white-space:nowrap;
  transition:color var(--jxh-tr);
}
.jxh-tab::after{
  content:"";position:absolute;left:0;right:0;bottom:-15px;
  height:2px;background:currentColor;
  transform:scaleX(0);transform-origin:center;
  transition:transform 260ms cubic-bezier(.4,0,.2,1);
}
.jxh-tab:hover{color:var(--jxh-ink)}
.jxh-tab.on{color:var(--jxh-ink)}
.jxh-tab.on::after{transform:scaleX(1)}

.jxh-filter-panel{
  display:flex;flex-wrap:wrap;
  gap:6px clamp(16px,2.2vw,34px);
  padding:20px 0 4px;
  animation:jxh-panel 260ms cubic-bezier(.16,1,.3,1);
}
.jxh-filter-panel[hidden]{display:none}
@keyframes jxh-panel{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}
.jxh-filter-panel a{
  font-size:14px;color:var(--jxh-soft);
  padding:4px 0;white-space:nowrap;
  border-bottom:1px solid transparent;
  transition:color var(--jxh-tr),border-color var(--jxh-tr);
}
.jxh-filter-panel a:hover{color:var(--jxh-ink)}
.jxh-filter-panel a.on{
  color:var(--jxh-ink);font-weight:500;
  border-bottom-color:currentColor;
}

@media (max-width:900px){
  /* 預設：自動換行 */
  .jxh-filter--tabs .jxh-filter-tabs{
    flex-wrap:wrap;
    gap:2px 20px;padding-bottom:12px;
  }
  .jxh-tab::after{bottom:-13px}
  .jxh-filter-panel{
    flex-wrap:wrap;
    gap:2px 16px;padding:16px 0 6px;
  }

  /* 選了「左右滑動」才變成一排 */
  .jxh-fm-scroll .jxh-filter--tabs .jxh-filter-tabs,
  .jxh-fm-scroll .jxh-filter-panel{
    flex-wrap:nowrap;overflow-x:auto;
    scrollbar-width:none;-ms-overflow-style:none;
  }
  .jxh-fm-scroll .jxh-filter--tabs .jxh-filter-tabs::-webkit-scrollbar,
  .jxh-fm-scroll .jxh-filter-panel::-webkit-scrollbar{display:none}

  .jxh-filter-row{
    flex-direction:column;align-items:stretch;gap:7px;padding:12px 0;
  }
  .jxh-filter-opts{flex-wrap:wrap}
  .jxh-fm-scroll .jxh-filter-opts{
    flex-wrap:nowrap;overflow-x:auto;
  }
}

/* ============================================================
   v1.5.0 — 手機抽屜滿版、語言移到頂部、彈窗與貨幣整理
   ============================================================ */

/* 抽屜：手機滿版 */
@media (max-width:1100px){
  .jxh-drawer{
    width:100%;max-width:none;
    border-left:0;
  }
  .jxh-drawer-top{
    height:56px;
    padding:0 16px 0 20px;
    border-bottom:1px solid var(--jxh-line,#e4e4e2);
  }
}


.jxh-drawer-x{
  width:36px;height:36px;
  border-radius:50%;
  transition:background 180ms;
}
.jxh-drawer-x:hover{background:rgba(0,0,0,.05)}
.jxh-drawer-x svg{width:18px;height:18px;stroke-width:1.5}

/* 彈窗關閉鈕：小一點、不要外框 */
.jxh-modal-x{
  top:16px;right:16px;
  width:34px;height:34px;
  border:0 !important;background:none;
  opacity:.4;
}
.jxh-modal-x:hover{opacity:1;background:rgba(0,0,0,.05)}
.jxh-modal-x svg{width:17px;height:17px;stroke-width:1.5}


/* ============================================================
   v1.5.1 — 抽屜項目等距、貨幣清單、彈窗收尾
   ============================================================ */

/* 抽屜標題 */
.jxh-drawer-title{
  font-size:13px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--jxh-soft,#5a5a58);
}

/* 抽屜項目：有沒有下拉箭頭都一樣高、一樣間距 */
.jxh-drawer-body{padding:0 20px 40px}
.jxh-acc{border-bottom:1px solid var(--jxh-line,#e4e4e2)}
.jxh-acc:last-child{border-bottom:0}
.jxh-acc-btn,
a.jxh-acc-btn{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
  min-height:56px;
  padding:0;
  font-size:16px;line-height:1.4;
  text-align:left;
  box-sizing:border-box;
}
.jxh-acc-btn .chev{flex:0 0 auto;margin-left:12px}
.jxh-acc-panel{padding:0 0 18px}

/* 抽屜底部的語言 */
.jxh-drawer-foot{justify-content:flex-start}
.jxh-drawer-foot .jxh-region{border:0;padding:6px 0;font-size:15px}
.jxh-drawer-foot .jxh-region:hover{background:none}
.jxh-drawer-foot .jxh-region svg{width:16px;height:16px;opacity:.6}

/* 彈窗：語言與貨幣兩段一致 */
.jxh-modal-list a{padding:15px 4px}

/* 沒有自製清單時，退回 WCML 原生下拉：至少把框做好 */
.jxh-cur--modal select{
  width:100%;
  padding:13px 40px 13px 14px;
  font:inherit;font-size:15px;color:var(--jxh-ink);
  background:transparent;
  border:1px solid var(--jxh-line);
  border-radius:3px;
  cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:15px;
}
.jxh-cur--modal select:focus{outline:none;border-color:var(--jxh-ink)}

/* ============================================================
   登入／註冊彈窗
   ============================================================ */
.jxh-auth-panel{padding:44px 38px 34px}

.jxh-auth-tabs{
  display:flex;gap:26px;
  margin:0 0 26px;
  border-bottom:1px solid var(--jxh-line);
}
.jxh-auth-tab{
  position:relative;
  padding:0 0 13px;
  font:inherit;font-size:16px;font-weight:500;
  color:var(--jxh-soft);
  background:none;border:0;cursor:pointer;
  transition:color 180ms;
}
.jxh-auth-tab::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;
  height:2px;background:currentColor;
  transform:scaleX(0);transform-origin:center;
  transition:transform 260ms cubic-bezier(.4,0,.2,1);
}
.jxh-auth-tab:hover{color:var(--jxh-ink)}
.jxh-auth-tab.on{color:var(--jxh-ink)}
.jxh-auth-tab.on::after{transform:scaleX(1)}

.jxh-auth-form[hidden]{display:none}
.jxh-auth-lead{
  margin:0 0 20px;font-size:14px;line-height:1.7;color:var(--jxh-soft);
}

.jxh-field{display:block;margin-bottom:18px}
.jxh-field > span:first-child{
  display:block;margin-bottom:7px;
  font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--jxh-soft);
}
.jxh-field input[type="text"],
.jxh-field input[type="email"],
.jxh-field input[type="password"]{
  width:100%;box-sizing:border-box;
  padding:12px 2px;
  font:inherit;font-size:15px;color:var(--jxh-ink);
  background:none;
  border:0;border-bottom:1px solid var(--jxh-line);
  border-radius:0;
  transition:border-color 180ms;
}
.jxh-field input:focus{outline:none;border-bottom-color:var(--jxh-ink)}
.jxh-field input::placeholder{color:var(--jxh-soft);opacity:.6}
.jxh-field small{
  display:block;margin-top:6px;font-size:12px;color:var(--jxh-soft);
}
.jxh-field.has-error input{border-bottom-color:#c0392b}

.jxh-pw{position:relative;display:block}
.jxh-pw input{padding-right:36px !important}
.jxh-pw-eye{
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:30px;height:30px;display:grid;place-items:center;
  opacity:.4;transition:opacity 180ms;
}
.jxh-pw-eye:hover,.jxh-pw-eye.on{opacity:.9}
.jxh-pw-eye svg{width:18px;height:18px;stroke-width:1.3}

.jxh-auth-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:4px 0 24px;
}
.jxh-check{display:inline-flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.jxh-check input{width:16px;height:16px;accent-color:var(--jxh-ink);margin:0}

.jxh-link{
  font:inherit;font-size:14px;color:var(--jxh-soft);
  background:none;border:0;padding:0;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;
  transition:color 180ms;
}
.jxh-link:hover{color:var(--jxh-ink)}

.jxh-auth-submit{
  width:100%;
  padding:15px 20px;
  font:inherit;font-size:15px;font-weight:500;letter-spacing:.04em;
  color:var(--jxh-bg);background:var(--jxh-ink);
  border:0;border-radius:2px;cursor:pointer;
  transition:opacity 180ms;
}
.jxh-auth-submit:hover{opacity:.82}
.jxh-auth-submit[disabled]{opacity:.45;cursor:default}

.jxh-auth-back{display:block;margin:16px auto 0}
.jxh-auth-note{
  margin:16px 0 0;font-size:12.5px;line-height:1.7;color:var(--jxh-soft);
}
.jxh-auth-note a{text-decoration:underline;text-underline-offset:3px}

.jxh-auth-msg{
  margin:0 0 20px;padding:12px 14px;
  font-size:14px;line-height:1.6;border-radius:3px;
}
.jxh-auth-msg[hidden]{display:none}
.jxh-auth-msg.err{background:#fdf0ee;color:#a5341f}
.jxh-auth-msg.ok{background:#eef7ef;color:#2c6b38}

/* 蜜罐欄位：真人看不到 */
.jxh-hp{
  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;
}

@media (max-width:600px){
  .jxh-auth-panel{padding:34px 22px calc(26px + env(safe-area-inset-bottom,0px))}
  .jxh-auth-tabs{gap:20px;margin-bottom:22px}
}

/* 多幣別提示與行內切換器 */
.jxh-cur-notice{
  max-width:1680px;margin:0 auto 22px;
  padding:11px 16px;
  font-size:13.5px;line-height:1.6;
  color:#6b5a1f;background:#fdf8e7;
  border:1px solid #efe0ab;border-radius:3px;
}
.jxh-cur--inline{
  display:flex;flex-wrap:wrap;gap:6px 18px;
  font-size:13.5px;
}
.jxh-cur--inline a{
  color:var(--jxh-soft,#5a5a58);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color 180ms,border-color 180ms;
}
.jxh-cur--inline a:hover{color:var(--jxh-ink,#111)}
.jxh-cur--inline a.on{
  color:var(--jxh-ink,#111);font-weight:500;
  border-bottom-color:currentColor;
}

/* ============================================================
   商品列表
   ============================================================ */
/* 不要被外層容器裁掉：商品數量是動態的，
   外層若設了固定高度或 overflow:hidden，最後一排會被切。 */
.jxh-products,
.jxh-card,
.jxh-card-body{overflow:visible}

/* Elementor 的容器是 flex，元件若被壓縮就會溢出到頁尾底下。 */
.elementor-widget-jxh_products{
  width:100%;
  align-self:stretch;
  flex:0 0 auto;
  min-height:0;
}
.elementor-widget-jxh_products > .elementor-widget-container{
  height:auto;
  overflow:visible;
}

.jxh-products{
  --jxh-ink:#111;
  --jxh-soft:#5a5a58;
  --jxh-line:#e4e4e2;
  --jxh-cols:4;
  --jxh-ratio:3/4;
  --jxh-tr:420ms cubic-bezier(.22,1,.36,1);

  display:grid;
  grid-template-columns:repeat(var(--jxh-cols),minmax(0,1fr));
  column-gap:24px;
  row-gap:52px;
  font-family:inherit;
  color:var(--jxh-ink);
}
.jxh-products *{box-sizing:border-box}
.jxh-products a{text-decoration:none;color:inherit}

.jxh-card{display:flex;flex-direction:column;min-width:0}

/* 圖片區：固定比例，載入時不會跳動 */
.jxh-card-media{
  position:relative;display:block;
  aspect-ratio:var(--jxh-ratio);
  overflow:hidden;
  background:#f4f4f2;
  isolation:isolate;
}
/* 不支援 aspect-ratio 的瀏覽器：至少給一個高度，不會整塊塌掉 */
@supports not (aspect-ratio:1/1){
  .jxh-card-media{min-height:200px}
}
.jxh-img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:opacity var(--jxh-tr),transform var(--jxh-tr);
  will-change:opacity,transform;
}
.jxh-img--none{background:#f0f0ee}
.jxh-img--alt{opacity:0}

/* 滑過：換第二張 */
.jxh-hover-swap .jxh-card-media:hover .jxh-img--main{opacity:0}
.jxh-hover-swap .jxh-card-media:hover .jxh-img--alt{opacity:1}

/* 滑過：緩慢放大 */
.jxh-hover-zoom .jxh-card-media:hover .jxh-img--main{transform:scale(1.045)}

/* 標籤 */
.jxh-badge{
  position:absolute;top:12px;left:12px;z-index:2;
  padding:6px 10px;
  font-size:10.5px;font-weight:500;letter-spacing:.06em;
  line-height:1;text-transform:uppercase;
  white-space:nowrap;
  border-radius:2px;
}
.jxh-badge--out{background:rgba(17,17,17,.88);color:#fff}
.jxh-badge--sale{background:#fff;color:#111;border:1px solid #111}

/* 文字區 */
.jxh-card-body{padding:16px 2px 0}
.jxh-card-cat{
  display:block;margin-bottom:6px;
  font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--jxh-soft);
}
.jxh-card-title{
  margin:0 0 7px;
  font-size:15px;font-weight:400;line-height:1.45;
  letter-spacing:.01em;
}
.jxh-card-title a{
  background-image:linear-gradient(currentColor,currentColor);
  background-size:0 1px;
  background-repeat:no-repeat;
  background-position:0 100%;
  transition:background-size 300ms cubic-bezier(.4,0,.2,1);
  padding-bottom:1px;
}
.jxh-card:hover .jxh-card-title a{background-size:100% 1px}

.jxh-card-price{
  font-size:14px;color:var(--jxh-soft);
  letter-spacing:.02em;
}
.jxh-card-price del{opacity:.5;margin-right:6px}
.jxh-card-price ins{text-decoration:none;color:var(--jxh-ink)}
.jxh-card-price .woocommerce-Price-currencySymbol{font-size:.9em}

/* 加入購物車 */
.jxh-card-cart{margin-top:12px}
.jxh-card-cart .button,
.jxh-card-cart .added_to_cart{
  display:inline-block;
  font:inherit;font-size:13.5px;letter-spacing:.03em;
  color:var(--jxh-ink);
  background:none;border:0;padding:0;
  border-bottom:1px solid currentColor;
  border-radius:0;
  cursor:pointer;
  transition:opacity 180ms;
}
.jxh-card-cart .button:hover{opacity:.55;background:none}
.jxh-card-cart .button.loading{opacity:.45}
.jxh-card-cart .added_to_cart{margin-left:12px;color:var(--jxh-soft)}

/* 外框按鈕 */
.jxh-btn-outline .jxh-card-cart .button{
  padding:10px 20px;
  border:1px solid currentColor;
  border-radius:2px;
}
.jxh-btn-outline .jxh-card-cart .button:hover{
  opacity:1;background:var(--jxh-ink);color:#fff;
}

/* 實心按鈕 */
.jxh-btn-solid .jxh-card-cart .button{
  padding:11px 20px;
  background:var(--jxh-ink);color:#fff;
  border:1px solid var(--jxh-ink);border-radius:2px;
}
.jxh-btn-solid .jxh-card-cart .button:hover{opacity:.85;background:var(--jxh-ink)}

/* 滑過才顯示 */
@media (hover:hover) and (min-width:1025px){
  .jxh-reveal-yes .jxh-card-cart{
    opacity:0;transform:translateY(4px);
    transition:opacity 260ms,transform 260ms;
  }
  .jxh-reveal-yes .jxh-card:hover .jxh-card-cart,
  .jxh-reveal-yes .jxh-card:focus-within .jxh-card-cart{
    opacity:1;transform:none;
  }
}

.jxh-products-empty{
  padding:60px 20px;text-align:center;
  font-size:15px;color:#5a5a58;
}

/* 分頁 */
.jxh-pagination{
  display:flex;justify-content:center;gap:4px;
  margin:56px 0 0;
}
.jxh-pagination .page-numbers{
  min-width:38px;height:38px;
  display:inline-grid;place-items:center;
  padding:0 10px;
  font-size:14px;color:#5a5a58;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color 180ms,border-color 180ms;
}
.jxh-pagination .page-numbers:hover{color:#111}
.jxh-pagination .page-numbers.current{
  color:#111;font-weight:500;border-bottom-color:currentColor;
}

@media (max-width:1024px){
  .jxh-products{column-gap:18px;row-gap:40px}
}
@media (max-width:767px){
  .jxh-products{column-gap:12px;row-gap:34px}
  .jxh-card-body{padding-top:12px}
  .jxh-card-title{font-size:14px}
  .jxh-card-price{font-size:13px}
  .jxh-card-cart .button{font-size:13px}
  .jxh-badge{top:8px;left:8px;padding:4px 8px;font-size:10px}
  /* 手機沒有 hover，第二張圖不載入也不顯示 */
  .jxh-img--alt{display:none}
}

@media (prefers-reduced-motion:reduce){
  .jxh-img,.jxh-card-title a,.jxh-card-cart{transition:none !important}
}

/* ============================================================
   單一商品頁版面
   ============================================================ */
.jxh-sp{
  --jxh-ink:#111;
  --jxh-soft:#5a5a58;
  --jxh-line:#e4e4e2;
  --jxh-sp-split:60%;
  --jxh-sp-ratio:3/4;
  --jxh-sp-top:100px;
  --jxh-clamp:6;

  display:flex;
  align-items:flex-start;
  gap:48px;
  color:var(--jxh-ink);
  font-family:inherit;
}
.jxh-sp *{box-sizing:border-box}
.jxh-sp a{color:inherit;text-decoration:none}
.jxh-sp button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.jxh-sp svg{fill:none !important;stroke:currentColor;stroke-width:1.4;
  stroke-linecap:round;stroke-linejoin:round;display:block}

/* ---------- 左：相簿 ---------- */
.jxh-sp-media{
  position:relative;
  flex:0 0 var(--jxh-sp-split);
  max-width:var(--jxh-sp-split);
  min-width:0;
}
.jxh-sp-track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;-ms-overflow-style:none;
}
.jxh-sp-track::-webkit-scrollbar{display:none}
.jxh-sp-slide{
  flex:0 0 100%;
  margin:0;
  scroll-snap-align:center;
  position:relative;
  aspect-ratio:var(--jxh-sp-ratio);
  background:#f4f4f2;
  overflow:hidden;
}
.jxh-sp-img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;display:block;
}

/* 直式堆疊 */
.jxh-sp--stack .jxh-sp-track{
  display:block;overflow:visible;scroll-snap-type:none;
}
.jxh-sp--stack .jxh-sp-slide{width:100%;margin-bottom:8px}
.jxh-sp--stack .jxh-sp-nav,
.jxh-sp--stack .jxh-sp-count,
.jxh-sp--stack .jxh-sp-thumbs{display:none}

/* 左右箭頭 */
.jxh-sp-nav{
  position:absolute;top:50%;z-index:3;
  width:44px;height:44px;margin-top:-22px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.9);
  border-radius:50%;
  opacity:0;
  transition:opacity 220ms,background 180ms;
}
.jxh-sp-media:hover .jxh-sp-nav{opacity:1}
.jxh-sp-nav:hover{background:#fff}
.jxh-sp-nav svg{width:18px;height:18px}
.jxh-sp-prev{left:16px}
.jxh-sp-next{right:16px}
.jxh-sp-nav[disabled]{opacity:0 !important;pointer-events:none}

/* 計數與放大 */
.jxh-sp-tools{
  position:absolute;right:16px;bottom:16px;z-index:3;
  display:flex;align-items:center;gap:10px;
}
.jxh-sp-count{
  padding:6px 12px;
  font-size:12px;letter-spacing:.06em;
  background:rgba(255,255,255,.9);border-radius:100px;
  font-variant-numeric:tabular-nums;
}
.jxh-sp-zoom{
  width:38px;height:38px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.9);
  border-radius:50%;
  transition:background 180ms;
}
.jxh-sp-zoom:hover{background:#fff}
.jxh-sp-zoom svg{width:17px;height:17px}

/* 縮圖列 */
.jxh-sp-thumbs{
  display:flex;gap:8px;
  margin-top:10px;
  overflow-x:auto;
  scrollbar-width:none;-ms-overflow-style:none;
}
.jxh-sp-thumbs::-webkit-scrollbar{display:none}
.jxh-sp-thumb{
  flex:0 0 64px;
  aspect-ratio:1/1;
  overflow:hidden;
  opacity:.45;
  transition:opacity 200ms;
  background:#f4f4f2;
}
.jxh-sp-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.jxh-sp-thumb:hover{opacity:.8}
.jxh-sp-thumb.on{opacity:1}

/* ---------- 右：資訊 ---------- */
.jxh-sp-info{
  flex:1 1 auto;min-width:0;
  position:sticky;top:var(--jxh-sp-top);
  max-height:calc(100vh - var(--jxh-sp-top) - 24px);
  display:flex;flex-direction:column;
}
.jxh-sp-scroll{
  flex:1 1 auto;min-height:0;
  overflow-y:auto;
  padding:0 4px 24px 0;
  scrollbar-width:thin;
}
.jxh-sp-scroll::-webkit-scrollbar{width:3px}
.jxh-sp-scroll::-webkit-scrollbar-thumb{background:var(--jxh-line);border-radius:3px}

.jxh-sp-cat{
  display:inline-block;margin-bottom:10px;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--jxh-soft);
}
.jxh-sp-cat:hover{color:var(--jxh-ink)}
.jxh-sp-title{
  margin:0 0 12px;
  font-size:26px;font-weight:400;line-height:1.3;letter-spacing:.01em;
}
.jxh-sp-price{
  margin-bottom:26px;
  font-size:18px;color:var(--jxh-ink);
}
.jxh-sp-price del{opacity:.45;margin-right:8px;font-size:.88em}
.jxh-sp-price ins{text-decoration:none}

.jxh-sp-desc{position:relative}
.jxh-sp-desc-inner{
  font-size:14.5px;line-height:1.85;color:var(--jxh-soft);
}
.jxh-sp-desc-inner p{margin:0 0 1em}
.jxh-sp-desc-inner ul{padding-left:1.1em;margin:0 0 1em}
.jxh-sp-desc-inner li{margin-bottom:.35em}
.jxh-sp-desc-inner img{max-width:100%;height:auto}
.jxh-sp-more{display:none}

.jxh-sp-sku{
  margin-top:22px;padding-top:18px;
  border-top:1px solid var(--jxh-line);
  font-size:12px;letter-spacing:.06em;color:var(--jxh-soft);
}

/* ---------- 購買區 ---------- */
.jxh-sp-buy{
  flex:0 0 auto;
  padding-top:18px;
  border-top:1px solid var(--jxh-line);
  background:#fff;
}
.jxh-sp-buy-price{display:none}

.jxh-sp-buy form.cart{
  display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin:0;
}
.jxh-sp-buy .quantity{display:flex;align-items:stretch;border:1px solid var(--jxh-line)}
.jxh-sp-buy .quantity input[type="number"]{
  width:62px;text-align:center;
  font:inherit;font-size:15px;
  border:0;background:none;
  -moz-appearance:textfield;
}
.jxh-sp-buy .quantity input::-webkit-outer-spin-button,
.jxh-sp-buy .quantity input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.jxh-sp-buy .single_add_to_cart_button{
  flex:1 1 180px;
  min-height:52px;padding:14px 28px;
  font:inherit;font-size:15px;font-weight:500;letter-spacing:.06em;
  color:#fff;background:var(--jxh-ink);
  border:1px solid var(--jxh-ink);border-radius:2px;
  cursor:pointer;
  transition:opacity 180ms;
}
.jxh-sp-buy .single_add_to_cart_button:hover{opacity:.85}
.jxh-sp-buy .single_add_to_cart_button.disabled{opacity:.4;cursor:not-allowed}

/* 可變商品的選項 */
.jxh-sp-buy .variations{width:100%;margin-bottom:14px;border-collapse:collapse}
.jxh-sp-buy .variations th,
.jxh-sp-buy .variations td{padding:6px 0;text-align:left;vertical-align:middle}
.jxh-sp-buy .variations label{font-size:12px;letter-spacing:.06em;color:var(--jxh-soft)}
.jxh-sp-buy .variations select{
  width:100%;padding:11px 12px;
  font:inherit;font-size:14px;
  border:1px solid var(--jxh-line);border-radius:2px;background:none;
}
.jxh-sp-buy .woocommerce-variation-price{margin-bottom:12px;font-size:17px}

/* ---------- 燈箱 ---------- */
.jxh-lb{
  position:fixed;inset:0;z-index:400;
  background:rgba(12,12,12,.96);
  display:flex;align-items:center;
}
.jxh-lb[hidden]{display:none}
.jxh-lb-track{
  display:flex;width:100%;height:100%;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;-ms-overflow-style:none;
}
.jxh-lb-track::-webkit-scrollbar{display:none}
.jxh-lb-item{
  flex:0 0 100%;height:100%;
  scroll-snap-align:center;
  display:grid;place-items:center;
  padding:48px 20px;
}
.jxh-lb-item img{
  max-width:100%;max-height:100%;
  object-fit:contain;display:block;
  cursor:zoom-in;
  transition:transform 300ms cubic-bezier(.22,1,.36,1);
}
.jxh-lb-item img.zoomed{cursor:zoom-out;transform:scale(2)}
.jxh-lb-x{
  position:absolute;top:18px;right:18px;z-index:2;
  width:42px;height:42px;
  display:grid;place-items:center;
  color:#fff;background:rgba(255,255,255,.12);
  border:0;border-radius:50%;cursor:pointer;
}
.jxh-lb-x svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5}
.jxh-lb-count{
  position:absolute;bottom:22px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.75);font-size:12px;letter-spacing:.08em;
  font-variant-numeric:tabular-nums;
}

/* ---------- 平板 ---------- */
@media (max-width:1024px){
  .jxh-sp{gap:28px}
  .jxh-sp-title{font-size:22px}
  .jxh-sp-thumb{flex-basis:54px}
}

/* ---------- 手機 ---------- */
@media (max-width:767px){
  .jxh-sp{
    display:block;
  }
  .jxh-sp-media{
    flex:none;max-width:none;width:100%;
    margin:0 calc(var(--jxh-sp-bleed,0px) * -1);
  }
  .jxh-sp-nav{display:none}
  .jxh-sp-thumbs{display:none}
  .jxh-sp-tools{right:12px;bottom:12px}

  .jxh-sp-info{
    position:static;max-height:none;display:block;
    padding-top:22px;
  }
  .jxh-sp-scroll{overflow:visible;padding:0}
  .jxh-sp-title{font-size:21px}
  .jxh-sp-price{font-size:17px;margin-bottom:20px}

  /* 閱讀更多 */
  .jxh-sp-desc-inner{
    display:-webkit-box;
    -webkit-line-clamp:var(--jxh-clamp);
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .jxh-sp-desc.has-more .jxh-sp-more{
    display:inline-block;margin-top:10px;
    font-size:13.5px;color:var(--jxh-ink);
    border-bottom:1px solid currentColor;
  }

  /* 固定購買列 */
  .jxh-mbar-yes .jxh-sp-buy{
    position:fixed;left:0;right:0;bottom:0;z-index:180;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
    border-top:1px solid var(--jxh-line);
    background:#fff;
    box-shadow:0 -6px 24px -12px rgba(0,0,0,.22);
  }
  .jxh-mbar-yes .jxh-sp-buy-price{
    display:block;margin-bottom:8px;
    font-size:15px;font-weight:500;
  }
  .jxh-mbar-yes .jxh-sp-buy .variations{margin-bottom:10px}
  .jxh-mbar-yes .jxh-sp-buy .single_add_to_cart_button{min-height:48px;padding:13px 20px}
  /* 頁面底部留空間，內容才不會被購買列蓋住 */
  .jxh-mbar-yes{padding-bottom:110px}
}

@media (prefers-reduced-motion:reduce){
  .jxh-sp-track,.jxh-lb-track{scroll-behavior:auto}
  .jxh-lb-item img{transition:none}
}

/* ============================================================
   v1.9.1 — 商品頁修正
   ============================================================ */

/* 桌機／平板：用高度決定相簿大小，不用比例 */
@media (min-width:768px){
  .jxh-sp-slide{
    aspect-ratio:auto;
    height:var(--jxh-sp-h,80vh);
  }
  .jxh-sp--stack .jxh-sp-slide{height:auto;aspect-ratio:var(--jxh-sp-ratio)}
  .jxh-sp-info{
    max-height:calc(var(--jxh-sp-h,80vh) + 12px);
  }
}

/* 數量欄位：把數字找回來。
   有些佈景把 input 換成 text 或壓掉字級，這裡一次蓋掉。 */
.jxh-sp-buy .quantity{
  align-items:center;
  border:1px solid var(--jxh-line);
  border-radius:2px;
  overflow:hidden;
}
.jxh-sp-buy .quantity input.qty,
.jxh-sp-buy .quantity input[type="number"],
.jxh-sp-buy .quantity input[type="text"]{
  width:56px !important;
  min-width:56px;
  height:auto;
  padding:14px 0 !important;
  font:inherit !important;
  font-size:15px !important;
  line-height:1.2 !important;
  color:var(--jxh-ink) !important;
  text-align:center !important;
  background:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  opacity:1 !important;
  visibility:visible !important;
  -moz-appearance:textfield;
  appearance:textfield;
}
.jxh-sp-buy .quantity input::-webkit-outer-spin-button,
.jxh-sp-buy .quantity input::-webkit-inner-spin-button{
  -webkit-appearance:none;margin:0;
}
/* 佈景自己加的加減鈕 */
.jxh-sp-buy .quantity .plus,
.jxh-sp-buy .quantity .minus,
.jxh-sp-buy .quantity button{
  width:44px;min-height:52px;
  display:grid;place-items:center;
  font:inherit;font-size:17px;line-height:1;
  color:var(--jxh-ink);
  background:none;border:0;cursor:pointer;
  transition:opacity 160ms;
}
.jxh-sp-buy .quantity .plus:hover,
.jxh-sp-buy .quantity .minus:hover,
.jxh-sp-buy .quantity button:hover{opacity:.55}

/* 放大鈕漣漪 */
.jxh-sp-zoom{position:relative;overflow:visible}
.jxh-sp-zoom.has-ripple::before,
.jxh-sp-zoom.has-ripple::after{
  content:"";
  position:absolute;inset:0;
  border-radius:50%;
  border:1px solid currentColor;
  pointer-events:none;
  animation:jxh-ripple 2600ms cubic-bezier(.22,1,.36,1) infinite;
}
.jxh-sp-zoom.has-ripple::after{animation-delay:900ms}
.jxh-sp-zoom.has-ripple:hover::before,
.jxh-sp-zoom.has-ripple:hover::after{animation-play-state:paused;opacity:0}
@keyframes jxh-ripple{
  0%   {transform:scale(1);opacity:.5}
  70%  {transform:scale(2.1);opacity:0}
  100% {transform:scale(2.1);opacity:0}
}

/* 手機固定購買列：貼齊底部 */
@media (max-width:767px){
  .jxh-mbar-yes .jxh-sp-buy{
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  }
  .jxh-mbar-yes .jxh-sp-buy form.cart{gap:8px}
  .jxh-mbar-yes .jxh-sp-buy .quantity input.qty,
  .jxh-mbar-yes .jxh-sp-buy .quantity input[type="number"],
  .jxh-mbar-yes .jxh-sp-buy .quantity input[type="text"]{
    padding:12px 0 !important;width:48px !important;min-width:48px;
  }
  .jxh-mbar-yes .jxh-sp-buy .quantity .plus,
  .jxh-mbar-yes .jxh-sp-buy .quantity .minus,
  .jxh-mbar-yes .jxh-sp-buy .quantity button{width:38px;min-height:46px}
  .jxh-mbar-yes .jxh-sp-buy .single_add_to_cart_button{min-height:46px}
  .jxh-mbar-yes{padding-bottom:104px}
}

@media (prefers-reduced-motion:reduce){
  .jxh-sp-zoom.has-ripple::before,
  .jxh-sp-zoom.has-ripple::after{animation:none;opacity:0}
}

/* ============================================================
   v1.9.2 — 相簿滿一屏
   ============================================================ */
@media (min-width:768px){
  /* 扣掉 header 之後剛好碰到底。
     svh 是「最小視窗高度」，手機網址列伸縮時不會跳動；
     不支援的瀏覽器用 vh 當後援。 */
  .jxh-sp--fill .jxh-sp-slide{
    height:calc(100vh - var(--jxh-sp-top,100px));
    height:calc(100svh - var(--jxh-sp-top,100px));
  }
  .jxh-sp--fill .jxh-sp-info{
    max-height:calc(100vh - var(--jxh-sp-top,100px));
    max-height:calc(100svh - var(--jxh-sp-top,100px));
  }
  /* 直式堆疊時不套，那個本來就是往下捲 */
  .jxh-sp--fill.jxh-sp--stack .jxh-sp-slide{
    height:auto;aspect-ratio:var(--jxh-sp-ratio);
  }
}

/* ============================================================
   v1.9.3 — 手機圖片高度改用 padding，購買列移到 body
   ============================================================ */

/* aspect-ratio 在部分行動瀏覽器算不出高度，整塊會塌成 0。
   改成 padding 百分比撐開，所有瀏覽器都吃。 */
.jxh-card-media{
  aspect-ratio:auto;
  height:0;
  padding-top:var(--jxh-pad,100%);   /* 預設正方形 */
}
.jxh-sp-slide{
  aspect-ratio:auto;
  height:0;
  padding-top:var(--jxh-sp-pad,133.3333%);
}
@supports not (aspect-ratio:1/1){
  .jxh-card-media{min-height:0}
}

/* 桌機／平板的商品頁改回用高度 */
@media (min-width:768px){
  .jxh-sp-slide{
    height:var(--jxh-sp-h,80vh);
    padding-top:0;
  }
  .jxh-sp--fill .jxh-sp-slide{
    height:calc(100vh - var(--jxh-sp-top,100px));
    height:calc(100svh - var(--jxh-sp-top,100px));
    padding-top:0;
  }
  .jxh-sp--stack .jxh-sp-slide{
    height:0;padding-top:var(--jxh-sp-pad,133.3333%);
  }
  .jxh-sp--fill.jxh-sp--stack .jxh-sp-slide{
    height:0;padding-top:var(--jxh-sp-pad,133.3333%);
  }
}

/* 購買列被移到 <body> 底下之後的樣式。
   放在 body 直屬層才不會被 Elementor 容器的 transform 影響，
   iOS 上 position:fixed 遇到 transform 祖先會變成相對定位，
   那就是「滑動時跑掉」的原因。 */
.jxh-sp-buy--docked{
  position:fixed;left:0;right:0;bottom:0;z-index:200;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  border-top:1px solid #e4e4e2;
  background:#fff;
  box-shadow:0 -6px 24px -12px rgba(0,0,0,.22);
  --jxh-ink:#111;
  --jxh-line:#e4e4e2;
}
.jxh-sp-buy--docked .jxh-sp-buy-price{
  display:block;margin-bottom:8px;
  font-size:15px;font-weight:500;color:var(--jxh-ink);
}
.jxh-sp-buy--docked form.cart{
  display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin:0;
}
.jxh-sp-buy--docked .quantity{
  display:flex;align-items:center;
  border:1px solid var(--jxh-line);border-radius:2px;overflow:hidden;
}
.jxh-sp-buy--docked .quantity input.qty,
.jxh-sp-buy--docked .quantity input[type="number"],
.jxh-sp-buy--docked .quantity input[type="text"]{
  width:48px !important;min-width:48px;
  padding:12px 0 !important;
  font:inherit !important;font-size:15px !important;
  color:var(--jxh-ink) !important;text-align:center !important;
  background:none !important;border:0 !important;box-shadow:none !important;
  -moz-appearance:textfield;appearance:textfield;
}
.jxh-sp-buy--docked .quantity input::-webkit-outer-spin-button,
.jxh-sp-buy--docked .quantity input::-webkit-inner-spin-button{
  -webkit-appearance:none;margin:0;
}
.jxh-sp-buy--docked .quantity .plus,
.jxh-sp-buy--docked .quantity .minus,
.jxh-sp-buy--docked .quantity button{
  width:38px;min-height:46px;
  display:grid;place-items:center;
  font:inherit;font-size:17px;line-height:1;
  color:var(--jxh-ink);background:none;border:0;cursor:pointer;
}
.jxh-sp-buy--docked .single_add_to_cart_button{
  flex:1 1 150px;min-height:46px;padding:13px 20px;
  font:inherit;font-size:15px;font-weight:500;letter-spacing:.05em;
  color:#fff;background:var(--jxh-ink);
  border:1px solid var(--jxh-ink);border-radius:2px;cursor:pointer;
}
.jxh-sp-buy--docked .variations{width:100%;margin-bottom:10px;border-collapse:collapse}
.jxh-sp-buy--docked .variations select{
  width:100%;padding:10px 12px;font:inherit;font-size:14px;
  border:1px solid var(--jxh-line);border-radius:2px;background:none;
}
body.jxh-has-bar{padding-bottom:104px}

/* ============================================================
   詳細內容彈窗（閱讀更多）
   ============================================================ */
.jxh-sheet{
  position:fixed;inset:0;z-index:300;
  display:flex;align-items:flex-end;justify-content:center;
}
.jxh-sheet[hidden]{display:none}
.jxh-sheet-backdrop{
  position:absolute;inset:0;
  background:rgba(17,17,17,.42);
  animation:jxh-fade 260ms ease both;
}
.jxh-sheet-panel{
  position:relative;
  width:100%;max-width:620px;
  max-height:86vh;max-height:86svh;
  display:flex;flex-direction:column;
  background:#fff;
  border-radius:14px 14px 0 0;
  animation:jxh-rise 320ms cubic-bezier(.22,1,.36,1) both;
  overflow:hidden;
}
@keyframes jxh-fade{from{opacity:0}to{opacity:1}}
@keyframes jxh-rise{from{transform:translateY(22px);opacity:0}to{transform:none;opacity:1}}

.jxh-sheet-top{
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 20px 14px;
  border-bottom:1px solid #e4e4e2;
}
.jxh-sheet-title{
  font-size:15px;font-weight:500;line-height:1.4;
  color:#111;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.jxh-sheet-x{
  flex:0 0 auto;
  display:inline-flex;align-items:center;gap:6px;
  font:inherit;font-size:13px;color:#5a5a58;
  background:none;border:0;padding:4px 0;cursor:pointer;
  transition:color 180ms;
}
.jxh-sheet-x:hover{color:#111}
.jxh-sheet-x svg{
  width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;
}

.jxh-sheet-body{
  flex:1 1 auto;min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:20px 20px calc(28px + env(safe-area-inset-bottom,0px));
  font-size:14.5px;line-height:1.9;color:#5a5a58;
}
.jxh-sheet-body p{margin:0 0 1.1em}
.jxh-sheet-body p:last-child{margin-bottom:0}
.jxh-sheet-body ul,
.jxh-sheet-body ol{padding-left:1.2em;margin:0 0 1.1em}
.jxh-sheet-body li{margin-bottom:.4em}
.jxh-sheet-body strong{color:#111}
.jxh-sheet-body img{max-width:100%;height:auto;border-radius:3px}
.jxh-sheet-body h2,
.jxh-sheet-body h3,
.jxh-sheet-body h4{color:#111;margin:1.6em 0 .6em;font-weight:500}

/* 桌機置中 */
@media (min-width:768px){
  .jxh-sheet{align-items:center}
  .jxh-sheet-panel{
    border-radius:4px;
    max-height:78vh;
    animation-name:jxh-pop;
  }
  @keyframes jxh-pop{
    from{transform:scale(.97);opacity:0}
    to{transform:none;opacity:1}
  }
  .jxh-sheet-top{padding:22px 26px 16px}
  .jxh-sheet-body{padding:24px 26px 30px}
}

@media (prefers-reduced-motion:reduce){
  .jxh-sheet-backdrop,.jxh-sheet-panel{animation:none}
}

/* ============================================================
   v1.9.5 — 數量欄位扳正、比例交給 Elementor
   ============================================================ */

/* 佈景主題把 + − 用絕對定位擺在數量框上，數字就被壓在底下。
   這裡把整組拉回一般流排版，用 order 決定左中右。 */
.jxh-sp-buy .quantity,
.jxh-sp-buy--docked .quantity{
  position:relative !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:stretch !important;
  width:auto !important;
  max-width:none !important;
  height:auto !important;
  overflow:hidden;
}
.jxh-sp-buy .quantity > *,
.jxh-sp-buy--docked .quantity > *{
  position:static !important;
  float:none !important;
  transform:none !important;
  top:auto !important;right:auto !important;
  bottom:auto !important;left:auto !important;
  margin:0 !important;
}
.jxh-sp-buy .quantity .minus,
.jxh-sp-buy .quantity .qty-minus,
.jxh-sp-buy .quantity [class*="minus"],
.jxh-sp-buy--docked .quantity .minus,
.jxh-sp-buy--docked .quantity [class*="minus"]{order:1 !important}

.jxh-sp-buy .quantity input,
.jxh-sp-buy--docked .quantity input{order:2 !important}

.jxh-sp-buy .quantity .plus,
.jxh-sp-buy .quantity .qty-plus,
.jxh-sp-buy .quantity [class*="plus"],
.jxh-sp-buy--docked .quantity .plus,
.jxh-sp-buy--docked .quantity [class*="plus"]{order:3 !important}

/* 佈景可能用 ::before/::after 畫 + −，那就不需要我們再管字級 */
.jxh-sp-buy .quantity label,
.jxh-sp-buy--docked .quantity label{display:none !important}

/* ============================================================
   v1.9.6 — 自建數量欄位
   ============================================================ */
.jxh-sp-buy .quantity.jxh-qty,
.jxh-sp-buy--docked .quantity.jxh-qty{
  display:flex !important;
  flex-direction:row !important;
  align-items:stretch !important;
  width:auto !important;
  max-width:none !important;
  height:auto !important;
  position:relative !important;
  border:1px solid var(--jxh-line,#e4e4e2);
  border-radius:2px;
  overflow:hidden;
  background:none;
}
.jxh-qty .jxh-qty-btn{
  flex:0 0 auto;
  width:42px;min-height:52px;
  display:grid;place-items:center;
  font:inherit;font-size:17px;line-height:1;
  color:var(--jxh-ink,#111);
  background:none;border:0;padding:0;margin:0;
  cursor:pointer;
  transition:opacity 160ms;
  -webkit-appearance:none;appearance:none;
}
.jxh-qty .jxh-qty-btn:hover{opacity:.5}
.jxh-qty .jxh-qty-btn:active{opacity:.35}

.jxh-qty input{
  flex:0 0 auto;
  order:0 !important;
  position:static !important;
  width:46px !important;min-width:46px !important;max-width:none !important;
  height:auto !important;
  padding:0 !important;margin:0 !important;
  font:inherit !important;font-size:15px !important;
  line-height:52px !important;
  color:var(--jxh-ink,#111) !important;
  text-align:center !important;
  background:none !important;
  border:0 !important;border-radius:0 !important;
  box-shadow:none !important;outline:none !important;
  opacity:1 !important;visibility:visible !important;
  -moz-appearance:textfield;appearance:textfield;
}
.jxh-qty input::-webkit-outer-spin-button,
.jxh-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.jxh-sp-buy--docked .jxh-qty .jxh-qty-btn{width:38px;min-height:46px}
.jxh-sp-buy--docked .jxh-qty input{width:42px !important;min-width:42px !important;line-height:46px !important}

/* ============================================================
   v1.9.8 — 商品頁圖片一定填滿
   ============================================================ */

/* 佈景主題常有 img{height:auto} 之類的通則，會讓圖片撐不滿容器，
   下方就露出灰底。這裡把尺寸鎖死，填滿方式再交給 object-fit。 */
.jxh-sp-img,
.jxh-card-media .jxh-img{
  position:absolute !important;
  top:0 !important;left:0 !important;
  right:0 !important;bottom:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
}
.jxh-sp-img{object-fit:cover;object-position:center}

/* 視窗縮放時圖片不會抖動 */
.jxh-sp-slide{contain:paint}
