/* --- variables.css --- */
/* SH Navigation System - CSS Variables & Base Settings */
:root {
    --sh-accent: #004982;
    --sh-dark: #242424;
    --sh-light: #f9f9f9;
    --sh-border: #e8e8e8;
    --sh-transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    --line-green: #06C755;
    --sh-sticky-size: 50px;
    --sh-logo-height: 50px;

    /* Footer Colors */
    --sh-footer-bg: #f8f8f8;
    --sh-footer-title: #242424;
    --sh-footer-text: #666666;
    --sh-footer-link: #555555;
    --sh-footer-link-hover: #004982;
    --sh-footer-border: #e8e8e8;
}

/* Alpine.js x-cloak */
[x-cloak] { display: none !important; }

/* 強制移除 Header 文字裝飾 */
.sh-header a,
.sh-header a:hover,
.sh-header a:active,
.sh-header a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.sh-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.sh-header {
    background: #f8f8f8 !important;
    width: 100%;
    z-index: 1000;
    font-family: 'Jost', 'Noto Sans TC', sans-serif;
    position: relative;
    box-shadow: none !important;
    border: none !important;
}

/* Icon base styles */
.sh-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- header.css --- */
/* SH Navigation System - Header Styles */
/* Top Bar */
.sh-top-bar {
    background: transparent;
    border-bottom: none;
    font-size: 13px;
    padding: 5px 0;
    color: #777;
    letter-spacing: 0.5px;
}

.sh-top-bar .sh-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-top-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
}

/* 頂部橫幅：客服專線前的英文站連結 */
.sh-top-bar .sh-lang-site-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: color 0.25s;
}

.sh-top-bar .sh-lang-site-link:hover {
    color: var(--sh-accent);
}

.sh-top-bar .sh-lang-site-link .sh-lang-globe {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

.sh-top-bar .sh-lang-site-label {
    letter-spacing: 0.02em;
}

.sh-top-bar a {
    text-decoration: none;
    color: inherit;
    transition: var(--sh-transition);
}

.sh-top-bar a:hover {
    color: var(--sh-accent);
}

.sh-top-nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-tag-premium {
    background: var(--line-green);
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-left: 15px;
    display: inline-block;
    transition: 0.3s;
}

.sh-tag-premium:hover {
    opacity: 0.85;
}

.sh-top-right .sh-tag-premium {
    margin-left: 0;
}

/* Main Header */
.sh-main-header {
    padding: 15px 0;
    border-bottom: none;
    transition: 0.3s;
    background: transparent;
}

.sh-main-header .sh-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.sh-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.sh-logo img {
    max-height: var(--sh-logo-height);
    width: auto;
    transition: 0.3s;
    display: block;
}

.sh-logo-sticky {
    display: none;
}

.sh-logo-sticky img {
    /* Sticky 狀態 LOGO 需維持原始比例（不要強制正方形裁切） */
    max-height: var(--sh-sticky-size);
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 4px;
}

/* --- navigation.css --- */
/* SH Navigation System - Navigation Menu Styles */
/* Sticky Menu / Main Nav Base */
.sh-bottom-nav .sh-container,
.sh-sticky-menu {
    display: none; /* Default hidden for sticky menu, shown via header classes */
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 0;
    align-items: stretch;
}

.sh-bottom-nav .sh-container {
    display: flex; /* Always shown for non-sticky */
    padding-bottom: 15px;
}

.sh-bottom-nav ul,
.sh-sticky-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    align-items: stretch;
}

.sh-bottom-nav li,
.sh-sticky-menu li {
    display: flex;
    align-items: center;
    position: relative;
}

.sh-bottom-nav>ul>li>a,
.sh-sticky-menu>ul>li>a {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none !important;
    color: #555;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    margin: 0;
    position: relative;
    box-shadow: none !important;
    border: none !important;
}

.sh-bottom-nav>ul>li>a:hover,
.sh-sticky-menu>ul>li>a:hover,
.sh-bottom-nav>ul>li.current-menu-item>a,
.sh-sticky-menu>ul>li.current-menu-item>a {
    color: var(--sh-accent);
}

/* Dropdown CSS */
.sh-bottom-nav .sub-menu,
.sh-sticky-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    flex-direction: column;
    border-top: 2px solid var(--sh-accent);
}

.sh-bottom-nav li:hover>.sub-menu,
.sh-sticky-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sh-bottom-nav .sub-menu a,
.sh-sticky-menu .sub-menu a {
    display: block;
    padding: 12px 25px;
    font-size: 14px;
    text-transform: none;
    color: #555;
    text-decoration: none !important;
    transition: 0.2s;
    font-weight: 500;
    border-bottom: none !important;
    box-shadow: none !important;
}

.sh-bottom-nav .sub-menu a:hover,
.sh-sticky-menu .sub-menu a:hover {
    color: var(--sh-accent);
    padding-left: 30px;
    background: var(--sh-light);
}

/* Menu Prefix Feature */
.sh-menu-prefix {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.sh-menu-prefix a,
.sh-menu-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    color: var(--sh-dark);
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.sh-menu-prefix:hover a,
.sh-menu-prefix a:hover {
    color: var(--sh-accent);
}

.sh-menu-prefix img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

/* Duplicate styles for mobile sub-menu - consider extracting to shared utilities */
.sh-bottom-nav li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sh-bottom-nav .sub-menu li {
    display: block;
    width: 100%;
}

.sh-bottom-nav .sub-menu li:after {
    display: none;
}

.sh-bottom-nav .sub-menu a {
    display: block;
    padding: 12px 25px;
    font-size: 14px;
    text-transform: none;
    color: #555;
    text-decoration: none !important;
    transition: 0.2s;
    font-weight: 500;
}

.sh-bottom-nav .sub-menu a:hover {
    color: var(--sh-accent);
    padding-left: 30px;
    background: var(--sh-light);
}

.sh-bottom-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
    border-radius: 8px;
    border-top: none;
}

/* --- bottom-nav.css --- */
/* ============================================
   SH Bottom Navigation - 獨立樣式
   不依賴主題 CSS，完全自給自足
   ============================================ */

