/* shop/cart.css：公開店家頁樣式第 4／4 支「購物車、商品圖庫、下單成功頁、觸控目標、橫幅輪播、顧客自選加購」（2026-10-12 由 shop.css 第 2394～3405 行逐字切出；依 public/shop.html 的 link 順序串接＝原檔）---- 以下逐字搬自拆分前的 shop.css ---- */
/* ==========================================================================
   購物車（Cart）
   ========================================================================== */

/* 「立即預約」入口（2026-10-01 UX 第 2 波）：頁首一顆＋捲過頁首後浮出一顆（只在 ≥768px）。
   頁首那顆在有橫幅（白字）與無橫幅時都用店家色底白字，兩種背景都看得清楚；不加入場動畫（標頭 LCP）。 */
.shop-book-cta-wrap {
    margin-top: 1.125rem;
    display: flex;
    justify-content: center;
}
.shop-book-cta,
.shop-book-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 100px;
    background: var(--shop-accent);
    color: var(--shop-accent-text, #fff);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--shop-accent) 30%, transparent);
    transition: filter 0.2s var(--shop-ease), transform 0.2s var(--shop-ease);
}
.shop-book-cta:hover,
.shop-book-fab:hover { filter: brightness(1.06); }
.shop-book-cta:active,
.shop-book-fab:active { transform: scale(0.98); }
.shop-book-cta:focus-visible,
.shop-book-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--shop-accent) 30%, transparent);
}
/* 浮動那顆：手機不顯示（每張服務卡上已有「預約」、右下還有購物車鈕）；
   位置在底部置中，避開右下的購物車鈕與頂部的彈幕軌道；z-index 低於精靈（1000）與各視窗。 */
.shop-book-fab {
    position: fixed;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 950;
    display: none;
}
.shop-book-fab:active { transform: translateX(-50%) scale(0.98); }
@media (min-width: 768px) {
    .shop-book-fab:not([hidden]) { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-book-cta, .shop-book-fab { transition: none; }
}

.cart-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--shop-accent, #8a6d52);
    color: var(--shop-accent-text, #fff);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1080;
    /* 不能加 !important — 會蓋掉 inline display:none，空購物車時 FAB 藏不住（updateCartFabBadge 的 style.display='none' 失效）*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s, box-shadow 0.18s;
}

.cart-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.cart-fab:active {
    transform: translateY(0);
}

.cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s var(--shop-ease, cubic-bezier(0.22, 1, 0.36, 1));
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.cart-drawer-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    background: #fafafa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cart-total-row strong {
    font-size: 1.25rem;
    color: var(--shop-accent, #8a6d52);
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    background: var(--shop-accent, #8a6d52);
    color: var(--shop-accent-text, #fff);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cart-checkout-btn:hover { opacity: 0.9; }
.cart-checkout-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Cart item */
.cart-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f7;
    border: 1px solid #ececec;
}

.cart-item-img-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0c5;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--shop-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--shop-text-secondary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    gap: 0.5rem;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    color: var(--shop-text);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #f5f5f7;
}

.cart-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-qty-num {
    min-width: 32px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    border-left: 1px solid #d2d2d7;
    border-right: 1px solid #d2d2d7;
    padding: 0 0.5rem;
    line-height: 28px;
    background: #fff;
}

.cart-item-remove {
    border: none;
    background: transparent;
    color: var(--shop-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
}

.cart-item-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--shop-text-muted);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: #d2d2d7;
}

/* Checkout 結帳清單樣式（在 detail modal 裡） */
.checkout-items {
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
    margin-bottom: 1rem;
    overflow: hidden;
}

.checkout-items .checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #ececec;
    font-size: 0.875rem;
}

.checkout-items .checkout-item:last-child {
    border-bottom: none;
}

