/**
 * 官網響應式 Phase 1：手機抽屜、2 欄列表、Banner 16:9、購物車強化
 * 不動結帳／cart API；列表 EC「加入購物車」按鈕留 Phase 2（data-wx-ec-list-action 預留）
 */

/* ===== 頂部工具列：精緻圖示按鈕（購物車 + ☰，無文字） ===== */
.wx-mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    border-radius: 12px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wx-mobile-nav-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.wx-mobile-nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
}

.wx-mobile-nav-toggle__bars span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #334155;
}

.header-nav-tools .nav-cart-btn__label,
.header-nav-tools .wx-mobile-nav-toggle__label {
    display: none !important;
}

.header-nav-tools .nav-cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    justify-content: center;
}

.header-nav-tools .nav-cart-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    transform: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.header-nav-tools .nav-cart-btn__icon {
    font-size: 19px;
    line-height: 1;
}

.header-nav-tools .nav-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    background: var(--primary-color, var(--pos-btn-bg, #778ca3));
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 35%, transparent);
}

.header-nav-tools .nav-cart-badge.is-empty {
    opacity: 1;
    background: #94a3b8;
    box-shadow: none;
}

/* 桌機／手機：購物車 + ☰ 同列右側 */
.header-nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-nav-tools .header-cart-wrapper {
    margin-left: 0;
}

/* ===== 手機頂部：選單 + 購物車；會員改藏抽屜 ===== */
@media (max-width: 767px) {
    .member-widget {
        display: none !important;
    }

    /* 單列 header：Logo 左（header-main）+ 工具右（header-nav 重疊同列，僅一組 🛒／☰） */
    .wx-storefront-chrome .header-main,
    body.store-front-container .header-main,
    body.wx-static-body .wx-storefront-chrome .header-main {
        --wx-mobile-header-h: 84px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        text-align: left;
        height: var(--wx-mobile-header-h);
        min-height: var(--wx-mobile-header-h);
        max-height: var(--wx-mobile-header-h);
        padding: 0 14px;
        box-sizing: border-box;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
        overflow: visible;
    }

    .wx-storefront-chrome .header-main .brand-logo-link,
    body.store-front-container .header-main .brand-logo-link,
    body.wx-static-body .wx-storefront-chrome .header-main .brand-logo-link {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        min-width: 0;
        line-height: 0;
        text-decoration: none;
    }

    .wx-storefront-chrome .brand-logo-img,
    body.store-front-container .brand-logo-img,
    body.wx-static-body .wx-storefront-chrome .brand-logo-img {
        height: 64px;
        max-height: 64px;
        width: auto;
        max-width: min(52vw, 240px);
        display: block;
        object-fit: contain;
        object-position: left center;
        image-rendering: auto;
    }

    .wx-storefront-chrome .brand-logo-text,
    body.store-front-container .brand-logo-text,
    body.wx-static-body .wx-storefront-chrome .brand-logo-text {
        font-size: 26px;
        line-height: 1.1;
    }

    .wx-storefront-chrome .header-nav,
    body.store-front-container .header-nav,
    body.wx-static-body .wx-storefront-chrome .header-nav {
        position: sticky;
        top: var(--top-banner-height, 0px);
        z-index: 1110;
        height: var(--wx-mobile-header-h, 84px);
        margin-top: calc(-1 * var(--wx-mobile-header-h, 84px));
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        overflow: visible;
        pointer-events: none;
    }

    .wx-storefront-chrome .header-nav::before,
    .wx-storefront-chrome .header-nav::after,
    body.store-front-container .header-nav::before,
    body.store-front-container .header-nav::after,
    body.wx-static-body .wx-storefront-chrome .header-nav::before,
    body.wx-static-body .wx-storefront-chrome .header-nav::after {
        display: none;
    }

    .wx-storefront-chrome .header-nav-links,
    body.store-front-container .header-nav-links,
    body.wx-static-body .wx-storefront-chrome .header-nav-links {
        display: none !important;
    }

    .wx-storefront-chrome .header-nav-bar,
    body.store-front-container .header-nav-bar,
    body.wx-static-body .wx-storefront-chrome .header-nav-bar {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        max-width: none;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0 12px;
        box-sizing: border-box;
        /* 這一整條是空的透明列，只有右側按鈕要能點；整條開 pointer-events:auto
           會在手機版把左邊 logo 的點擊整個吃掉，所以只在實際按鈕上開 */
        pointer-events: none;
    }

    .header-nav-tools {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-left: auto;
        pointer-events: auto;
    }

    .wx-mobile-nav-toggle {
        display: inline-flex;
    }

    .header-nav-tools .nav-cart-btn,
    .header-nav-tools .wx-mobile-nav-toggle {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 8px !important;
    }

    .header-nav-tools .nav-cart-btn:hover,
    .header-nav-tools .wx-mobile-nav-toggle:hover {
        background: rgba(15, 23, 42, 0.06) !important;
        box-shadow: none !important;
        transform: none;
    }

    .wx-cart-toast {
        top: calc(var(--top-banner-height, 0px) + var(--header-main-height, 84px) + 8px);
    }
}