/* 僅底部主導航列使用白底與上下邊線；吸頂選單在 main-header 內，底色由 sticky.css 與 .sh-header 繼承 */
.sh-bottom-nav {
  background: #ffffff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-family: 'Jost', 'Noto Sans TC', sans-serif;
  box-sizing: border-box;
  position: relative;
  z-index: 999;
  width: 100%;
  display: block;
}

.sh-bottom-nav *,
.sh-bottom-nav *::before,
.sh-bottom-nav *::after,
.sh-sticky-menu *,
.sh-sticky-menu *::before,
.sh-sticky-menu *::after {
  box-sizing: border-box;
}

.sh-bottom-nav .sh-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}

/* === 主選單 === */
.sh-bottom-nav > .sh-container > ul,
.sh-sticky-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.sh-bottom-nav > .sh-container > ul > li,
.sh-sticky-menu > ul > li {
  display: flex;
  align-items: stretch;
  position: relative;
}

.sh-bottom-nav > .sh-container > ul > li > a,
.sh-sticky-menu > ul > li > a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease;
  position: relative;
  line-height: 1.3;
  background: transparent;
  border: none !important;
}

.sh-bottom-nav > .sh-container > ul > li > a::after,
.sh-sticky-menu > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #004982;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sh-bottom-nav > .sh-container > ul > li > a:hover::after,
.sh-bottom-nav > .sh-container > ul > li.current-menu-item > a::after,
.sh-bottom-nav > .sh-container > ul > li.current-menu-ancestor > a::after,
.sh-sticky-menu > ul > li > a:hover::after,
.sh-sticky-menu > ul > li.current-menu-item > a::after,
.sh-sticky-menu > ul > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.sh-bottom-nav > .sh-container > ul > li > a:hover,
.sh-bottom-nav > .sh-container > ul > li.current-menu-item > a,
.sh-bottom-nav > .sh-container > ul > li.current-menu-ancestor > a,
.sh-sticky-menu > ul > li > a:hover,
.sh-sticky-menu > ul > li.current-menu-item > a,
.sh-sticky-menu > ul > li.current-menu-ancestor > a {
  color: #004982;
  background: rgba(0, 73, 130, 0.05);
}

/* 箭頭指示器（有子選單） */
.sh-bottom-nav > .sh-container > ul > li.menu-item-has-children > a > span > span::after,
.sh-sticky-menu > ul > li.menu-item-has-children > a > span > span::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.sh-bottom-nav
  > .sh-container
  > ul
  > li.menu-item-has-children:hover
  > a
  > span
  > span::after,
.sh-sticky-menu > ul > li.menu-item-has-children:hover > a > span > span::after {
  transform: rotate(180deg);
}

/* === 下拉子選單 === */
.sh-bottom-nav .sub-menu,
.sh-sticky-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1001;
  border-top: 3px solid #004982;
  flex-direction: column;
}

.sh-bottom-nav li:hover > .sub-menu,
.sh-sticky-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sh-bottom-nav .sub-menu li,
.sh-sticky-menu .sub-menu li {
  display: block;
  width: 100%;
}

.sh-bottom-nav .sub-menu > li > a,
.sh-sticky-menu .sub-menu > li > a {
  display: block;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  line-height: 1.4;
  border-left: 3px solid transparent;
  background: transparent;
  border-top: none !important;
  border-right: none !important;
}

.sh-bottom-nav .sub-menu > li > a:hover,
.sh-bottom-nav .sub-menu > li.current-menu-item > a,
.sh-sticky-menu .sub-menu > li > a:hover,
.sh-sticky-menu .sub-menu > li.current-menu-item > a {
  color: #004982;
  background: #faf8f6;
  border-left-color: #004982;
  padding-left: 28px;
}

/* 第三層子選單（如有） */
.sh-bottom-nav .sub-menu .sub-menu,
.sh-sticky-menu .sub-menu .sub-menu {
  top: -8px;
  left: 100%;
  margin-left: 0;
  border-radius: 10px;
  border-top: 3px solid #004982;
}

/* === 響應式：手機隱藏 === */
@media (max-width: 991px) {
  .sh-bottom-nav {
    display: none !important;
  }
}

/* === 導航間距微調 === */
@media (max-width: 1200px) {
  .sh-bottom-nav > .sh-container > ul > li > a {
    padding: 16px 14px;
    font-size: 14px;
  }
  .sh-sticky-menu > ul > li > a {
    padding: 16px 14px;
    font-size: 14px;
  }
}



