/* shop/base.css：公開店家頁樣式第 1／4 支「設計 token、基礎、入場動畫、公告、標頭、分頁、關於、圖片展示、社群、服務／商品／作品／票券／聯絡」（2026-10-12 由 shop.css 第 1～1193 行逐字切出；依 public/shop.html 的 link 順序串接＝原檔）---- 以下逐字搬自拆分前的 shop.css ---- */
/**
 * 公開店家頁面樣式 v3
 * 溫暖米白 × 襯線店名 × 白卡細邊框（對標 Dolyu 質感）
 * 設計 token 全集中在 :root；店家自訂主題色（themeColor）由 JS 注入 --shop-accent（強調色，不是整頁色）
 */

/* ========================================
   CSS 變數（設計 token）
   ======================================== */

:root {
    /* 強調色：店家有設 themeColor 時由伺服器直接寫在 <html style> 上（首次繪製就是店家色），
       JS 載入後再依 themeColor / 行業偵測覆寫。這裡的預設值＝行業偵測的 default 暖褐，
       不再用平台紫（2026-09-30：載入瞬間先畫紫色、1～2 秒後才跳店家色） */
    --shop-accent: #8a6d52;
    /* 強調色「底上」的字色（2026-10-15 無障礙）：不再寫死白字。伺服器（<html style>）與 JS（accent-text.js 的
       AccentText.apply）依強調色算出白／暖深 #1f1c18／純黑，取第一個達 4.5:1 的；判準與後端 AccentTextColor 共用黃金向量。
       這裡的預設白字只對應上面的預設暖褐（白 4.78）。凡是 background 吃強調色的規則，字色一律寫 var(--shop-accent-text)
       （守衛 tests/accent-text-check.js 自動掃 shop/*.css）。 */
    --shop-accent-text: #ffffff;
    /* 文字階層（暖灰系，不用冷藍灰） */
    --shop-ink: #221f1a;
    --shop-text: var(--shop-ink);
    --shop-text-secondary: #625d52;
    --shop-text-muted: #6b665b; /* 2026-09-29 a11y：原 #8d8779 在米白底只有 3.27:1，改成四種底色都 ≥4.6 */
    --shop-muted: var(--shop-text-muted);
    /* 底色：頁面暖米白（Dolyu 系）、卡片純白、次要面（輸入框/chip/佔位圖）暖灰 */
    --shop-bg: #f6f5f0;
    --shop-card: #ffffff;
    --shop-surface: #efede6;
    --shop-border: #e8e4d9;
    /* 圓角 */
    --shop-radius: 14px;
    --shop-card-radius: var(--shop-radius);
    --shop-radius-lg: 22px;
    --shop-radius-sm: 10px;
    /* 陰影：極輕、偏暖（質感靠留白+細邊框，不靠重陰影） */
    --shop-shadow-xs: 0 1px 2px rgba(60,50,30,0.04);
    --shop-shadow: 0 2px 14px rgba(60,50,30,0.07);
    --shop-shadow-lg: 0 10px 34px rgba(60,50,30,0.10);
    --shop-shadow-focus: 0 0 0 4px color-mix(in srgb, var(--shop-accent) 14%, transparent);
    /* 語意色（inline JS 有 var(--shop-danger/success/muted) 引用，這裡是唯一定義處） */
    --shop-danger: #d9372b;
    --shop-success: #2f9e57;
    /* 舊 fallback 變數對齊 accent（detail modal 價格/主按鈕、gallery thumb） */
    --shop-primary: var(--shop-accent);
    --shop-theme-color: var(--shop-accent);
    /* 字體：內文黑體、店名/區段標題襯線（文人感） */
    /* 2026-09-29：內文只用系統字型（不再下載 Inter／Noto Sans TC 網頁字型——手機實測字型 1.39MB、每個分片載入都重排整頁中文）。
       'Noto Sans TC' 留在清單尾端＝使用者電腦剛好裝了才用，不會觸發下載 */
    --shop-font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", 'Helvetica Neue', sans-serif;
    --shop-font-display: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
    --shop-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --shop-content-width: 720px;
    /* 間距系統（區塊 48 / 段落 32 / 元件 20 / 細部 12） */
    --shop-space-1: 12px;
    --shop-space-2: 20px;
    --shop-space-3: 32px;
    --shop-space-4: 48px;
}

