:root {
  --brand-color: #1a5c4f;
  --brand-secondary: #8fc9bd;
  --brand-accent: #f5c344;
  --text-color: #222;
  --muted-color: #767676;
  --border-color: #eaeaea;
  --bg-color: #ffffff;
  --bg-soft: #f7f9f8;
}

* { box-sizing: border-box; }
html { height: 100%; overflow-x: hidden; }

body {
  min-height: 100%;
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-color); }

.container { max-width: 1200px; }
main { min-height: 60vh; }
main > .container,
main > .page-wrap { padding-top: 40px; padding-bottom: 56px; }

/* ---------- Global component refresh (matches homepage design language) ---------- */
.page-title {
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.01em;
  margin-bottom: 28px;
  color: var(--ink, #0A2540);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}
.btn-primary:hover {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-outline-dark, .btn-outline-secondary, .btn-outline-primary {
  border-color: var(--border-color);
  color: var(--text-color);
}
.btn-outline-dark:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover {
  background-color: var(--text-color);
  border-color: var(--text-color);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: .4rem .9rem; font-size: .8rem; white-space: nowrap; }

.card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(10,37,64,.35);
}

.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--border-color);
  padding: .55rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand-color) 18%, transparent);
}

.table { --bs-table-border-color: var(--border-color); }
.table thead th { font-weight: 700; color: var(--muted-color); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-width: 1px; }

.badge { border-radius: 999px; font-weight: 600; }

.list-group-item.active {
  background-color: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
}

/* ---------- Site popup ---------- */
.site-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .25s ease;
}
.site-popup-overlay.show {
  background: rgba(0,0,0,.55);
  opacity: 1;
  pointer-events: auto;
}
.site-popup {
  position: relative;
  max-width: 480px;
  width: 100%;
  transform: scale(.92);
  transition: transform .25s ease;
}
.site-popup-overlay.show .site-popup { transform: scale(1); }
.site-popup img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.5);
}
.site-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--text-color);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.site-popup-close:hover { background: var(--brand-color); color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--brand-color);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 1500;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { filter: brightness(1.1); }
body:has(.line-float-btn) .back-to-top { bottom: 84px; }

/* ---------- LINE floating button ---------- */
.line-float-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #06C755;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  z-index: 1500;
  transition: filter .2s ease, transform .2s ease;
}
.line-float-btn:hover { filter: brightness(1.08); transform: scale(1.05); color: #fff; }

/* ---------- Announcement bar ---------- */
.site-announce {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: .02em;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 15px 10px;
}

.site-header-spacer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.site-header-spacer .navbar-toggler {
  border: none;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-color);
}
.site-header-spacer .navbar-toggler:focus { box-shadow: none; }
@media (min-width: 992px) {
  .site-header-spacer .navbar-toggler { display: none; }
}

.site-brand {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--brand-color) !important;
  justify-self: center;
}

