/**
 * 官網前台：商品卡 41vh 等高寬 + 大圖 20vh + 按鈕內收
 * 僅 body.store-front-container；與 POS #tab-ec 完全隔離
 */

body.store-front-container .carousel-wrapper--4up .swiper-wrapper,
body.store-front-container .carousel-track.carousel-track--4-visible {
    align-items: stretch !important;
}

body.store-front-container .carousel-wrapper--4up .swiper-slide,
body.store-front-container .carousel-wrapper--4up .product-card-item-wrap,
body.store-front-container .carousel-wrapper--4up .product-card-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 41vh !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    overflow: visible !important;
}

/* ── 1. 卡片外框：41vh 等高寬 ── */
body.store-front-container .product-card,
body.store-front-container .preorder-section div[class*="card"],
body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card,
body.store-front-container .carousel-track .product-card,
body.store-front-container .wm-product-section .product-card {
    background: #ffffff !important;
    border: 1px solid #ebedf0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    width: 41vh !important;
    height: 41vh !important;
    min-width: 41vh !important;
    min-height: 41vh !important;
    max-width: 41vh !important;
    max-height: 41vh !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card,
body.store-front-container .carousel-track .product-card {
    width: min(41vh, 100%) !important;
    height: min(41vh, 100%) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: min(41vh, 100%) !important;
    max-height: min(41vh, 100%) !important;
}

/* ── 2. 商品圖：純淨無灰框、20vh（騰出發售日空間） ── */
body.store-front-container .product-card .card-img-box,
body.store-front-container .product-card .card-img-box.product-img-container,
body.store-front-container .product-card .product-img-wrapper,
body.store-front-container .product-card .product-image-wrapper,
body.store-front-container .preorder-section div[class*="card"] .card-img-box,
body.store-front-container .preorder-section div[class*="card"] .product-img-wrapper {
    flex: 0 0 20vh !important;
    width: 100% !important;
    height: 20vh !important;
    min-height: 0 !important;
    max-height: 20vh !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

body.store-front-container .product-card .card-img-box img,
body.store-front-container .product-card .product-img-wrapper img,
body.store-front-container .product-card .product-image-wrapper img,
body.store-front-container .preorder-section div[class*="card"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 20vh !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* ── 3. 文字區極限壓縮 + 價格/橘標同一列 ── */
body.store-front-container .product-card .card-body,
body.store-front-container .product-card .product-info-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    padding: 0 0 8px 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
}

body.store-front-container .product-card .card-desc {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 品名：與價格同級視覺（17px 特粗） */
body.store-front-container .product-card .card-title,
body.store-front-container .product-card .product-title,
body.store-front-container .product-card .product-info-content > .card-title,
body.store-front-container .product-card .product-info-content > .product-title,
body.store-front-container .preorder-section div[class*="card"] .card-title,
body.store-front-container .preorder-section div[class*="card"] .product-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}

body.store-front-container .product-card .product-info-content > .product-tags-row {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    gap: 2px !important;
    flex: 0 0 auto !important;
}

/* 發售日：強制復活（先前為騰空間被 display:none） */
body.store-front-container .product-card .preorder-date,
body.store-front-container .product-card .product-release-date,
body.store-front-container .product-card .product-info-content > .preorder-date,
body.store-front-container .product-card .product-info-content > .product-release-date,
body.store-front-container .preorder-section div[class*="card"] .preorder-date,
body.store-front-container .preorder-section div[class*="card"] .product-release-date {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #5d6d7e !important;
    line-height: 1.25 !important;
    margin: 3px 0 2px 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.store-front-container .product-card .preorder-deposit {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* 價格 + 橘色免訂金：同一橫列（父列不設字級，避免壓過價格） */
body.store-front-container .product-card .product-price-and-badge-line,
body.store-front-container .product-card .card-price-block,
body.store-front-container .product-card .card-body > .card-price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
    width: 100% !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

/* 有金額：鮮紅大字 */
body.store-front-container .product-card .card-price:not(.card-price--inquiry),
body.store-front-container .product-card .product-price-and-badge-line .card-price:not(.card-price--inquiry),
body.store-front-container .product-card .product-price-and-badge-line .product-price,
body.store-front-container .product-card .product-price:not(.card-price--inquiry),
body.store-front-container .preorder-section div[class*="card"] .card-price:not(.card-price--inquiry),
body.store-front-container .preorder-section div[class*="card"] .product-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #d1434f !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    text-align: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 歡迎諮詢店內 */
body.store-front-container .product-card .card-price--inquiry,
body.store-front-container .product-card .product-price-and-badge-line .card-price--inquiry {
    display: inline-flex !important;
    width: auto !important;
    height: 22px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    border: 1px solid var(--pos-highlight, var(--primary-color, #587493)) !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--pos-highlight, var(--primary-color, #587493)) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    text-align: center !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.store-front-container .product-card .card-no-deposit-badge,
body.store-front-container .product-card .deposit-free-badge {
    display: inline-block !important;
    padding: 2px 5px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 48% !important;
    box-sizing: border-box !important;
}

/* 無獨立 badge 列時：價格單獨一行仍緊湊 */
body.store-front-container .product-card .card-body > .card-price:only-of-type {
    display: block !important;
    margin: 0 0 2px 0 !important;
}

/* ── 4. 深藍按鈕貼底、底襯內縮（Flex Padding-Push） ── */
body.store-front-container .product-card .product-action-btn-wrap {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

body.store-front-container .product-card .card-btn,
body.store-front-container .product-card .btn-submit-order,
body.store-front-container .product-card .btn-preorder,
body.store-front-container .preorder-section div[class*="card"] button,
body.store-front-container .preorder-section div[class*="card"] .card-btn {
    position: relative !important;
    bottom: unset !important;
    left: unset !important;
    right: unset !important;
    top: unset !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: none !important;
    box-sizing: border-box !important;
    transform: none !important;
}
body.store-front-container .product-card .card-btn:not(.instock),
body.store-front-container .product-card .btn-submit-order:not(.instock),
body.store-front-container .preorder-section div[class*="card"] button:not(.instock),
body.store-front-container .preorder-section div[class*="card"] .card-btn:not(.instock),
body.store-front-container .btn-blue-preorder {
    color: var(--primary-color, var(--pos-btn-bg, #778ca3)) !important;
}

/* 壓過 index.php 內嵌灰框／死高度 */
body.store-front-container .carousel-track .product-card .card-img-box,
body.store-front-container .wm-product-section .product-card .card-img-box,
body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card .card-img-box,
body.store-front-container .carousel-track .product-card .product-image-wrapper,
body.store-front-container .wm-product-section .product-card .product-image-wrapper,
body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card .product-img-wrapper {
    flex: 0 0 20vh !important;
    height: 20vh !important;
    max-height: 20vh !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    border-radius: 0 !important;
}

body.store-front-container .carousel-track .product-card .card-img-box img,
body.store-front-container .wm-product-section .product-card .card-img-box img,
body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card .card-img-box img {
    width: 100% !important;
    height: 100% !important;
    max-height: 20vh !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

body.store-front-container .carousel-track .product-card,
body.store-front-container .wm-product-section .product-card {
    min-height: 0 !important;
}

/* 左上角預購／現貨：淡色霧面晶片 */
body.store-front-container .badge-status-top-left {
    font-weight: 700 !important;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
body.store-front-container .badge-status-top-left.preorder {
    background:
        linear-gradient(
            color-mix(in srgb, var(--tag-custom-color, #AD6B4A) 16%, transparent),
            color-mix(in srgb, var(--tag-custom-color, #AD6B4A) 16%, transparent)
        ),
        rgba(255, 255, 255, 0.76) !important;
    color: var(--tag-custom-color, #AD6B4A) !important;
    -webkit-text-fill-color: var(--tag-custom-color, #AD6B4A) !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 5px 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
    box-shadow: none !important;
    display: inline-block !important;
}
body.store-front-container .product-card .card-img-box .badge-status-top-left.preorder,
body.store-front-container .product-card .product-img-wrapper .badge-status-top-left.preorder,
body.store-front-container .product-card .badge-status-top-left.preorder,
body.store-front-container .product-card .badge-status-top-left.preorder *,
body.store-front-container .preorder-section div[class*="card"] .badge-status-top-left.preorder,
body.store-front-container .preorder-section div[class*="card"] .badge-status-top-left.preorder * {
    color: var(--tag-custom-color, #AD6B4A) !important;
    -webkit-text-fill-color: var(--tag-custom-color, #AD6B4A) !important;
}
body.store-front-container .badge-status-top-left.instock {
    background:
        linear-gradient(
            color-mix(in srgb, var(--instock-tag-color, #728B7E) 16%, transparent),
            color-mix(in srgb, var(--instock-tag-color, #728B7E) 16%, transparent)
        ),
        rgba(255, 255, 255, 0.76) !important;
    color: var(--instock-tag-color, #728B7E) !important;
    -webkit-text-fill-color: var(--instock-tag-color, #728B7E) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
    box-shadow: none !important;
}

/* 預購標籤：100% 聯動 --tag-custom-color（覆蓋所有 badge / tag 變體） */
body.store-front-container .product-card .badge-status-top-left.preorder,
body.store-front-container .preorder-section div[class*="card"] .badge-status-top-left.preorder {
    background:
        linear-gradient(
            color-mix(in srgb, var(--tag-custom-color, #AD6B4A) 16%, transparent),
            color-mix(in srgb, var(--tag-custom-color, #AD6B4A) 16%, transparent)
        ),
        rgba(255, 255, 255, 0.76) !important;
    color: var(--tag-custom-color, #AD6B4A) !important;
    -webkit-text-fill-color: var(--tag-custom-color, #AD6B4A) !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
    border-radius: 6px !important;
    display: inline-block !important;
}
body.store-front-container .product-card .badge-status-top-left.preorder *,
body.store-front-container .preorder-section div[class*="card"] .badge-status-top-left.preorder * {
    color: var(--tag-custom-color, #AD6B4A) !important;
    -webkit-text-fill-color: var(--tag-custom-color, #AD6B4A) !important;
}

/* ── 5. 大螢幕桌機專屬（≥1400px）：流體四欄緊密 350px 高，不溢出裁切 ── */
@media (min-width: 1400px) {
    body.store-front-container .product-slider-section-container,
    body.store-front-container .gallery-container.product-slider-section-container {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

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

    body.store-front-container .product-slider-section-container .carousel-wrapper--4up .carousel-track,
    body.store-front-container .product-slider-section-container .carousel-wrapper--4up .swiper-wrapper,
    body.store-front-container .product-slider-section-container .carousel-wrapper--4up .carousel-track--4-visible.swiper-wrapper {
        --wx-desk-gap: 20px;
        --wx-desk-col: calc((100% - (var(--wx-desk-gap) * 3)) / 4);
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: var(--wx-desk-gap) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
    }

    body.store-front-container .carousel-wrapper--4up .swiper-slide,
    body.store-front-container .carousel-wrapper--4up .product-card-item-wrap,
    body.store-front-container .carousel-wrapper--4up .product-card-wrapper,
    body.store-front-container .product-slider-section-container .carousel-wrapper--4up .swiper-slide,
    body.store-front-container .product-slider-section-container .carousel-wrapper--4up .product-card-item-wrap,
    body.store-front-container .product-slider-section-container .carousel-wrapper--4up .product-card-wrapper {
        width: var(--wx-desk-col) !important;
        max-width: var(--wx-desk-col) !important;
        flex: 0 0 var(--wx-desk-col) !important;
        min-width: 0 !important;
        min-height: 350px !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    body.store-front-container .product-card,
    body.store-front-container .preorder-section div[class*="card"],
    body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card,
    body.store-front-container .carousel-track .product-card,
    body.store-front-container .wm-product-section .product-card {
        width: 100% !important;
        height: 350px !important;
        min-width: 0 !important;
        min-height: 350px !important;
        max-width: 100% !important;
        max-height: 350px !important;
        aspect-ratio: auto !important;
        padding: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.store-front-container .product-card .card-body,
    body.store-front-container .product-card .product-info-content {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    body.store-front-container .product-card .product-action-btn-wrap {
        margin-top: auto !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
    }

    body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card,
    body.store-front-container .carousel-track .product-card {
        width: 100% !important;
        height: 350px !important;
        min-width: 0 !important;
        min-height: 350px !important;
        max-width: 100% !important;
        max-height: 350px !important;
    }

    body.store-front-container .product-card .card-img-box,
    body.store-front-container .product-card .card-img-box.product-img-container,
    body.store-front-container .product-card .product-img-wrapper,
    body.store-front-container .product-card .product-image-wrapper,
    body.store-front-container .preorder-section div[class*="card"] .card-img-box,
    body.store-front-container .preorder-section div[class*="card"] .product-img-wrapper,
    body.store-front-container .carousel-track .product-card .card-img-box,
    body.store-front-container .wm-product-section .product-card .card-img-box,
    body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card .card-img-box,
    body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card .product-img-wrapper {
        flex: 0 0 180px !important;
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        margin: 0 0 8px 0 !important;
    }

    body.store-front-container .product-card .card-img-box img,
    body.store-front-container .product-card .product-img-wrapper img,
    body.store-front-container .product-card .product-image-wrapper img,
    body.store-front-container .product-card img,
    body.store-front-container .preorder-section div[class*="card"] img,
    body.store-front-container .carousel-track .product-card .card-img-box img,
    body.store-front-container .wm-product-section .product-card .card-img-box img,
    body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card .card-img-box img {
        width: 100% !important;
        height: 180px !important;
        min-height: 0 !important;
        max-height: 180px !important;
        object-fit: contain !important;
        margin-bottom: 0 !important;
    }

    body.store-front-container .product-card .card-title,
    body.store-front-container .product-card .product-title,
    body.store-front-container .product-card .product-info-content > .card-title,
    body.store-front-container .product-card .product-info-content > .product-title,
    body.store-front-container .preorder-section div[class*="card"] .card-title,
    body.store-front-container .preorder-section div[class*="card"] .product-title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    body.store-front-container .product-card .product-info-content > .product-tags-row {
        margin-bottom: 4px !important;
    }

    body.store-front-container .product-card .product-price-and-badge-line,
    body.store-front-container .product-card .card-price-block,
    body.store-front-container .product-card .card-body > .card-price {
        margin-bottom: 2px !important;
    }

    body.store-front-container .product-card .preorder-date,
    body.store-front-container .product-card .product-release-date,
    body.store-front-container .product-card .product-info-content > .preorder-date,
    body.store-front-container .product-card .product-info-content > .product-release-date,
    body.store-front-container .preorder-section div[class*="card"] .preorder-date,
    body.store-front-container .preorder-section div[class*="card"] .product-release-date {
        font-size: 12px !important;
        line-height: 1.1 !important;
        margin-top: -2px !important;
        margin-bottom: 4px !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        max-height: 1.2em !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.store-front-container .product-card .card-btn,
    body.store-front-container .product-card .btn-submit-order,
    body.store-front-container .preorder-section div[class*="card"] button,
    body.store-front-container .preorder-section div[class*="card"] .card-btn {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        line-height: 1 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        position: relative !important;
        bottom: unset !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ── 7. 底襯內縮防禦 v2（Padding-Push｜官網 + iframe 預覽同步） ── */
body.store-front-container .product-card-wrapper,
body.store-front-container .carousel-wrapper--4up .product-card-wrapper,
body.store-front-container .product-card-item-wrap.product-card-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

body.store-front-container .product-card,
body.store-front-container .carousel-wrapper--4up .swiper-slide .product-card,
body.store-front-container .carousel-track .product-card,
body.store-front-container .wm-product-section .product-card {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* 商品封面／標題 → 詳情頁（不影響預購按鈕） */
body.store-front-container .wx-card-detail-link {
    color: inherit;
    text-decoration: none;
}

body.store-front-container .wx-card-detail-link--media {
    display: block;
    position: relative;
    z-index: 1;
}

body.store-front-container .wx-card-detail-link--media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.store-front-container .wx-card-detail-link--title:hover {
    color: var(--button-color, var(--primary-color, #778ca3));
    text-decoration: underline;
}

/* 預購發售日：極簡純淨日期行（無倒數標籤） */
body.store-front-container .product-card .launch-timeline-row,
body.store-front-container .product-card--preorder-list .launch-timeline-row,
body.live-preview-mode.store-front-container .product-card .launch-timeline-row,
body.store-front-container .wx-product-item.launch-timeline-row {
    display: block !important;
    width: 100% !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #57606f !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 0 0 auto !important;
}