/* ========================================
   基礎
   ======================================== */

*, *::before, *::after { box-sizing: border-box; }

/* 圖示先佔好 1em 的位置（2026-09-29 CLS）：圖示 CSS 是非同步載入的，載入前 <i class="bi"> 寬度是 0，
   載入後才撐開 ⇒ 整行文字被往右推（公告列、頁尾、徽章都會跳）。概念同部落格頁的圖示預留規則。
   特異度刻意只有一個 class（0,1,0）：`.shop-empty i { display:block }` 這類既有規則要蓋得過它；
   只用 min-width 不用 width／height／vertical-align：被改成 block 的圖示仍佔滿整行（置中不跑掉），行內的圖示基線也與載入後一致 */
.bi { display: inline-block; min-width: 1em; }

body.shop-page {
    font-family: var(--shop-font);
    background: var(--shop-bg);
    color: var(--shop-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* ========================================
   入場動畫
   ======================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 標頭區（Logo／店名／簡介／資訊徽章／公告）專用：只動 transform、opacity 一開始就是 1（2026-09-29 手機效能）。
   這幾塊都是伺服器先印好的首屏內容，店名 h1 就是手機 LCP 元素；從 opacity 0 淡入會讓它
   在動畫結束前都不算「畫出來」。⚠️ 不要改回 fadeUp（守衛 ShopHeaderPerfGuardTest）。 */
@keyframes riseIn {
    from { transform: translateY(12px); }
    to   { transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   公告列
   ======================================== */

.shop-announcement {
    background: var(--shop-accent);
    color: var(--shop-accent-text, #fff);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    animation: riseIn 0.4s var(--shop-ease) both;
}

/* ========================================
   Canvas Hero Header
   ======================================== */

.shop-header {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
    background: var(--shop-surface);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 橫幅下方影片區塊：對齊內容寬度（--shop-content-width），自動輪播 */
.shop-video-section {
    max-width: var(--shop-content-width);
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
}

/* 填滿區塊寬度（width:100% 才會放大，否則只用影片原始解析度顯示）；height auto 保持比例，
   object-fit:contain 確保直式影片被 max-height 夾住時也不變形 */
.shop-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

@media (max-width: 768px) {
    .shop-video-section {
        padding: 0 1rem;
    }
}

.shop-header > *:not(.hero-canvas):not(.hero-banner) {
    position: relative;
    z-index: 1;
}

/* 有自訂橫幅時：Dolyu 式構圖——店名/標語壓在圖「下緣」白字、內容靠左、
   由下往上黑色漸層 overlay 保證可讀性（無橫幅店家不受以下規則影響，維持置中構圖） */
/* 老闆拍板（2026-07-31 選項 B）：有橫幅時店名/標語/資訊也「置中」壓在圖下緣，
   與無橫幅店家的置中構圖一致（不採 Dolyu 的靠左壓圖） */
/* ⚠️ 有無橫幅一律以 .has-banner class 判斷，不要改回比對 inline style 字串（2026-08-25）。
   原本是 [style*="display: block"]（冒號後有空格），2026-08-21 橫幅改 SSR 直出 style="display:block;"（無空格）
   → 這整組「有橫幅就把店名/簡介轉白 + 加陰影」的規則全部失配 4 天，深色橫幅的店家店名是近黑色壓深底
   （實測 computed color rgb(34,31,26)、text-shadow none），而 DOM 在、圖也在，沒有任何測試會抓到。
   同日第一版曾改成 :not([style*="display:none"])，但那有反向陷阱（沒有 style 屬性的元素也成立）
   且 :has() 在 Firefox <121 / Safari <15.4 不生效 → 最終定案用 class，兩端（SSR + JS）維護。 */
.shop-header.has-banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    min-height: clamp(280px, 46vw, 430px);
    padding-bottom: 1.75rem;
}

.shop-header.has-banner .shop-name,
.shop-header.has-banner .shop-description {
    text-shadow: 0 1px 10px rgba(0,0,0,0.45);
    color: #fff;
}

.shop-header.has-banner .shop-description {
    margin: 0 auto 1rem;
    max-width: 560px;
    color: rgba(255,255,255,0.88);
}

.shop-header.has-banner .shop-info-badges {
    justify-content: center;
}

.shop-header.has-banner .shop-info-badge {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.9);
}

.shop-header.has-banner .shop-info-badge i {
    color: rgba(255,255,255,0.75);
}

/* 漸層 overlay：下深上淡（文字壓在下緣，該處對比最強） */
.shop-header.has-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Logo：圓角小方塊、白底、細邊+輕陰影（疊在橫幅圖上也清楚） */
.shop-logo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 1.125rem;
    background: var(--shop-card);
    border: 3px solid var(--shop-card);
    box-shadow: var(--shop-shadow);
    animation: riseIn 0.5s var(--shop-ease) both;
}

/* Logo 是 data: 圖（非網址）時伺服器不內嵌整串圖，只先佔一格同尺寸的位子，
   等 JS 換成真正的 <img>——版面高度前後一致，不會把下面的內容往下推（2026-09-29） */
.shop-logo-slot {
    display: inline-block;
    width: 84px;
    height: 84px;
    margin-bottom: 1.125rem;
}

.shop-logo-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.125rem;
    box-shadow: var(--shop-shadow);
    color: var(--shop-text-muted);
    animation: riseIn 0.5s var(--shop-ease) both;
}

/* 店名：大號襯線（文人感）——質感的主要來源 */
.shop-name {
    font-family: var(--shop-font-display);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
    color: var(--shop-text);
    animation: riseIn 0.5s var(--shop-ease) 0.05s both;
}

.shop-description {
    font-size: 0.9375rem;
    color: var(--shop-text-secondary);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.65;
    animation: riseIn 0.5s var(--shop-ease) 0.1s both;
}

.shop-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    animation: riseIn 0.5s var(--shop-ease) 0.15s both;
}

.shop-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--shop-text-secondary);
    text-decoration: none;
    transition: background 0.2s var(--shop-ease);
}

