
/* styles.css */
:root {
    --bg: #f7f5ef;
    --card: #ffffff;
    --ink: #111;
    --muted: #6b6b6b;
    --line: #e9e6dd;
    --soft: #f3f1ea;
    --primary: #1f6feb;
    --cta: #111;
    --ctaText: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --radius: 16px;
    --max-width: 1620px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans TC", Arial;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none
}
.designImg{
    width:100%;
    height:100%;
}
.muted {
    color: var(--muted);
    font-size: 12px
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247,245,239,.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    font-weight: 800;
    letter-spacing: .3px
}

.nav {
    display: flex;
    gap: 14px;
    color: #333;
    font-size: 13px
}

    .nav a {
        opacity: .85
    }

        .nav a:hover {
            opacity: 1
        }

.topbar__right {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 18px 40px
}

.hero {
    padding: 14px 0 10px
}

    .hero h1 {
        margin: 0 0 6px;
        font-size: 26px;
        letter-spacing: .2px
    }

.sub {
    margin: 0;
    color: #333;
    opacity: .85;
    line-height: 1.5
}

.layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.workbench {
    position: sticky;
    top: 72px;
    height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 8px;
}

.kicker {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px
}

.title {
    font-weight: 800
}

.seg {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
}

.seg__btn {
    border: 0;
    cursor: pointer;
    background: transparent;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #333;
}

    .seg__btn.is-active {
        background: #111;
        color: #fff;
    }

/* [2026-03-23] 目的：商品列表設計區「視角」按鈕由 ModuleName 動態產生，可多顆換行；無資料時整列隱藏 */
.seg--module {
    flex-wrap: wrap;
    max-width: 100%;
    min-height: 40px;
}

#moduleRowView.is-hidden {
    display: none !important;
}

.stage {
    padding: 0 14px 14px
}

.stage__canvas {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #eae7df;
 
    border: 1px solid var(--line);
    aspect-ratio: 4 / 5;
}

    .stage__canvas .tee {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        object-fit: cover;
        filter: saturate(.95) contrast(.98);
        display:none;
    }

    .stage__canvas .design {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: auto;
        height: auto;
        max-width: 80%;
        max-height: 80%;
        cursor: grab;
        user-select: none;
        touch-action: none;
    }

        .stage__canvas .design:active {
            cursor: grabbing
        }
.swatches
{
    display:none;
}
.guide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56%;
    height: 56%;
    transform: translate(-50%,-52%);
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 12px;
    pointer-events: auto;
    overflow: hidden;
}
.AIPhoto{
    object-fit:cover;
    height:100%;
    width:100%;
}
.stage__tools {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.row {
    display: flex;
    gap: 10px;
    align-items: center
}

.row--split {
    align-items: flex-start
}

.file input {
    display: none
}

.meta {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 12px;
}

.meta__label {
    font-size: 12px;
    color: var(--muted)
}

.meta__value {
    font-weight: 800;
    margin-top: 2px
}

.meta__hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.4
}

.zoom {
    width: 140px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
}

.zoom__label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.zoom input {
    width: 100%
}

.zoom__value {
    font-size: 12px;
    color: #333;
    margin-top: 6px;
    text-align: right
}

.cta {
    margin-top: auto;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
}

.cta__hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center
}

.rightcol {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.preview__head, .list__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.preview__grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.slot {
    background: #f4f3ee;
    border: 1px dashed rgba(0,0,0,.14);
    border-radius: 14px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.slot__state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    text-align: center;
}

.slot__big {
    font-weight: 900;
    letter-spacing: .2px;
    opacity: .85
}

.slot__small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4
}