/* --- search.css --- */
/* SH Navigation System - Search Bar Styles */
/* E-commerce Search Bar */
.sh-search-area {
    flex: 1 1 auto;
    max-width: 400px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.sh-search-form {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 40px !important;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: 0.3s border-color, 0.3s background, 0.3s box-shadow, 0.3s transform;
    width: 100%;
    height: 48px !important;
    overflow: hidden;
    margin: 0 !important;
}

.sh-search-form:focus-within {
    background: #fff;
    border-color: var(--sh-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.sh-search-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 0 20px;
    height: 100%;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--sh-dark);
    font-family: inherit;
    border-radius: 30px 0 0 30px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.sh-search-form input[type="search"]::placeholder {
    color: #999;
    font-weight: 400;
}

/* Live Search Dropdown */
.sh-search-area {
    position: relative;
}

.sh-search-btn {
    background: var(--sh-dark);
    color: #fff;
    border: none;
    padding: 0 22px;
    height: 40px !important;
    border-radius: 20px !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sh-search-btn:hover {
    background: var(--sh-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sh-search-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: block;
}

/* --- actions.css --- */
/* SH Navigation System - Action Buttons Styles */
/* Icon Actions */
.sh-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
    height: 100%;
}

/* Login Pill */
.sh-action-login {
    background: #fff;
    color: var(--sh-dark);
    padding: 12px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sh-action-login:hover {
    background: #fdfdfd;
    border-color: #dcdcdc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.sh-action-login svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Cart Pill */
.sh-action-cart {
    background: #111;
    color: #fff;
    padding: 13px 22px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 15px;
    position: relative;
}

.sh-action-cart:hover {
    background: #333;
}

.sh-action-cart svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* Cart Badge */
.sh-action-cart .sh-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: #004982;
    font-size: 12px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1;
    z-index: 2;
}

/* --- sticky.css --- */
/* SH Navigation System - Sticky Header Styles */
/* Sticky Fix */
.sh-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    animation: shSlideDown 0.5s;
    z-index: 1050;
    /* 只在吸頂狀態縮小 Logo/選單的整體視覺尺寸 */
    --sh-sticky-size: 40px;
}

/* WordPress 管理列（僅登入/管理員會出現）：
   吸頂時若仍 top:0 會與 admin bar / 下拉選單重疊 */
body.admin-bar .sh-header.is-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sh-header.is-sticky {
        top: 46px;
    }
}

.sh-header.is-sticky .sh-top-bar {
    display: none;
}

.sh-header.is-sticky .sh-main-header {
    padding: 15px 0;
}

.sh-header.is-sticky .sh-logo-main {
    display: none;
}

.sh-header.is-sticky .sh-logo-sticky {
    display: block;
}

/* 吸頂選單：預設隱藏（勿在 bottom-nav inline 內覆寫 display），僅吸頂時顯示並與 Header 同色底 */
.sh-main-header .sh-sticky-menu {
    display: none !important;
    background: transparent;
    border: none;
    box-shadow: none;
}

.sh-header.is-sticky .sh-main-header .sh-sticky-menu {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: stretch;
    justify-content: flex-start;
    background: transparent;
    border: none;
}

.sh-header.is-sticky .sh-bottom-nav {
    display: none;
}

.sh-header.is-sticky .sh-main-header .sh-container {
    gap: 15px;
}

.sh-header.is-sticky .sh-search-area {
    max-width: 250px;
}

.sh-header.is-sticky .sh-search-form {
    height: 40px !important;
}

.sh-header.is-sticky .sh-search-btn {
    height: 32px !important;
    padding: 0 15px;
}

.sh-header.is-sticky .sh-action-login,
.sh-header.is-sticky .sh-action-cart {
    padding: 8px 15px;
    font-size: 13px;
}

.sh-header.is-sticky .sh-action-login svg,
.sh-header.is-sticky .sh-action-cart svg {
    width: 18px;
    height: 18px;
}

.sh-header.is-sticky .sh-logo img {
    max-height: var(--sh-sticky-size);
}

/* 吸頂選單字體與高度微縮（避免吸頂過厚） */
.sh-header.is-sticky .sh-sticky-menu > ul > li > a {
    font-size: 14px;
    padding: 12px 16px;
}

.sh-header.is-sticky .sh-sticky-menu .sub-menu > li > a {
    font-size: 13px;
    padding: 10px 22px;
}

@keyframes shSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Marquee offset when header is sticky */
body.has-sh-marquee .sh-header.is-sticky {
    top: var(--sh-marquee-height, 0);
}

body.admin-bar.has-sh-marquee .sh-header.is-sticky {
    top: calc(32px + var(--sh-marquee-height, 0));
}

@media screen and (max-width: 782px) {
    body.admin-bar.has-sh-marquee .sh-header.is-sticky {
        top: calc(46px + var(--sh-marquee-height, 0));
    }
}

/* --- marquee.css --- */
/* SH Navigation System - Top Marquee */
.sh-marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    overflow: hidden;
    background: var(--sh-marquee-bg, #004982);
    color: var(--sh-marquee-text, #ffffff);
    font-size: var(--sh-marquee-font-size, 13px);
    line-height: 1.4;
    box-sizing: border-box;
}

body.admin-bar .sh-marquee {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sh-marquee {
        top: 46px;
    }
}

.sh-marquee--desktop {
    display: block;
}

.sh-marquee--mobile {
    display: none;
}

@media (max-width: 991px) {
    .sh-marquee--desktop {
        display: none;
    }

    .sh-marquee--mobile {
        display: block;
    }
}

.sh-marquee.is-dismissed,
.sh-marquee[hidden] {
    display: none !important;
}

.sh-marquee__inner {
    position: relative;
    width: 100%;
    min-height: var(--sh-marquee-height, 36px);
    padding: 6px 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.sh-marquee--has-close .sh-marquee__inner {
    padding-right: 40px;
}

.sh-marquee__track {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    transform: translateY(-50%);
    will-change: left;
    visibility: hidden;
}

.sh-marquee--effect-scroll .sh-marquee__track.is-measured {
    visibility: visible;
    animation: shMarqueeScroll var(--sh-marquee-speed, 30s) linear infinite;
}

.sh-marquee--effect-scroll.sh-marquee--reverse .sh-marquee__track.is-measured {
    animation-name: shMarqueeScrollReverse;
}

.sh-marquee--effect-scroll.sh-marquee--pause-hover:hover .sh-marquee__track {
    animation-play-state: paused;
}

.sh-marquee__segment {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.sh-marquee__segment + .sh-marquee__segment {
    /* 間隔 = 容器寬度，讓第二段在循環時無縫接續 */
    margin-left: var(--marquee-viewport, 0px);
}

.sh-marquee__link,
.sh-marquee__text {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.sh-marquee__link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.sh-marquee__sep {
    margin: 0 1rem;
    opacity: 0.65;
    user-select: none;
}

.sh-marquee__close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
    z-index: 1;
}

.sh-marquee__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* 從右側進場 → 完整橫越視窗 → 從左側離開；--marquee-distance = 視窗寬 + 文字寬 */
@keyframes shMarqueeScroll {
    from {
        left: 100%;
    }

    to {
        left: calc(100% - var(--marquee-distance, 0px));
    }
}

@keyframes shMarqueeScrollReverse {
    from {
        left: calc(0px - var(--marquee-distance, 0px));
    }

    to {
        left: 100%;
    }
}

/* ── 輪播換場（fade / slide-v / slide-h） ── */
.sh-marquee__rotator {
    position: relative;
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-marquee__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.sh-marquee__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0);
}

/* 淡入淡出 */
.sh-marquee--effect-fade .sh-marquee__slide {
    transform: none;
}

/* 垂直滑入 */
.sh-marquee--effect-slide-v .sh-marquee__slide {
    transform: translateY(100%);
}

.sh-marquee--effect-slide-v .sh-marquee__slide.is-active {
    transform: translateY(0);
}

/* 水平滑入（預設由右） */
.sh-marquee--effect-slide-h .sh-marquee__slide {
    transform: translateX(100%);
}

.sh-marquee--effect-slide-h .sh-marquee__slide.is-active {
    transform: translateX(0);
}

.sh-marquee--effect-slide-h.sh-marquee--from-left .sh-marquee__slide {
    transform: translateX(-100%);
}

/* ── 靜態置中 ── */
.sh-marquee--effect-static .sh-marquee__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-marquee__static-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .sh-marquee__track {
        position: static;
        transform: none;
        visibility: visible;
        animation: none !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .sh-marquee__segment[aria-hidden="true"] {
        display: none;
    }

    .sh-marquee__segment + .sh-marquee__segment {
        margin-left: 0;
    }

    .sh-marquee__slide {
        position: static;
        opacity: 1;
        transform: none !important;
        pointer-events: auto;
        display: none;
    }

    .sh-marquee__slide.is-active {
        display: flex;
    }
}

body.has-sh-marquee {
    padding-top: var(--sh-marquee-height, 0);
}


/* --- drawers.css --- */
/* SH Navigation System - Modal & Drawer Styles */
/* Right Drawer & Modal Overlay - Alpine.js transitions */
.sh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 2000;
}

.sh-drawer-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Alpine transition: overlay fade */
.sh-overlay-enter { transition: opacity 0.4s ease-out; }
.sh-overlay-leave { transition: opacity 0.4s ease-in-out; }
.sh-overlay-start { opacity: 0; }
.sh-overlay-end { opacity: 1; }

/* Alpine transition: right drawer slide */
.sh-drawer-right-enter { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.sh-drawer-right-leave { transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1); }
.sh-drawer-right-start { transform: translateX(100%); }
.sh-drawer-right-end { transform: translateX(0); }

.sh-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--sh-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.sh-modal-header h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--sh-dark);
}

.sh-close-modal {
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    opacity: 0.5;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.sh-close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: var(--sh-accent);
}

.sh-modal-content {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
}

/* Mobile Menu Side Drawer - Alpine.js */
.sh-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    padding: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Alpine transition: left drawer slide */
.sh-drawer-left-enter { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.sh-drawer-left-leave { transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1); }
.sh-drawer-left-start { transform: translateX(-100%); }
.sh-drawer-left-end { transform: translateX(0); }

/* --- cart-sidebar.css --- */
/* SH Navigation System - Cart Sidebar Styles */
/* WooCommerce widget smaller font adjustments & Side Cart UI Improvements */
.sh-drawer-right .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sh-drawer-right .woocommerce-mini-cart {
    flex: 1;
    overflow-y: auto;
    padding: 0 !important;
    margin: 0;
    list-style: none;
}

.sh-drawer-right .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.sh-drawer-right .woocommerce-mini-cart-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--sh-border);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.sh-drawer-right .woocommerce-mini-cart-item a.remove {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin: 0 0 0 auto;
    color: #ccc;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: 0.3s;
    line-height: 1;
    cursor: pointer;
    order: 3;
}