.shop-info-badge:hover {
    background: rgba(255,255,255,0.9);
    color: var(--shop-text-secondary);
    text-decoration: none;
}

.shop-info-badge i {
    font-size: 0.8125rem;
    color: var(--shop-text-muted);
}

/* ========================================
   Pill Tabs（iOS 風格）
   ======================================== */

.shop-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    /* 磨砂玻璃機制保留，色系改暖米白（與 --shop-bg 同族） */
    background: rgba(246,245,240,0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(60,50,30,0.10);
    padding: 0.625rem 1rem;
}

.shop-tabs .nav {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
}

/* 置中但不切左邊（2026-10-01）：用 justify-content:center 時，分頁列比容器寬的那一段會往左側溢出、
   而左側溢出在捲動容器裡捲不到（手機 390px「服務」被切一半）。改用兩個零寬的偽元素吃 auto margin：
   放得下 ⇒ 兩側平分剩餘空間＝置中；放不下 ⇒ auto margin 變 0，第一個分頁貼齊左邊、其餘往右滑。
   掛在 ul 的偽元素上（不是 :first-child/:last-child），是因為第一／最後一個 li 可能被 setTabVisible 隱藏。
   ⚠️ shop.html 那條 ul 不可再加 Bootstrap 的 justify-content-center（它帶 !important，會把這裡蓋掉）。 */
.shop-tabs .nav { justify-content: flex-start; }
/* 負 margin 抵掉偽元素自己多吃的那一格 gap（否則剛好放得下的寬度會變成多捲 8px） */
.shop-tabs .nav::before,
.shop-tabs .nav::after {
    content: '';
    flex: 0 0 0;
}
.shop-tabs .nav::before { margin-left: auto; margin-right: -0.25rem; }
.shop-tabs .nav::after  { margin-left: -0.25rem; margin-right: auto; }

.shop-tabs .nav::-webkit-scrollbar { display: none; }
.shop-tabs .nav-item { flex-shrink: 0; }