.checkout-items .checkout-item-name {
    flex: 1;
    color: var(--shop-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.checkout-items .checkout-item-detail {
    color: var(--shop-text-secondary);
    font-variant-numeric: tabular-nums;
}

.checkout-items .checkout-total {
    background: #fff;
    font-weight: 600;
    color: var(--shop-accent, #8a6d52);
    border-top: 2px solid #ececec;
}

@media (max-width: 480px) {
    .cart-fab {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
    }
    .cart-drawer { width: 100vw; max-width: 100vw; }
}

.detail-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    /* 釘在 modal 底部：結帳表單較長時送出鍵不被推到摺疊線下方 */
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 0.75rem 0 calc(0.25rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 16px -10px rgba(0, 0, 0, 0.10);
    z-index: 2;
}

.detail-modal-actions .btn-modal-primary {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    background: var(--shop-primary, #d4a574);
    color: var(--shop-accent-text, #fff);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.detail-modal-actions .btn-modal-primary:hover {
    opacity: 0.85;
}

/* 停用＝灰底深灰字，與預約精靈的停用鈕同一組（2026-10-01 UX 第 2 波；原本 opacity 0.4 的淡粉白字看不出是什麼狀態），
   為什麼按不了由按鈕上方 .checkout-next-hint 那一行說明 */
.detail-modal-actions .btn-modal-primary:disabled {
    background: #e7e3dc;
    color: #5f5a53;
    opacity: 1;
    cursor: not-allowed;
}

.checkout-next-hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.8125rem;
    color: #5f5a53;
    text-align: center;
}
.checkout-next-hint[hidden] { display: none; }

.detail-modal-actions .btn-modal-secondary {
    padding: 0.75rem 1.25rem;
    border: 1.5px solid #d2d2d7;
    border-radius: 12px;
    background: #fff;
    color: #1d1d1f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.detail-modal-actions .btn-modal-secondary:hover {
    background: #f5f5f7;
}

/* 庫存提示 */
.detail-modal-stock {
    font-size: 0.8125rem;
    color: var(--shop-text-muted, #86868b);
    margin-bottom: 0.5rem;
}
.detail-modal-stock .detail-modal-limit {
    color: #e65100;
    font-weight: 500;
}
.detail-modal-stock-soldout {
    font-size: 0.9375rem;
    color: #fff;
    background: #6b6b70;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: center;
}
.detail-modal-stock-urgent {
    color: #ff3b30;
    font-weight: 700;
}

/* ===== 商品圖庫（多張圖 + 左右滑動）===== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* 主圖區：橫向 scroll-snap 輪播 */
.product-gallery-main {
    position: relative;
    width: 100%;
}
.product-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 12px;
    background: #f5f5f7;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.product-gallery-track::-webkit-scrollbar { display: none; }
.product-gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}
.product-gallery-slide img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

/* 左右切換箭頭（桌面顯示） */
.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    transition: background 0.15s;
}
.product-gallery-nav:hover { background: rgba(0,0,0,0.6); }
.product-gallery-nav.prev { left: 8px; }
.product-gallery-nav.next { right: 8px; }
@media (hover: none) {
    /* 手機觸控裝置隱藏箭頭，用滑的 */
    .product-gallery-nav { display: none; }
}

/* 頁碼指示（dots） */
.product-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.product-gallery-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transition: all 0.2s;
    cursor: pointer;
}
.product-gallery-dots .dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* 縮圖列（次要導覽） */
.product-gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px;
    -webkit-overflow-scrolling: touch;
}
.product-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.product-gallery-thumbs .gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.15s ease;
}
.product-gallery-thumbs .gallery-thumb:hover { opacity: 1; }
.product-gallery-thumbs .gallery-thumb.active {
    border-color: var(--shop-theme-color, #4361ee);
    opacity: 1;
}

/* ===== 下單成功頁 ===== */
.purchase-success {
    text-align: center;
    padding: 0.5rem 0;
}
.purchase-success .success-icon {
    font-size: 4rem;
    color: #34c759;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.purchase-success .success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}
.purchase-success .success-subtitle {
    font-size: 0.9375rem;
    color: var(--shop-text-muted, #86868b);
    margin-bottom: 1.5rem;
}
.purchase-success .success-order-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.purchase-success .success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.purchase-success .success-row:last-child { border-bottom: none; }
.purchase-success .success-row .label {
    color: var(--shop-text-muted, #86868b);
    font-size: 0.875rem;
}
.purchase-success .success-row .value { font-weight: 500; color: #1d1d1f; }
.purchase-success .success-row .value.mono { font-family: ui-monospace, monospace; font-size: 0.85rem; }
.purchase-success .success-row-total {
    padding-top: 0.75rem;
    border-top: 1.5px solid rgba(0,0,0,0.1) !important;
    margin-top: 0.25rem;
}
.purchase-success .success-total {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #34c759;
}
.success-pm-list {
    text-align: left;
    margin-bottom: 1.25rem;
    background: #fffdf0;
    border: 1px solid #ffe9a1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.success-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #8a6d00;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.success-section-title::before {
    content: '💳';
}
.success-pm-item {
    padding: 0.625rem 0;
    border-bottom: 1px dashed rgba(138,109,0,0.15);
}
.success-pm-item:last-child { border-bottom: none; padding-bottom: 0; }
.success-pm-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}
.success-pm-info {
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.5;
    font-family: ui-monospace, monospace;
}
.success-pm-instructions {
    font-size: 0.8125rem;
    color: #8a6d00;
    margin-top: 0.375rem;
    line-height: 1.5;
}
.purchase-success .success-actions {
    display: flex;
    justify-content: center;
}
.purchase-success .success-actions .btn-modal-primary {
    min-width: 160px;
}

/* ========================================
   觸控目標最小 44×44pt（2026-07-31 iPhone UX 體檢）
   實測：Tab 26px / 關閉鈕 32px / 預約鈕 35px / 時段鈕 41px 皆低於 Apple HIG 建議值，
   對長輩與行動不便顧客（美容/診所常見客群）容易誤觸失敗。
   只加大可點區（padding / min-height），不動版面結構與字級。
   ======================================== */
@media (pointer: coarse) {
    .shop-tabs .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .btn-book {
        min-height: 44px;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    .wizard-close,
    .detail-modal-close {
        width: 44px;
        height: 44px;
    }
    /* 時段按鈕（41px → 44px）與其他 wizard 內可點項
       （.time-btn/.date-btn 為實際 class；.time-slot-btn/.wizard-option 為舊選擇器保留不刪） */
    .time-slot-btn,
    .wizard-option,
    .time-btn,
    .date-btn,
    .staff-option {
        min-height: 44px;
    }
}

/* ========================================
   橫幅輪播（2026-08-27 426 cottage 需求）：額外橫幅疊在主圖上淡入淡出。
   沒有額外橫幅的店家不會有 .hero-banner-extra / .hero-dots 元素，以下規則對它們完全不生效。
   ⚠️ .hero-dots 必須寫成「兩個 class + 子選擇器」（specificity 0,3,0）並放在檔尾，
      才蓋得過上面 .shop-header > *:not(.hero-canvas):not(.hero-banner) 那條把子元素設成 position:relative 的規則。
   ⚠️ 綁 .has-carousel 不綁 .has-banner（2026-08-27 修）：圓點的存在條件是「有輪播」，
      而 has-banner 會在主圖載入失敗時被 fallbackToCanvas 移除 —— 綁 has-banner 的舊寫法在那一刻
      讓圓點退回 position:relative 的通用規則，變成 372×110 的 in-flow 區塊直排在 header 左側、
      把 header 從 369px 撐到 495px（生產實測）。兩個 class 的生命週期不同，勿再綁回 has-banner。
   ======================================== */
.hero-banner { transition: opacity .9s ease; }
.hero-banner.is-behind { opacity: 0; }
.hero-banner-extra { opacity: 0; }
.hero-banner-extra.is-active { opacity: 1; }
.shop-header.has-carousel > .hero-dots {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    gap: 2px;
    z-index: 2;
}
/* 圓點可點（v37）：外框 22px 當命中區、內圈用 ::before 畫 7px 點 */
.hero-dot {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hero-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
.hero-dot.is-active::before { background: #fff; }
/* 滑鼠拖曳切張時避免選到店名文字 */
.shop-header.has-carousel { user-select: none; -webkit-user-select: none; }
/* 有輪播時橫向手勢歸輪播、直向照常捲頁（安卓 Chrome 不宣告會把帶斜度的左右滑當捲動） */
.shop-header.has-carousel { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) {
    .hero-banner, .hero-banner-extra { transition: none; }
}


/* ========================================
   顧客自選加購（預約加購 Phase 2，2026-09-04）
   這些元素只在 `shopData.addonItemCount > 0` 的店家才會被建出來——
   沒有附加項目的店家 DOM 裡一個都沒有，以下規則對它們完全不生效。
   版面沿用 .staff-option 的卡片語彙（同一個精靈裡不要再發明第二種選取樣式）。
   ======================================== */
.addon-hint {
    font-size: .85rem;
    color: var(--shop-muted, #86868b);
    margin-bottom: .75rem;
    line-height: 1.5;
}

/* 依分類摺疊（2026-09-07 JOLIN NAILS 建議）。這組 wrapper 只在「兩個以上分類」時才會被建出來 */
.addon-group {
    margin-bottom: .75rem;
}

.addon-group-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .55rem .25rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--shop-border);
    margin-bottom: .5rem;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.addon-group-name {
    font-weight: 600;
    font-size: .95rem;
}

.addon-group-meta {
    margin-left: auto;
    font-size: .8rem;
    color: var(--shop-muted, #86868b);
}

.addon-group-arrow {
    font-size: .9rem;
    color: var(--shop-muted, #86868b);
    transition: transform .2s var(--shop-ease);
}

.addon-group.collapsed .addon-group-arrow {
    transform: rotate(-90deg);
}

/* 收起來只藏內容，標題與「已選 N」仍在——顧客看得到自己在這一類選過東西 */
.addon-group.collapsed .addon-group-body {
    display: none;
}

.addon-option {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: .875rem 1rem;
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius);
    cursor: pointer;
    margin-bottom: .5rem;
    transition: all .2s var(--shop-ease);
    box-shadow: var(--shop-shadow-xs);
}

.addon-option:hover {
    box-shadow: var(--shop-shadow);
    transform: translateY(-1px);
}

.addon-option.selected {
    box-shadow: 0 0 0 2px var(--shop-accent), var(--shop-shadow);
    border-color: transparent;
}

/* 有圖／無圖兩種版面高度一致：無圖用同尺寸的圖示佔位，不留空洞也不讓卡片忽高忽低 */
.addon-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--shop-surface);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.addon-thumb.is-empty {
    color: var(--shop-text-secondary, #86868b);
    font-size: 1.25rem;
}

.addon-body {
    flex: 1;
    min-width: 0;
}

.addon-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--shop-text);
}

.addon-desc {
    font-size: .8rem;
    color: var(--shop-muted, #86868b);
    margin-top: .15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.addon-meta {
    font-size: .82rem;
    color: var(--shop-text-secondary, #86868b);
    margin-top: .25rem;
}

.addon-qty {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

.addon-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--shop-border);
    background: var(--shop-surface);
    color: var(--shop-text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.addon-qty-num {
    min-width: 2ch;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
}

/* 勾選圖示：未選時保留位置（透明），選了才顯示——避免選取時卡片寬度跳動 */
.addon-check {
    flex-shrink: 0;
    align-self: center;
    color: var(--shop-accent);
    font-size: 1.15rem;
    opacity: 0;
}

.addon-option.selected .addon-check {
    opacity: 1;
}

.addon-subtotal {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--shop-border);
    font-size: .9rem;
    font-weight: 600;
    color: var(--shop-text);
    text-align: right;
}

/* 觸控裝置：與 .staff-option / .date-btn / .time-btn 同標準 44px（見上方 pointer:coarse 區塊） */
@media (hover: none) and (pointer: coarse) {
    .addon-option,
    .addon-qty-btn {
        min-height: 44px;
    }
    .addon-qty-btn {
        min-width: 44px;
    }
}

/* 「使用上次的資料」提示（2026-09-25，預約精靈填資料步驟＋購物車結帳）。
   顯示／隱藏由 JS 切 inline display，這裡刻意不對 display 加 !important（否則藏不住）。 */
.remember-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin: 0 0 .75rem;
    padding: 8px 12px;
    background: var(--shop-bg);
    border: 1px dashed var(--shop-border);
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--shop-muted);
}

.remember-notice-clear {
    border: 0;
    background: none;
    padding: 0 2px;
    font-size: inherit;
    color: var(--shop-accent);
    text-decoration: underline;
    cursor: pointer;
}

/* 「使用上次的資料（王○明・0912***678）」——顧客自己按了才帶入（2026-09-25 QA 第一輪起不自動填） */
.remember-notice-use {
    border: 1px solid var(--shop-accent);
    background: var(--shop-card, #fff);
    color: var(--shop-accent);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: inherit;
    cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
    .remember-notice-clear,
    .remember-notice-use {
        min-height: 44px;
        min-width: 44px;
    }
}