.sh-drawer-right .woocommerce-mini-cart-item a.remove:hover {
    background: #fff0f0;
    color: #ff4d4f;
}

/* 圖片定位 - 使用 flexbox 自然排列 */
.sh-drawer-right .woocommerce-mini-cart-item>img.attachment-woocommerce_thumbnail,
.sh-drawer-right .woocommerce-mini-cart-item>img.woocommerce-placeholder,
.sh-drawer-right .woocommerce-mini-cart-item>a>img.attachment-woocommerce_thumbnail,
.sh-drawer-right .woocommerce-mini-cart-item>a>img.woocommerce-placeholder {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    margin: 0 !important;
    max-width: 70px !important;
    min-height: 70px !important;
}

/* WGB Layout Integration - Perfect Alignment (scoped to side cart only) */
.sh-drawer-right .wgb-cart-item-title-wrap {
    display: block;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
}

.sh-drawer-right .wgb-logo-wrap {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.sh-drawer-right .wgb-cart-logo {
    height: 18px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 18px !important;
    object-fit: contain;
    border-radius: 2px !important;
    border: none !important;
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sh-drawer-right .wgb-product-title {
    display: inline;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-dark);
}

.sh-drawer-right .woocommerce-mini-cart-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-dark);
    line-height: 1.4;
}

.sh-drawer-right .woocommerce-mini-cart-item>a:not(.remove) {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.sh-drawer-right .woocommerce-mini-cart-item>a:not(.remove):hover {
    color: var(--sh-accent);
}

.sh-drawer-right .wgb-edit-link-wrap {
    margin-bottom: 4px;
}

.sh-drawer-right .wgb-edit-link {
    font-size: 13px;
    font-weight: 500;
    color: #888 !important;
    text-decoration: underline !important;
    display: inline-block;
    transition: 0.2s;
}

.sh-drawer-right .wgb-edit-link:hover {
    color: var(--sh-dark) !important;
}

/* Variation 屬性 */
.sh-drawer-right .woocommerce-mini-cart-item dl.variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: 4px 0 2px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    line-height: 1.4;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation dt {
    margin: 0;
    padding: 0;
    font-weight: 500;
    color: #777;
    white-space: nowrap;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation dd {
    margin: 0;
    padding: 0;
    color: #555;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation dd p {
    margin: 0;
    padding: 0;
}

.sh-drawer-right .woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-top: 4px;
}

.sh-drawer-right .woocommerce-mini-cart-item .quantity .amount {
    color: var(--sh-accent);
    font-weight: 700;
}

.sh-drawer-right .woocommerce-mini-cart__total {
    border-top: 1px solid var(--sh-border);
    padding: 20px 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
}

.sh-drawer-right .woocommerce-mini-cart__total strong {
    font-size: 16px;
    font-weight: 500;
}

.sh-drawer-right .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 !important;
}

.sh-drawer-right .woocommerce-mini-cart__buttons .button {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.sh-drawer-right .woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: var(--sh-light);
    color: var(--sh-dark);
    border: 1px solid var(--sh-border);
}

.sh-drawer-right .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background: #e8e8e8;
}

.sh-drawer-right .woocommerce-mini-cart__buttons .checkout {
    background: var(--sh-dark);
    color: #fff;
}

.sh-drawer-right .woocommerce-mini-cart__buttons .checkout:hover {
    background: var(--sh-accent);
}