/* 還有分頁在畫面外時的提示（2026-10-01 UX 第 2 波）：手機 375px「聯絡」被切掉一半、顧客不知道可以左右滑。
   掛在 .shop-tabs 自己的偽元素上（.shop-tabs 是 sticky＝已是定位元素）；.nav 的 ::before/::after 已拿去做置中，不可再用。
   class 由 shop.html 的 syncTabScrollHints 依 .nav 的捲動位置切換；pointer-events:none＝不擋點擊。 */
.shop-tabs::before,
.shop-tabs::after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.25rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s var(--shop-ease);
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--shop-text-muted);
    z-index: 1;
}
.shop-tabs::before {
    content: '‹';
    left: 0;
    justify-content: flex-start;
    padding-left: 0.375rem;
    /* 底色跟分頁列同一色：AI 版面換了底色時讀 --ai-bg（只在 AI 版面有定義），其餘是 shop.css 的暖米白 */
    background: linear-gradient(to left, transparent, color-mix(in srgb, var(--ai-bg, #f6f5f0) 96%, transparent) 55%);
}
.shop-tabs::after {
    content: '›';
    right: 0;
    justify-content: flex-end;
    padding-right: 0.375rem;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--ai-bg, #f6f5f0) 96%, transparent) 55%);
}
.shop-tabs.can-scroll-left::before,
.shop-tabs.can-scroll-right::after { opacity: 1; }

.shop-tabs .nav-link {
    color: var(--shop-text-muted);
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
    border: none;
    border-radius: 100px;
    transition: all 0.2s var(--shop-ease);
    white-space: nowrap;
    background: transparent;
    line-height: 1.4;
}

.shop-tabs .nav-link.active {
    color: var(--shop-bg);
    background: var(--shop-text);
    font-weight: 600;
}

.shop-tabs .nav-link:hover:not(.active) {
    color: var(--shop-text);
    background: rgba(0,0,0,0.04);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 100px;
    background: rgba(0,0,0,0.06);
    color: var(--shop-text-muted);
    /* 12px 下限（2026-10-20 QA：分類與分頁的數字 10～11px 在手機上看不清） */
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.3rem;
    line-height: 1;
}

.nav-link.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
}

/* 手機版 Tab：隱藏圖示省寬度，但觸控目標維持 44px 高、字與徽章不縮到看不清
   （2026-09-30 UI 稽核：原本 66×27px、徽章 9.6px，是全頁最常點卻最難點的東西。
    分頁列本身可橫向捲動，五個分頁放不下時顧客可以滑，不必靠縮字硬塞） */
@media (max-width: 480px) {
    .shop-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .shop-tabs .nav-link i {
        display: none;
    }
    .tab-count {
        font-size: 0.75rem;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 0.3rem;
    }
}

@media (max-width: 360px) {
    .shop-tabs .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.625rem;
    }
}

/* ========================================
   關於我們
   ======================================== */

.shop-about {
    padding: 0 0 var(--shop-space-3);
    animation: fadeUp 0.5s var(--shop-ease) 0.1s both;
}

.about-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-title {
    font-family: var(--shop-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem;
    color: var(--shop-text);
}

.about-content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--shop-text-secondary);
    white-space: pre-line;
    margin: 0;
}

.about-image {
    flex-shrink: 0;
    width: 200px;
}

.about-image img {
    width: 100%;
    border-radius: var(--shop-radius);
    object-fit: cover;
    box-shadow: var(--shop-shadow);
}

@media (max-width: 560px) {
    .about-inner {
        flex-direction: column-reverse;
    }
    .about-image {
        width: 100%;
    }
    .about-image img {
        max-height: 200px;
        width: 100%;
    }
}

/* ========================================
   圖片展示（公開頁面）
   ======================================== */

.shop-gallery {
    padding: 0 0 var(--shop-space-3);
    animation: fadeUp 0.5s var(--shop-ease) 0.15s both;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-masonry .gallery-item {
    position: relative;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--shop-surface);
}

.gallery-masonry .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-masonry .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--shop-ease);
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-masonry .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 1.5rem 0.625rem 0.5rem;
}

