/* 此頁專用：輪播與商品區同寬，並與首頁（.home-wrap 1200px）及頭部（.checkout-container 1200px）
            左右留白一致 */
        .shop-banner.checkout-container,
        main.checkout-container {
            max-width: 1200px;
            padding-left: 16px;
            padding-right: 16px;
        }
        @media (max-width: 575px) {
            .shop-banner.checkout-container,
            main.checkout-container {
                padding-left: 10px;
                padding-right: 10px;
            }
        }

        /* 此頁商品卡：加入購物車按鈕主色 */
        .shop-products-col .product-card .product-add-cart-btn.btn-primary {
            background-color: #f97316 !important;
            border-color: #f97316 !important;
        }
        .shop-products-col .product-card .product-add-cart-btn.btn-primary:hover,
        .shop-products-col .product-card .product-add-cart-btn.btn-primary:focus {
            background-color: #ea580c !important;
            border-color: #ea580c !important;
        }
        .shop-products-col .product-card .product-add-cart-btn.btn-primary:active {
            background-color: #c2410c !important;
            border-color: #c2410c !important;
        }

        .shop-banner {
            width: 100%;
            margin: 0 auto 24px;
        }
        .shop-banner img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }
        .shop-banner .carousel-item img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }
        .shop-banner .carousel-control-prev,
        .shop-banner .carousel-control-next {
            width: 44px;
            height: 44px;
            top: 50%;
            transform: translateY(-50%);
            bottom: auto;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.35);
        }
        .shop-banner .carousel-control-prev-icon,
        .shop-banner .carousel-control-next-icon {
            filter: invert(1);
        }
        .shop-banner .carousel-indicators {
            margin-bottom: 0.5rem;
        }
        .shop-banner .carousel-indicators [data-bs-target] {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }
        /* 賣場 banner 內嵌 YouTube 影片（設定 SP_YoutubeUrl 時，於 banner／輪播上依九宮格位置疊播放器） */
        .shop-banner-video {
            position: relative;
            width: 100%;
            line-height: 0;
        }
        .shop-banner-video .banner_img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }
        /* 播放器疊在 banner 上，維持 16:9（寬 48.5%），實際位置由九宮格 data-yt-pos 決定 */
        .shop-banner-video-holder {
            position: absolute;
            width: 48.5%;
            aspect-ratio: 16 / 9;
            z-index: 3;
            line-height: 0;
        }
        .shop-banner-video-holder iframe {
            width: 100%;
            height: 100%;
            display: block;
            border: 0;
        }
        /* banner 圖尚未載入完成前隱藏播放器：容器高度由圖片撐開，圖未載完時
           holder 的百分比定位會錯位，待圖片 load/error 後才淡入（由 JS 掛/移除 class） */
        .shop-banner-video-holder { transition: opacity .2s ease; }
        .shop-banner-video.video-holder-pending .shop-banner-video-holder {
            opacity: 0;
            pointer-events: none;
        }
        /* YouTube facade（接續賣場 chain banner 用）：先顯示縮圖＋播放鈕，點擊才載入 iframe，
           避免一頁多個 YouTube player 同時載入、以及瀏覽器 lazy iframe 載入時機不一 */
        .shop-banner-video-facade {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
            padding: 0;
            border: 0;
            background: #000;
            cursor: pointer;
        }
        .shop-banner-video-facade img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .shop-banner-video-facade .shop-banner-video-play {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 20%;
            min-width: 44px;
            max-width: 68px;
            aspect-ratio: 68 / 48;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 22%/38%;
        }
        .shop-banner-video-facade:hover .shop-banner-video-play,
        .shop-banner-video-facade:focus-visible .shop-banner-video-play {
            background: #f00;
        }
        .shop-banner-video-facade .shop-banner-video-play::after {
            content: '';
            position: absolute;
            left: 54%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-style: solid;
            border-width: 9px 0 9px 15px;
            border-color: transparent transparent transparent #fff;
        }
        /* 九宮格位置：橫向 左3.3% / 中50% / 右3.3%，縱向 上4% / 中50% / 下4%；預設（無 data-yt-pos）＝6 右中 */
        .shop-banner-video-holder { right: 3.3%; top: 50%; transform: translateY(-50%); }
        .shop-banner-video[data-yt-pos="1"] .shop-banner-video-holder { left: 3.3%; right: auto; top: 4%; bottom: auto; transform: none; }
        .shop-banner-video[data-yt-pos="2"] .shop-banner-video-holder { left: 50%; right: auto; top: 4%; bottom: auto; transform: translateX(-50%); }
        .shop-banner-video[data-yt-pos="3"] .shop-banner-video-holder { left: auto; right: 3.3%; top: 4%; bottom: auto; transform: none; }
        .shop-banner-video[data-yt-pos="4"] .shop-banner-video-holder { left: 3.3%; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); }
        .shop-banner-video[data-yt-pos="5"] .shop-banner-video-holder { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
        .shop-banner-video[data-yt-pos="6"] .shop-banner-video-holder { left: auto; right: 3.3%; top: 50%; bottom: auto; transform: translateY(-50%); }
        .shop-banner-video[data-yt-pos="7"] .shop-banner-video-holder { left: 3.3%; right: auto; top: auto; bottom: 4%; transform: none; }
        .shop-banner-video[data-yt-pos="8"] .shop-banner-video-holder { left: 50%; right: auto; top: auto; bottom: 4%; transform: translateX(-50%); }
        .shop-banner-video[data-yt-pos="9"] .shop-banner-video-holder { left: auto; right: 3.3%; top: auto; bottom: 4%; transform: none; }
        /* @media (max-width: 575px) { */
            /* 手機（行動版網頁）：較桌機放大 20%（48.5% × 1.2 = 58.2%），位置仍依九宮格 */
            /* 260724 設計改要大網也一起放大好了 */
            .shop-banner-video-holder { width: 58.2%; }
        /* } */
        /* 無特價（PDealPrice 為 0）時僅顯示定價，樣式與 .sale-price 一致但不使用該 class */
        .product-list-price {
            font-size: 16px;
            font-weight: 400;
            color: #007bff;
        }
        .nm-set-container {
            margin-bottom: 24px;
            /* 預留固定結帳列高度，避免最後一區商品被底部結帳列遮住 */
            padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        }
        .nm-price-box {
            background: #f8f9ff;
            border: 1px solid #e3e6ff;
            border-radius: 10px;
            padding: 14px 16px;
            margin-bottom: 16px;
        }
        .nm-price-box .nm-price-original {
            text-decoration: line-through;
            color: #868e96;
            margin-right: 10px;
        }
        .nm-price-box .nm-price-deal {
            color: #007bff;
            font-size: 20px;
            font-weight: 700;
        }
        .nm-section {
            margin-bottom: 20px;
        }
        .nm-section-title {
            font-weight: 700;
            margin-bottom: 10px;
        }
        .nm-section-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
        }
        @media (max-width: 991px) {
            .nm-section-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 575px) {
            .nm-section-grid {
                /* 行動版/窄寬度：最少維持一列 2 個商品 */
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }
        }
        /* ── NM 選品卡 ── */
        .nm-product-card {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 100%;
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        }
        .nm-product-card.selected {
            border-color: #4c6fff;
            box-shadow: 0 0 0 1px #4c6fff inset;
        }
        .nm-product-card--oos { opacity: 0.6; }
        .nm-section-grid { align-items: stretch; }
        .nm-oos-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e5e7eb;
            color: #6b7280;
            font-size: clamp(0.72rem, 2vw, 0.75rem);
            font-weight: 700;
            padding: 0 10px;
            border-radius: 8px;
            height: 32px;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .nm-product-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            padding: 8px 10px;
            border-bottom: 1px solid #f1f3f5;
        }
        /* 步進器（- N +） */
        .nm-qty-stepper {
            display: inline-flex;
            align-items: center;
            border: 1px solid #e5e7eb;
            background: #f8fafc;
            border-radius: 12px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .nm-qty-stepper__btn {
            width: 32px;
            height: 32px;
            border: 0;
            background: transparent;
            color: #374151;
            font-size: 18px;
            font-weight: 800;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
        }
        .nm-qty-stepper__btn:disabled { opacity: 0.35; cursor: default; }
        .nm-qty-stepper__value {
            width: 36px;
            height: 32px;
            border-left: 1px solid #e5e7eb;
            border-right: 1px solid #e5e7eb;
            background: #fff;
            color: #111827;
            font-weight: 800;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        /* 卡片 body */
        .nm-product-body {
            padding: 8px 10px 10px;
            cursor: pointer;
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            line-height: 1.2;
            min-height: 0;
        }
        .nm-product-image {
            width: 100%;
            border-radius: 8px;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            margin-bottom: 6px;
        }
        .nm-product-name {
            font-weight: 600;
            margin-bottom: 6px;
            font-size: clamp(0.8rem, 2.5vw, 0.95rem);
            color: #334155;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 3.6em;
        }
        .nm-product-spec {
            color: #6c757d;
            font-size: clamp(0.72rem, 2vw, 0.78rem);
            font-weight: 400;
        }
        .nm-product-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: auto;
            flex-shrink: 0;
        }
        .nm-product-price {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
            min-width: 0;
        }
        .nm-product-price .sale-price {
            font-size: clamp(0.85rem, 2.8vw, 1rem);
            font-weight: 700;
            color: #e11d48;
            line-height: 1.2;
            letter-spacing: 0.01em;
        }
        .nm-product-price .original-price {
            font-size: clamp(0.68rem, 1.8vw, 0.75rem);
            color: #94a3b8;
            text-decoration: line-through;
            line-height: 1.2;
            letter-spacing: 0.01em;
        }
        .nm-body-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .nm-view-link {
            border-radius: 10px;
            padding: 4px 8px;
            font-weight: 700;
        }
        /* 手機版：上下排、步進器與缺貨 badge 全寬 */
        @media (max-width: 767px) {
            .nm-product-bottom {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
            .nm-body-actions,
            .nm-qty-stepper {
                width: 100%;
            }
            .nm-qty-stepper__btn { flex: 1; }
            .nm-qty-stepper__value { flex: 1; width: auto; }
            .nm-oos-badge {
                width: 100%;
                height: 32px;
                justify-content: center;
                border-radius: 10px;
            }
        }
        .nm-product-foot {
            padding: 10px;
            padding-top: 0;
            display: none !important;
        }
        .nm-product-foot .nm-add-bottom-btn {
            width: 100%;
            height: 44px;
            border: none;
            border-radius: 12px;
            background: #FF7F32;
            color: #fff;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
            box-shadow: 0 6px 14px rgba(255, 127, 50, 0.28);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .nm-product-foot .nm-add-bottom-btn:hover {
            background: #d95a1a;
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(217, 90, 26, 0.24);
        }
        .nm-product-foot .nm-add-bottom-btn:active {
            transform: translateY(0);
            box-shadow: 0 6px 14px rgba(217, 90, 26, 0.18);
        }
        .nm-product-foot .nm-add-bottom-btn:disabled {
            background: #d1d5db;
            box-shadow: none;
            transform: none;
            cursor: default;
        }
        .nm-bottom-bar {
            position: fixed;
            /* 置於底部導覽列（.mb-footer-menu, z-index:1000）之下，
                讓中央「客服」圓鈕自然浮在結帳列前方，避免互相切割 */
            z-index: 999;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #4f4f4f;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            gap: 16px;
            /* 圓角 + 上方柔和陰影，與白色底部導覽列自然分層 */
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.14);
        }
        /* 行動版：將結帳列上移至 .mb-footer-menu（高度 64px + 安全區）之上，不覆蓋底部導覽列 */
        @media (max-width: 768px) {
            .nm-bottom-bar {
                bottom: calc(env(safe-area-inset-bottom, 0px));
            }
            /* NMSet 結帳列顯示時，將行動版浮動鈕上移到結帳列之上，避免互相遮擋 */
            body.nm-set-active .shop-pl-fab-stack {
                bottom: calc(142px + env(safe-area-inset-bottom, 0px));
            }
        }
        .nm-summary {
            color: #fff;
            font-weight: 700;
            font-size: 14px;
            line-height: 1.3;
            flex: 1;
            min-width: 0;
        }
        #nmAddToCartBtn {
            background-color: #FF7F32;
            border-color: #FF7F32;
            border-radius: 12px;
            padding: 9px 22px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(255, 127, 50, 0.3);
            transition: background-color 0.15s ease, box-shadow 0.15s ease;
        }
        #nmAddToCartBtn:hover:not(:disabled),
        #nmAddToCartBtn:focus:not(:disabled) {
            background-color: #e96f24;
            border-color: #e96f24;
            box-shadow: 0 6px 16px rgba(233, 111, 36, 0.34);
        }
        #nmAddToCartBtn:disabled {
            background-color: #bdbdbd;
            border-color: #bdbdbd;
            color: #f0f0f0;
            opacity: 1;
            box-shadow: none;
            cursor: not-allowed;
        }
        /* ── 觸控裝置：停用 NM 選品卡相關按鈕的 :hover（比照 cart-helper 對 tk-product-card 的集中處理）── */
        @media (hover: none) {
            /* 卡片「查看」連結（Bootstrap btn-outline-secondary）還原為非 hover 樣式 */
            .nm-view-link:hover {
                background-color: transparent !important;
                border-color: #6c757d !important;
                color: #6c757d !important;
            }
            /* 任選 set 底部「加入購物車」CTA 還原 */
            #nmAddToCartBtn:hover:not(:disabled) {
                background-color: #FF7F32;
                border-color: #FF7F32;
                box-shadow: 0 4px 12px rgba(255, 127, 50, 0.3);
            }
            /* 卡片底部加入按鈕（目前隱藏，一併還原以防未來啟用） */
            .nm-product-foot .nm-add-bottom-btn:hover {
                background: #FF7F32;
                transform: none;
                box-shadow: 0 6px 14px rgba(255, 127, 50, 0.28);
            }
        }
        .nm-empty {
            color: #6c757d;
            border: 1px dashed #dee2e6;
            border-radius: 8px;
            padding: 14px;
            text-align: center;
        }
        .shop-breadcrumb-nav .breadcrumb {
            margin-bottom: 0;
            background: transparent;
            padding: 0;
        }
        .shop-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
            color: #adb5bd;
        }
        .shop-breadcrumb-nav .breadcrumb-item a {
            color: #007bff;
            text-decoration: none;
        }
        .shop-breadcrumb-nav .breadcrumb-item a:hover {
            text-decoration: underline;
        }
        .shop-breadcrumb-nav .breadcrumb-item.active {
            color: #2c2c2c;
            font-weight: 600;
        }
        .shop-breadcrumb-nav + .section-subtitle {
            margin-top: 10px;
        }
        .shop-product-layout {
            display: grid;
            grid-template-columns: 1fr;
        }

        /* 賣場列表：一般商品卡等高、文字區高度一致 */
        .shop-products-col .product-grid {
            align-items: stretch;
            /* 桌機最多 4 欄、最少 2 欄（僅限此頁覆蓋共用 TKCSS.css） */
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            gap: 16px;
        }
        /* 平板/行動：維持至少 2 欄 */
        @media (max-width: 991px) {
            .shop-products-col .product-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 10px 15px;
            }
        }
        /* 賣場卡片：共用 tk-product-card 樣式（components/product-card_style），此處僅覆蓋賣場專屬設定 */
        .shop-products-col .tk-product-card {
            height: 100%;
            align-self: stretch;
        }
        /* 商品圖載入前不顯示灰底佔位方塊（換母分類時整片灰色色塊特別明顯）。
            共用元件 components/product-card_style 仍保留 #f1f5f9，故此處以 body 選擇器提高權重覆蓋
            （該元件在本頁 @@include 於 <style> 之後，同權重會蓋不過）。 */
        body.shop-product-list-page .tk-product-card-img-wrap {
            background: transparent;
        }

        /* ── 行動版：跨賣場無限下捲（瀑布式接續） ── */
        /* 往前載入時改由 JS 補償捲動位置；停用瀏覽器自動 scroll anchoring 以免重複補償造成跳動
            （iOS Safari 本就不支援 scroll anchoring，故一律以 JS 補償） */
        body.shop-product-list-page {
            overflow-anchor: none;
        }
        /* 接續賣場 banner：取代原本的文字分隔列，於商品格線中橫跨整列顯示各賣場 banner */
        .shop-banner.checkout-container.shop-chain-banner {
            grid-column: 1 / -1;
            max-width: none;
            padding-left: 0;
            padding-right: 0;
            margin: 16px 0;
        }
        /* 無 banner 圖時的標記列：維持原文字分隔列外觀，仍作為凍結窗格 scrollspy 的賣場區段起點 */
        .shop-chain-banner-empty {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.05rem;
            font-weight: 800;
            color: #111;
        }
        .shop-chain-banner-empty::before,
        .shop-chain-banner-empty::after {
            content: "";
            flex: 1 1 auto;
            height: 1px;
            background: rgba(0, 0, 0, 0.12);
        }
        /* 無 banner 圖時：桌機以賣場標題作為頁首（行動版已有凍結的 shopPlSectionTitle，故此塊僅桌機顯示） */
        .shop-pl-banner-titleonly {
            padding: 14px 0 6px;
        }
        .shop-pl-banner-titleonly h2 {
            font-size: 1.5rem;
            font-weight: 800;
            margin: 0;
            color: #111;
        }
        .shop-chain-status {
            text-align: center;
            color: #999;
            font-size: 0.9rem;
            padding: 18px 0 28px;
        }
        /* 左右滑動切換母分類時，頁面載入完成前的「轉圈」讀取動畫 */
        .product-loading--spinner {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
        }
        .tk-inline-spinner {
            width: 44px;
            height: 44px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #007bff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        .tk-inline-spinner-text {
            font-size: 16px;
            color: #999;
            letter-spacing: 0.5px;
        }
        /* 切換母分類載入期間：只露出轉圈動畫，已插入的商品卡（含賣場 banner）先隱藏，
            避免圖片未載入前先曝光一整片灰底佔位方塊。
            用 visibility 而非 display:none —— 保留版面，lazy 圖片才會照常開始載入。 */
        .product-grid.tk-grid-swap-loading > *:not(#shopChainInlineLoading) {
            visibility: hidden;
        }
        .shop-products-col .product-card .product-add-cart-btn {
            width: 100%;
            margin-top: 10px;
            flex-shrink: 0;
            border-radius: 12px;
            padding: 10px 12px;
            font-weight: 800;
            letter-spacing: 0.4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .product-card .product-add-cart-btn {
            width: 100%;
            margin-top: 10px;
        }



        /* ── 賣場列表頁：行動版版型（比照品牌 APP 截圖） ── */
        body.shop-product-list-page {
            background: #fff;
        }
        @media (min-width: 768px) {
            body.shop-product-list-page {
                background: linear-gradient(135deg, #f5f8ff 0%, #fff7f1 50%, #f1fff9 100%);
            }
        }
        /* 頂欄一併黏頂（與手機首頁 mobile-home-top 一致） */
        .mobile-home-top {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: #fff;
        }
        .mobile-home-top .checkout-header.checkout-header--mobile-storefront {
            position: relative !important;
            top: auto !important;
        }
        /* 桌機：header-brand 左緣與 .shop-banner.checkout-container（max-width:1200px / padding 16px）對齊 */
        @media (min-width: 768px) {
            body.shop-product-list-page .mobile-home-top .checkout-header .checkout-container.d-md-flex {
                width: 100%;
                max-width: 1200px;
                padding-left: 16px;
                padding-right: 16px;
                margin-left: auto;
                margin-right: auto;
            }
        }
        /* offcanvas 側欄と backdrop を checkout-header (z-index:1080) より上に配置 */
        @media (max-width: 767px) {
            body.shop-product-list-page .offcanvas-backdrop {
                z-index: 1085 !important;
            }
            body.shop-product-list-page .checkout-offcanvas {
                z-index: 1090 !important;
            }
        }
    
        @media (max-width: 767px) {
            body.shop-product-list-page .shop-pl-hide-mobile-breadcrumb {
                display: none !important;
            }
            body.shop-product-list-page .shop-banner.checkout-container {
                margin-top: 0;
                margin-bottom: 0;
                padding-left: 0;
                padding-right: 0;
                max-width: none;
                overflow: hidden;
            }
            body.shop-product-list-page main.checkout-container {
                padding-left: 12px;
                padding-right: 12px;
            }
        }
        .shop-pl-subshop-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding: 12px 0 14px;
            margin: 0 -4px;
        }
        .shop-pl-subshop-scroll::-webkit-scrollbar {
            display: none;
        }
        .shop-pl-subshop-chip {
            flex: 0 0 auto;
            width: 76px;
            text-align: center;
            text-decoration: none;
            color: #222;
        }
        .shop-pl-subshop-chip__img {
            width: 72px;
            height: 72px;
            margin: 0 auto 6px;
            border-radius: 16px;
            /* icon 載入前不顯示粉紅佔位色塊 */
            background: transparent;
            border: 2px solid transparent;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: 800;
            color: #db2777;
        }
        .shop-pl-subshop-chip.is-active .shop-pl-subshop-chip__img {
            border-color: #111;
            box-shadow: 0 0 0 1px #111;
        }
        .shop-pl-subshop-chip__label {
            font-size: 0.72rem;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .shop-pl-mobile-section-head {
            /* 移到 banner 上方後已不在 main.checkout-container 內，補回原本由 main 提供的 12px 水平內距 */
            padding: 4px 12px 10px;
        }
        /* 行動版：賣場列表（ICON 橫向列）凍結窗格 —— 緊貼在凍結的 mobile-home-top 下方
            （top 偏移量由 JS 量測 mobile-home-top 高度寫入 --mobile-home-top-h） */
        @media (max-width: 767px) {
            .shop-pl-mobile-section-head {
                position: sticky;
                top: var(--mobile-home-top-h, 0px);
                z-index: 90;
                background: #fff;
                box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.25);
            }
        }
        .shop-pl-mobile-section-head h2 {
            font-size: 1.05rem;
            font-weight: 800;
            margin: 0;
            color: #111;
        }
        .shop-pl-fab-stack {
            position: fixed;
            left: 12px;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            z-index: 1070;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        @media (min-width: 768px) {
            .shop-pl-fab-stack {
                display: none;
            }
        }
        .shop-pl-fab-task {
            display: inline-block;
            padding: 8px 14px;
            border-radius: 999px;
            background: linear-gradient(90deg, #f472b6, #ec4899);
            color: #fff !important;
            font-size: 0.8rem;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
        }
        .shop-pl-fab-cs {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(180deg, #fff 0%, #fce7f3 100%);
            border: 2px solid #fbcfe8;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #db2777;
            font-size: 1.5rem;
        }

        /* ── 行動版賣場 ICON 橫向列表 ── */
        .shop-pl-icon-scroll {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding: 8px 0 10px;
            margin: 6px -2px 0;
        }
        .shop-pl-icon-scroll::-webkit-scrollbar {
            display: none;
        }
        .shop-pl-icon-chip {
            flex: 0 0 auto;
            width: 68px;
            text-align: center;
            text-decoration: none;
            color: #222;
        }
        .shop-pl-icon-chip__img {
            width: 62px;
            height: 62px;
            margin: 0 auto 5px;
            border-radius: 7px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 800;
            color: #db2777;
            /* icon 載入前不顯示粉紅佔位色塊 */
            background: transparent;
            transition: border-color 0.15s;
        }
        .shop-pl-icon-chip__img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .shop-pl-icon-chip.is-active .shop-pl-icon-chip__img {
            border: 1px solid rgb(65, 41, 41);
        }
        .shop-pl-icon-chip__label {
            font-size: 0.68rem;
            line-height: 1.3;
            color: #929292;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .shop-pl-icon-chip.is-active .shop-pl-icon-chip__label {
            font-weight: 700;
            color: #181717;
        }

        /* ── mobile-tab-nav：與首頁行動版一致 ── */
        .mobile-tab-nav {
            background: #fff;
            border-bottom: 1px solid #e8e8e8;
            display: flex;
            align-items: stretch;
            width: 100%;
            padding: 0;
            gap: 0;
        }
        .mobile-tab-nav .tab-item {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            /* 上內距 6px＝原 .msf-brand-row 的 6px 下內距移轉而來（見下方 .msf-brand-row 覆寫）：
               視覺位置不變，但這 6px 成為連結真實可點區域（header z-index:1080 蓋不到自身內距） */
            padding: 6px 6px 10px;
            color: #9a9a9a;
            font-weight: 500;
            text-decoration: none;
            font-size: 15px;
            position: relative;
            transition: color 0.2s;
            touch-action: manipulation;
        }
        /* 文字省略號移到內層 span：連結本身需 overflow visible，::before 擴張的點擊區才不會被裁掉 */
        .mobile-tab-nav .tab-item .tab-item-text {
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* 行動版擴大點擊判定區域（不改變版面）：以 ::before 將可點範圍向下延伸
           吃掉 nav 自身的 pb-1（4px）內距；搭配上方 6px padding-top，總觸控高度約 43px */
        .mobile-tab-nav .tab-item::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: -4px;
            left: 0;
            right: 0;
        }
        .mobile-tab-nav .tab-item.active {
            color: #111;
            font-weight: 700;
        }
        .mobile-tab-nav .tab-item.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 10%;
            width: 80%;
            height: 3px;
            background: #111;
            border-radius: 2px;
        }
        .msf-topbar{
            border-bottom-width: 0px !important;
        }
        .msf-brand-row{
            /* 原 6px 下內距移轉為 .tab-item 的 padding-top（擴大分頁點擊區），視覺間距不變 */
            padding-bottom: 0px !important;
        }