/* Integration Hints Styling - Premium Evolution */
.sh-side-cart-footer-hints {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--sh-border);
}

.sh-side-cart-hints {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sh-hint-shipping {
    margin-bottom: 5px;
}

.sh-hint-text {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--sh-dark);
    letter-spacing: 0.3px;
}

.sh-hint-text.sh-success {
    color: #27ae60;
}

.sh-highlight {
    color: var(--sh-accent);
    font-weight: 800;
}

.sh-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.sh-progress-fill {
    height: 100%;
    background: var(--sh-accent);
    width: var(--sh-progress, 0%);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(218, 179, 142, 0.3);
}

.sh-hint-points {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(218, 179, 142, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--sh-dark);
    border: 1px solid rgba(218, 179, 142, 0.2);
    font-weight: 600;
}

.sh-hint-points svg {
    width: 18px;
    height: 18px;
    color: var(--sh-accent);
    flex-shrink: 0;
}

/* === Side cart mini-cart layout - Flexbox 三欄佈局 === */
.sh-drawer-right .woocommerce-mini-cart-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--sh-border);
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    min-width: 0 !important;
    /* 清除 Grid */
    grid-template-columns: none !important;
    grid-auto-rows: none !important;
    column-gap: 0 !important;
}

/* 圖片連結 */
.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) {
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 70px !important;
    display: block !important;
    position: relative !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    text-decoration: none;
    overflow: hidden !important;
    border-radius: 6px;
    /* 清除 Grid */
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
}

.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove):hover {
    color: var(--sh-accent);
}

/* 圖片 */
.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) img.attachment-woocommerce_thumbnail,
.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) img.woocommerce-placeholder {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #f0f0f0 !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
}

/* 商品資訊容器 */
.sh-drawer-right .woocommerce-mini-cart-item .product-data {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow: hidden !important;
}

/* 商品標題 */
.sh-drawer-right .woocommerce-mini-cart-item .product-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--sh-dark) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.sh-drawer-right .woocommerce-mini-cart-item .product-title:hover {
    color: var(--sh-accent) !important;
}

/* 刪除按鈕 */
.sh-drawer-right .woocommerce-mini-cart-item > a.remove {
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 0 0 auto !important;
    order: 3 !important;
    position: static !important;
    transform: none !important;
    color: #ccc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: background 0.2s, color 0.2s !important;
    cursor: pointer;
    /* 清除 Grid */
    grid-column: auto !important;
    grid-row: auto !important;
}

.sh-drawer-right .woocommerce-mini-cart-item > a.remove svg {
    width: 10px !important;
    height: 10px !important;
}

.sh-drawer-right .woocommerce-mini-cart-item > a.remove:hover {
    background: #fff0f0 !important;
    color: #ff4d4f !important;
}

/* 數量 */
.sh-drawer-right .woocommerce-mini-cart-item .quantity {
    display: block !important;
    font-size: 13px !important;
    color: #888 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.sh-drawer-right .woocommerce-mini-cart-item .quantity .amount {
    color: var(--sh-accent) !important;
    font-weight: 700 !important;
}

/* 變體屬性 */
.sh-drawer-right .woocommerce-mini-cart-item dl.variation {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 2px 8px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #888 !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation dt {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    color: #777 !important;
    white-space: nowrap !important;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation dd {
    margin: 0 !important;
    padding: 0 !important;
    color: #555 !important;
    word-break: break-word !important;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation dd p {
    margin: 0 !important;
    padding: 0 !important;
}

.sh-drawer-right .woocommerce-mini-cart-item > a.remove {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: flex-start;
    position: static;
    transform: none;
    margin-left: 8px;
}

.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) {
    grid-column: 1 / span 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 70px 1fr;
    column-gap: 12px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove):hover {
    color: var(--sh-accent);
}

.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) img.attachment-woocommerce_thumbnail,
.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) img.woocommerce-placeholder {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    min-height: 70px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    margin: 0 !important;
    position: static;
    transform: none;
}

.sh-drawer-right .woocommerce-mini-cart-item dl.variation {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: 4px 0 2px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    line-height: 1.4;
}

.sh-drawer-right .woocommerce-mini-cart-item .quantity {
    grid-column: 2;
    grid-row: 3;
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-top: 4px;
}

/* === 修正：強制 Grid 佈局，確保 Grid 佈局顯示多列內容 === */
.sh-drawer-right .woocommerce-mini-cart-item {
    display: grid !important;
    grid-template-columns: 70px 1fr auto !important;
    padding: 16px 0 !important;
    flex-direction: initial !important;
    justify-content: initial !important;
}
    
.sh-drawer-right .woocommerce-mini-cart-item > a.remove {
    position: static !important;
    top: auto !important;
    transform: none !important;
    grid-column: 3 !important;
    grid-row: 1 / span 3 !important;
}
    
.sh-drawer-right .woocommerce-mini-cart-item > a:not(.remove) img {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}
    
.sh-drawer-right .woocommerce-mini-cart-item dl.variation {
    grid-column: 2 !important;
    grid-row: 2 !important;
}
    
