        :root { --bg-main: #F7F9F7; --sage-green: #9BB3A1; --sage-dark: #7D9D85; --text-dark: #333333; --text-light: #FFFFFF; --text-sub: #888888; --border-color: #E8E3DB; --shadow-soft: 0 10px 25px rgba(0,0,0,0.04); }
        * { box-sizing: border-box; }
        body { background-color: var(--bg-main); font-family: 'Noto Sans TC', sans-serif; margin: 0; padding: 0; display: flex; overflow-x: hidden; scroll-behavior: smooth; max-width: 100%; }
        .mobile-only { display: none !important; }
        img { max-width: 100%; height: auto; } p, div, span, h1, h2, h3, h4, a { word-break: break-word; overflow-wrap: break-word; } 
        a.shop-card, a.gallery-card { text-decoration: none; color: inherit; display: block; }
        #splash-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-main); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s; }
 /* 對話框主體設計 */
        .splash-speech-bubble {
            position: relative;
            background-color: var(--bg-main); /* 填入與背景同色，視覺維持透明，但能完美遮擋尾巴上半部 */
            border: 2px solid var(--sage-green);
            border-radius: 255px 25px 225px 25px / 25px 225px 25px 255px; /* 保留手繪變形圓角 */
            color: var(--text-dark);
            padding: 12px 22px;
            font-size: 14px;
            width: 85%;
            max-width: 340px;
            margin-bottom: 20px; /* 微調間距讓視覺更緊湊 */
            text-align: left;
            line-height: 1.6;
            font-weight: 500;
            z-index: 10; /* 建立堆疊層級，讓尾巴能順利藏在後面 */
        }

        /* 創造帶有可愛弧度的對話框尾巴 */
        .splash-speech-bubble::after {
            content: '';
            position: absolute;
            bottom: -7px; /* 向下突出的長度 */
            left: calc(50% - 76px); /* 精準計算，對齊下方左側多肉植物的中心點 */
            width: 14px;
            height: 14px;
            background-color: var(--bg-main);
            border-bottom: 2px solid var(--sage-green);
            border-right: 2px solid var(--sage-green);
            border-bottom-right-radius: 5px; /* 替尾巴尖端加上可愛的圓潤弧度 */
            transform: rotate(45deg);
            z-index: -1; /* 巧妙藏在對話框主體的背景後面 */
        }

        /* 冷知識容器：給予最小高度防止跳動 */
        .splash-trivia-container {
            width: 85%;
            max-width: 360px;
            min-height: 120px; /* 預留約5~6行的空間 */
            margin-top: 30px; 
            display: flex;
            align-items: flex-start;
            justify-content: center;
        }
        /* 知識文字本體：靠左對齊、加上淡入動畫 */
        #splash-trivia-text {
            font-size: 14px;
            color: var(--text-dark);
            line-height: 1.8;
            text-align: left;
            font-weight: 400;
            opacity: 0;
        }
        @keyframes fadeInTrivia {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .splash-stage { display: flex; align-items: flex-end; justify-content: center; gap: 15px; width: 180px; border-bottom: 2px solid var(--sage-green); }
        .splash-plant { transform-origin: bottom center; margin-bottom: -1px; }
        .plant-succulent { animation: dance 1.2s infinite ease-in-out 0s; } .plant-sprout { animation: dance 1.2s infinite ease-in-out 0.2s; } .plant-cactus { animation: dance 1.2s infinite ease-in-out 0.4s; }
        @keyframes dance { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-8px) rotate(-6deg); } 75% { transform: translateY(-8px) rotate(6deg); } }
        @keyframes pulse { from { opacity: 0.7; } to { opacity: 1; } }
        .desktop-top-left { position: fixed; top: 25px; left: 20px; z-index: 150; display: flex; align-items: center; gap: 12px; }
        .desktop-hamburger { background: none; border: 1px solid var(--sage-green); border-radius: 50%; cursor: pointer; padding: 0; width: 38px; height: 38px; color: var(--sage-green); transition: transform 0.2s; display: flex; justify-content: center; align-items: center; }
        .desktop-hamburger:active { transform: scale(0.9); } .desktop-hamburger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
        .brand-logo-group { display: flex; flex-direction: column; cursor: default; user-select: none; transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease; transform-origin: left center; } 
