/* 選購頁獨立樣式：共用檔保持原狀；所有互動按鈕沿用立體 .btn。 */

/* 新版頁首各頁共用，數字包含空清單的 0。 */

/* 頁首、區塊與可直接閱讀的靜態內容。 */
.shop-page main{overflow-wrap:anywhere}
.shop-page [hidden]{display:none}
.shop-page img{height:auto}
.shop-page .btn{box-sizing:border-box;text-decoration:none}
.shop-page .breadcrumb a.btn{height:44px;padding:2px 16px 0;font-size:16px}
.shop-page .card>:last-child{margin-top:0}
.shop-sample,.shop-sample-notice{width:fit-content;max-width:100%;margin:0;padding:9px 14px;border-radius:10px;background:#edf3f9;color:var(--ink-3);font-size:16px;line-height:1.65}
.shop-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;color:var(--ink-2)}
.shop-toolbar strong{color:var(--ink);font-size:var(--fs-h3)}
.shop-toolbar p,.shop-toolbar span{font-size:16px}








/* 商品卡使用固定照片高度與標題高度，價格及動作在整排同一條線。 */
.shop-grid,.shop-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);align-items:stretch}
.shop-product-card.card{display:grid;grid-row:span 7;grid-template-rows:subgrid;gap:14px;padding:22px 18px;background:linear-gradient(150deg,#fff,#f0f7ff)}
.shop-product-card>.shop-photo-link{grid-row:1}
.shop-product-card>.shop-status{grid-row:2}
.shop-product-card>.shop-product-title{grid-row:3}
.shop-product-card>.shop-chips{grid-row:4}
.shop-product-card>.shop-price{grid-row:5}
.shop-product-card>.shop-card-actions{grid-row:6}
.shop-product-card>.shop-feedback{grid-row:7}
.shop-product-card::before{height:4px;background:linear-gradient(90deg,var(--sky-2),var(--brand-2),var(--sky-2))}
.shop-photo-link{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;padding:4px 5px 12px;border-radius:16px;background:linear-gradient(150deg,#f7fbff,#e4f0fb);border:1px solid #e1edf8;border-bottom:4px solid #caddef;box-shadow:0 9px 18px -16px rgba(15,39,71,.5);text-decoration:none}
.shop-photo-link:hover{border-color:var(--sky-2)}
.shop-photo-link:active{border-bottom-color:var(--brand)}
.shop-photo{display:flex;align-items:flex-end;justify-content:center;width:100%;height:230px;min-width:0}
.shop-photo img{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;mix-blend-mode:multiply}
.shop-plinth{width:90%;height:27px;margin-top:-2px;border-radius:50%;border-bottom:7px solid #b9d5ee;background:linear-gradient(150deg,#fff,#d5e7f9);box-shadow:0 12px 13px -10px rgba(15,39,71,.4)}
.shop-status{display:inline-flex;align-items:center;align-self:flex-start;gap:7px;width:fit-content;max-width:100%;padding:5px 12px;border-radius:30px;background:var(--tint);color:var(--brand-d);font-size:16px;font-weight:800;line-height:1.5}
.shop-status::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:currentColor}
.shop-status--buy{color:#18683b;background:#e4f5e9}
.shop-status--quote,.shop-status--pending{color:#885305;background:#fff0d4}
.shop-product-title{height:70px;min-height:70px;font-size:clamp(17px,.95vw,23px);line-height:1.4}
.shop-product-title .btn{display:flex;width:100%;height:70px;padding:5px 10px 2px;border-radius:12px;font-size:inherit;line-height:1.4;text-align:left;justify-content:flex-start;white-space:normal}
.shop-product-title .btn span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shop-chips{display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;min-height:0}
.shop-chips .chip{height:auto;min-height:30px;padding:4px 9px;border-radius:9px;background:#fff;font-size:16px;line-height:1.45;box-shadow:none}
.shop-price{color:var(--brand-d);font-size:clamp(23px,1.28vw,34px);font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums}
.shop-price small{font-size:16px;font-weight:600}
.shop-card-actions{display:flex;flex-direction:column;gap:12px;margin-top:0}
.shop-product-card .shop-card-actions:last-child{margin-top:0}
.shop-card-actions>.btn{width:100%;height:56px;padding-inline:10px;font-size:17px}
.shop-feedback{margin:0;color:#17673c;font-size:16px;line-height:1.7}
.shop-feedback>.btn{height:44px;margin-top:8px;padding-inline:12px;font-size:16px}
.shop-howto,.shop-howto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.shop-guide.card{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:start;gap:20px;padding:28px 24px}
.shop-guide>img{width:80px;height:auto;mix-blend-mode:multiply}
.shop-guide>.icon3d{width:80px;height:80px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.shop-guide h3{margin-bottom:10px}
.shop-guide p{font-size:17px}

/* 商品主區：照片不建立隔離層，白底直接與展台底色相融。 */
.shop-product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,3vw,76px);align-items:stretch;margin-top:28px}
.shop-product-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:clamp(26px,3vw,70px)}
.shop-product-photo{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:100%;height:clamp(360px,30vw,650px)}
.shop-product-photo img{width:auto;max-width:100%;height:auto;max-height:calc(100% - 64px);object-fit:contain;mix-blend-mode:multiply}
.shop-product-photo>.shop-plinth{flex-shrink:0}
.shop-product-visual .shop-plinth{width:92%;height:clamp(35px,3vw,64px);border-bottom-width:11px;margin-top:-2px}
.shop-dimensions{margin-top:26px;color:var(--ink-2);font-size:17px;text-align:center}
.shop-purchase.card{gap:22px;padding:clamp(26px,2.5vw,56px)}
.shop-product-heading{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.shop-purchase h1{font-size:clamp(30px,2vw,48px);line-height:1.35}
.shop-purchase .shop-price{font-size:clamp(30px,2vw,48px)}
.shop-purchase .shop-price small{display:block;margin-top:10px;color:var(--ink-3);font-size:16px;font-weight:400;line-height:1.6}
.shop-price-note{margin-top:8px;color:var(--ink-3);font-size:16px}
.shop-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px;margin-top:10px}
.shop-choice{position:relative;display:flex;align-items:center;gap:10px;min-width:0;height:64px;box-sizing:border-box;padding:8px 14px;border:1px solid var(--line);border-bottom:4px solid #c6dbf0;border-radius:13px;background:linear-gradient(#fff,#f1f7ff);box-shadow:var(--depth-1);color:var(--ink-2);font-size:17px;font-weight:700;line-height:1.4;cursor:pointer}
.shop-choice input{flex:0 0 auto;accent-color:var(--brand);width:19px;height:19px;margin:0}
.shop-choice:has(input:checked){border-color:var(--brand);border-bottom-color:var(--brand-d);background:#e8f3ff;color:var(--brand-d);box-shadow:0 0 0 1px var(--brand),var(--depth-1)}
.shop-choice:has(input:checked)::after{content:"✓";flex:0 0 auto;margin-left:auto;color:var(--brand);font-size:18px;font-weight:800}
.shop-choice:has(input:focus-visible){outline:3px solid var(--brand);outline-offset:4px}
.shop-choice:active{border-bottom-width:2px}
.shop-quantity{display:flex;align-items:center;gap:10px;flex-shrink:0;width:fit-content;max-width:100%}
.shop-quantity .btn{flex:0 0 46px;width:46px;height:48px;padding:0;font-size:23px;line-height:1}
.shop-quantity input{width:62px;min-width:0;height:48px;box-sizing:border-box;padding:5px 4px;border:1px solid #b7cfe7;border-radius:10px;background:var(--white);color:var(--ink);font:inherit;font-weight:700;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield}
.shop-quantity input::-webkit-inner-spin-button,.shop-quantity input::-webkit-outer-spin-button{margin:0;appearance:none}
.shop-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.shop-action-row>.btn{height:64px;flex:1;padding-inline:16px}
.shop-meta,.shop-meta dl{margin:0}
.shop-meta>div,.shop-meta dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:15px 0;border-top:1px solid var(--line);font-size:16px}
.shop-meta dt{color:var(--ink-3)}
.shop-meta dd{margin:0;color:var(--ink-2)}
.shop-spec-layout,.shop-spec-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:stretch;gap:var(--gap)}
.shop-spec-layout>.card,.shop-spec-grid>.card{height:100%;gap:22px}
.shop-spec-list{margin:0}
.shop-spec-list>div{display:grid;grid-template-columns:135px minmax(0,1fr);gap:22px;padding:17px 0;border-bottom:1px solid #e8eef6}
.shop-spec-list>div:first-child{padding-top:0}
.shop-spec-list>div:last-child{border-bottom:0;padding-bottom:0}
.shop-spec-list dt{color:var(--ink-3);font-weight:600}
.shop-spec-list dd{margin:0;color:var(--ink)}
.shop-spec-list small{display:block;margin-top:5px;color:var(--ink-3);line-height:1.65}
.shop-scenes{display:flex;flex-wrap:wrap;align-content:flex-start;gap:12px}
.shop-scenes li{display:flex;align-items:center;gap:12px;width:100%;padding:13px 0;border-bottom:1px solid #e8eef6}
.shop-scenes li::before{content:"✓";color:var(--brand);font-weight:800}
.shop-scenes li:last-child{border-bottom:0}
#shop-scenes{display:flex;flex:1}
#shop-scenes>.chip-row,#shop-scenes>.shop-scenes{display:grid;grid-auto-rows:1fr;align-content:stretch;gap:0;width:100%}
#shop-scenes .chip{justify-content:flex-start;gap:14px;min-height:64px;padding:18px 0;border-width:0 0 1px;border-radius:0;background:none;box-shadow:none;font-size:var(--fs-body)}
#shop-scenes .chip::before{content:"✓";color:var(--brand);font-weight:800}
#shop-scenes .chip:last-child{border-bottom:0}
.shop-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:var(--gap)}
.shop-feature-grid>.card{gap:14px}
.shop-feature-grid h3{color:var(--brand-d);line-height:1.5}
.shop-note,.shop-notes{gap:12px;background:#edf4fb}
.shop-note p,.shop-notes p{color:var(--ink-3);font-size:16px}

/* 三頁使用相同的流程列，不將尚未完成的步驟做成誤導連結。 */
.shop-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.shop-steps li{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:66px;padding:12px 14px;border:1px solid var(--line);border-bottom:4px solid #c8daed;border-radius:15px;background:linear-gradient(#fff,#edf5fd);box-shadow:var(--depth-1);color:var(--ink-3);font-size:clamp(17px,1vw,23px);font-weight:800}
.shop-steps li[aria-current="step"]{border-color:var(--brand);border-bottom-color:var(--brand-d);background:linear-gradient(var(--brand-2),var(--brand));color:#fff}
.shop-step-number{font-size:27px;font-weight:400;line-height:1}
.shop-steps li+li::before{position:absolute;content:"→";left:-18px;width:18px;color:var(--ink-3);font-size:16px;text-align:center}

/* 清單、填寫資料與完成頁共用的主欄和摘要欄。 */
.shop-columns{display:grid;grid-template-columns:minmax(0,1fr) clamp(340px,24vw,460px);align-items:start;gap:var(--gap)}
.shop-main-stack{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.shop-group.card{gap:0;padding:clamp(24px,1.6vw,38px)}
.shop-group h2{margin-bottom:20px;font-size:clamp(24px,1.4vw,34px)}
.shop-line{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:14px 18px;padding:22px 0;border-top:1px solid var(--line)}
.shop-line-photo{display:flex;align-items:flex-end;justify-content:center;grid-row:span 2;width:76px;height:96px;border-radius:10px;background:#f0f6fc}
.shop-line-photo img{width:auto;max-width:100%;height:auto;max-height:96px;object-fit:contain;mix-blend-mode:multiply}
.shop-line-info{grid-column:2;min-width:0}
.shop-line-info h3{font-size:18px;line-height:1.5}
.shop-line-info p{margin-top:6px;font-size:16px}
.shop-line-info .btn,.shop-name-link{height:64px;max-width:100%;padding:5px 11px 2px;justify-content:flex-start;white-space:normal;font-size:17px;line-height:1.45;text-align:left}
.shop-line>.shop-quantity{grid-column:2;grid-row:2}
.shop-line-total{grid-column:3;grid-row:1;color:var(--brand-d);font-size:20px;font-weight:800;line-height:1.5;text-align:right;font-variant-numeric:tabular-nums}
.shop-line-total small{display:block;color:var(--ink-3);font-size:16px;font-weight:400}
.shop-line>.btn{grid-column:3;grid-row:2;justify-self:end;height:44px;padding-inline:14px;font-size:16px}
.shop-group>.shop-action-row{justify-content:flex-end;padding-top:22px;border-top:1px solid var(--line)}
.shop-group>.shop-action-row>.btn{flex:0 1 auto;height:56px}
.shop-removed{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;border-top:1px solid var(--line);color:var(--ink-3);font-size:16px}
.shop-removed .btn{height:44px;padding-inline:16px;font-size:16px}
.shop-summary.card{position:sticky;top:116px;gap:20px;padding:clamp(24px,1.5vw,34px)}
.shop-summary h2{font-size:clamp(25px,1.4vw,34px)}
.shop-summary>.btn,.shop-summary .shop-summary-actions>.btn{width:100%;height:56px}
.shop-summary>.btn--lg,.shop-summary .shop-summary-actions>.btn--lg{height:64px}
.shop-summary-actions{display:flex;flex-direction:column;gap:12px}
.shop-totals,.shop-totals dl{display:block;margin:0}
.shop-totals>div,.shop-totals dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;font-size:16px}
.shop-totals dt{color:var(--ink-2)}
.shop-totals dd{margin:0;color:var(--ink);font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.shop-totals .shop-total,.shop-totals .shop-total-row,.shop-totals>div:last-child{margin-top:8px;padding-top:20px;border-top:1px solid var(--line);font-weight:800}
.shop-totals .shop-total dd,.shop-totals .shop-total-row dd,.shop-totals>div:last-child dd{color:var(--brand-d);font-size:clamp(25px,1.35vw,34px)}
.shop-empty.card{max-width:800px;align-items:center;gap:24px;margin-inline:auto;padding:clamp(34px,4vw,80px);text-align:center}
.shop-empty>img{width:128px;height:auto;mix-blend-mode:multiply}
.shop-empty h2{font-size:clamp(24px,1.7vw,40px)}
.shop-empty .shop-action-row{justify-content:center}
.shop-empty .shop-action-row>.btn{flex:0 1 auto;height:56px}
.shop-page .btn:disabled,.shop-page .btn[aria-disabled="true"]{--button-edge:#c7d0d9;background:#e6ebf0;color:#6b7a8b;border-color:#d1dae3;border-bottom-color:#c7d0d9;box-shadow:none;cursor:not-allowed;transform:none}

/* 表單：標籤、輸入與说明各自佔一行，錯誤不依賴原生對話框。 */
.shop-form.card{display:block;padding:clamp(26px,2.3vw,52px)}
.shop-form-section{margin:0 0 30px;padding:0 0 30px;border:0;border-bottom:1px solid var(--line);min-width:0}
.shop-form-section:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
.shop-form-section h2,.shop-form-section legend{width:100%;margin:0 0 20px;padding:0;color:var(--ink);font-size:clamp(24px,1.3vw,32px);font-weight:800;line-height:1.4}
.shop-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px 24px}
.shop-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
fieldset.shop-field{margin:0;padding:0;border:0}
fieldset.shop-field>legend{margin-bottom:10px}
.shop-field--wide{grid-column:1 / -1}
.shop-field>label,.shop-field>legend,.shop-field-label{display:block;margin:0;padding:0;color:var(--ink);font-size:17px;font-weight:700;line-height:1.5}
.shop-required,.shop-field label>.required,.shop-field-label>.required{color:#ba303d;font-size:16px}
.shop-field>input:not([type="radio"]):not([type="checkbox"]),.shop-field select,.shop-field textarea{display:block;width:100%;min-width:0;height:54px;box-sizing:border-box;margin:0;padding:11px 14px;border:1px solid #b8cee4;border-bottom:3px solid #b4cae0;border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:17px;line-height:1.5;box-shadow:0 2px 4px rgba(15,39,71,.04) inset}
.shop-field select{padding-right:26px}
.shop-field textarea{height:148px;min-height:120px;resize:vertical}
.shop-field input::placeholder,.shop-field textarea::placeholder{color:#728498;font-size:16px}
.shop-field input:focus,.shop-field select:focus,.shop-field textarea:focus{border-color:var(--brand)}
.shop-field>.shop-option-grid{margin-top:0}
.shop-help{margin:0;color:var(--ink-3);font-size:16px;line-height:1.65}
.shop-error{margin:0;color:#b12839;font-size:16px;font-weight:700;line-height:1.6}
.shop-error:empty{display:none}
.shop-invalid input:not([type="radio"]):not([type="checkbox"]),.shop-invalid select,.shop-invalid textarea,.shop-field [aria-invalid="true"],.shop-invalid .shop-choice{border-color:#c43847;background:#fff8f8}
.shop-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding-block:6px;box-sizing:border-box;color:var(--ink-2);font-size:17px;line-height:1.7}
.shop-check+.shop-check{margin-top:18px}
.shop-check input[type="checkbox"],.shop-check input[type="radio"]{flex:0 0 21px;width:21px;height:21px;margin:4px 0 0;accent-color:var(--brand);cursor:pointer}
.shop-check label{min-width:0}
.shop-field>label.shop-check{display:flex;font-weight:400}
.shop-check a{color:var(--brand-d);text-underline-offset:3px}
.shop-check a:hover{text-decoration:underline}
.shop-check:has(input:focus-visible){outline:3px solid var(--brand);outline-offset:6px;border-radius:5px}
.shop-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
.shop-check-grid .shop-check{margin:0}
.shop-warning{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:4px 0 0;padding:17px 18px;border-left:4px solid #e6a437;border-radius:10px;background:#fff1d7;color:#805307;font-size:16px;line-height:1.7}
.shop-warning .btn{height:48px;padding-inline:14px;font-size:16px}
.shop-mini-list{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none}
.shop-mini-list li,.shop-mini-row{display:flex;flex-direction:column;gap:7px;padding:17px 0;border-bottom:1px solid var(--line);min-width:0;font-size:16px}
.shop-mini-list li:first-child{padding-top:0}
.shop-mini-list h3,.shop-mini-list strong{font-size:17px;line-height:1.5}
.shop-mini-list p,.shop-mini-list span{color:var(--ink-3);font-size:16px}
.shop-mini-list .shop-price{align-self:flex-end;color:var(--brand-d);font-size:19px;text-align:right}
.shop-mini-list .shop-mini-row{padding:0;border:0}
.shop-mini-list li>.shop-mini-row{flex-direction:row;justify-content:space-between;gap:12px}
.shop-mini-list li>.shop-mini-row>span:last-child{color:var(--brand-d);font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
[data-field="unloading"] .shop-option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
[data-field="unloading"] .shop-choice{height:100%;min-height:88px}
.shop-next-steps{display:flex;flex-direction:column;gap:28px;margin:0;padding:0;list-style:none}
.shop-next-steps li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px 22px;align-items:start}
.shop-next-steps .num3d{width:64px;height:64px;border-radius:18px;font-size:29px}
.shop-next-steps li h3{grid-column:2;align-self:end;line-height:1.45}
.shop-next-steps li p{grid-column:2;font-size:17px}
.shop-next-steps li>div{grid-column:2}
.shop-next-steps li>div p{margin-top:10px}
.shop-submission-meta{margin:0}
.shop-submission-meta>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:7px 0;font-size:16px}
.shop-submission-meta dt{color:var(--ink-3)}
.shop-submission-meta dd{margin:0;font-variant-numeric:tabular-nums}
.shop-remaining{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding:24px 28px;border:1px solid #cbdff2;border-radius:var(--r-lg);background:#eaf4ff;box-shadow:var(--depth-1)}
.shop-remaining p{color:var(--brand-d);font-weight:700}
.shop-remaining>.btn{height:56px}
.shop-remaining.card{flex-direction:row}
.shop-complete-actions{margin-top:32px}
.shop-complete-actions>.btn{flex:0 1 auto;height:56px}
.shop-detail h2{font-size:clamp(25px,1.4vw,34px)}
.shop-detail .shop-meta>div{grid-template-columns:88px minmax(0,1fr);gap:12px;font-size:16px}
body[data-page="complete"] .shop-columns{align-items:stretch}
body[data-page="complete"] .shop-next-steps{flex:1;justify-content:space-between}

/* 條款全部展開；目錄維持可辨識的立體按鈕。 */
.shop-terms-layout.card,.shop-terms.card{display:grid;grid-template-columns:270px minmax(0,1fr);gap:clamp(30px,3vw,74px);padding:clamp(26px,2.8vw,64px)}
.shop-terms-nav{position:sticky;top:116px;display:flex;flex-direction:column;align-items:stretch;gap:12px;align-self:start;min-width:0}
.shop-terms-nav .btn{justify-content:flex-start;width:100%;height:56px;padding-inline:14px;white-space:normal;font-size:16px;line-height:1.45;text-align:left}
.shop-terms-content{min-width:0}
.shop-terms-content section{padding:0 0 30px;margin:0 0 30px;border-bottom:1px solid var(--line);scroll-margin-top:130px}
.shop-terms-content section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.shop-terms-content h2{margin-bottom:16px;font-size:clamp(25px,1.5vw,36px);line-height:1.45}
.shop-terms-content p,.shop-terms-content li{color:var(--ink-2);line-height:1.95}
.shop-terms-content a{color:var(--brand-d)}
.shop-terms-content a:hover{text-decoration:underline}
.shop-terms-content ul{display:grid;gap:8px}
#shop-print{display:none}

@media(max-width:1199px){
  .shop-howto,.shop-howto-grid{grid-template-columns:1fr}
  .shop-guide.card{grid-template-columns:76px minmax(0,1fr);padding:25px 26px}
  .shop-guide>img{width:76px}
  .shop-guide>.icon3d{width:76px;height:76px}
  .shop-spec-layout,.shop-spec-grid{grid-template-columns:1fr}
  .shop-columns{grid-template-columns:minmax(0,1fr)}
  .shop-summary.card{position:static}
  .shop-line{grid-template-columns:86px minmax(0,1fr) auto auto auto;gap:16px}
  .shop-line-photo{grid-row:1;width:86px}
  .shop-line-info{grid-column:2}
  .shop-line>.shop-quantity{grid-column:3;grid-row:1}
  .shop-line-total{grid-column:4;grid-row:1}
  .shop-line>.btn{grid-column:5;grid-row:1}
  .shop-terms-layout.card,.shop-terms.card{grid-template-columns:minmax(0,1fr);gap:30px}
  .shop-terms-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;padding-bottom:26px;border-bottom:1px solid var(--line)}
  .shop-terms-nav .btn{width:auto;height:48px;padding-inline:16px;border-radius:24px;font-size:16px}



}
@media(max-width:900px){
  [data-field="unloading"] .shop-option-grid{grid-template-columns:minmax(0,1fr)}
  .shop-grid,.shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shop-product-card.card{padding:24px;gap:16px}
  .shop-product-title,.shop-product-title .btn{height:72px;min-height:72px;font-size:19px}
  .shop-chips{min-height:0}
  .shop-product-layout{grid-template-columns:minmax(0,1fr);gap:26px}
  .shop-product-visual{padding:30px}
  .shop-product-photo{height:430px}
  .shop-purchase.card{padding:30px}
  .shop-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shop-field-grid{grid-template-columns:minmax(0,1fr)}
  .shop-field--wide{grid-column:auto}
  .shop-line{grid-template-columns:76px minmax(0,1fr) auto;gap:14px 18px}
  .shop-line-photo{grid-row:span 2;width:76px}
  .shop-line>.shop-quantity{grid-column:2;grid-row:2}
  .shop-line-total{grid-column:3;grid-row:1}
  .shop-line>.btn{grid-column:3;grid-row:2}
  .shop-summary.card{gap:20px}
  .shop-remaining{align-items:flex-start;flex-direction:column}
  .shop-remaining.card{flex-direction:column}


}
@media(max-width:600px){
  .shop-toolbar{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:20px}
  .shop-toolbar p,.shop-toolbar span{font-size:16px}
  .shop-sample,.shop-sample-notice{padding:10px 12px;font-size:16px}
  .shop-grid,.shop-product-grid,.shop-feature-grid{grid-template-columns:minmax(0,1fr)}
  .shop-product-card.card{padding:22px;gap:16px}
  .shop-photo{height:270px}
  .shop-photo-link{padding-inline:15px}
  .shop-product-title,.shop-product-title .btn{height:68px;min-height:68px;font-size:20px}
  .shop-chips{min-height:0;gap:8px}
  .shop-chips .chip{font-size:16px;padding:5px 10px}
  .shop-card-actions>.btn{height:56px;font-size:18px}
  .shop-price{font-size:29px}
  .shop-guide.card{grid-template-columns:64px minmax(0,1fr);gap:16px;padding:24px 20px}
  .shop-guide>img{width:64px}
  .shop-guide>.icon3d{width:64px;height:64px}
  .shop-guide p{font-size:16px}
  .shop-product-layout{margin-top:22px}
  .shop-product-visual{padding:24px 20px}
  .shop-product-photo{height:330px}
  .shop-dimensions{margin-top:24px;font-size:16px}
  .shop-purchase.card{padding:26px 20px;gap:22px}
  .shop-purchase h1{font-size:30px}
  .shop-purchase .shop-price{font-size:30px}
  .shop-option-grid{grid-template-columns:minmax(0,1fr)}
  .shop-choice{height:64px;padding-inline:14px;font-size:17px}
  .shop-action-row{gap:12px}
  .shop-action-row>.btn{flex-basis:100%;height:56px;font-size:18px}
  .shop-meta>div,.shop-meta dl>div{grid-template-columns:76px minmax(0,1fr);gap:14px;font-size:16px}
  .shop-spec-list>div{grid-template-columns:85px minmax(0,1fr);gap:15px;padding-block:15px}
  .shop-spec-list dt,.shop-spec-list dd{font-size:16px}
  .shop-spec-list small{font-size:16px}
  .shop-steps{gap:10px}
  .shop-steps li{flex-direction:column;gap:8px;min-height:88px;padding:12px 6px;border-radius:12px;font-size:16px;line-height:1.3}
  .shop-step-number{font-size:24px}
  .shop-steps li+li::before{left:-11px;width:11px;top:36px;font-size:12px}
  .shop-group.card,.shop-summary.card{padding:26px 20px}
  .shop-group h2,.shop-summary h2{font-size:25px}
  .shop-line{grid-template-columns:62px minmax(0,1fr);gap:14px;padding-block:22px}
  .shop-line-photo{grid-column:1;grid-row:1;width:62px;height:90px}
  .shop-line-photo img{max-height:90px}
  .shop-line-info{grid-column:2;grid-row:1}
  .shop-line-info .btn,.shop-name-link{height:68px;padding-inline:9px;font-size:16px}
  .shop-line-info p{font-size:16px}
  .shop-line>.shop-quantity{grid-column:1 / -1;grid-row:2;justify-self:start}
  .shop-line-total{grid-column:1 / -1;grid-row:3;justify-self:start;text-align:left;font-size:22px}
  .shop-line-total small{display:inline;margin-right:10px}
  .shop-line>.btn{grid-column:2;grid-row:2;height:44px;padding-inline:12px;font-size:16px}
  .shop-group>.shop-action-row>.btn{width:100%;flex-basis:100%;height:56px}
  .shop-removed{align-items:flex-start;flex-direction:column;gap:12px}
  .shop-totals>div,.shop-totals dl>div{font-size:16px;gap:10px}
  .shop-totals .shop-total dd,.shop-totals .shop-total-row dd,.shop-totals>div:last-child dd{font-size:27px}
  .shop-empty.card{padding:34px 22px;gap:22px}
  .shop-empty .shop-action-row{width:100%}
  .shop-empty .shop-action-row>.btn{flex-basis:100%;height:56px}
  .shop-form.card{padding:28px 20px}
  .shop-form-section{padding-bottom:27px;margin-bottom:27px}
  .shop-field-grid{gap:22px}
  .shop-field>label,.shop-field>legend,.shop-field-label{font-size:17px}
  .shop-field>input:not([type="radio"]):not([type="checkbox"]),.shop-field select,.shop-field textarea{height:54px;padding-inline:12px;font-size:16px}
  .shop-field textarea{height:148px}
  .shop-check{gap:10px;font-size:16px}
  .shop-check-grid{grid-template-columns:minmax(0,1fr)}
  .shop-warning{padding:14px 13px;font-size:16px}
  .shop-warning .btn{height:48px;font-size:16px}
  .shop-next-steps{gap:28px}
  .shop-next-steps li{grid-template-columns:48px minmax(0,1fr);gap:10px 14px}
  .shop-next-steps .num3d{width:48px;height:52px;border-radius:13px;font-size:23px}
  .shop-next-steps li h3{font-size:20px}
  .shop-next-steps li p{font-size:16px}
  .shop-remaining{padding:24px 20px;gap:18px}
  .shop-remaining>.btn{width:100%;height:56px}
  .shop-complete-actions>.btn{flex-basis:100%;height:56px}
  .shop-terms-layout.card,.shop-terms.card{padding:28px 20px;gap:28px}
  .shop-terms-nav{gap:10px;padding-bottom:24px}
  .shop-terms-nav .btn{width:100%;height:48px;font-size:16px}
  .shop-terms-content section{padding-bottom:26px;margin-bottom:26px;scroll-margin-top:100px}
  .shop-terms-content h2{font-size:25px}
  .shop-terms-content p,.shop-terms-content li{font-size:17px;line-height:1.9}




}
@media(min-width:1921px){
  .shop-grid,.shop-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .shop-product-card.card{padding:26px 24px;gap:18px}
  .shop-photo{height:300px}
  .shop-product-title,.shop-product-title .btn{height:78px;min-height:78px;font-size:23px}
  .shop-chips{min-height:0;gap:8px}
  .shop-chips .chip{font-size:16px;padding:5px 10px}
  .shop-card-actions>.btn{height:60px;font-size:20px}
  .shop-guide.card{grid-template-columns:100px minmax(0,1fr);gap:26px;padding:34px}
  .shop-guide>img{width:100px}
  .shop-guide>.icon3d{width:100px;height:100px}
  .shop-guide p{font-size:20px}
  .shop-line{grid-template-columns:96px minmax(0,1fr) auto minmax(130px,auto) auto;gap:24px}
  .shop-line-photo{grid-row:1;width:96px;height:108px}
  .shop-line-photo img{max-height:108px}
  .shop-line-info{grid-column:2}
  .shop-line-info .btn{height:64px;font-size:19px}
  .shop-line-info p{font-size:17px}
  .shop-line>.shop-quantity{grid-column:3;grid-row:1}
  .shop-line-total{grid-column:4;grid-row:1;font-size:23px}
  .shop-line>.btn{grid-column:5;grid-row:1}


}
/* 移除電話列與第四欄後，七項導覽和三欄頁尾使用同一份排版。 */
@media print{
  body[data-page="list"]{margin:0;background:#fff;color:#000;font-size:11pt;line-height:1.55}
  body[data-page="list"]>:not(#shop-print){display:none}
  body[data-page="list"]>#shop-print{display:block;width:100%;margin:0;padding:0;color:#000}
  #shop-print h1{margin:14pt 0 5pt;font-size:24pt;color:#000}
  #shop-print h2{margin:18pt 0 8pt;font-size:15pt;color:#000}
  #shop-print .shop-print-title{margin:14pt 0 5pt;font-size:24pt}
  #shop-print p{margin:8pt 0;color:#000;font-size:10pt}
  #shop-print table{width:100%;border-collapse:collapse;margin:10pt 0;font-size:10pt;table-layout:fixed}
  #shop-print th,#shop-print td{padding:7pt 6pt;border:1px solid #777;overflow-wrap:anywhere;vertical-align:top}
  #shop-print th{background:#eee;text-align:center;font-weight:700}
  #shop-print td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}
  #shop-print th:first-child{width:38%}
  #shop-print tr{break-inside:avoid}
  #shop-print thead{display:table-header-group}
  #shop-print .shop-totals{width:55%;margin-left:auto}
  #shop-print .shop-totals>div{padding:4pt 0;font-size:11pt}
  #shop-print .shop-totals dd,#shop-print .shop-totals>div:last-child dd{font-size:12pt;color:#000}
  #shop-print .btn,#shop-print img{display:none}
}

/* 只給螢幕報讀用的標籤（畫面上已有同名區塊標題，避免重複顯示） */
.shop-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 細分尺寸（2026-10-02 老闆：「所有呎吋都要適合，不能只設定手機、平板、電腦」）：中間尺寸改排法、手機上落單的最後一張置中 */
@media(min-width:720px) and (max-width:959px){
  .shop-product-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
}
@media(min-width:720px) and (max-width:1199px){
  .shop-spec-layout,.shop-spec-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
}

/* 同步產品分類與產品頁：任意張數使用固定卡寬，末列置中。 */
.shop-page[data-page="category"] .shop-grid,
.shop-page .shop-category-grid,
.shop-page .shop-related-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:clamp(16px,1.4vw,28px)}
.shop-page[data-page="category"] .shop-grid>.shop-product-card{flex:0 1 300px;max-width:320px;min-width:0}
.shop-page .shop-category-grid>.shop-category-card{flex:0 1 320px;max-width:340px;min-width:0}
.shop-page .shop-related-grid>.shop-related-card{flex:0 1 260px;max-width:300px;min-width:0}
.shop-page[data-page="category"] .shop-product-card.card,
.shop-page .shop-category-card,
.shop-page .shop-related-card{display:flex;flex-direction:column;gap:16px;padding:22px 18px;overflow-wrap:anywhere;background:linear-gradient(150deg,#fff,#f0f7ff)}
.shop-page .shop-category-card,.shop-page .shop-related-card{text-decoration:none}
.shop-page .shop-category-card:hover,.shop-page .shop-related-card:hover{border-color:var(--brand);box-shadow:var(--depth-3)}
.shop-page[data-page="category"] .shop-product-card .shop-photo-link{justify-content:center;padding:10px;width:100%}
.shop-page[data-page="category"] .shop-product-card .shop-photo,
.shop-page .shop-category-card .shop-photo,
.shop-page .shop-category-card>.shop-photo-placeholder{width:100%;height:220px;justify-content:center;align-items:center}
.shop-page .shop-related-card .shop-photo,
.shop-page .shop-related-card>.shop-photo-placeholder{width:100%;height:180px;justify-content:center;align-items:center}
.shop-page .shop-category-card .shop-photo,.shop-page .shop-related-card .shop-photo{border-radius:var(--r-md);background:linear-gradient(150deg,#f7fbff,#e4f0fb);padding:12px}
.shop-page .shop-photo img,.shop-page .shop-product-photo img{height:auto;max-width:min(100%,var(--photo-natural-width,var(--source-width,100%)));object-fit:contain}
/* 卡片照片一律撐滿同一個框（原圖小也放大），避免每張大小不一；!important 蓋掉 img 行內的原圖寬度上限 */
.shop-page .shop-category-card .shop-photo img,.shop-page[data-page="category"] .shop-product-card .shop-photo img,.shop-page .shop-related-card .shop-photo img{width:100%;height:100%;min-width:0;max-width:100%!important;max-height:100%}
.shop-page[data-page="category"] .shop-product-card .shop-product-title{height:calc(4.5em + 20px);min-height:calc(4.5em + 20px);font-size:20px;line-height:1.5}
.shop-page[data-page="category"] .shop-product-card .shop-product-title a{height:100%;min-height:0;width:100%;padding-block:6px;font-size:inherit;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.shop-page[data-page="category"] .shop-product-card .shop-product-title a:not(.btn){display:flex;align-items:center}
.shop-page[data-page="category"] .shop-product-card .shop-product-title a span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.shop-page[data-page="category"] .shop-product-card .shop-chips{min-height:74px;align-content:flex-start}
.shop-page[data-page="category"] .shop-product-card .shop-chips .chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:15px}
.shop-page[data-page="category"] .shop-product-card>.shop-price{font-size:24px;line-height:1.45;min-height:2.9em;display:flex;align-items:center}
.shop-page[data-page="category"] .shop-product-card>.shop-card-actions{margin-top:auto}
.shop-page[data-page="category"] .shop-product-card>.shop-feedback{min-height:3.4em;font-size:15px}
.shop-page[data-page="category"] .shop-product-card>.shop-feedback[hidden]{display:block;visibility:hidden}
.shop-page .shop-category-card h2{font-size:25px;line-height:1.45}
.shop-page .shop-category-card>p:last-child{margin-top:auto;color:var(--ink-3);font-size:17px}
.shop-page .shop-related-card h3,.shop-page .shop-related-card h2{font-size:19px;line-height:1.5}
.shop-page .shop-related-card>.shop-price{margin-top:auto;font-size:22px}

/* 缺照仍保留與實品照片相同的展示區，圖示只作輔助。 */
.shop-page .shop-photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-width:0;min-height:0;padding:14px;border:1px solid #d6e8f8;border-radius:var(--r-md);background:linear-gradient(145deg,#eef7ff,#dfedfb);color:var(--ink-3);text-align:center}
.shop-page .shop-photo-placeholder img{flex:0 1 auto;width:88px;max-width:55%;height:auto;max-height:65%;object-fit:contain;mix-blend-mode:multiply}
.shop-page .shop-photo-placeholder span,.shop-page .shop-photo-placeholder small{font-size:14px;line-height:1.5}
.shop-page .shop-line-photo .shop-photo-placeholder{gap:4px;padding:6px;border-radius:10px}
.shop-page .shop-line-photo .shop-photo-placeholder img{width:44px;max-width:100%;max-height:54px}
.shop-page .shop-line-photo .shop-photo-placeholder span,.shop-page .shop-line-photo .shop-photo-placeholder small{font-size:11px;line-height:1.3}
.shop-page .shop-line-info .btn,.shop-page .shop-name-link{height:auto;min-height:64px;padding-block:10px;overflow-wrap:anywhere}

/* 單一規格購買面板：主圖保留原始尺寸上限，窄版依閱讀順序堆疊。 */
.shop-page[data-page="product"] #product-main>.shop-product-layout{margin-top:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,3vw,64px)}
.shop-page[data-page="product"] .shop-product-visual{padding:clamp(18px,2.3vw,48px)}
.shop-page[data-page="product"] .shop-product-photo{height:clamp(320px,32vw,640px);justify-content:center}
.shop-page[data-page="product"] .shop-product-photo>.shop-photo-placeholder{max-width:560px}
.shop-page[data-page="product"] .shop-product-photo>.shop-photo-placeholder img{width:144px;max-height:55%}
.shop-page[data-page="product"] .shop-purchase{min-width:0;display:flex;flex-direction:column}
.shop-page[data-page="product"] .shop-purchase h1{font-size:clamp(28px,2vw,46px);line-height:1.4;overflow-wrap:anywhere}
.shop-page[data-page="product"] .shop-purchase .shop-price{font-size:clamp(28px,2vw,44px)}
.shop-page[data-page="product"] .shop-purchase>.shop-meta{margin-top:auto}
.shop-page[data-page="product"] .shop-spec-card{max-width:1200px;margin-inline:auto;gap:24px}
.shop-page[data-page="product"] .shop-spec-text{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}
.shop-page[data-page="product"] .shop-spec-text h3{margin-bottom:12px}
.shop-page[data-page="product"] .shop-spec-text p{white-space:pre-line}
.shop-page .shop-list-unavailable{margin:0 0 24px;padding:14px 18px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--tint);color:var(--ink-2)}
@media(max-width:900px){
  .shop-page[data-page="product"] #product-main>.shop-product-layout{grid-template-columns:minmax(0,1fr)}
  .shop-page[data-page="product"] .shop-product-photo{height:380px}
  .shop-page[data-page="product"] .shop-product-visual{padding:18px}
}
@media(max-width:600px){
  .shop-page[data-page="category"] .shop-grid>.shop-product-card,
  .shop-page .shop-category-grid>.shop-category-card{flex-basis:100%;max-width:340px}
  .shop-page .shop-related-grid>.shop-related-card{flex-basis:100%;max-width:320px}
  .shop-page[data-page="category"] .shop-product-card.card{padding:20px 16px}
  .shop-page[data-page="category"] .shop-product-card .shop-product-title{font-size:19px}
  .shop-page[data-page="product"] .shop-product-photo{height:300px}
  .shop-page[data-page="product"] .shop-purchase.card{padding:24px 18px}
  .shop-page[data-page="product"] .shop-meta>div{grid-template-columns:76px minmax(0,1fr);gap:12px}
  .shop-page[data-page="product"] .shop-spec-list>div{grid-template-columns:76px minmax(0,1fr);gap:14px}
}

/* 卡片列欄數由 shop.js 依寬度與張數決定（data-cols）：卡片撐滿整列、最後一列置中且不落單 */
.shop-page .shop-grid[data-cols]>.shop-product-card,
.shop-page .shop-category-grid[data-cols]>.shop-category-card,
.shop-page .shop-related-grid[data-cols]>.shop-related-card{flex:0 0 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));max-width:none}
.shop-page .shop-grid[data-cols="1"]>.shop-product-card,
.shop-page .shop-category-grid[data-cols="1"]>.shop-category-card,
.shop-page .shop-related-grid[data-cols="1"]>.shop-related-card{max-width:400px}
/* 加入回饋只預留一行，按鈕下方不留大塊空白；規格膠囊與缺照說明字級不小於 16px */
.shop-page[data-page="category"] .shop-product-card>.shop-feedback{min-height:1.7em;font-size:16px;line-height:1.7}
.shop-page[data-page="category"] .shop-product-card .shop-chips .chip{font-size:16px}
.shop-page .shop-photo-placeholder span,.shop-page .shop-photo-placeholder small{font-size:16px}
/* 清單小縮圖放不下可讀的說明字，缺照時只留圖示 */
.shop-page .shop-line-photo .shop-photo-placeholder span,.shop-page .shop-line-photo .shop-photo-placeholder small{display:none}
.shop-page .shop-line-photo .shop-photo-placeholder img{width:52px;max-height:72%}

/* ===== 線上付款（js/shop-pay.js）2026-10-03 ===== */
/* 未開放：表單最上方的提示卡＋付款選項標「即將開放」 */
.shop-pay-closed{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px 18px;margin:0 0 30px;padding:20px 22px;border:1px solid #f0cf8f;border-bottom:4px solid #e6a437;border-radius:15px;background:linear-gradient(#fffaf0,#fff1d7);box-shadow:var(--depth-1);color:#6b4506}
.shop-pay-closed__icon{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:#fff;color:#c27d0e;box-shadow:0 3px 0 #f0cf8f}
.shop-pay-closed__body strong{display:block;color:#5a3a05;font-size:clamp(19px,1.1vw,24px);font-weight:800;line-height:1.4}
.shop-pay-closed__body p{margin:4px 0 0;font-size:16px;line-height:1.7}
.shop-pay-closed .btn{height:52px;padding-inline:18px;font-size:16px;white-space:nowrap}
/* 付款方式三個選項：放得下就一排三個，放不下就一欄（避免「轉帳」「帳戶」被拆行、也不留落單的一個） */
.shop-form [data-field="payment"]{container-type:inline-size}
@container (max-width:780px){.shop-form [data-field="payment"] .shop-option-grid{grid-template-columns:minmax(0,1fr)}}
.shop-choice--soon{cursor:not-allowed;opacity:.72;background:#f4f6f9;border-bottom-color:#d5dde6}
.shop-choice--soon .shop-soon{position:absolute;top:-11px;right:12px;padding:1px 10px;border:1px solid #f0cf8f;border-radius:20px;background:#fff6e3;color:#885305;font-size:14px;font-weight:800;line-height:1.5;white-space:nowrap}
/* 開放：選了付款方式後顯示的內容 */
.shop-pay-box{display:flex;flex-direction:column;gap:14px;margin-top:4px;padding:20px 22px;border:1px solid var(--line);border-radius:15px;background:#f7fbff}
.shop-pay-panel{display:flex;flex-direction:column;gap:14px}
.shop-pay-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.shop-pay-brand{color:var(--brand-d);font-size:16px;font-weight:800;white-space:nowrap}
.shop-pay-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:16px}
.shop-pay-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.shop-pay-label{color:var(--ink);font-size:17px;font-weight:700;line-height:1.5;white-space:nowrap}
.shop-tpfield{height:54px;box-sizing:border-box;padding:14px;border:1px solid #b8cee4;border-bottom:3px solid #b4cae0;border-radius:11px;background:#fff;box-shadow:0 2px 4px rgba(15,39,71,.04) inset}
.shop-tpfield.tappay-field-focus{border-color:var(--brand);outline:3px solid rgba(37,99,235,.18);outline-offset:0}
.shop-tpfield.shop-tpfield--error{border-color:#c43847;background:#fff8f8}
.shop-pay-secure{margin:0;padding-top:12px;border-top:1px solid var(--line);color:var(--ink-3);font-size:16px;line-height:1.6}
/* 完成頁：ATM 帳號與匯款資訊 */
.shop-atm .shop-atm__no{color:var(--brand-d);font-size:clamp(20px,1.2vw,26px);font-weight:800;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.shop-bank-info{margin:0;padding:14px 16px;border-radius:12px;background:#f7fbff;color:var(--ink-2);font-size:17px;line-height:1.7}
.shop-status--paid{color:#18683b;background:#e4f5e9}
.shop-status--closed{color:#5d6b7a;background:#edf1f5}
@media(max-width:900px){
  .shop-pay-closed{grid-template-columns:auto minmax(0,1fr)}
  .shop-pay-closed .btn{grid-column:1 / -1;width:100%}
  .shop-pay-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .shop-pay-field--number{grid-column:1 / -1}
}
@media(max-width:600px){
  .shop-pay-closed{padding:16px;gap:12px 14px}
  .shop-pay-closed__icon{width:46px;height:46px}
  .shop-pay-box{padding:16px}
  .shop-pay-label{font-size:16px}
}
@media(max-width:380px){
  .shop-pay-fields{grid-template-columns:minmax(0,1fr)}
}
/* 產品清單由程式排出來之前先佔位，避免頁尾先出現再被推走（版面跳動） */
#shop-products:not([class]){min-height:100vh}
/* 只有詢價時（產品都沒有標價）選購清單沒有右側摘要，品項列用滿整列寬：名稱｜數量｜移除排成一列（1199px 以下與 1921px 以上本來就是這個排法） */
@media(min-width:1200px) and (max-width:1920px){
  .shop-main-stack--full .shop-line{grid-template-columns:86px minmax(0,1fr) auto auto auto;gap:16px}
  .shop-main-stack--full .shop-line-photo{grid-row:1;width:86px}
  .shop-main-stack--full .shop-line>.shop-quantity{grid-column:3;grid-row:1}
  .shop-main-stack--full .shop-line-total{grid-column:4;grid-row:1}
  .shop-main-stack--full .shop-line>.btn{grid-column:5;grid-row:1}
}
/* 空清單卡片的按鈕跟圖示、標題一樣置中（共用樣式的卡片按鈕預設靠左） */
.shop-empty>.btn{align-self:center}