.sh-drawer-right .woocommerce-mini-cart-item .quantity {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

/* --- mobile.css --- */
/* SH Navigation System - Mobile Styles */
/* Mobile Elements & Menu Drawer */
.sh-mobile-header {
    display: none;
    padding: 15px 0;
    border-bottom: none;
    align-items: center;
    background: transparent;
}

.sh-mobile-bar {
    position: fixed;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    background: var(--sh-mbar-bg, #ffffff);
    display: none; /* 預設隱藏，手機版顯示 */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 2000; /* High enough but not extreme */
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    border: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    overflow: visible;
    transform: translateZ(0); /* Standard hardware acceleration without blur side effects */
    transition: none !important;
}

/* 手機版顯示 Mobile Bar */
@media (max-width: 991px) {
    .sh-mobile-bar {
        display: grid;
    }
}

.sh-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--sh-mbar-text, #888888);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: 0.3s;
}

.sh-mobile-item i,
.sh-mobile-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: var(--sh-mbar-icon, #555555);
    fill: currentColor; /* Default to fill for solid icons */
    stroke: none;
    transition: 0.2s;
}

.sh-mobile-item .sh-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Outline icons (like the defaults) use .sh-icon class */
.sh-mobile-item svg.sh-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sh-mobile-item svg path {
    stroke: inherit;
    fill: inherit;
}

.sh-mobile-item:hover,
.sh-mobile-item:active,
.sh-mobile-item.is-active {
    color: var(--sh-mbar-active, var(--sh-accent, #004982));
}

.sh-mobile-item:hover svg,
.sh-mobile-item:active svg,
.sh-mobile-item.is-active svg {
    stroke: var(--sh-mbar-active, var(--sh-accent, #004982));
    transform: translateY(-3px);
}

/* Custom Mobile Cart Badge */
.sh-mobile-item .sh-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--sh-mbar-badge-bg, #ff4d4f);
    color: var(--sh-mbar-badge-text, #ffffff);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    border: 2px solid #fff;
    line-height: 1;
    pointer-events: none;
}

/* Mobile Menu Side Drawer - Alpine.js */
.sh-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    padding: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Alpine transition: left drawer slide */
.sh-drawer-left-enter { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.sh-drawer-left-leave { transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1); }
.sh-drawer-left-start { transform: translateX(-100%); }
.sh-drawer-left-end { transform: translateX(0); }

@media (max-width: 991px) {

    .sh-top-bar,
    .sh-main-header,
    .sh-bottom-nav {
        display: none;
    }

    .sh-mobile-header,
    .sh-mobile-bar {
        display: grid;
    }

    .sh-mobile-header .sh-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    }
}

/* --- footer.css --- */
/* SH Navigation System - Footer Styles */
/* --- Shop Footer Premium CSS --- */
.sh-site-footer {
    background: var(--sh-footer-bg);
    color: var(--sh-footer-text);
    font-family: 'Jost', 'Noto Sans TC', sans-serif;
    padding: 40px 0 15px;
    /* Reduced from 70px/25px to make it tighter */
    font-size: 15px;
    position: relative;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

.sh-site-footer .sh-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.sh-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* Reduced gap */
    margin-bottom: 30px;
    /* Reduced margin */
    padding-bottom: 30px;
    /* Reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-footer-col {
    flex: 1;
    min-width: 220px;
}

.sh-footer-col h4 {
    color: var(--sh-footer-title);
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.sh-footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--sh-accent, #DAB38E);
    border-radius: 2px;
    transition: 0.3s;
}

.sh-footer-col:hover h4::after {
    width: 100%;
}

/* Accordion Specifics */
.sh-toggle-icon {
    display: none;
    width: 12px;
    height: 12px;
    position: relative;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.sh-toggle-icon::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.sh-toggle-icon::after {
    display: none;
}

.sh-collapsible-open .sh-toggle-icon {
    transform: rotate(-180deg);
}

.sh-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-footer-col ul li {
    margin-bottom: 12px;
}

.sh-footer-col a {
    color: var(--sh-footer-link);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.sh-footer-col a:hover {
    color: var(--sh-accent, #DAB38E);
    transform: translateX(4px);
}

.sh-footer-col p {
    color: var(--sh-footer-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 訂閱表單 */
.sh-newsletter-form {
    display: flex;
    margin-top: 15px;
    position: relative;
}

.sh-newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: 0.3s;
    font-size: 14px;
}

.sh-newsletter-form input:focus {
    border-color: var(--sh-accent, #DAB38E);
    background: rgba(255, 255, 255, 0.08);
}

.sh-newsletter-form button {
    background: var(--sh-accent, #DAB38E);
    color: #fff;
    border: none;
    padding: 0 25px;
    margin-left: -1px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.sh-newsletter-form button:hover {
    background: #fff;
    color: var(--sh-dark, #111);
    transform: translateX(2px);
}

.sh-custom-newsletter {
    width: 100%;
}

.sh-contact-info li {
    position: relative;
    padding-left: 0;
}

/* 底部資訊 */
.sh-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--sh-footer-text);
    font-size: 13px;
}

/* 版權列右側：社群圖示 + 自訂選單 */
.sh-footer-bottom-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px 24px;
}

.sh-footer-bottom-nav {
    margin: 0;
    padding: 0;
}

.sh-footer-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-footer-bottom-menu li {
    margin: 0;
    padding: 0;
    border: none;
}

.sh-footer-bottom-menu a {
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.sh-footer-bottom-menu a:hover {
    opacity: 0.92;
}

/* 「關於我們」欄：說明文字下方的社群圖示 */
.sh-social-icons--about {
    margin-top: 22px;
    justify-content: flex-start;
}

.sh-social-icons--about + .sh-newsletter-form {
    margin-top: 22px;
}

.sh-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sh-social-icons a {
    color: var(--sh-footer-link);
    /* 淺色頁尾為淡灰底；支援 color-mix 時改為依連結色混色，深色底也較自然 */
    background: rgba(0, 0, 0, 0.045);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid var(--sh-footer-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@supports (background: color-mix(in srgb, white 50%, black)) {
    .sh-social-icons a {
        background: color-mix(in srgb, var(--sh-footer-link) 9%, transparent);
    }
}

/* 覆蓋下方 .sh-site-footer a 的 transition，避免懸浮動效被縮成單一 0.3s */
.sh-site-footer .sh-social-icons a {
    transition:
        transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
        color 0.3s ease;
}

.sh-social-icons a:hover {
    color: var(--sh-footer-link-hover, var(--sh-accent, #004982));
    background: rgba(0, 0, 0, 0.07);
    border-color: var(--sh-footer-link-hover, var(--sh-accent, #004982));
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

@supports (background: color-mix(in srgb, white 50%, black)) {
    .sh-social-icons a:hover {
        background: color-mix(in srgb, var(--sh-footer-link-hover, var(--sh-accent, #004982)) 14%, transparent);
    }
}

.sh-social-icons a:focus-visible {
    outline: 2px solid var(--sh-footer-link-hover, var(--sh-accent, #004982));
    outline-offset: 3px;
}

.sh-social-icons svg:not(.sh-line-ui-svg) {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
    flex-shrink: 0;
}

/* LINE：放大至接近 FB/IG 視覺份量；氣泡＝連結色實心，LINE 字＝淺色 */
.sh-social-icons svg.sh-line-ui-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
}

.sh-social-icons a svg.sh-line-ui-svg .sh-line-bubble {
    fill: currentColor !important;
    fill-opacity: 1;
}

.sh-social-icons a svg.sh-line-ui-svg .sh-line-letters,
.sh-social-icons a svg.sh-line-ui-svg .sh-line-letters * {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.96) !important;
    stroke-width: 5.5;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

@media (prefers-reduced-motion: reduce) {
    .sh-site-footer .sh-social-icons a,
    .sh-social-icons a:hover {
        transition-duration: 0.01ms !important;
    }

    .sh-social-icons a:hover {
        transform: none;
    }
}

.sh-payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sh-payment-icons svg {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

/* Footer Styles using Variables (重复的样式，保留以确保兼容性) */
.sh-site-footer {
    background: var(--sh-footer-bg) !important;
    color: var(--sh-footer-text) !important;
    border-top: 1px solid var(--sh-footer-border);
}
.sh-site-footer h4 {
    color: var(--sh-footer-title) !important;
}
.sh-site-footer a {
    color: var(--sh-footer-link) !important;
    transition: 0.3s;
}
.sh-site-footer a:hover {
    color: var(--sh-footer-link-hover) !important;
}
.sh-footer-bottom {
    border-top: 1px solid var(--sh-footer-border) !important;
}
.sh-copyright {
    color: var(--sh-footer-text) !important;
    opacity: 0.8;
}
.sh-footer-col ul li {
    border-bottom: 1px solid var(--sh-footer-border);
}
@media (min-width: 992px) {
    .sh-footer-top {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
    }

    .sh-footer-col {
        flex: unset;
        min-width: 0;
    }

    .sh-footer-col ul li {
        border-bottom: none;
    }
}
.sh-social-icons a svg:not(.sh-line-ui-svg) {
    fill: currentColor !important;
    stroke: none !important;
}

.sh-social-icons a svg.sh-line-ui-svg {
    fill: none !important;
    stroke: none !important;
}

@media (max-width: 991px) {
    .sh-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .sh-footer-bottom-end {
        justify-content: center;
        flex-direction: column;
    }

    .sh-footer-bottom-menu {
        justify-content: center;
    }

    .sh-site-footer {
        padding-top: 30px;
        padding-bottom: 70px;
    }

    /*
     * 勿在此對 .sh-footer-content 設 display:none。
     * Alpine x-show 展開時會清除 inline display，若仍被 CSS 設為 none，各欄會無法開啟。
     * 顯示/隱藏由 Alpine 的 x-show/x-collapse 控制（第一欄 x-data 預設 open:true）。
     */

    .sh-footer-top {
        flex-direction: column;
        gap: 0; /* Tighten gap for accordion */
    }

    .sh-footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sh-footer-col h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 0;
        margin-bottom: 0;
        cursor: pointer;
    }

    .sh-footer-col h4::after {
        display: none; /* Hide desktop underline */
    }

    .sh-toggle-icon {
        display: block; /* Show icon on mobile */
    }

    .sh-footer-content {
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
        padding-bottom: 0;
    }
}

/* --- mobile-bar.css --- */
/* SH Navigation System - Mobile Bar Buy Now Button Styles */
/* Mobile Bar - Buy Now Button (Three-part Layout) */
.sh-mobile-bar .sh-mbar-buy-now {
    grid-column: span 100 !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 8px 15px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-buy-now-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    gap: 8px;
    min-width: 0; /* allow children to shrink instead of overflow */
    box-sizing: border-box;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 6px !important;
    font-family: 'Jost', sans-serif;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 2px;
}

/* 隱藏區間價分隔符（JS 已只保留最低價，此為保險） */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .screen-reader-text {
    display: none !important;
}

/* Regular Price (New) */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price ins {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #111 !important;
    text-decoration: none !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    display: inline-block !important;
    white-space: nowrap;
}

/* Original Price (Old) */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price del {
    font-size: 14px !important;
    color: #888 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    text-decoration: line-through !important;
    display: inline-block !important;
    white-space: nowrap;
}

/* Discount badge / price stack from some plugins (e.g. arc-ppo) */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .price {
    margin: 0;
    padding: 0;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .arc-ppo-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .sale-price {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

/* WooCommerce DOM 為 del → ins；以 order 強制特價在前、原價在後 */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .sale-price ins,
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .arc-ppo-price-stack > ins,
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .price:not(:has(.arc-ppo-price-stack)) > ins {
    order: 1;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .sale-price del,
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .arc-ppo-price-stack > del,
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .price:not(:has(.arc-ppo-price-stack)) > del {
    order: 2;
}

/* 無 .sale-price 時 del/ins 直接掛在 stack 下，改橫向排列 */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .arc-ppo-price-stack:has(> del):has(> ins) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .arc-ppo-price-stack > .arc-ppo-sale-badge {
    order: 3;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .price:not(:has(.arc-ppo-price-stack)):has(> del):has(> ins) {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price .arc-ppo-sale-badge {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(176, 0, 32, 0.8);
    background: rgba(176, 0, 32, 0.05);
    border: 1px solid rgba(176, 0, 32, 0.12);
    padding: 2px 5px;
    border-radius: 999px;
}

/* Force SVG visibility with explicit dimensions */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-cart-icon-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    display: block !important;
    stroke: #000 !important;
}

/* Main action items container */
.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto;
    flex-shrink: 0;
    max-width: 100%;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-cart-icon-btn {
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 6px 10px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 999px !important;
    position: relative;
    height: 36px;
    min-width: 44px;
}

/* Hide WooCommerce auto-generated "View Cart" link */
.sh-mobile-bar .sh-mbar-actions .added_to_cart {
    display: none !important;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-cart-icon-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.10) !important;
    border-color: rgba(0, 0, 0, 0.10) !important;
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-buy-btn {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px 35px !important; /* Wider padding as requested */
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 400px) {
    .sh-mobile-bar .sh-mbar-buy-now .sh-mbar-buy-btn {
        padding: 10px 25px !important; /* Subtly smaller for narrow screens */
        min-width: 100px;
    }
}

.sh-mobile-bar .sh-mbar-buy-now .sh-mbar-buy-btn:hover {
    background: #333 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Success feedback animation */
@keyframes shAddedPulse {
    0% { transform: scale(1); background: #f5f5f5; }
    50% { transform: scale(1.2); background: #28a745; color: #fff; }
    100% { transform: scale(1); background: #f5f5f5; }
}
.sh-mbar-cart-icon-btn.sh-added-success {
    animation: shAddedPulse 0.6s ease-in-out;
}

/* 左右連結按鈕 */
.sh-mobile-bar .sh-mbar-dual-links,
.sh-mobile-bar .sh-mbar-text-link {
    grid-column: 1 / -1 !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    height: 100% !important;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* 避免 grid 子項被長文字撐破容器 */
    box-sizing: border-box;
    overflow: hidden;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: inherit;
    letter-spacing: normal;
}

.sh-mobile-bar .sh-mbar-dual-links-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.sh-mobile-bar .sh-mbar-link-pill,
.sh-mobile-bar .sh-mbar-text-link-btn {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sh-mobile-bar .sh-mbar-link-pill .sh-mbar-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sh-mobile-bar .sh-mbar-link-pill:active {
    opacity: 0.85;
    transform: scale(0.98);
}

/* 左文字 + 右連結 */
.sh-mobile-bar .sh-mbar-text-link-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sh-mobile-bar .sh-mbar-text-link-label {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
}

.sh-mobile-bar .sh-mbar-text-link-label .sh-mbar-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sh-mobile-bar .sh-mbar-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.sh-mobile-bar .sh-mbar-pill-icon .sh-icon,
.sh-mobile-bar .sh-mbar-pill-icon .sh-icon-img {
    width: 18px;
    height: 18px;
    margin: 0;
}

.sh-mobile-bar .sh-mbar-pill-icon svg.sh-icon {
    stroke: currentColor;
}

.sh-mobile-bar .sh-mbar-pill-text {
    min-width: 0;
}

.sh-mobile-bar .sh-mbar-text-link-btn {
    flex: 0 0 auto;
    max-width: 55%;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sh-mobile-bar .sh-mbar-text-link-btn .sh-mbar-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-mobile-bar .sh-mbar-text-link-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .sh-mobile-bar .sh-mbar-buy-now {
        padding: 8px 10px !important;
    }
    
    .sh-mobile-bar .sh-mbar-buy-now .sh-mbar-price {
        font-size: 18px !important;
    }

    .sh-mobile-bar .sh-mbar-buy-now .sh-mbar-actions {
        gap: 8px !important;
    }

    .sh-mobile-bar .sh-mbar-buy-now .sh-mbar-buy-btn {
        padding: 8px 18px !important;
        font-size: 14px !important;
    }
    
    .sh-mobile-bar .sh-mbar-buy-now .sh-mbar-cart-icon-btn {
        padding: 5px !important;
    }
    .sh-mobile-bar .sh-mbar-buy-now .sh-mbar-cart-icon-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .sh-mobile-bar .sh-mbar-link-pill {
        padding: 8px 10px;
        font-size: 13px;
    }

    .sh-mobile-bar .sh-mbar-dual-links-inner {
        gap: 6px;
    }

    .sh-mobile-bar .sh-mbar-text-link-label {
        font-size: 13px;
    }

    .sh-mobile-bar .sh-mbar-text-link-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* --- inline-styles.css --- */
/**
 * SH Navigation System 內聯樣式外部化
 * 提取自 class-sh-frontend.php 的內聯 CSS
 * 創建時間: 2026-03-28
 */

/* 社交媒體登入按鈕樣式 */
/* 選單項目的裝置顯示設定（桌面端從 992px 起） */
@media (max-width: 991px) {
    .sh-menu-device-desktop {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .sh-menu-device-mobile {
        display: none !important;
    }
}

.sh-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-social-wrap .nsl-container,
.sh-social-wrap .nsl-container-block,
.sh-social-wrap .nsl-container-buttons {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.sh-social-wrap a.nsl-button,
.sh-social-wrap a.wplc-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    color: #3c4043 !important;
}

.sh-social-wrap a.nsl-button:hover,
.sh-social-wrap a.wplc-btn:hover {
    background: #f8f9fa !important;
    border-color: #d2d2d2 !important;
}

.sh-social-wrap a.nsl-button .nsl-button-svg-container,
.sh-social-wrap a.wplc-btn svg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px !important;
    background: transparent !important;
    border: none !important;
}

.sh-social-wrap a.wplc-btn svg {
    fill: #06C755 !important;
}

.sh-social-wrap a.nsl-button .nsl-button-label-container {
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3c4043 !important;
    text-align: left !important;
    flex: none !important;
}

.sh-social-wrap a.wplc-btn span {
    font-size: 0 !important;
    color: transparent !important;
    line-height: 0 !important;
}

.sh-social-wrap a.wplc-btn span::after {
    content: "使用 LINE 快速登入";
    font-size: 14px !important;
    line-height: normal !important;
    font-weight: 600 !important;
    color: #3c4043 !important;
    font-family: inherit !important;
}

/* 移動端菜單樣式 */
.sh-mobile-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-mobile-ul li {
    border-bottom: 1px solid var(--sh-border);
}

.sh-mobile-ul a {
    display: block;
    padding: 16px 25px;
    text-decoration: none;
    color: var(--sh-dark);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

/* 註冊按鈕內聯樣式 */
.sh-register-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--sh-dark);
    color: var(--sh-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.3s;
    box-sizing: border-box;
}

/* 登入抽屜區塊分隔樣式 */
.sh-login-divider {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid var(--sh-border);
    padding-top: 25px;
}

/* 選單圖示樣式 */
.sh-menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.sh-menu-icon-wrapper {
    display: flex;
    align-items: center;
    line-height: 1;
}

.sh-menu-icon-wrapper + span {
    display: inline;
}

/* 選單無設定時的提示文字 */
.sh-menu-fallback {
    margin: 0;
    padding: 15px;
    text-align: center;
    color: #888;
}

/* 行動版 Logo 樣式 */
.sh-mobile-logo {
    max-height: 32px;
}

/* 行動版購物車按鈕樣式 */
.sh-mobile-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.sh-mobile-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #004982;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

/* Header Spacer 隱藏樣式 */
#sh-header-spacer {
    display: none;
}