@media (max-width: 400px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-masonry .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ========================================
   社群連結列
   ======================================== */

.shop-social-bar {
    padding: 0 0 var(--shop-space-3);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeUp 0.5s var(--shop-ease) 0.2s both;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 100px;
    background: var(--shop-surface);
    color: var(--shop-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--shop-ease);
}

.social-link:hover {
    background: var(--shop-accent);
    color: var(--shop-accent-text, #fff);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shop-shadow);
}

.social-link i {
    font-size: 1rem;
}

/* ========================================
   聯絡頁社群按鈕
   ======================================== */

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 0.5px solid var(--shop-border);
}

.contact-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: color-mix(in srgb, var(--btn-color, var(--shop-accent)) 10%, transparent);
    color: var(--btn-color, var(--shop-accent));
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--shop-ease);
}

.contact-social-btn:hover {
    background: var(--btn-color, var(--shop-accent));
    color: #fff;
    text-decoration: none;
}

.contact-social-btn i {
    font-size: 1rem;
}

/* ========================================
   內容區域
   ======================================== */

.shop-content {
    max-width: var(--shop-content-width);
    margin: 0 auto;
    padding: var(--shop-space-3) 1.25rem var(--shop-space-4);
}

/* ========================================
   分類區域
   ======================================== */

.category-section {
    margin-bottom: var(--shop-space-4);
    animation: fadeUp 0.45s var(--shop-ease) both;
}

.category-section:last-child { margin-bottom: 0; }

/* 分類標題：小號灰字 + 字距（Dolyu eyebrow 式，讓白卡成為視覺主角） */
.category-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--shop-text-muted);
    letter-spacing: 0.12em;
    margin: 0 0 0.875rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* ========================================
   服務卡片（無邊框，柔和陰影）
   ======================================== */

.service-card {
    background: var(--shop-card);
    border-radius: var(--shop-card-radius);
    box-shadow: var(--shop-shadow-xs);
    padding: 1rem 1.125rem;
    margin-bottom: var(--shop-space-1);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: box-shadow 0.25s var(--shop-ease), transform 0.25s var(--shop-ease);
    cursor: default;
    border: 1px solid var(--shop-border);
}

.service-card:hover {
    box-shadow: var(--shop-shadow);
    transform: translateY(-2px);
}

.service-card:active {
    transform: scale(0.99);
}

.service-card:last-child { margin-bottom: 0; }

.service-card-image {
    width: 68px;
    height: 68px;
    border-radius: var(--shop-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--shop-surface);
}

.service-card-image-placeholder {
    width: 68px;
    height: 68px;
    border-radius: var(--shop-radius-sm);
    flex-shrink: 0;
    background: var(--shop-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-text-muted);
    font-size: 1.5rem;
}

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

.service-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.1875rem;
    color: var(--shop-text);
    letter-spacing: -0.01em;
}

.service-card-desc {
    color: var(--shop-text-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.service-card-price {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--shop-text);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

/* 時長：淡灰 chip（⏱ 75 分鐘） */
.service-card-duration {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    border-radius: 100px;
    background: var(--shop-surface);
    color: var(--shop-text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
}

.service-card-action { flex-shrink: 0; }

.btn-book {
    background: var(--shop-accent);
    color: var(--shop-accent-text, #fff);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--shop-ease);
    white-space: nowrap;
    letter-spacing: 0;
}

.btn-book:hover {
    filter: brightness(1.08);
    transform: scale(1.03);
}

.btn-book:active {
    transform: scale(0.97);
}

/* ========================================
   商品分類篩選 Tab
   ======================================== */

.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-filters::-webkit-scrollbar {
    display: none;
}

.product-filter-chip {
    flex: 0 0 auto;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--shop-ease);
    white-space: nowrap;
    user-select: none;
}

.product-filter-chip:hover {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}

.product-filter-chip.active {
    background: var(--shop-accent);
    border-color: var(--shop-accent);
    color: var(--shop-accent-text, #fff);
}

.product-filter-chip .chip-count {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0 0.4rem;
    font-size: 0.75rem;
    line-height: 1.35;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
}

.product-filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   商品網格
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    animation: fadeUp 0.45s var(--shop-ease) both;
}

.products-grid .product-card {
    background: var(--shop-card);
    border-radius: var(--shop-card-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow-xs);
    transition: box-shadow 0.25s var(--shop-ease), transform 0.25s var(--shop-ease);
    border: 1px solid var(--shop-border);
}

.products-grid .product-card:hover {
    box-shadow: var(--shop-shadow);
    transform: translateY(-2px);
}

.products-grid .product-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--shop-surface);
    display: block;
}

.products-grid .product-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--shop-text-muted);
}