.slot__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview__bar {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status {
    font-size: 13px;
    color: #333;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 12px;
}

.progress {
    height: 10px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.progress__bar {
    height: 100%;
    background: #111;
    width: 0%;
    transition: width .2s ease;
}

.list__head .filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search {
    width: 220px;
    padding: 10px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.select {
    padding: 10px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.list__grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pcard {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.sw {
    width: 20px;
    height: 20px;
    background: var(--c);
    border: 1px solid rgba(0, 0, 0, .18);
    display: inline-block;
    margin: 0px 2px;
}
    .sw img {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
.pcard__img {
    aspect-ratio: 4 / 5;
    background: #eee;
    cursor:pointer;
}

    .pcard__img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.pcard__body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcard__name {
    font-weight: 900
}

.pcard__meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px
}

.pcard__actions {
    display: flex;
    gap: 8px;
    margin-top: auto
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #111;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

    .btn:hover {
        filter: brightness(.98)
    }

.btn__black {
    background: var(--cta);
    color: var(--ctaText);
}
.btn--ghost {
    background: transparent
}

.btn--primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
}

.btn--cta {
    width: 100%;
    background: var(--cta);
    color: var(--ctaText);
    border-color: transparent;
    padding: 14px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.is-hidden {
    display: none !important
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(247,245,239,.8);
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 18px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__brand {
    font-weight: 900;
    margin-bottom: 6px
}

.footer__cols {
    display: flex;
    gap: 40px
}

.col {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.col__title {
    font-weight: 900;
    margin-bottom: 4px
}

.col a {
    font-size: 13px;
    color: #333;
    opacity: .85
}

    .col a:hover {
        opacity: 1
    }

/* [2026-03-26] 目的：手機版 footer 採 1 欄直向排列，避免標題變直式/印章斷行 */
@media (max-width: 560px) {
    .footer__inner {
        padding: 20px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer__cols {
        width: 100%;
        /* [2026-03-26] 目的：三個群改為同列橫排（三欄），避免整段過長往下堆疊 */
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }

    .col {
        flex: 1 1 0;
        min-width: 0;
    }

    .col__title {
        white-space: nowrap;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .col a {
        white-space: nowrap;
        line-height: 1.5;
    }
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .workbench {
        position: relative;
        top: auto;
        height: auto;
    }

    .preview__grid, .list__grid {
        grid-template-columns: 1fr
    }

    .search {
        width: 160px
    }
}

/* [2026-03-28] 目的：設計工作台／AI 商品照滿版視窗樣式見 design-workbench-overlay.css（cDLoading 於商品列表與 Detail 頁載入） */

#PopupWindowBG, #AlertPopup, #ConfirmPopup, #block { z-index: 210000 !important; }
.PopupWindow, .WarningPopupWindow { z-index: 210001 !important; }
/* [2026-03-24] 目的：Popup 視覺改為與 AI 生成中一致（灰黑遮罩＋白色圓角卡片），提升前台一致性 */
#PopupWindowBG {
    position: fixed !important;
    inset: 0 !important;
    /* [2026-03-26] 目的：避免 100vw 在行動瀏覽器造成右側橫向溢出捲軸 */
    width: auto !important;
    height: auto !important;
    background: rgba(17,17,17,.35) !important;
    backdrop-filter: blur(1.5px);
}
#AlertPopup.PopupContent,
#ConfirmPopup.PopupContent {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(520px, 92vw) !important;
    max-width: 92vw !important;
    background: #fff !important;
    border: 1px solid #e6e3da !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.2) !important;
    padding: 16px 18px !important;
    opacity: 1 !important;
}
#AlertPopup .PopupTitleTr,
#ConfirmPopup .PopupTitleTr {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 24px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    color: #111 !important;
    text-align: left !important;
    word-break: break-word !important;
}
#ConfirmPopup .nipLine {
    margin: 12px 0 10px !important;
    border-top: 1px solid #ece9e1 !important;
}
#ConfirmPopup .btnContenter {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}
#ConfirmPopup .PopupBtn {
    float: none !important;
    min-width: 88px !important;
    height: 34px !important;
    line-height: 34px !important;
    border-radius: 999px !important;
    border: 1px solid #d9d4c8 !important;
    background: #f7f5ef !important;
    color: #3f3f3f !important;
    font-size: 13px !important;
    text-align: center !important;
    cursor: pointer !important;
}
#ConfirmPopup #btnConfirmName2 {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}
/* [2026-03-24] 目的：兼容舊版 $("body").Popup(...) 結構（#block + #AlertPopup.PopupWindow） */
#block {
    position: fixed !important;
    inset: 0 !important;
    /* [2026-03-26] 目的：避免 100vw 在行動瀏覽器造成右側橫向溢出捲軸 */
    width: auto !important;
    height: auto !important;
    background: rgba(17,17,17,.35) !important;
    opacity: 1 !important;
    z-index: 210000 !important;
    pointer-events: auto !important;
}
#AlertPopup.PopupWindow {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(420px, 90vw) !important;
    max-width: 92vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 80vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.2) !important;
    background: #fff !important;
    border: 1px solid #e6e3da !important;
    z-index: 210001 !important;
    overflow: hidden !important;
}
#AlertPopup.PopupWindow .PopupContent {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 80vh !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    overflow: auto !important;
}
#AlertPopup.PopupWindow .PopupTitleTr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: auto !important;
    min-height: 22px !important;
    font-size: 14px !important;
    color: #111 !important;
}
/* [2026-03-28] 目的：Alert 僅「訊息」無關閉鈕時標題置中（base.js 模板 class PopupTitleTr--alertOnly） */
#AlertPopup.PopupWindow .PopupTitleTr.PopupTitleTr--alertOnly {
    justify-content: center !important;
    text-align: center !important;
}
#AlertPopup.PopupWindow .PopupTitleTr #PopupClose {
    width: 26px !important;
    height: 26px !important;
    border-radius: 999px !important;
    border: 1px solid #e1ded5 !important;
    background: #f7f6f2 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 24px !important;
    text-align: center !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-family: Arial, "Microsoft JhengHei", sans-serif !important;
}
#AlertPopup.PopupWindow .PopupTitleTr #PopupClose:before {
    content: "×" !important;
    color: #6a6a6a !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: translateY(-0.5px) !important;
}
#AlertPopup.PopupWindow .PopupTitleTr #PopupClose:hover {
    background: #ece9df !important;
}
#AlertPopup.PopupWindow .PopupTitleTr #PopupClose:hover:before {
    color: #333 !important;
}
#AlertPopup.PopupWindow .PopupSubContent {
    width: 100% !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}