.site-logo { height: 44px; width: auto; max-width: 220px; }
@media (min-width: 992px) {
    .site-logo {
        height: 60px;
    
        }
    }
    .site-header-icons {
        display: flex;
        gap: 18px;
        justify-content: flex-end;
        font-size: 1.2rem;
    }

        .site-header-icons a {
            color: var(--text-color);
        }

            .site-header-icons a:hover {
                color: var(--brand-color);
            }

    .cart-link {
        position: relative;
    }

    .cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1;
        background: var(--brand-color);
        color: #fff;
        border-radius: 999px;
        transition: transform .25s ease;
    }

        .cart-badge.bump {
            transform: scale(1.4);
        }

    /* ---------- Cart drawer ---------- */
    body.cart-drawer-lock {
        overflow: hidden;
    }

    .cart-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1998;
    }

        .cart-drawer-overlay.open {
            opacity: 1;
            visibility: visible;
        }

    .cart-drawer {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 100%;
        max-width: 420px;
        background: #fff;
        box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1999;
        display: flex;
        flex-direction: column;
    }

        .cart-drawer.open {
            transform: translateX(0);
        }

    .cart-drawer-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
    }

    .cart-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid #eee;
    }

    .cart-drawer-close {
        background: none;
        border: none;
        font-size: 26px;
        line-height: 1;
        color: var(--text-color);
        cursor: pointer;
    }

    .cart-drawer-empty {
        padding: 40px 20px;
        text-align: center;
    }

    .cart-drawer-items {
        flex: 1;
        overflow-y: auto;
        padding: 8px 20px;
    }

    .cart-drawer-item {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        gap: 12px;
        padding: 14px 0;
        border-bottom: 1px solid #f2f2f2;
    }

        .cart-drawer-item img {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 6px;
        }

    .cart-drawer-item-name {
        font-weight: 600;
        font-size: .92rem;
    }

    .cart-drawer-item-price {
        color: #777;
        font-size: .85rem;
        margin: 2px 0 8px;
    }

    .cart-drawer-item-controls {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .cart-drawer-remove {
        background: none;
        border: none;
        color: #999;
        font-size: .8rem;
        text-decoration: underline;
        cursor: pointer;
        padding: 0;
    }

        .cart-drawer-remove:hover {
            color: #c0392b;
        }

    .cart-drawer-item-subtotal {
        font-weight: 600;
        font-size: .9rem;
        white-space: nowrap;
    }

    .qty-stepper-sm {
        display: inline-flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 999px;
        overflow: hidden;
    }

        .qty-stepper-sm button {
            border: none;
            background: #fafafa;
            width: 26px;
            height: 26px;
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
        }

        .qty-stepper-sm span {
            display: inline-block;
            min-width: 26px;
            text-align: center;
            font-size: .85rem;
        }

    .cart-drawer-footer {
        padding: 16px 20px 20px;
        border-top: 1px solid #eee;
    }

    .cart-drawer-subtotal {
        display: flex;
        justify-content: space-between;
        font-weight: 700;
        font-size: 1.05rem;
        margin-bottom: 14px;
    }

    @media (max-width: 480px) {
        .cart-drawer {
            max-width: 100%;
        }
    }

    .toast-stack {
        position: fixed;
        top: 18px;
        right: 18px;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 320px;
    }

    .st-toast {
        background: #fff;
        border: 1px solid var(--border-color);
        border-left: 4px solid var(--brand-color);
        border-radius: 10px;
        box-shadow: 0 12px 30px -14px rgba(0,0,0,.35);
        padding: 12px 16px;
        font-size: 14px;
        color: var(--text-color);
        display: flex;
        align-items: center;
        gap: 10px;
        opacity: 0;
        transform: translateX(16px);
        transition: opacity .25s ease, transform .25s ease;
    }

        .st-toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .st-toast.error {
            border-left-color: #d64545;
        }

        .st-toast i {
            font-size: 18px;
            color: var(--brand-color);
        }

        .st-toast.error i {
            color: #d64545;
        }

    .site-nav-row {
        padding: 6px 0 12px;
    }

    @media (max-width: 991.98px) {
        .site-nav-row {
            padding: 0;
        }

            .site-nav-row:has(.navbar-collapse.show) {
                padding: 6px 0 12px;
            }
    }

    /* ---------- Breadcrumb ---------- */
    .site-breadcrumb {
        border-bottom: 1px solid var(--border-color, #eee);
        background: var(--bg-soft, #fafafa);
    }

        .site-breadcrumb .container {
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 0.82rem;
            color: var(--muted-color, #777);
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .site-breadcrumb a {
            color: var(--muted-color, #777);
            text-decoration: none;
        }

            .site-breadcrumb a:hover {
                color: var(--brand-color);
            }

        .site-breadcrumb .sep {
            color: #ccc;
        }

        .site-breadcrumb .current {
            color: var(--text-color);
            font-weight: 500;
        }

    .site-menu {
        gap: 4px;
    }

        .site-menu .nav-link {
            padding: 0.4rem;
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--text-color);
            transition: color .15s ease;
        }

            .site-menu .nav-link:hover {
                color: #4D9DD7;
            }

    /* 大項底下有子項目時：大項文字本身是一般連結，點了就正常跳轉，不會被下拉選單機制攔截。
   展開下拉選單另外用：桌機滑鼠移過去（CSS :hover），手機/平板用旁邊獨立的小箭頭按鈕點擊展開（跟文字連結分開，不會互相干擾）。 */
    .site-menu-dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

        .site-menu-dropdown .dropdown-menu {
            display: none;
        }

    .dropdown-caret-btn {
        background: none;
        border: none;
        padding: 0.3rem 0.5rem;
        color: var(--text-color);
        display: none; /* 桌機版用 hover 展開，不需要這顆按鈕 */
    }

        .dropdown-caret-btn:hover {
            color: #4D9DD7;
        }

    /* 大項旁邊的 + 小圖示：同一個符號，展開時直接用 CSS 旋轉 45 度變成 ×（+ 轉 45 度視覺上就是 ×），
   不用切換兩個不同符號，寬度完全不會變，也不會有選單項目被推移的跳動問題；加上 transition 讓旋轉有過渡動畫。
   桌機版跟手機版各用在不同地方（桌機版接在大項文字後面、手機版在獨立的箭頭按鈕裡），所以預設先都隱藏，
   分別在各自的螢幕寬度區間打開，避免同一個 <li> 裡同時出現兩個 + 圖示。 */
    .nav-toggle-icon {
        display: none;
        margin-left: 2px;
        font-weight: 400;
        vertical-align: middle;
        transition: transform .2s ease;
        padding: 0 0 5px 0;
    }

    @media (min-width: 992px) {
        .nav-link .nav-toggle-icon {
            display: inline-block;
        }

        .site-menu-dropdown:hover .nav-link .nav-toggle-icon {
            transform: rotate(45deg);
        }

        .site-menu .nav-link {
            padding: 0.4rem 0.9rem 0.9rem;
        }

        .site-menu-dropdown:hover > .dropdown-menu {
            display: block;
        }

        .site-menu-dropdown > .dropdown-menu {
            /* 這裡沒有用 Bootstrap 的 data-bs-toggle="dropdown"（會攔截點擊、擋掉大項本身的連結，見上次修的 bug），
       所以 Popper.js 不會自動幫忙定位，要自己明確指定 top/left，不然 position:absolute 沒有 top/left 值時
       會退回「原本沒有 absolute 時的位置」，變成整個蓋在大項文字上面而不是往下展開。 */
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 0; /* 不能留間隙：滑鼠從大項文字往下移到選單這段路上，中間只要有一段空隙沒有任何元素接住，
                      :hover 判定就會斷掉、選單瞬間收起來，變成「有時候點不到」（滑鼠移動角度、速度不同，命中率就不一樣）。
                      緊貼著大項下緣展開，滑鼠移動路徑上隨時都在可以觸發 :hover 的範圍內，不會有斷點；
                      視覺上的間距改用 padding（在選單本體「裡面」，滑鼠移進來就算數，不是 margin 那種選單外的死角）。 */
            border-radius: 0px;
            border: 1px solid rgba(0,0,0,.08);
            border: none;
            /*box-shadow: 0 8px 24px rgba(0,0,0,.1);*/
            padding: 0.6rem 0 0.4rem;
            text-align: center;
        }

        .site-menu-dropdown .dropdown-item {
            padding: 0.5rem 1.25rem;
            font-size: 0.92rem;
        }

            .site-menu-dropdown .dropdown-item:hover {
                background: transparent;
                color: #4D9DD7;
            }
    }

    @media (max-width: 991.98px) {
        /* 手機/平板（含收合選單展開後）：沒有滑鼠 hover，改成點小箭頭按鈕展開/收合子選單清單，用平常的區塊排版（不是浮動選單） */
        .dropdown-caret-btn {
            display: inline-flex;
            align-items: center;
        }

            .dropdown-caret-btn .nav-toggle-icon {
                display: inline-block;
                margin-left: 0;
            }
        /* 展開狀態：+ 旋轉 45 度變成 ×，顏色跟桌機版一致改成品牌淺藍 */
        .site-menu-dropdown.mobile-open .dropdown-caret-btn {
            color: #4D9DD7;
        }

            .site-menu-dropdown.mobile-open .dropdown-caret-btn .nav-toggle-icon {
                transform: rotate(45deg);
            }

        .site-menu-dropdown.mobile-open > .nav-link {
            color: #4D9DD7;
        }
        /* 父層 <li> 是 flex row（文字連結 + 箭頭按鈕排一排），子選單清單展開時要讓它換到下一行、佔滿整列寬度，
     不然會變成直接接在文字後面同一行（flex-wrap 沒設的話，flex 子項目預設擠在同一行不會換行） */
        .site-menu-dropdown {
            flex-wrap: wrap;
        }

            .site-menu-dropdown .dropdown-menu {
                position: static;
                flex-basis: 100%;
                width: 100%;
                box-shadow: none;
                border: none;
                padding-left: 1rem;
            }

            .site-menu-dropdown.mobile-open > .dropdown-menu {
                display: block;
            }

            .site-menu-dropdown .dropdown-item:hover,
            .site-menu-dropdown .dropdown-item:active {
                color: #4D9DD7;
                background: transparent;
            }
    }

    /* ---------- Section eyebrow / decorative ---------- */
    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        font-weight: 700;
        color: var(--brand-accent);
        text-transform: uppercase;
    }

        .eyebrow::before, .eyebrow::after {
            content: '\\';
            opacity: .6;
        }

        .eyebrow::after {
            content: '/';
        }

    .section-title {
        font-weight: 400;
        color: #7D7D7D;
        letter-spacing: 8px;
        text-align: center;
    }

    .dotted-rule {
        border: none;
        border-top: 3px dotted var(--brand-accent);
        width: 140px;
        margin: 16px auto;
    }

    .watermark-text {
        position: relative;
        text-align: center;
    }

        .watermark-text .watermark-bg {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 5rem;
            font-weight: 900;
            color: var(--brand-secondary);
            opacity: 0.15;
            white-space: nowrap;
            z-index: 0;
            pointer-events: none;
        }

    .highlight-marker {
        background-image: linear-gradient(transparent 55%, var(--brand-accent) 55%);
        padding: 0 2px;
    }

    /* ---------- Starburst badge ---------- */
    .badge-starburst {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 90px;
        height: 90px;
        background: var(--brand-accent);
        color: var(--brand-color);
        font-weight: 900;
        font-size: 0.85rem;
        clip-path: polygon(50% 0%, 61% 12%, 75% 6%, 78% 21%, 93% 21%, 90% 36%, 100% 50%, 90% 64%, 93% 79%, 78% 79%, 75% 94%, 61% 88%, 50% 100%, 39% 88%, 25% 94%, 22% 79%, 7% 79%, 10% 64%, 0% 50%, 10% 36%, 7% 21%, 22% 21%, 25% 6%, 39% 12%);
        transform: rotate(-8deg);
    }

    /* ---------- Promo cards (two-tone) ---------- */
    .promo-card {
        border-radius: 16px;
        padding: 40px 32px;
        color: #fff;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
    }

        .promo-card.dark {
            background: var(--brand-color);
        }

        .promo-card.light {
            background: var(--brand-secondary);
        }

        .promo-card .promo-badge {
            position: absolute;
            top: 24px;
            right: 24px;
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: rgba(255,255,255,.92);
            color: var(--brand-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 1.2rem;
            text-align: center;
        }

            .promo-card .promo-badge small {
                font-size: 0.55rem;
                font-weight: 500;
            }

        .promo-card h3 {
            font-weight: 900;
            font-size: 1.6rem;
            margin-bottom: 8px;
        }

        .promo-card p {
            opacity: .9;
            margin-bottom: 20px;
        }

        .promo-card .btn-pill {
            background: #fff;
            color: var(--brand-color);
            border-radius: 999px;
            padding: 10px 24px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: fit-content;
        }

            .promo-card .btn-pill:hover {
                background: var(--brand-accent);
                color: var(--brand-color);
            }

    /* ---------- Buttons ---------- */
    .btn-dark, .btn-primary {
        background-color: var(--brand-color);
        border-color: var(--brand-color);
    }

        .btn-dark:hover, .btn-primary:hover {
            filter: brightness(0.88);
        }

    .btn-outline-dark {
        color: var(--brand-color);
        border-color: var(--brand-color);
    }

        .btn-outline-dark:hover {
            background-color: var(--brand-color);
            border-color: var(--brand-color);
        }

    .btn-pill-outline {
        border-radius: 999px;
        padding: 10px 28px;
        font-weight: 700;
        border: 2px solid var(--brand-color);
        color: var(--brand-color);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
    }

        .btn-pill-outline:hover {
            background: var(--brand-color);
            color: #fff;
        }

    /* ---------- Cards / Products ---------- */
    .card {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        transition: box-shadow .2s ease, transform .2s ease;
    }

        .card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,.08);
            transform: translateY(-2px);
        }

    .card-img-top {
        border-radius: 8px 8px 0 0;
        background: var(--bg-soft);
    }

    /* ---------- Category tiles ---------- */
    .category-tile {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 3/4;
    }

        .category-tile img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .category-tile .category-index {
            font-weight: 900;
            color: var(--brand-color);
            font-size: 1.4rem;
        }

        .category-tile .category-tag {
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            color: var(--muted-color);
            text-transform: uppercase;
        }

    /* ---------- Footer ---------- */
    .site-footer {
        background: #F7F7F7;
        color: #1f2b3d;
        margin-top: 72px;
        overflow: hidden;
    }

    .foot-grid {
        display: grid;
        grid-template-columns: 1.3fr 0.8fr 0.9fr 0.8fr 1.3fr;
        gap: 32px;
        padding-block: 56px 40px;
    }

    .foot-logo {
        height: 42px;
        width: auto;
        margin-bottom: 14px;
    }

    .foot-logo-invert {
        filter: none;
    }

    .footer-heading {
        font-weight: 700;
        color: #1f2b3d;
        margin-bottom: 16px;
    }

    .footer-text {
        color: rgba(31,43,61,.65);
        font-size: 0.875rem;
        line-height: 1.7;
    }

.foot-ct {
    color: #7D7D7D;
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.875rem;
    }

        .footer-links a {
            color: rgba(31,43,61,.7);
        }

            .footer-links a:hover {
                color: #1f2b3d;
            }

        .footer-links .muted {
            color: rgba(31,43,61,.35);
        }

    .foot-contact {
        display: flex;
        flex-direction: column;
        gap: 13px;
        font-size: 0.875rem;
    }

        .foot-contact li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            line-height: 1.5;
        }

        .foot-contact i {
            flex: none;
            margin-top: 2px;
            color: var(--brand-accent);
        }

        .foot-contact a, .foot-contact span {
            color: rgba(31,43,61,.7);
        }

            .foot-contact a:hover {
                color: #1f2b3d;
            }

    .foot-social {
        display: flex;
        gap: 12px;
        margin-top: 18px;
    }

        .foot-social a {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #1f2b3d;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .95rem;
        }

            .foot-social a:hover {
                background: var(--brand-color);
            }

    .foot-bottom {
        border-top: 1px solid rgba(31,43,61,.1);
    }

    .foot-bottom-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        padding-block: 18px;
        font-size: 0.75rem;
        color: #7D7D7D;
    }

        .foot-bottom-inner a {
            color: #7D7D7D;
        }

            .foot-bottom-inner a:hover {
                color: #1f2b3d;
            }

    @media (max-width: 900px) {
        .foot-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 575px) {
        .foot-grid {
            grid-template-columns: 1fr;
            padding-block: 40px 24px;
        }
    }

    /* ---------- Product detail: price label ---------- */
    .product-price-label {
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

        .product-price-label p {
            margin: 0 0 4px;
        }

            .product-price-label p:last-child {
                margin-bottom: 0;
            }

    /* ---------- Product detail: image gallery ---------- */
    .product-gallery {
        display: flex;
        gap: 12px;
    }

    .product-gallery-thumbs-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .product-gallery-thumbs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 72px;
        max-height: 400px;
        overflow-y: auto;
        scrollbar-width: none;
    }

        .product-gallery-thumbs::-webkit-scrollbar {
            display: none;
        }

    .gallery-thumb {
        width: 72px;
        height: 72px;
        flex-shrink: 0;
        border: 2px solid transparent;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        transition: border-color .12s ease;
    }

        .gallery-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .gallery-thumb:hover {
            border-color: var(--border-color);
        }

        .gallery-thumb.selected {
            border-color: var(--brand-color);
        }

    .gallery-scroll-btn {
        width: 32px;
        height: 24px;
        border: none;
        background: none;
        color: var(--muted-color);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .gallery-scroll-btn:hover {
            color: var(--brand-color);
        }

    .product-gallery-main {
        flex: 1;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        overflow: hidden;
        background: var(--bg-soft);
    }

        .product-gallery-main img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

    @media (max-width: 767px) {
        .product-gallery {
            flex-direction: column-reverse;
        }

        .product-gallery-thumbs-wrap {
            flex-direction: row;
            width: 100%;
        }

        .product-gallery-thumbs {
            flex-direction: row;
            width: 100%;
            max-height: none;
            overflow-x: auto;
            overflow-y: hidden;
        }

        .gallery-scroll-btn {
            display: none;
        }
    }

    /* ---------- Product detail: variant pills ---------- */
    .variant-pill-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .variant-pill {
        padding: 8px 16px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        font-size: .9rem;
        cursor: pointer;
        background: #fff;
        transition: border-color .12s ease, background .12s ease, color .12s ease;
    }

        .variant-pill:hover {
            border-color: var(--brand-color);
        }

        .variant-pill.selected {
            border-color: var(--brand-color);
            background: var(--brand-color);
            color: #fff;
        }

        .variant-pill.disabled {
            opacity: .4;
            cursor: not-allowed;
            text-decoration: line-through;
        }

    /* ---------- Quantity stepper ---------- */
    .qty-stepper {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        overflow: hidden;
    }

        .qty-stepper button {
            width: 36px;
            height: 38px;
            border: none;
            background: var(--bg-soft);
            font-size: 1.1rem;
            line-height: 1;
            color: var(--text-color);
        }

            .qty-stepper button:hover {
                background: #eee;
            }

        .qty-stepper input {
            width: 60px;
            text-align: center;
            border: none;
            border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
            height: 38px;
            /* 拿掉瀏覽器原生的上下箭頭，不然會把兩位數以上的數字擠到看不清楚 */
            -moz-appearance: textfield;
            appearance: textfield;
        }

            .qty-stepper input::-webkit-outer-spin-button,
            .qty-stepper input::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }

            .qty-stepper input:focus {
                outline: none;
            }

    /* ---------- Buy now / add to cart pair ---------- */
    .btn-buy-now {
        background: var(--brand-accent);
        border-color: var(--brand-accent);
        color: #1a1a1a;
        font-weight: 700;
    }

        .btn-buy-now:hover {
            filter: brightness(0.95);
            color: #1a1a1a;
        }

    /* ---------- Store tabs (product description / reviews) ---------- */
    .store-tabs {
        display: flex;
        gap: 32px;
        border-bottom: 1px solid var(--border-color);
        margin: 40px 0 24px;
    }

        .store-tabs .store-tab-link {
            padding: 12px 0;
            font-weight: 600;
            color: var(--muted-color);
            border-bottom: 2px solid transparent;
            background: none;
            border-top: none;
            border-left: none;
            border-right: none;
            cursor: pointer;
        }

            .store-tabs .store-tab-link.active {
                color: var(--brand-color);
                border-bottom-color: var(--brand-color);
            }

    .store-tab-pane {
        display: none;
    }

        .store-tab-pane.active {
            display: block;
        }

    /* ---------- Rich content (CKEditor-authored product/article body) ---------- */
    .rich-content {
        max-width: 100%;
        overflow-x: hidden;
    }

        .rich-content img,
        .rich-content video,
        .rich-content iframe {
            max-width: 100%;
            height: auto;
        }

        .rich-content .ck-media,
        .rich-content oembed {
            max-width: 100%;
        }

        .rich-content table {
            max-width: 100%;
            display: block;
            overflow-x: auto;
        }

    /* ---------- Related items (product/article) ---------- */
    .related-section {
        margin-top: 56px;
        padding-top: 40px;
        border-top: 1px solid var(--border-color);
    }

    /* ---------- Rating bars ---------- */
    .rating-bar-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
        font-size: .82rem;
    }

    .rating-bar-track {
        flex: 1;
        height: 8px;
        background: var(--bg-soft);
        border-radius: 999px;
        overflow: hidden;
    }

    .rating-bar-fill {
        height: 100%;
        background: var(--brand-accent);
    }

    /* ---------- Tables ---------- */
    .table {
        background: #fff;
    }

    .badge.bg-secondary {
        background-color: #6c757d !important;
    }

    /* ---------- Responsive ---------- */
    @media (max-width: 991px) {
        .site-header-top {
            padding-bottom: 6px;
        }
    }

    .carousel .carousel-control-next, .carousel .carousel-control-prev {
        bottom: 75px;
    }

    .carousel .carousel-control-prev-icon,
    .carousel .carousel-control-next-icon {
        filter: brightness(3) !important;
    }
    a img{
        transition: all 0.2s ease-in-out;
    }
    a:hover img{
        transform: scale(1.05);
    }

/* ---------- 產品輪播（新品上市）手機版：左右箭頭消失，改成直接滑動（Bootstrap carousel 本來就支援觸控滑動） ---------- */
@media (max-width: 767.98px) {
    .pb-carousel-arrows .carousel-control-prev,
    .pb-carousel-arrows .carousel-control-next {
        display: none;
    }
    .pb-carousel-arrows-col {
        padding: 0 !important;
    }
}