.products-grid .product-card-body {
    padding: 0.875rem;
}

.products-grid .product-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--shop-text);
    margin-bottom: 0.25rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid .product-card-desc {
    color: var(--shop-text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid .product-card-price {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--shop-text);
    font-variant-numeric: tabular-nums;
}

/* 商品卡片庫存狀態 */
.products-grid .product-card {
    position: relative;
}
.products-grid .product-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.products-grid .product-card-badge-soldout {
    background: rgba(34, 31, 26, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.products-grid .product-card-badge-urgent {
    background: #ff3b30;
}
.products-grid .product-card.product-card-soldout .product-card-image {
    filter: grayscale(0.85) brightness(0.85);
}
.products-grid .product-card.product-card-soldout .product-card-name,
.products-grid .product-card.product-card-soldout .product-card-desc,
.products-grid .product-card.product-card-soldout .product-card-price {
    color: var(--shop-text-muted);
}

/* ========================================
   作品 Gallery
   ======================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    animation: fadeUp 0.45s var(--shop-ease) both;
}

@media (min-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    border-radius: var(--shop-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--shop-surface);
    box-shadow: var(--shop-shadow-xs);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--shop-ease);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: white;
    padding: 2rem 0.75rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   票券卡片
   ======================================== */

.coupon-card {
    background: var(--shop-card);
    border-radius: var(--shop-card-radius);
    box-shadow: var(--shop-shadow-xs);
    padding: 1.125rem 1.125rem 1.125rem 1.375rem;
    margin-bottom: var(--shop-space-1);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s var(--shop-ease), transform 0.25s var(--shop-ease);
    border: 1px solid var(--shop-border);
    animation: fadeUp 0.45s var(--shop-ease) both;
}

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

.coupon-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--shop-accent);
    border-radius: 0 2px 2px 0;
}

.coupon-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--shop-text);
    letter-spacing: -0.01em;
}

.coupon-card-desc {
    color: var(--shop-text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
    line-height: 1.5;
}

.coupon-card-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--shop-accent);
    letter-spacing: -0.02em;
}

.coupon-card-remaining {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
}

/* ========================================
   聯絡資訊
   ======================================== */

.contact-section {
    background: var(--shop-card);
    border-radius: var(--shop-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shop-shadow-xs);
    border: 1px solid var(--shop-border);
    animation: fadeUp 0.45s var(--shop-ease) both;
}

.contact-section-title {
    font-family: var(--shop-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--shop-text);
    margin: 0 0 1.25rem;
    letter-spacing: 0.01em;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.contact-item:hover { opacity: 0.7; }

.contact-item:not(:last-child) {
    border-bottom: 0.5px solid var(--shop-border);
}

.contact-item-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--shop-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--shop-text-secondary);
    font-size: 0.9375rem;
}

.contact-item-label {
    font-size: 0.6875rem;
    color: var(--shop-text-muted);
    margin-bottom: 0.0625rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.contact-item-value {
    font-size: 0.9375rem;
    color: var(--shop-text);
    font-weight: 500;
    word-break: break-word;
}

/* public/shop.html 原本寫在標籤上的 style 屬性（2026-10-18 轉成 class；pi- 前綴＝public inline，:not(#pi) 讓它和 inline 一樣贏過其他規則）；pi-hide-init＝原本的 style="display:none"，頁面主程式第一行把它換回 inline display:none */
.pi-2986f14:not(#pi) { color: var(--shop-text-muted, #6b665b); font-size: 0.75rem; margin-top: 0.25rem; }
.pi-8d66d15:not(#pi) { position: static; }
.pi-cinherit:not(#pi) { color: inherit; }
.pi-dblock:not(#pi) { display: block; }
.pi-f57b0ce:not(#pi) { text-align: center; padding: 8px 16px 24px; font-size: 0.75rem; color: var(--shop-text-muted, #6b665b); }
.pi-hide-init:not(#pi) { display: none; }
.pi-p1rem125rem0:not(#pi) { padding: 1rem 1.25rem 0; }