#AlertPopup.PopupWindow .nipLine {
    border-top: 1px solid #ece9e1 !important;
}
/* [2026-03-24] 目的：前台未登入提示（Popup 模式）改為卡片式視覺，提高提示清楚度與 CTA 可點性 */
#AlertPopup.PopupWindow #ShowContent .login-required-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 8px 2px 4px;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff4e8;
    color: #cc7a00;
    border: 1px solid #ffd9ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
    padding: 0;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    letter-spacing: .01em;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__desc {
    font-size: 14px;
    color: #575757;
    line-height: 1.7;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__actions {
    margin-top: 4px;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s ease;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__btn:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
}
#AlertPopup.PopupWindow #ShowContent .login-required-popup__btn:focus-visible {
    outline: 2px solid #7aa7ff;
    outline-offset: 2px;
}
.layout--list-only { grid-template-columns: 1fr !important; max-width: 100%; }
.layout--list-only .list--standalone { width: 100%; max-width: 1580px; margin: 0 auto; }
.layout--list-only .list__grid { width: 100%; max-width: 1532px; margin: 0 auto; grid-template-columns: repeat(4, 365px); gap: 24px; padding: 24px 0; justify-content: center; }
@media (max-width: 1580px) { .layout--list-only .list__grid { grid-template-columns: repeat(auto-fill, minmax(280px, 365px)); max-width: 100%; justify-content: center; } }
@media (max-width: 900px) { .layout--list-only .list__grid { grid-template-columns: repeat(2, 1fr); } }
/* [2026-03-26] 目的：商品列表手機版改為一排兩個商品卡，並避免卡片內容在窄寬度下溢出 */
@media (max-width: 560px) {
    .layout--list-only .list__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px 0;
    }

    /* [2026-03-26] 目的：手機兩欄時標題區字級/行距調整：商品列表放大、移除下方重複的「首頁>T恤」 */
    .page--product-list .list__head { gap: 12px; padding-bottom: 12px; }
    /* pill（T恤/設計師/代工）為 13px；主標題只略大一點點即可 */
    .page--product-list .list__head .kicker { font-size: 14px; line-height: 1.15; margin-bottom: 2px; font-weight: 900; }
    .page--product-list .list__head .title { display: none !important; }

    /* [2026-03-26] 目的：只保留上方 Hero 的「首頁>T恤」，並縮小避免過大搶焦 */
    .page--product-list .hero__title { font-size: 14px; line-height: 1.15; }
    .page--product-list .hero__sub { font-size: 13px; line-height: 1.55; }

    /* [2026-03-26] 目的：手機兩欄白色容器改滿版（避免左右二次縮邊導致商品卡過窄） */
    .page--product-list .list-card {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        /* 手機寬度寶貴：縮小左右內距，讓兩欄卡片變寬 */
        padding: 12px 10px 14px;
        border-radius: 0;
    }

    /* [2026-03-26] 目的：兩欄時避免容器再二次縮排，讓 grid 吃到寬度 */
    .layout--list-only .list__grid { padding: 8px 0; gap: 10px; }

    /* btn 有 min-width: 90px（在檔案後段較晚寫入），
       這會在兩欄窄寬時導致卡片/容器被迫拉寬，所以這裡用 !important 強制允許縮小 */
    #productGrid .pcard { min-width: 0 !important; }
    /* [2026-03-26] 目的：手機兩欄時按鈕改為上下排（避免擠成直條或左右併排造成不一致） */
    #productGrid .pcard__actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    #productGrid .pcard__actions .btn {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        text-align: center;
    }
}
.page--product-list .hero--list { padding: 20px 0 24px; border-bottom: 1px solid var(--line, #e9e6dd); margin-bottom: 0; }
.page--product-list .hero__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.page--product-list .hero__sub { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted, #6b6b6b); }
.page--product-list .hero__highlight { color: var(--primary, #1f6feb); font-weight: 700; }
.page--product-list .list-card { border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.06); padding: 20px 24px 24px; margin-top: 20px; }
.page--product-list .list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line, #e9e6dd); }
.page--product-list .list__head .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #6b6b6b); margin-bottom: 4px; }
.page--product-list .list__head .title { font-size: 18px; font-weight: 800; }
/* [2026-03-26] 目的：依需求暫時隱藏「搜尋版型 / 熱門」篩選列（保留 HTML 便於日後直接開啟） */
.page--product-list .filters { display: none !important; }
.page--product-list .filters .search { width: 220px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line, #e9e6dd); }
.page--product-list .filters .select { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line, #e9e6dd); min-width: 120px; }

/* [2026-03-26] 目的：手機版覆蓋需放在後段，避免被桌機規則（hero__title / list__head）蓋掉 */
@media (max-width: 560px) {
    /* 兩個主標題要一樣大，且只比 pill(13px) 略大 */
    .page--product-list .hero__title { font-size: 14px !important; line-height: 1.15; }
    .page--product-list .list__head .kicker { font-size: 14px !important; line-height: 1.15; font-weight: 900; }

    /* 移除商品列表區塊內重複的「首頁>T恤」 */
    .page--product-list .list__head .title { display: none !important; }

    /* [2026-03-26] 目的：手機版移除 list-card 內距，避免寬度被白白吃掉（不影響桌機） */
    .page--product-list .list-card { padding: 0 !important; }

    /* [2026-03-26] 目的：內距改由 grid 提供極小左右留白，避免卡片貼邊 */
    .layout--list-only .list__grid { padding-left: 10px !important; padding-right: 10px !important; }

    /* [2026-03-26] 目的：預付金價強制換行：系列/副標在第一行，預付金價在下一行 */
    #productGrid .pcard__meta {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 2px !important;
    }
    #productGrid .pcard__meta strong { display: block !important; }

    /* [2026-03-26] 目的：兩欄時卡片內距略縮，保留資訊但不要浪費寬度（避免被後段桌機規則覆蓋） */
    #productGrid .pcard__body { padding: 12px 12px 14px !important; }
}
.pl-banner-wrap {
    position: relative;
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
    min-height: 120px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eefa 100%);
    display: none;
    aspect-ratio: 16 / 5;
}
.pl-banner-wrap.is-banner-visible { display: block; }
.pl-banner { min-height: 120px; }
.pl-banner:empty { display: none; }
.pl-banner img { width: 100%; height: auto; max-height: none; object-fit: cover; display: block; }
/* [2026-03-25] 目的：productlist 分類 banner 不做固定比例，
   讓使用者上傳什麼比例就呈現什麼比例；只保證寬度貼版面。 */
.pl-banner img.MenuBanner {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
}
.pl-banner-placeholder { padding: 28px 24px; text-align: center; }
.pl-banner:not(:empty) + .pl-banner-placeholder { display: none; }
.pl-banner-placeholder__text { font-size: 15px; color: var(--muted, #6b6b6b); letter-spacing: .04em; }
#productGrid .pcard { overflow: visible; min-height: 0; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; }
#productGrid .pcard:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
#productGrid .pcard__img { aspect-ratio: 4/5; min-height: 200px; }
#productGrid .pcard__body { flex: 1; min-height: 0; padding: 16px 18px 18px; }
#productGrid .pcard__name { font-size: 17px; }
#productGrid .pcard__actions { flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.06); }
#productGrid .pcard__actions .btn { flex: 1; min-width: 90px; text-align: center; padding: 12px 14px; font-size: 14px; }
#productGrid .pcard__actions .btn--select,
#productGrid .pcard__actions .js-open-design { background: var(--primary, #1f6feb); color: #fff; border-color: transparent; }
#productGrid .pcard__actions .btn--select:hover,
#productGrid .pcard__actions .js-open-design:hover { filter: brightness(1.05); }

@media (max-width: 959px) {
    /* [2026-03-26] 目的：手機版 productlist 內容區避免視覺偏右（統一左右內距與置中容器） */
    main.page.page--product-list {
        max-width: none;
        margin: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* [2026-03-26] 目的：避免 banner 因負邊距在手機出現右側溢出，保留高度但不超出版面 */
    .page--product-list .pl-banner-wrap {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 12px;
        aspect-ratio: 16 / 7;
        min-height: 160px;
    }
}