.brand-logo-group.hidden { opacity: 0; visibility: hidden; transform: scale(0.9) translateX(-10px); pointer-events: none; }
        .brand-title-zh { font-family: 'Noto Serif TC', serif; font-size: 24px; font-weight: 600; color: var(--sage-green); letter-spacing: 3px; line-height: 1.1; white-space: nowrap; }
        .brand-title-en { font-family: 'Noto Sans TC', sans-serif; font-size: 11px; font-weight: 500; color: var(--text-sub); letter-spacing: 1.5px; white-space: nowrap; text-transform: uppercase; }
        .sidebar { width: 230px; height: 100vh; background-color: var(--bg-main); position: fixed; top: 0; left: 0; padding: 0 16px 30px 16px; display: flex; flex-direction: column; border-right: 1px solid rgba(0,0,0,0.05); z-index: 100; overflow-y: auto; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .sidebar.collapsed { transform: translateX(-230px); }
        .sidebar::-webkit-scrollbar { width: 6px; background: transparent; } .sidebar::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 10px; transition: background-color 0.3s; }
        .sidebar:hover::-webkit-scrollbar-thumb { background-color: rgba(155, 179, 161, 0.5); }
        .sidebar-top-blocker { position: sticky; top: 0; left: 0; width: calc(100% + 32px); height: 90px; margin-left: -16px; margin-bottom: 10px; background-color: var(--bg-main); z-index: 10; flex-shrink: 0; }
        .nav-menu { display: flex; flex-direction: column; gap: 0; } .nav-wrapper { margin-bottom: 2px; } 
        .nav-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 1px solid transparent; text-align: left; padding: 8px 16px; margin-bottom: 2px; font-family: 'Noto Sans TC', sans-serif; cursor: pointer; border-radius: 20px; transition: background-color 0.2s, color 0.2s; color: var(--text-dark); font-weight: 400; }
        .nav-btn:hover { background-color: rgba(155, 179, 161, 0.05); color: var(--sage-green); }
        .nav-main { font-size: 15px; letter-spacing: 0.5px; } .nav-main.active { border-color: var(--sage-green); color: var(--sage-green); background-color: transparent; font-weight: 600; box-shadow: none; }
        .nav-main .arrow { font-size: 12px; transition: transform 0.2s ease; color: var(--sage-green); opacity: 0.6; } .nav-main.active .arrow { color: var(--sage-green); opacity: 1; } .nav-main .arrow.open { transform: rotate(180deg); }
        .sub-menu-container { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; gap: 0; } .sub-menu-container.open { max-height: 1000px; margin-top: 2px; }
        .nav-sub { font-size: 13px; font-weight: 400; color: var(--text-sub); padding: 6px 16px 6px 36px; margin-bottom: 2px; position: relative; border-radius: 8px; }
        .nav-sub::before { content: "•"; position: absolute; left: 20px; color: var(--sage-green); font-size: 14px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.2s; }
        .nav-sub.active::before { opacity: 1; } .nav-sub.active { background-color: transparent; color: var(--sage-green); font-weight: 600; box-shadow: none; }
        .main-content { margin-left: 230px; margin-top: 0; flex: 1; min-height: 100vh; display: flex; flex-direction: column; transition: margin-left 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; width: 100%; overflow-x: hidden; }
        .main-content.expanded { margin-left: 0; }
        .hero-banner { width: 100%; height: 120px; flex-shrink: 0; background-color: transparent; background-image: url('https://i.postimg.cc/MpkWvNDb/cai-se-LOGO-heng-01.png'); background-size: contain; background-position: center; background-repeat: no-repeat; margin-top: 30px; }
        .mobile-banner { display: none; }
        .divider-wrapper { display: flex; align-items: flex-end; padding: 15px 50px 0 50px; margin-top: 5px; max-width: 1200px; width: 100%; margin: 0 auto; box-sizing: border-box; }
        .divider-line { flex: 1; border-bottom: 2px solid var(--sage-green); } .plant-group { display: flex; align-items: flex-end; gap: 12px; margin-left: 15px; margin-bottom: -1px; }

        .global-back-nav { padding: 12px 50px 8px 50px; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; display: none; position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,0.95); }
        .back-arrow-btn { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--sage-dark); padding: 5px 10px 5px 0; transition: color 0.2s; user-select: none; letter-spacing: 1px; margin-bottom: 0; outline: none; }
        .back-arrow-svg { transition: transform 0.2s ease; } .back-arrow-btn:hover { color: var(--sage-green); } .back-arrow-btn:hover .back-arrow-svg { transform: translateX(-5px); }

        .news-carousel-wrapper { width: 100%; max-width: 960px; margin: 30px auto 10px auto; position: relative; display: none; border-radius: 16px; box-shadow: var(--shadow-soft); background-color: transparent; aspect-ratio: 1200 / 462; overflow: hidden; touch-action: pan-y; }
        .news-track { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .news-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; pointer-events: none; } .news-slide.active { opacity: 1; pointer-events: auto; z-index: 2; } .news-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
        .carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; color: #FFFFFF; cursor: pointer; transition: transform 0.2s, background 0.2s; z-index: 10; user-select: none; }
        .carousel-arrow:hover { background: rgba(0, 0, 0, 0.6); transform: translateY(-50%) scale(1.05); } .carousel-arrow.prev { left: 15px; } .carousel-arrow.next { right: 15px; }
        .carousel-dots { position: absolute; bottom: 15px; left: 0; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 10; display: none; } .carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: 0.3s; } .carousel-dot.active { background: #FFFFFF; transform: scale(1.3); }
        .content-container { padding: 20px 50px 50px 50px; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }

        .intro-row { display: flex; align-items: center; gap: 50px; padding: 40px; border-radius: 20px; margin-bottom: 40px; background-color: #FFFFFF; color: var(--text-dark); box-shadow: var(--shadow-soft); animation: fadeIn 0.5s ease forwards; width: 100%; box-sizing: border-box; }
        .intro-row:nth-child(even) { flex-direction: row-reverse; } .intro-gallery-wrapper { flex: 1; display: flex; flex-direction: column; gap: 10px; width: 100%; } .intro-img-stage { position: relative; border-radius: 12px; overflow: hidden; background-color: #f0f0f0; width: 100%; padding-top: 100%; height: 0; touch-action: pan-y; }
        .intro-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; pointer-events: none; } .intro-slide.active { opacity: 1; pointer-events: auto; } .intro-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
        .intro-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 16px; color: #FFFFFF; cursor: pointer; transition: transform 0.2s, background 0.2s; z-index: 10; user-select: none; }
        .intro-arrow:hover { background: rgba(0, 0, 0, 0.6); transform: translateY(-50%) scale(1.05); } .intro-arrow.prev { left: 10px; } .intro-arrow.next { right: 10px; }
        .intro-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; } .intro-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 0.5; transition: opacity 0.3s; border: 2px solid transparent; flex-shrink: 0; } .intro-thumb:hover { opacity: 0.8; } .intro-thumb.active { opacity: 1; border-color: var(--sage-green); }
        .intro-dots { position: absolute; bottom: 15px; left: 0; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 10; display: none; } .intro-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: 0.3s; } .intro-dot.active { background: #FFFFFF; transform: scale(1.3); }
        .intro-text { flex: 1; } .intro-title { font-family: 'Noto Serif TC', serif; font-size: 28px; font-weight: 600; margin: 0 0 15px 0; } .intro-desc { font-size: 16px; font-weight: 400; line-height: 1.8; margin-bottom: 25px; text-align: justify; white-space: pre-wrap; word-break: break-word; }
       .intro-btn { 
    display: inline-block; 
    padding: 10px 24px; 
    border-radius: 30px; 
    font-size: 15px; 
    font-weight: 500; 
    text-decoration: none; 
    transition: background-color 0.2s, color 0.2s; 
    cursor: pointer; 
    background-color: transparent; 
    color: var(--sage-green) !important; 
    border: 1px solid var(--sage-green) !important; 
} 
.intro-btn:hover { 
    background-color: var(--sage-green) !important; 
    color: #FFFFFF !important; 
}

        .custom-page-wrapper { background-color: #FFFFFF; padding: 50px; border-radius: 20px; box-shadow: var(--shadow-soft); animation: fadeIn 0.5s ease forwards; max-width: 900px; margin: 0 auto; color: var(--text-dark); }
        .custom-main-title { font-family: 'Noto Serif TC', serif; font-size: 32px; font-weight: 600; color: var(--sage-green); margin-bottom: 30px; text-align: center; border-bottom: 2px solid rgba(155, 179, 161, 0.2); padding-bottom: 15px; }
        .custom-sub-title { color: var(--sage-dark); margin: 12px 0 12px 0; font-family: 'Noto Serif TC', serif; font-size: 18px; font-weight: 600; text-align: center; border-bottom: 1px dashed rgba(155, 179, 161, 0.3); padding-bottom: 8px; line-height: 1.4; word-break: break-word; }
        .custom-text { font-size: 16px; font-weight: 400; line-height: 1.8; margin-bottom: 20px; text-align: justify; white-space: pre-wrap; word-break: break-word; color: var(--text-dark); }
        .custom-qa { margin-bottom: 15px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.05); transition: box-shadow 0.3s; }
        .custom-qa summary { padding: 16px 20px; font-weight: bold; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; background-color: #c8dbcc; color: var(--text-dark); letter-spacing: 0.5px; } .custom-qa summary::-webkit-details-marker { display: none; }
        .custom-qa summary::after { content: "+"; color: var(--text-dark); font-size: 20px; transition: transform 0.3s; font-weight: bold; } .custom-qa[open] summary::after { transform: rotate(45deg); }
        .custom-qa p { padding: 15px 20px; margin: 0; font-weight: 400; line-height: 1.8; color: var(--text-dark); background-color: #FFFFFF; white-space: pre-wrap; }
        .custom-table-wrapper { overflow-x: auto; margin-bottom: 25px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); } .custom-table { width: 100%; border-collapse: collapse; text-align: left; }
        .custom-table th { background-color: rgba(155, 179, 161, 0.1); color: var(--sage-green); font-weight: 500; padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); white-space: nowrap; } .custom-table td { padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.03); font-weight: 400; } .custom-table tr:last-child td { border-bottom: none; }

        .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 30px; animation: fadeIn 0.5s ease forwards; }
        .gallery-card { cursor: pointer; transition: transform 0.2s; display: flex; flex-direction: column; } .gallery-card:hover { transform: translateY(-5px); }
        .gallery-img-wrapper { position: relative; width: 100%; padding-top: 100%; height: 0; border-radius: 20px; box-shadow: var(--shadow-soft); background-color: #f0f0f0; overflow: hidden; } .gallery-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        .gallery-title { text-align: center; margin-top: 12px; font-size: 16px; font-weight: 500; color: var(--text-dark); letter-spacing: 1px; font-family: 'Noto Sans TC', sans-serif; }

        .shop-controls { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 15px; position: relative; }
        .shop-tags-wrapper { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
        .shop-tag-pill { padding: 6px 18px; border-radius: 30px; background-color: #FFFFFF; color: var(--text-sub); border: 1px solid rgba(0,0,0,0.1); font-size: 13px; font-weight: 500; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s; user-select: none; } .shop-tag-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .shop-tag-pill.active { background: var(--sage-green); color: #FFFFFF; border-color: var(--sage-green); }
        .shop-search-sort-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
        .shop-search-wrapper input { padding: 8px 15px; border-radius: 30px; border: 1px solid rgba(0,0,0,0.1); background-color: #FFFFFF; color: var(--text-dark); font-size: 13px; font-family: 'Noto Sans TC', sans-serif; outline: none; transition: box-shadow 0.2s, border-color 0.2s; width: 150px; } .shop-search-wrapper input:focus { border-color: var(--sage-green); box-shadow: 0 0 0 2px rgba(155, 179, 161, 0.2); width: 200px; }
        .shop-sort-wrapper select { padding: 8px 30px 8px 15px; border-radius: 30px; border: 1px solid rgba(0,0,0,0.1); background-color: #FFFFFF; color: var(--text-dark); font-size: 13px; font-family: 'Noto Sans TC', sans-serif; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; outline: none; } .shop-sort-wrapper select:focus { border-color: var(--sage-green); box-shadow: 0 0 0 2px rgba(155, 179, 161, 0.2); }
        
        .shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 25px; animation: fadeIn 0.5s ease forwards; }
        .shop-card { height: 100%; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; display: flex; flex-direction: column; background: #FFFFFF; border-radius: 20px; padding: 12px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: none; position: relative; box-sizing: border-box; } .shop-card:hover { transform: translateY(-5px); border-color: var(--sage-green); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
        .shop-img-wrapper { position: relative; width: 100%; padding-top: 100%; height: 0; overflow: hidden; background-color: #F9F9F9; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(0,0,0,0.03); flex-shrink: 0; } .shop-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; padding: 2px; } .shop-card:hover .shop-img { transform: scale(1.03); }
        .shop-soldout-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 5; } .shop-card.soldout .shop-soldout-overlay { opacity: 1; } .soldout-circle { background-color: var(--sage-dark); color: #FFFFFF; padding: 8px 20px; border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: 2px; box-shadow: none; }
        .shop-info-wrapper { padding: 0 5px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; flex: 1; width: 100%; overflow: hidden; }
        .shop-badge-container { position: relative; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px; margin-bottom: 8px; width: 100%; min-height: 22px; align-content: flex-start; } .shop-badge { color: #FFFFFF; font-weight: 500; font-size: 11px; letter-spacing: 1px; display: inline-flex; align-items: center; border: none; box-shadow: none; white-space: nowrap; } .shop-badge-red { background-color: #bc5858; padding: 4px 8px; border-radius: 2px; } .shop-badge-green { background-color: #658466; padding: 4px 14px 4px 8px; clip-path: polygon(0% 0%, calc(100% - 7px) 0%, 100% 50%, calc(100% - 7px) 100%, 0% 100%); border-radius: 2px 0 0 2px; }
        .shop-title { width: 100%; font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.5; margin: 0 0 4px 0; font-family: 'Noto Sans TC', sans-serif; text-align: center; white-space: pre-wrap; word-break: break-word; }
        .shop-promo-wrapper { min-height: 26px; margin-bottom: 6px; width: 100%; display: flex; justify-content: flex-start; align-items: flex-start; } .shop-promo { font-size: 13px; color: #D84315; font-weight: 600; letter-spacing: 0.5px; border: 1px solid rgba(216, 67, 21, 0.4); padding: 3px 12px; border-radius: 20px; background-color: #FFFFFF; margin: 0; height: fit-content; }
        .shop-price-stock-row { display: flex; flex-direction: row; justify-content: center; align-items: baseline; gap: 12px; width: 100%; margin-top: auto; padding-top: 10px; flex-wrap: nowrap; overflow: hidden; border-top: 1px dashed rgba(0,0,0,0.25); } .price-group { display: flex; align-items: baseline; gap: 6px; flex-shrink: 1; overflow: hidden; } .shop-price-sale { font-size: 18px; font-weight: 600; color: #222222; white-space: nowrap; flex-shrink: 0; } .shop-price-original { font-size: 13px; color: #AAAAAA; text-decoration: line-through; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }.shop-stock { font-size: 13px; color: #bc5858; font-weight: 500; white-space: nowrap; flex-shrink: 0; } .img-stock-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(255, 255, 255, 0.85); color: #bc5858; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 2px; z-index: 4; backdrop-filter: blur(2px); box-shadow: 0 2px 6px rgba(0,0,0,0.08); letter-spacing: 0.5px; pointer-events: none; }

        #productDetailContainer { display: none; padding-top: 5px; padding-bottom: 40px; animation: fadeIn 0.4s ease; }
        .product-detail-layout { display: flex; flex-direction: column; background: #FFFFFF; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-soft); margin-bottom: 40px; }
        .pd-top-section { display: flex; gap: 40px; align-items: flex-start; } .pd-gallery-side { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; gap: 15px; position: relative; }
        .pd-main-img-stage { width: 100%; padding-top: 100%; height: 0; border-radius: 16px; overflow: hidden; background: #F9F9F9; position: relative; touch-action: pan-y; margin-top: 4px; }
        .pd-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s ease-in-out; pointer-events: none; } .pd-slide.active { opacity: 1; pointer-events: auto; } .pd-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform 0.3s ease; padding: 4px; } .pd-slide img:hover { transform: scale(1.02); }
        .pd-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; color: #FFFFFF; cursor: pointer; transition: transform 0.2s, background 0.2s; z-index: 10; user-select: none; } .pd-slider-arrow:hover { background: rgba(0, 0, 0, 0.6); transform: translateY(-50%) scale(1.05); } .pd-slider-arrow.prev { left: 10px; } .pd-slider-arrow.next { right: 10px; }
        .pd-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 5px; } .pd-thumb { width: 100%; aspect-ratio: 1/1; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 0.5; transition: opacity 0.3s; border: 2px solid transparent; flex-shrink: 0; } .pd-thumb:hover { opacity: 0.8; } .pd-thumb.active { opacity: 1; border-color: var(--sage-green); }
        .pd-info-side { flex: 1; display: flex; flex-direction: column; } .pd-title { font-size: 32px; font-weight: 600; color: var(--text-dark); margin: 0 0 20px 0; line-height: 1.3; font-family: 'Noto Sans TC', sans-serif; } .pd-promo { font-size: 15px; color: #D84315; font-weight: 600; letter-spacing: 0.5px; border: 1px solid rgba(216, 67, 21, 0.4); padding: 4px 16px; border-radius: 20px; margin-bottom: 12px; display: inline-block; width: fit-content; background-color: #FFFFFF; }
        .pd-price-row { display: flex; align-items: baseline; gap: 15px; margin-bottom: 15px; } .pd-sale-price { font-size: 28px; font-weight: 700; color: #D32F2F; } .pd-original-price { font-size: 16px; color: var(--text-sub); text-decoration: line-through; }
        
        .pd-spec-container { margin-top: 15px; margin-bottom: 15px; border-bottom: 1px dashed rgba(0,0,0,0.05); padding-bottom: 15px; }
        .pd-spec-group { margin-bottom: 15px; }
        .pd-spec-group:last-child { margin-bottom: 0; }
        .pd-spec-label { font-size: 16px; font-weight: 600; color: var(--sage-dark); margin-bottom: 8px; display: block; }
        .pd-spec-options { display: flex; flex-wrap: wrap; gap: 12px; }
        .pd-spec-btn { padding: 6px 16px; background-color: #FFFFFF; color: #888888; border: 1px solid #333333; border-radius: 3px; font-size: 15px; cursor: pointer; transition: all 0.2s; user-select: none; font-family: 'Noto Sans TC', sans-serif; outline: none; }
        .pd-spec-btn:hover { border-color: var(--sage-dark); color: var(--sage-dark); }
        .pd-spec-btn.active { background-color: #FFEBEE; color: #888888; border: 1px solid #333333; font-weight: 600; }

        .pd-meta-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; } .pd-meta-item { display: flex; align-items: flex-start; gap: 15px; font-size: 14px; line-height: 1.6; } .pd-meta-label { color: var(--sage-dark); font-weight: 600; flex-shrink: 0; min-width: 75px; } .pd-meta-value { color: #555555; }
        .pd-bottom-section { width: 100%; margin-top: 20px; } .pd-desc-area { font-size: 16px; font-weight: 400; line-height: 1.8; color: #333333; text-align: left; white-space: pre-wrap; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.05); }
        .add-to-cart-btn { background-color: var(--sage-green); color: #FFFFFF; border: none; border-radius: 30px; padding: 15px 30px; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s; margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 10px; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(155, 179, 161, 0.3); } .add-to-cart-btn:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(155, 179, 161, 0.4); } .add-to-cart-btn.disabled { background-color: #CCCCCC; cursor: not-allowed; box-shadow: none; transform: none; }

        .contact-widget { position: fixed; right: 25px; bottom: 170px; z-index: 500; width: 56px; height: 56px; touch-action: none; }
        .cart-widget { position: fixed; right: 25px; bottom: 100px; z-index: 500; width: 56px; height: 56px; transition: transform 0.3s; }
        .order-history-widget { position: fixed; right: 25px; bottom: 30px; z-index: 500; width: 56px; height: 56px; touch-action: none; }
.order-history-widget .floating-btn-style { width: 100%; height: 100%; border-radius: 50%; background: #E8B4B8; color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(200,130,140,0.35); transition: transform 0.2s, background 0.2s; }
.order-history-widget .floating-btn-style:hover { background: #D49A9E; transform: scale(1.05); }
.order-history-widget .floating-btn-style svg { width: 24px; height: 24px; }
        .floating-btn-style { width: 100%; height: 100%; background-color: #FFFFFF; color: var(--sage-dark); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15); border: 2px solid var(--sage-green); outline: none; transition: transform 0.2s, background-color 0.2s; }
        .floating-btn-style:hover { transform: scale(1.08); background-color: var(--sage-green); color: #FFFFFF; }
        .floating-btn-style svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: 0.2s; } .floating-btn-style:hover svg { stroke: #FFFFFF; }
        .contact-toggle { position: relative; z-index: 10; width: 100%; height: 100%; background-color: var(--sage-green); color: #FFFFFF; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 15px rgba(155, 179, 161, 0.4); border: none; transition: transform 0.2s; outline: none; user-select: none; } .contact-toggle:hover { transform: scale(1.08); }
        .contact-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s; } .contact-widget.open .contact-toggle svg { transform: scale(0.9); }
        .cart-badge { position: absolute; top: -5px; right: -5px; background: #D32F2F; color: #FFF; font-size: 11px; font-weight: bold; width: 22px; height: 22px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        .contact-menu { position: absolute; right: 0; bottom: calc(100% + 15px); width: 280px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s, transform 0.3s, visibility 0.3s; transform-origin: bottom right; transform: translateY(20px) scale(0.8); z-index: 9; }
        .contact-widget.expand-down .contact-menu { bottom: auto; top: calc(100% + 15px); transform-origin: top right; transform: translateY(-20px) scale(0.8); } .contact-widget.open .contact-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
        .contact-header { background: var(--sage-dark); color: #FFFFFF; padding: 25px 20px 35px 20px; text-align: left; } .contact-header h3 { margin: 0 0 6px 0; font-size: 20px; font-weight: 600; font-family: 'Noto Sans TC', sans-serif; letter-spacing: 1px; line-height: 1.4; } .contact-header p { margin: 0; font-size: 13px; opacity: 0.9; line-height: 1.6; }
        .contact-body { background: #FFFFFF; padding: 0 20px 20px 20px; position: relative; margin-top: -15px; border-radius: 16px 16px 0 0; } .contact-guide { font-size: 14px; font-weight: 500; color: var(--text-dark); margin: 20px 0 12px 0; display: block; line-height: 1.5; }
        .contact-list { display: flex; flex-direction: column; gap: 10px; } .contact-item { display: flex; align-items: center; padding: 12px 16px; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; text-decoration: none; color: var(--text-dark); font-weight: 500; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
        .contact-item:hover { border-color: var(--sage-green); box-shadow: 0 4px 12px rgba(155, 179, 161, 0.15); transform: translateY(-2px); } .contact-item img { width: 26px; height: 26px; object-fit: contain; margin-right: 12px; } .contact-item span { flex: 1; font-size: 15px; } .contact-item svg { width: 18px; height: 18px; stroke: #BBBBBB; transition: transform 0.2s, stroke 0.2s; } .contact-item:hover svg { stroke: var(--sage-green); transform: translateX(3px); }
        
        .back-to-top-btn { position: fixed; right: 28px; bottom: 240px; width: 42px; height: 42px; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); border: 1px solid rgba(155, 179, 161, 0.3); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 499; opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, background-color 0.2s; transform: translateY(20px); }
        .back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); } .back-to-top-btn:hover { background-color: rgba(255, 255, 255, 1); box-shadow: 0 6px 16px rgba(155, 179, 161, 0.2); transform: translateY(-3px); } .back-to-top-btn svg { color: var(--sage-green); stroke-width: 2.5; width: 22px; height: 22px; }

        .inline-line-icon { width: 1.3em; height: 1.3em; vertical-align: text-bottom; margin-right: 3px; display: inline-block; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 600; opacity: 0; pointer-events: none; transition: opacity 0.25s; padding: 20px; } .modal-overlay.open { opacity: 1; pointer-events: auto; } .modal-overlay.msg-modal { z-index: 700; } 
        .modal-card { background-color: #FFFFFF; width: 100%; max-width: 750px; max-height: 90vh; border-radius: 20px; padding: 40px; overflow-y: auto; position: relative; will-change: scroll-position; }
        .close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 32px; color: var(--text-dark); cursor: pointer; z-index: 10; padding: 5px 10px; transition: color 0.2s, transform 0.2s; } .close-modal:hover { color: #D32F2F; transform: scale(1.1); }
        
        .modal-gallery-area { display: flex; flex-direction: row; gap: 15px; margin-bottom: 25px; align-items: flex-start; justify-content: center; } .modal-main-img-wrapper { flex: 1; max-width: 450px; width: 100%; position: relative; border-radius: 12px; overflow: hidden; background: #f0f0f0; box-shadow: var(--shadow-soft); aspect-ratio: 1 / 1; margin: 0 auto; } .modal-main-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.3s; } .modal-main-img:hover { transform: scale(1.02); }
        .modal-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; color: #FFFFFF; cursor: pointer; transition: transform 0.2s, background 0.2s; z-index: 10; user-select: none; } .modal-slider-arrow:hover { background: rgba(0, 0, 0, 0.6); transform: translateY(-50%) scale(1.05); } .modal-slider-arrow.prev { left: 10px; } .modal-slider-arrow.next { right: 10px; }
        .modal-thumbnails { width: 80px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 100%; } .modal-thumb { width: 100%; height: 80px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; border: 2px solid transparent; flex-shrink: 0; } .modal-thumb:hover { opacity: 0.8; } .modal-thumb.active { opacity: 1; border-color: var(--sage-green); }
        
        .zoom-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; display: none; cursor: zoom-out; } .zoom-overlay img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 4px; }

        /* ===== 簡單模式：電腦側邊抽屜 / 手機底部抽屜 ===== */
        #customFormModal.modal-overlay {
            justify-content: flex-end;
            align-items: stretch;
            padding: 0;
            background-color: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(3px);
        }
        #customFormModal .modal-card {
            width: 420px;
            max-width: 92vw;
            height: 100%;
            max-height: 100%;
            border-radius: 0;
            padding: 20px 20px 30px;
            background: #FFFFFF;
            box-shadow: -8px 0 30px rgba(0,0,0,0.12);
            overflow-y: auto;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
            will-change: transform;
        }
        #customFormModal.open .modal-card {
            transform: translateX(0);
        }
        #customFormTitle {
            padding: 0 28px 0 0;
            margin-top: 0;
            margin-bottom: 14px;
            font-size: 17px;
            line-height: 1.4;
            word-break: break-word;
            white-space: normal;
            text-align: left;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            padding-bottom: 12px;
        }
        #customFormModal .close-modal {
            top: 12px;
            right: 14px;
            font-size: 28px;
        }

        /* 手機：改為底部抽屜 */
        @media (max-width: 768px) {
            #customFormModal.modal-overlay {
                justify-content: center;
                align-items: flex-end;
            }
            #customFormModal .modal-card {
                width: 100%;
                max-width: 100%;
                height: auto;
                max-height: 88vh;
                border-radius: 20px 20px 0 0;
                padding: 16px 16px 24px;
                box-shadow: 0 -6px 25px rgba(0,0,0,0.12);
                transform: translateY(100%);
            }
            #customFormModal.open .modal-card {
                transform: translateY(0);
            }
            #customFormTitle {
                font-size: 16px;
                padding-right: 30px;
                margin-bottom: 10px;
                padding-bottom: 10px;
            }
        }
        .form-group { margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; background: #FAFAFA; border: 1px solid rgba(0,0,0,0.08); box-shadow: none; } .form-group:focus-within, .form-group:hover { background: #FFFFFF; border-color: var(--sage-green); box-shadow: 0 4px 15px rgba(155, 179, 161, 0.15); } .form-group.error-highlight { border-color: #D32F2F; background-color: #FFEBEE; animation: flashError 0.5s 2; } @keyframes flashError { 0% { border-color: rgba(0,0,0,0.05); } 50% { border-color: #D32F2F; } 100% { border-color: rgba(0,0,0,0.05); } }
        /* 有觸發條件的選項：乾淨地出現在對應選項正下方（無額外格子、無背景色） */
        .form-group[data-condition] {
            margin: 4px 0 8px 28px;
            padding: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            width: calc(100% - 28px);
            box-sizing: border-box;
        }
        .form-group[data-condition]:focus-within,
        .form-group[data-condition]:hover {
            background: transparent;
            border: none;
            box-shadow: none;
        }
        .form-group[data-condition] .form-label {
            font-size: 13px;
            margin-bottom: 6px;
            padding-bottom: 0;
            border-bottom: none;
            color: var(--text-sub);
            font-weight: 500;
        }
        .form-group[data-condition].error-highlight {
            border: none;
            background-color: transparent;
        }
        .form-group[data-condition].error-highlight .form-control,
        .form-group[data-condition].error-highlight select {
            border-color: #D32F2F !important;
            background-color: #FFEBEE;
        }
        /* 讓 radio-group 可以正確容納插入的巢狀選項 */
        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--sage-dark); font-size: 15px; border-bottom: 1px dashed rgba(0,0,0,0.05); padding-bottom: 6px; } .req-star { color: #D32F2F; margin-right: 4px; font-weight: bold; }
        .form-control { width: 100%; padding: 12px 15px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; font-family: inherit; font-size: 15px; background: #FAFAFA; outline: none; } .form-control:focus { border-color: var(--sage-green); background: #FFF; box-shadow: 0 0 0 2px rgba(155, 179, 161, 0.2); } textarea.form-control { resize: vertical; min-height: 80px; }
        .radio-group { display: flex; flex-direction: column; gap: 6px; } .checkbox-group { display: flex; flex-direction: column; gap: 4px; } .radio-label, .checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; line-height: 1.4; padding: 4px 0; } .radio-label input, .checkbox-label input { width: 18px; height: 18px; accent-color: var(--sage-green); cursor: pointer; flex-shrink: 0; } .price-tag { color: #D32F2F; font-weight: 600; font-size: 14px; margin-left: auto; }
        .form-note { color: #E57373; font-size: 12.5px; margin-top: 6px; line-height: 1.45; background: #FFFAFA; padding: 6px 10px; border-radius: 6px; border-left: 3px solid #E57373; } 
        .form-footer-wrapper { background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); padding: 20px; margin-top: 25px; display: flex; flex-direction: column; gap: 15px; border: 1px solid rgba(0,0,0,0.05); } .qty-wrapper { display: flex; align-items: center; gap: 15px; width: 100%; justify-content: space-between; } .qty-controls { display: flex; align-items: center; border: 1px solid rgba(0,0,0,0.1); border-radius: 30px; overflow: hidden; } .qty-btn { background: #F0F0F0; border: none; width: 40px; height: 40px; font-size: 20px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background 0.2s; } .qty-btn:hover { background: #E0E0E0; } .qty-input { width: 50px; height: 40px; border: none; text-align: center; font-size: 16px; font-weight: 600; pointer-events: none; background: #FFF; } .stock-warning { color: #D32F2F; font-size: 13px; font-weight: 500; }
        .live-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px dashed rgba(0,0,0,0.1); } .live-total-label { font-size: 16px; font-weight: 600; color: var(--text-dark); } .live-total-val { font-size: 22px; font-weight: 700; color: #D32F2F; } .live-total-note { text-align: center; font-size: 12px; color: #E57373; font-weight: 500; margin-top: -5px; }
        .form-submit-btn { width: 100%; background: var(--sage-green); color: #FFF; border: none; padding: 15px; font-size: 16px; font-weight: 600; border-radius: 8px; margin-top: 15px; cursor: pointer; transition: background 0.2s; } .form-submit-btn:hover { background: var(--sage-dark); }
        
        #cartModal .modal-card { max-width: 800px; padding: 30px; background: var(--bg-main); }
        .cart-header { display: flex; flex-direction: column; border-bottom: 2px solid var(--sage-green); padding-bottom: 12px; margin-bottom: 20px; padding-right: 40px; position: relative; gap: 6px; } .cart-header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; } .cart-header h2 { margin: 0; color: var(--sage-dark); font-size: 22px; font-weight: 600; line-height: 1.2; } .cart-header-sub { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 13px; color: var(--text-sub); }
        .clear-cart-btn { background: none; border: 1px solid rgba(0,0,0,0.15); padding: 4px 12px; font-size: 12px; border-radius: 12px; cursor: pointer; color: var(--text-sub); transition: 0.2s; font-family: 'Noto Sans TC', sans-serif; display: inline-flex; align-items: center; gap: 6px; } .clear-cart-btn:hover { background: #FFEBEE; color: #D32F2F; border-color: #FFCDD2; }
        .cart-items-container { display: flex; flex-direction: column; gap: 15px; max-height: 40vh; overflow-y: auto; padding-right: 10px; margin-bottom: 20px; } .cart-items-container::-webkit-scrollbar { width: 6px; } .cart-items-container::-webkit-scrollbar-thumb { background: rgba(155, 179, 161, 0.5); border-radius: 10px; }
        .cart-item { display: flex; gap: 15px; background: #FFF; padding: 15px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); position: relative; } .cart-item.sold-out { opacity: 0.6; background: #FAFAFA; border: 1px solid #FFCDD2; } .cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; } .cart-item-info { flex: 1; padding-bottom: 20px; } 
        .cart-item-title { margin: 0 0 5px 0; font-size: 16px; font-weight: 600; color: var(--text-dark); padding-right: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; } 
        .cart-item-opts { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin: 0 0 8px 0; } .cart-item-price-row { display: flex; justify-content: space-between; align-items: center; } .cart-item-unit { font-size: 14px; color: #555; } .cart-item-total { font-weight: 600; color: #D32F2F; font-size: 16px; } 
        .cart-item-del { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #BBB; cursor: pointer; transition: color 0.2s; padding: 0; } .cart-item-del:hover { color: #D32F2F; } .cart-item-del svg { width: 20px; height: 20px; }
        .cart-item-edit { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: #BBB; cursor: pointer; transition: color 0.2s; padding: 0; margin-left: 8px; vertical-align: middle; margin-top: -2px; } .cart-item-edit:hover { color: var(--sage-green); } .cart-item-edit svg { width: 18px; height: 18px; }

        .checkout-section { background: #FFF; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); margin-bottom: 20px; } .checkout-section h3 { margin: 0 0 15px 0; font-size: 16px; color: var(--sage-dark); border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 10px; display: flex; align-items: center; gap: 6px; }
        .logistics-error { color: #D32F2F; font-size: 13px; font-weight: 600; margin-top: 5px; margin-bottom: 10px; display: none; }
        .summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; color: #555; } .summary-total { font-size: 20px; font-weight: 700; color: #D32F2F; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 15px; margin-top: 5px; }
        .checkout-btn { width: 100%; background: var(--sage-dark); color: #FFF; border: none; padding: 15px; font-size: 18px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background 0.2s; margin-bottom: 10px; } .checkout-btn:hover { background: #5a7562; } .checkout-btn:disabled { background: #CCC; cursor: not-allowed; }
        .cart-device-warning { font-size: 13px; color: #E57373; font-weight: 500; text-align: center; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 6px; } .checkout-error-msg { color: #D32F2F; font-size: 13px; font-weight: bold; margin-top: 5px; display: none; }
        .hidden { display: none !important; }

        #orderTrackModal .modal-card { max-width: 500px; padding: 30px; } .track-input-group { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; } .track-input-group input { padding: 12px 15px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.1); font-size: 15px; outline: none; transition: 0.2s; } .track-input-group input:focus { border-color: var(--sage-green); box-shadow: 0 0 0 2px rgba(155, 179, 161, 0.2); } .track-btn { background: var(--sage-green); color: #FFF; padding: 12px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; } .track-btn:hover { background: var(--sage-dark); } .track-result-area { margin-top: 20px; display: none; } .track-order-card { background: #FAFAFA; border: 1px solid #EEE; padding: 15px; border-radius: 8px; margin-bottom: 10px; } .track-order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; border-bottom: 1px dashed #DDD; padding-bottom: 8px; } .track-status-badge { background: var(--sage-green); color: #FFF; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

        #receiptContainer { position: absolute; top: -9999px; left: -9999px; width: 720px; background: #FFFFFF; padding: 25px 30px; box-sizing: border-box; font-family: 'Noto Sans TC', sans-serif; color: #333; z-index: -1; }
        .rcpt-header { text-align: center; border-bottom: 2px solid var(--sage-green); padding-bottom: 15px; margin-bottom: 15px; } .rcpt-logo { color: var(--sage-green); font-size: 24px; font-weight: 600; letter-spacing: 4px; font-family: 'Noto Serif TC', serif; margin-bottom: 5px; } .rcpt-title { font-size: 18px; font-weight: 600; color: #333; margin: 0; } .rcpt-meta { font-size: 12px; color: #777; margin-top: 8px; line-height: 1.4; } /* 植物動畫停止專用 class */
        .stop-dancing { animation: none !important; transform: none !important; }

        /* 明細表簡化：移除圓角，加速 html2canvas 繪製 */
        .rcpt-warning { color: #D32F2F; font-weight: 600; font-size: 13px; margin-top: 8px; background: #FFEBEE; padding: 6px; border-radius: 0px; display: flex; align-items: center; justify-content: center; gap: 4px; width: fit-content; margin-left: auto; margin-right: auto; }
        .rcpt-sec-title { font-size: 15px; font-weight: 600; color: var(--sage-dark); border-left: 4px solid var(--sage-green); padding-left: 8px; margin: 15px 0 10px 0; }
        .rcpt-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-bottom: 15px; } .rcpt-item { display: flex; gap: 10px; border: 1px solid #EEE; padding: 10px; border-radius: 0px; background: #FAFAFA; } .rcpt-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 0px; } .rcpt-item-info { flex: 1; min-width: 0; } .rcpt-item-name { font-weight: 600; font-size: 13px; margin: 0 0 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rcpt-item-opts { font-size: 11px; color: #555; line-height: 1.4; white-space: pre-wrap; margin: 0; } .rcpt-item-price { text-align: right; font-weight: 600; font-size: 13px; margin-top: 5px; color: #D32F2F; }
        .rcpt-bottom-section { display: flex; gap: 20px; align-items: stretch; margin-top: 15px; } .rcpt-info-box { flex: 2; background: #F9F9F9; padding: 12px; border-radius: 0px; font-size: 13px; line-height: 1.5; border: 1px solid #EEE; } .rcpt-summary { flex: 1; text-align: right; display: flex; flex-direction: column; justify-content: flex-end; } .rcpt-summary p { margin: 3px 0; font-size: 13px; } .rcpt-summary .total { font-size: 18px; font-weight: 700; color: #555; border-top: 2px solid #EEE; padding-top: 8px; margin-top: 8px; } .rcpt-summary .total span { color: #D32F2F; } .rcpt-footer { text-align: center; margin-top: 15px; font-size: 11px; color: #999; }

        #resultModal .modal-card { max-width: 650px; text-align: center; background: var(--bg-main); padding: 30px 20px; } #resultImage { max-width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-bottom: 20px; border: 1px solid rgba(0,0,0,0.05); } .result-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; }
        .btn-download { background: var(--sage-green); color: #FFF; border: none; padding: 14px 30px; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(155, 179, 161, 0.4); } .btn-download:hover { background: var(--sage-dark); transform: translateY(-2px); } .download-note { display: none; }
        .result-contact-area { margin-top: 15px; padding-top: 15px; border-top: 1px dashed rgba(0,0,0,0.1); width: 100%; } .result-contact-list { display: flex; justify-content: center; gap: 15px; margin-top: 10px; } .result-contact-list a { display: block; width: 44px; height: 44px; background: #FFF; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 10px; transition: transform 0.2s, box-shadow 0.2s; } .result-contact-list a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(155, 179, 161, 0.3); } .result-contact-list img { width: 100%; height: 100%; object-fit: contain; }

        .loader-overlay { position: fixed; top:0; left:0; width:100vw; height:100vh; background: rgba(255,255,255,0.8); backdrop-filter: blur(3px); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .loader-overlay.active { opacity: 1; pointer-events: auto; }
        .loader-plants { display: flex; align-items: flex-end; justify-content: center; gap: 15px; width: 180px; border-bottom: 2px solid var(--sage-green); margin-bottom: 20px; padding-bottom: 5px; } .loader-plants svg { transform-origin: bottom center; margin-bottom: -1px; } .loader-plants svg:nth-child(1) { animation: dance 1.2s infinite ease-in-out 0s; } .loader-plants svg:nth-child(2) { animation: dance 1.2s infinite ease-in-out 0.2s; } .loader-plants svg:nth-child(3) { animation: dance 1.2s infinite ease-in-out 0.4s; } .loader-text { font-weight: 600; color: var(--sage-dark); letter-spacing: 1px; font-size: 16px; }
        .intro-click-zone { position: absolute; top: 0; height: 100%; width: 50%; z-index: 5; cursor: pointer; } .intro-click-left { left: 0; } .intro-click-right { right: 0; }

        .homepage-brand-story { display: none; padding-top: 0; }
        .story-letter-card { background: #FFFFFF; width: 100%; padding: 50px; border-radius: 20px; box-shadow: var(--shadow-soft); text-align: center; position: relative; box-sizing: border-box; margin-top: 10px; border: 1px solid rgba(0,0,0,0.02); }
        .about-us-badge { 
            position: absolute; 
            top: -18px; 
            left: 40px; 
            font-family: 'Noto Serif TC', serif; 
            font-size: 18px; 
            font-weight: 600; 
            color: #CBA87D; 
            padding: 8px 26px; 
            transform: rotate(-3deg); 
            z-index: 10; 
            letter-spacing: 2px; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            background-color: #FFFFFF; 
            border: 2px solid #CBA87D; 
            border-radius: 255px 25px 225px 25px / 25px 225px 25px 255px; 
            box-shadow: 2px 3px 0px rgba(203, 168, 125, 0.2); 
        }
        .story-h1 { font-family: 'Noto Serif TC', serif; font-size: 24px; font-weight: 600; color: var(--sage-dark); margin-bottom: 20px; letter-spacing: 1px; }
        .story-lead { font-size: 15px; line-height: 1.8; color: var(--text-dark); text-align: justify; margin: 0; }
        .story-h3 { font-family: 'Noto Serif TC', serif; font-size: 16px; color: var(--sage-dark); margin: 25px 0 10px 0; text-align: center; }
        .story-hidden-area { text-align: justify; font-size: 15px; line-height: 1.8; color: var(--text-dark); margin-top: 20px; }

        @media (max-width: 768px) {
            body { flex-direction: column; } .desktop-only { display: none !important; } .mobile-only { display: flex !important; }
            .download-note { display: block; text-align: center !important; margin: 0 auto !important; width: 100%; font-size: 13px; color: #E57373; font-weight: 500; margin-top: 5px; margin-bottom: 15px; line-height: 1.5; }
            .mobile-banner { display: block; width: 100%; height: 100px; background-color: transparent; background-image: url('https://i.postimg.cc/MpkWvNDb/cai-se-LOGO-heng-01.png'); background-size: contain; background-position: center; background-repeat: no-repeat; margin-top: 75px; }
            .mobile-header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background-color: var(--bg-main); display: flex; align-items: center; justify-content: flex-start; padding: 0 15px; z-index: 150; border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
            .hamburger-btn { background: none; border: 1px solid var(--sage-green); border-radius: 50%; cursor: pointer; padding: 0; width: 34px; height: 34px; margin-right: 15px; color: var(--sage-green); display: flex; justify-content: center; align-items: center; transition: transform 0.2s; } .hamburger-btn:active { transform: scale(0.9); } .hamburger-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
            .mobile-brand-group { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin: 0;cursor: default; user-select: none; touch-action: manipulation; } .mobile-brand-zh { font-family: 'Noto Serif TC', serif; font-size: 20px; font-weight: 600; color: var(--sage-green); letter-spacing: 2px; line-height: 1.1; white-space: nowrap; } .mobile-brand-en { font-family: 'Noto Sans TC', sans-serif; font-size: 9px; font-weight: 500; color: var(--text-sub); letter-spacing: 1px; white-space: nowrap; text-transform: uppercase; }
            .drawer-backdrop { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); z-index: 190; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; } .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
            .sidebar { top: 0; left: -260px; width: 260px; height: 100vh; padding: 0 20px 25px 20px; box-shadow: 5px 0 25px rgba(0,0,0,0.08); z-index: 200; background-color: var(--bg-main); } .sidebar.open { transform: translateX(260px); } .sidebar-top-blocker { display: none; }
            .drawer-close-zone { position: sticky; top: 0; background-color: var(--bg-main); padding-top: 25px; z-index: 10; display: flex !important; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 15px; font-weight: 600; font-size: 16px; color: var(--text-dark); letter-spacing: 1px; } .close-drawer-btn { background: none; border: none; font-size: 26px; color: var(--text-sub); cursor: pointer; line-height: 1; }
            .main-content { margin-left: 0; margin-top: 0; padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); width: 100vw; } .main-content.expanded { margin-left: 0; }
            .global-back-nav { padding: 15px 20px 0 20px; }
            .news-carousel-wrapper { width: calc(100% - 40px); margin-top: 20px; border-radius: 12px; display: block; } .news-slide img { border-radius: 12px; } .carousel-arrow { display: none !important; } .carousel-dots { display: flex; }
            .tags-container { top: 60px; padding: 12px 20px 15px 20px; margin-bottom: 10px; } .tags-container::after { left: 20px; right: 20px; } .divider-wrapper { padding: 15px 20px 0 20px; } .content-container { padding: 20px; width: 100%; overflow: hidden; box-sizing: border-box; }
            .intro-row, .intro-row:nth-child(even) { flex-direction: column; padding: 25px; gap: 20px; } .intro-gallery-wrapper { width: 100%; }  .intro-img-stage { width: 100%; }  .intro-arrow { display: none !important; } .intro-thumbnails { display: none !important; } .intro-dots { display: flex; }
            .custom-page-wrapper { padding: 25px 20px; } .custom-main-title { font-size: 24px; margin-bottom: 20px; padding-bottom: 10px; } .custom-sub-title { font-size: 18px; margin: 20px 0 12px 0; padding-bottom: 8px; } .custom-text { font-size: 14px; line-height: 1.7; margin-bottom: 15px; } .custom-qa summary { padding: 12px 16px; font-size: 14px; } .custom-qa p { padding: 12px 16px; font-size: 14px; } .custom-table th, .custom-table td { padding: 10px 12px; font-size: 13px; }
            .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; } .gallery-title { font-size: 13px; margin-top: 8px; } 
            .modal-card { padding: 25px 20px; } .modal-gallery-area { flex-direction: column; align-items: center; } .modal-main-img-wrapper { max-width: 280px; } .modal-thumbnails { width: 100%; flex-direction: row; overflow-x: auto; padding-bottom: 5px; justify-content: center; } .modal-thumb { width: 60px; height: 60px; flex-shrink: 0; }
            .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; } .shop-controls { margin-bottom: 20px; padding-bottom: 15px; flex-direction: column; align-items: flex-start; } .shop-search-sort-group { width: 100%; justify-content: space-between; margin-top: 10px; } .shop-search-wrapper input { width: 100%; max-width: 140px; } .shop-search-wrapper input:focus { width: 100%; max-width: 180px; } .shop-card { border-radius: 16px; padding: 10px; overflow: hidden; } .shop-img-wrapper { border-radius: 8px; margin-bottom: 10px; }
            .shop-badge-container { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; margin-bottom: 6px; gap: 4px; } .shop-badge-container::-webkit-scrollbar { display: none; } .shop-badge { font-size: 10px; padding: 2px 6px; flex-shrink: 0; } .shop-badge-green { padding: 2px 8px 2px 5px; clip-path: polygon(0% 0%, calc(100% - 4px) 0%, 100% 50%, calc(100% - 4px) 100%, 0% 100%); }
            .shop-title { font-size: 14px; margin-bottom: 4px; line-height: 1.5; white-space: pre-wrap; height: auto; display: block; } 
            .shop-promo-wrapper { min-height: 24px; margin-bottom: 6px; justify-content: flex-start; } .shop-promo { font-size: 12px; padding: 2px 10px; }
            .shop-price-stock-row { flex-direction: row; align-items: baseline; justify-content: center; gap: 4px; padding-top: 10px; margin-top: auto; flex-wrap: nowrap; overflow: hidden; border-top: 1px dashed rgba(0,0,0,0.25); } .price-group { flex-direction: row; align-items: baseline; gap: 4px; flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap; } .shop-price-sale { font-size: 15px; flex-shrink: 0; } .shop-price-original { font-size: 11px; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .shop-stock { font-size: 11px; flex-shrink: 0; white-space: nowrap; }
            #productDetailContainer { padding-top: 5px; padding-bottom: 30px; } .pd-sticky-header { position: relative; top: auto; z-index: 10; background: transparent; padding: 5px 0 10px 0; margin-top: 0; margin-bottom: 0; border-bottom: none; }
            .product-detail-layout { padding: 20px; } .pd-top-section { flex-direction: column; gap: 25px; } .pd-gallery-side { width: 100%; }  .pd-thumbnails { gap: 8px; } .pd-title { font-size: 22px; } .pd-sale-price { font-size: 24px; }
            .pd-promo { font-size: 13px; padding: 3px 12px; margin-bottom: 10px; }
            
            .contact-widget { right: 20px; bottom: calc(170px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; } 
            .cart-widget { right: 20px; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; } 
            .order-history-widget { right: 20px; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
            .order-history-widget .floating-btn-style svg { width: 22px; height: 22px; }
            .floating-btn-style svg { width: 22px; height: 22px; } 
            .back-to-top-btn { right: 26px; bottom: calc(240px + env(safe-area-inset-bottom, 0px)); width: 38px; height: 38px; } 
            .back-to-top-btn svg { width: 18px; height: 18px; }
            #cartModal .modal-card, #orderTrackModal .modal-card, #messageModal .modal-card { padding: 25px 20px; margin: 15px; }  .cart-item { flex-direction: column; align-items: flex-start; } .cart-item-img { width: 100%; height: 120px; }
            #receiptContainer { width: 100%; padding: 15px; } .rcpt-bottom-section { flex-direction: column; gap: 10px; }
            .form-footer-wrapper { padding: 15px; margin-top: 20px; gap: 12px; } .live-total-row { padding-top: 12px; } .live-total-label { font-size: 15px; } .live-total-val { font-size: 20px; } .form-submit-btn { margin-top: 10px; font-size: 15px; padding: 12px; }
            
            .story-letter-card { padding: 35px 20px; margin-top: 15px; }
            .about-us-badge { top: -16px; left: 20px; font-size: 16px; padding: 6px 20px; }
            .story-h1 { font-size: 18px; margin-bottom: 15px; margin-top: 10px; }
        }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


@media (max-width: 768px) {
    #customPageContainer {
        padding: 15px 12px 30px;
    }
    .complex-custom-header {
        padding: 12px 14px;
        gap: 10px;
    }
    .complex-custom-title {
        font-size: 15px;
    }
    .complex-custom-body {
        padding: 16px 12px;
    }
    .complex-back-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* ===== 複雜模式：圖片+選單一體、整頁單一滾動 ===== */
#customPageContainer {
    padding: 16px 24px 50px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.complex-custom-page {
    background: transparent;
}
.complex-custom-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px 16px;
    margin-bottom: 8px;
}
.complex-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    border: 1px solid var(--sage-green);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sage-dark);
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    font-family: 'Noto Sans TC', sans-serif;
}
.complex-back-btn:hover { background: var(--sage-green); color: #FFF; }
.complex-custom-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

/* 每個選單區塊：圖片 + 表單一體 */
.complex-sections-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.complex-section {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 8px;
    box-sizing: border-box;
}
.complex-section-img {
    width: 40%;
    flex-shrink: 0;
    max-width: 360px;
}
.complex-section-img img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: 0;
    cursor: zoom-in;
    background: transparent;
}
.complex-section-form {
    flex: 1;
    min-width: 0;
}
.complex-section-form .form-group {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.complex-section-form .form-group:hover,
.complex-section-form .form-group:focus-within {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 底部結帳區 */
.complex-checkout-bar {
    margin-top: 24px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}
.complex-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--sage-dark);
}

/* 顏色分層 */
.complex-section-color-1 { background: #F7F9F7; }
.complex-section-color-2 { background: #F9F7F5; }
.complex-section-color-3 { background: #F5F7F9; }
.complex-section-color-4 { background: #F8F6F9; }

@media (max-width: 768px) {
    #customPageContainer { padding: 10px 10px 30px; }
    .complex-custom-header { padding: 8px 2px 12px; gap: 8px; }
    .complex-custom-title { font-size: 14px; }
    .complex-back-btn { padding: 5px 10px; font-size: 12px; }
    .complex-section {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }
    .complex-section-img {
        width: 100%;
    }
    .complex-checkout-bar {
        margin-top: 16px;
        padding: 16px;
    }
}


/* 簡單模式：選項圖片 */
.simple-option-img {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}
.simple-option-img img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    background: #F7F7F7;
}

/* 購物車獨立頁模式 */
#cartModal.cart-page-mode {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-main);
    backdrop-filter: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 500;
    opacity: 1;
    pointer-events: auto;
    padding: 20px;
    overflow-y: auto;
}
#cartModal.cart-page-mode .modal-card {
    width: 100%;
    max-width: 720px;
    max-height: none;
    height: auto;
    margin: 20px auto 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transform: none !important;
    overflow: visible;
}
@media (max-width: 768px) {
    #cartModal.cart-page-mode {
        padding: 10px;
    }
    #cartModal.cart-page-mode .modal-card {
        margin: 10px auto 30px;
        border-radius: 12px;
        padding: 20px 16px;
    }
}

/* 購物車獨立頁模式：商品列表取消內部滾輪，與網頁一體 */
#cartModal.cart-page-mode .cart-items-container {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

/* 購物車物流 / 收據：去掉雙層框，間距更緊密 */
#cartModal .checkout-section .form-group {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    background: transparent !important;
}
#cartModal .checkout-section .form-group .form-label {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 13px;
}
#cartModal #logisticsDetails {
    margin-top: 12px !important;
    padding-top: 12px !important;
}
#cartModal #receiptSection {
    margin-bottom: 12px !important;
}
#cartModal #receiptFieldsWrap {
    margin-top: 8px;
}
#cartModal #receiptFieldsWrap .form-group {
    margin-bottom: 10px !important;
}
#cartModal #bankTransferSelectWrap {
    margin-top: 8px !important;
}
#cartModal .checkout-section {
    margin-bottom: 16px;
    padding: 16px 18px;
}
#cartModal .checkout-section h3 {
    margin-bottom: 10px;
}

/* 客製頁選項間距緊密 */
.complex-section-form .radio-label,
.complex-section-form .checkbox-label {
    padding: 6px 0;
    margin: 0;
}
.complex-sections-wrap {
    gap: 10px;
}
.complex-section-form .form-label {
    margin-bottom: 6px;
}

/* 客製獨立頁：選項間距再壓縮 */
.complex-custom-page .complex-sections-wrap { gap: 6px !important; }
.complex-custom-page .complex-section { padding: 6px 10px !important; margin: 0 !important; gap: 10px !important; }
.complex-custom-page .complex-section-form .form-group { margin: 0 0 4px 0 !important; padding: 0 !important; }
.complex-custom-page .complex-section-form .form-label { margin-bottom: 4px !important; font-size: 14px; }
.complex-custom-page .complex-section-form .radio-label,
.complex-custom-page .complex-section-form .checkbox-label { padding: 4px 0 !important; min-height: auto; }
.complex-custom-page .complex-section-form .radio-group,
.complex-custom-page .complex-section-form .checkbox-group { gap: 2px; display: flex; flex-direction: column; }
.complex-custom-page .option-note,
.complex-custom-page .form-note { margin: 4px 0 0 0 !important; padding: 6px 10px !important; font-size: 12px; }
.complex-custom-page .complex-section-img { max-height: 220px; }
.complex-custom-page .complex-section-img img { max-height: 220px; object-fit: contain; }

/* ===== 獨立訂單明細頁 ===== */
#orderPageContainer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-main);
    z-index: 600;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.order-page {
    min-height: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 16px 60px;
    box-sizing: border-box;
}
.order-page-inner {
    width: 100%;
    max-width: 640px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 32px 28px 40px;
    box-sizing: border-box;
}
.order-brand {
    text-align: center;
    margin-bottom: 8px;
}
.order-brand-zh {
    font-family: 'Noto Serif TC', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--sage-green);
    letter-spacing: 3px;
}
.order-brand-en {
    font-size: 11px;
    color: var(--text-sub);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}
.order-success-title {
    text-align: center;
    font-family: 'Noto Serif TC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--sage-dark);
    margin: 12px 0 28px;
    letter-spacing: 1px;
}
.order-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sage-dark);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(155,179,161,0.35);
}
.order-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.order-item:last-child { border-bottom: none; }
.order-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.order-item-info { flex: 1; min-width: 0; }
.order-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}
.order-item-opts {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
}
.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--sage-dark);
    white-space: nowrap;
    margin-left: 8px;
}
.order-summary {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 8px;
}
.order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
.order-summary-row.total {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.12);
}
.order-summary-row.total span:last-child { color: #D32F2F; }
.order-id-block {
    background: linear-gradient(135deg, rgba(155,179,161,0.12), rgba(155,179,161,0.06));
    border: 1.5px solid var(--sage-green);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    margin: 28px 0 20px;
}
.order-id-label {
    font-size: 13px;
    color: var(--sage-dark);
    font-weight: 500;
    margin-bottom: 6px;
}
.order-id-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    word-break: break-all;
    margin-bottom: 12px;
}
.order-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sage-green);
    color: #FFF;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
    transition: background 0.2s;
}
.order-copy-btn:hover { background: var(--sage-dark); }
.order-next-step {
    background: #F8F6F0;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.order-deadline {
    background: #FFEBEE;
    border: 2px solid #EF9A9A;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(239,154,154,0.25);
}
.order-deadline-date {
    color: #C62828;
    font-weight: 700;
    font-size: 17px;
    display: inline-block;
    margin: 4px 0;
}
.order-contact-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.order-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 240px;
    max-width: 90%;
    margin: 0 auto;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
    transition: transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}
.order-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.order-contact-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.order-btn-line { background: #2E5A3C; }
.order-btn-fb { background: #5B7A9A; }
.order-btn-ig { background: #C47A8A; }
.order-contact-hint {
    font-size: 14px;
    color: var(--text-sub);
    text-align: center;
    line-height: 1.7;
    margin-top: 8px;
}
.order-back-home {
    display: block;
    text-align: left;
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--sage-dark);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.order-back-home:hover { color: var(--sage-green); }
.order-info-box {
    background: #F7F9F7;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-top: 12px;
}
.order-info-box strong { color: var(--sage-dark); }
.cart-last-order-block {
    text-align: center;
    padding: 28px 16px;
    background: linear-gradient(135deg, rgba(155,179,161,0.1), rgba(155,179,161,0.04));
    border: 1.5px dashed var(--sage-green);
    border-radius: 14px;
    margin: 10px 0 20px;
}
.cart-last-order-block .last-order-title {
    font-size: 14px;
    color: var(--sage-dark);
    font-weight: 500;
    margin-bottom: 8px;
}
.cart-last-order-block .last-order-id {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.cart-last-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sage-green);
    color: #FFF;
    border: none;
    border-radius: 20px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
    transition: background 0.2s;
}
.cart-last-order-btn:hover { background: var(--sage-dark); }

@media (max-width: 768px) {
    .order-page { padding: 12px 10px 40px; }
    .order-page-inner { padding: 24px 18px 32px; border-radius: 16px; }
    .order-success-title { font-size: 18px; }
    .order-id-value { font-size: 18px; }
    .order-item-img { width: 60px; height: 60px; }
}