@media (min-width: 768px) {
    .wx-storefront-chrome .header-nav,
    body.store-front-container .header-nav,
    body.wx-static-body .wx-storefront-chrome .header-nav {
        margin-top: 0;
        height: auto;
        pointer-events: auto;
    }
}

/* ===== 抽屜 ===== */
.wx-mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 6000;
    pointer-events: none;
}

.wx-mobile-nav-drawer:not(.is-open),
.wx-mobile-nav-drawer[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.wx-mobile-nav-drawer.is-open:not([hidden]) {
    display: block;
    pointer-events: auto;
}

.wx-mobile-nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wx-mobile-nav-drawer.is-open .wx-mobile-nav-drawer__backdrop {
    opacity: 1;
}

.wx-mobile-nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    max-height: 100dvh;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    transform: translate3d(104%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    box-sizing: border-box;
}

.wx-mobile-nav-drawer.is-open .wx-mobile-nav-drawer__panel {
    transform: translate3d(0, 0, 0);
}

.wx-mobile-nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.wx-mobile-nav-drawer__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.wx-mobile-nav-drawer__close {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.wx-mobile-nav-drawer__close:hover {
    background: #e2e8f0;
}

.wx-drawer-search {
    padding: 12px 16px 8px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.wx-drawer-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wx-drawer-search__row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
}

.wx-drawer-search__icon {
    font-size: 15px;
    line-height: 1;
    opacity: 0.7;
}

.wx-drawer-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

.wx-drawer-search__hint {
    margin: 6px 0 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* 抽屜內會員區（手機頂部浮動 widget 改藏這裡） */
.wx-drawer-member-panel {
    padding: 12px 16px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    flex-shrink: 0;
}

.wx-drawer-member-panel__hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.wx-drawer-member-panel__hello {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px;
}

.wx-drawer-member-panel__points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e3eaf0 0%, #cdd8e3 55%, #bdcbd8 100%);
    border: 1px solid rgba(112, 132, 153, 0.35);
    font-size: 12px;
    font-weight: 700;
    color: #4a5e73;
}

a.wx-drawer-member-panel__points {
    text-decoration: none;
}

.wx-drawer-member-panel__points strong {
    color: #617488;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.wx-drawer-member-gold-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: #b45309;
    color: #fff7ed;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
}
.wx-drawer-member-gold-chip[hidden] {
    display: none !important;
}

.wx-drawer-member-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wx-drawer-member-panel__btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}

.wx-drawer-member-panel__btn--primary {
    background: var(--button-color, var(--primary-color, #6e7f8d));
    border-color: transparent;
    color: #ffffff;
}

.wx-drawer-member-panel__btn:hover {
    filter: brightness(0.97);
}

.wx-drawer-nav-section-label {
    margin: 0;
    padding: 10px 20px 6px;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wx-mobile-nav-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
}

.wx-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wx-drawer-nav__link {
    display: block;
    padding: 12px 20px;
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.wx-drawer-nav__link:hover {
    background: #f8fafc;
}

.wx-drawer-nav__link.is-active {
    color: var(--button-color, var(--primary-color, #6e7f8d));
    background: #f1f5f9;
    font-weight: 800;
}

.wx-drawer-nav__group.is-filter-hidden,
.wx-drawer-nav__sub-group.is-filter-hidden {
    display: none;
}

.wx-drawer-nav__link--main {
    font-weight: 800;
}

.wx-drawer-nav__group-head,
.wx-drawer-nav__sub-head {
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.wx-drawer-nav__group.is-expanded > .wx-drawer-nav__group-head,
.wx-drawer-nav__sub-group.is-expanded > .wx-drawer-nav__sub-head {
    background: #f8fafc;
}

.wx-drawer-nav__group-head .wx-drawer-nav__link--main,
.wx-drawer-nav__sub-head .wx-drawer-nav__link--sub {
    flex: 1 1 auto;
}

.wx-drawer-nav__toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.wx-drawer-nav__toggle:focus-visible {
    outline: 2px solid var(--button-color, var(--primary-color, #6e7f8d));
    outline-offset: 1px;
}

.wx-drawer-nav__toggle:active {
    background: #eef2f6;
}

.wx-drawer-nav__toggle svg {
    transition: transform 0.2s ease;
}

.wx-drawer-nav__toggle--sub {
    width: 34px;
    height: 34px;
    margin-right: 8px;
}

.wx-drawer-nav__group.is-expanded > .wx-drawer-nav__group-head > .wx-drawer-nav__toggle,
.wx-drawer-nav__sub-group.is-expanded > .wx-drawer-nav__sub-head > .wx-drawer-nav__toggle {
    color: #475569;
}

.wx-drawer-nav__group.is-expanded > .wx-drawer-nav__group-head > .wx-drawer-nav__toggle svg,
.wx-drawer-nav__sub-group.is-expanded > .wx-drawer-nav__sub-head > .wx-drawer-nav__toggle svg {
    transform: rotate(180deg);
}

.wx-drawer-nav__subs {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.26s ease, opacity 0.2s ease;
    padding-left: 8px;
    margin: 0 12px 0 20px;
    border-left: 3px solid #e2e8f0;
}

.wx-drawer-nav__group.is-expanded > .wx-drawer-nav__subs {
    /* 目前分類最多幾十個細項也夠用；比實際內容大一點，動畫時長才吃得到全部內容 */
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 8px;
}

.wx-drawer-nav__link--sub {
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.wx-drawer-nav__sub-group {
    min-width: 0;
}

.wx-drawer-nav__link--all {
    font-weight: 700;
    color: var(--button-color, var(--primary-color, #6e7f8d));
}

.wx-drawer-nav__terts {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease;
    padding-left: 10px;
    margin: 0 12px 0 16px;
    border-left: 2px solid #e2e8f0;
}

.wx-drawer-nav__sub-group.is-expanded > .wx-drawer-nav__terts {
    max-height: 1000px;
    opacity: 1;
    margin-bottom: 2px;
}

.wx-drawer-nav__link--tert {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.wx-mobile-nav-drawer__foot {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
}

.wx-drawer-cart-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--primary-color, var(--pos-btn-bg, #778ca3));
    color: var(--btn-text-color, #ffffff) !important;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease;
}

.wx-drawer-cart-cta:hover {
    background: color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 82%, #1e293b);
    transform: none;
}

body.wx-mobile-nav-drawer-open {
    overflow: hidden;
}

/* ===== Banner：手機 16:9（桌機維持 8:1） ===== */
@media (max-width: 767px) {
    .wx-home-hero-wrap .wx-hero-carousel,
    .wx-home-hero-wrap .wx-hero-carousel.banner-slider,
    .wx-home-hero-wrap .wx-hero-carousel .hero-slide.wx-banner-slide {
        aspect-ratio: 16 / 9 !important;
    }

    .catalog-theme-hero.has-banner {
        aspect-ratio: 21 / 9;
        max-height: 110px;
        min-height: 0;
        height: auto;
        padding: 0;
    }
}

/* ===== 舊 .product-grid 後備（.wx-home-product-grid 手機 2 欄改由 wx-home-product-grid.css 管） ===== */
@media (max-width: 767px) {
    .catalog-theme-grid.product-grid,
    .catalog-theme-page .product-grid,
    .preorder-list-container .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== 首頁商品區：手機 2 欄 grid（取代橫向 carousel） ===== */
@media (max-width: 767px) {
    body.store-front-container .gallery-container.product-slider-section-container,
    body.store-front-container .product-slider-section-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-top: 24px !important;
        margin-bottom: 24px !important;
    }

    body.store-front-container .product-slider-section-container .carousel-wrapper--4up,
    body.store-front-container .product-slider-section-container .carousel-wrapper--4up.wx-product-swiper {
        padding: 0 !important;
        overflow: visible !important;
    }

    body.store-front-container .product-slider-section-container .carousel-img-nav-anchor,
    body.store-front-container .product-slider-section-container .carousel-btn {
        display: none !important;
    }

    body.store-front-container .product-slider-section-container .carousel-track,
    body.store-front-container .product-slider-section-container .swiper-wrapper,
    body.store-front-container .product-slider-section-container .carousel-track--4-visible.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        overflow-x: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.store-front-container .product-slider-section-container .swiper-slide,
    body.store-front-container .product-slider-section-container .product-card-item-wrap,
    body.store-front-container .product-slider-section-container .product-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card,
        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .swiper-slide .product-card,
        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .carousel-track .product-card {
            width: 100% !important;
            height: auto !important;
            min-width: 0 !important;
            min-height: 0 !important;
            max-width: 100% !important;
            max-height: none !important;
            aspect-ratio: auto !important;
            margin: 0 !important;
            padding: 12px !important;
            overflow: visible !important;
            justify-content: flex-start !important;
        }

        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .card-body,
        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .product-info-content {
            flex: 1 1 auto !important;
            min-height: 0 !important;
            overflow: visible !important;
            justify-content: flex-start !important;
            padding: 0 !important;
        }

        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .product-action-btn-wrap {
            flex-shrink: 0 !important;
            margin-top: 8px !important;
            width: 100% !important;
            overflow: visible !important;
        }

        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .card-btn,
        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .btn-submit-order {
            margin-top: 0 !important;
            flex-shrink: 0 !important;
            position: relative !important;
            bottom: auto !important;
            transform: none !important;
        }

        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .product-price-and-badge-line,
        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .card-price-block {
            flex-wrap: wrap !important;
            gap: 4px !important;
            margin-bottom: 4px !important;
        }

        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .card-no-deposit-badge,
        body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .deposit-free-badge {
            font-size: 10px !important;
            line-height: 1.2 !important;
            white-space: normal !important;
        }

    body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .card-title,
    body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .product-title,
    body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .product-info-content > .card-title,
    body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .product-info-content > .product-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        height: auto !important;
        min-height: 2.7em !important;
        max-height: 2.7em !important;
        text-align: center !important;
    }

    body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .card-btn,
    body.store-front-container .product-slider-section-container:not(.wx-home-section-grid) .product-card .btn-submit-order {
        font-size: 12px !important;
        padding: 0 6px !important;
    }

    body.store-front-container .product-slider-section-container .section-title {
        font-size: 18px !important;
        margin-bottom: 0 !important;
    }
    body.store-front-container .product-slider-section-container .section-header-container {
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 14px !important;
    }
    body.store-front-container .product-slider-section-container .wx-section-more-wrap {
        margin: 22px 0 0;
    }
    body.store-front-container .product-slider-section-container .wx-section-more-link {
        min-width: 148px;
        padding: 9px 22px;
        font-size: 12px;
    }
}

/* 7-11 門市欄位只能從官方地圖選：唯讀外觀（灰底、不出現輸入游標），點一下會開地圖 */
input.wx-ec-711-readonly {
    background: #f1f5f9 !important;
    color: #0f172a;
    cursor: pointer;
    caret-color: transparent;
}
input.wx-ec-711-readonly::placeholder {
    color: #94a3b8;
}

/* 結帳：宅配地址「存入會員資料」勾選與聯絡資料提示 */
.wx-checkout-save-addr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
}
.wx-checkout-save-addr input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}
.wx-checkout-contact-fill-hint {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}
