/* === 行動裝置阻擋頁 === */

            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
            
            body {
                font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
                overflow: hidden;
            }
            
            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 9999;
                animation: fadeIn 0.8s ease-out;
            }
            
            .overlay::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: 
                    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
                opacity: 0.4;
                animation: sparkle 4s ease-in-out infinite;
            }
            
            .modal {
                background: rgba(255, 255, 255, 0.96);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                padding: 3rem 2rem;
                border-radius: 20px;
                text-align: center;
                max-width: 90%;
                width: 450px;
                box-shadow: 
                    0 20px 60px rgba(14, 165, 233, 0.18),
                    0 8px 32px rgba(14, 165, 233, 0.12),
                    inset 0 1px 0 rgba(255, 255, 255, 0.65);
                border: 1px solid rgba(56, 189, 248, 0.18);
                position: relative;
                animation: slideUp 0.6s ease-out 0.2s both;
                transform: translateY(30px);
                opacity: 0;
            }
            
            .modal::before {
                content: '';
                position: absolute;
                top: -2px;
                left: -2px;
                right: -2px;
                bottom: -2px;
                background: linear-gradient(135deg, rgba(135, 206, 235, 0.3), rgba(70, 130, 180, 0.3));
                border-radius: 22px;
                z-index: -1;
            }
            
            .modal-icon {
                font-size: 4rem;
                margin-bottom: 1.5rem;
                display: block;
                animation: bounce 2s ease-in-out infinite;
            }
            
            .modal h2 {
                color: #2F4F4F;
                margin-bottom: 1rem;
                font-size: 1.8rem;
                font-weight: 600;
                background: linear-gradient(135deg, #4682B4, #87CEEB);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                line-height: 1.3;
            }
            
            .modal p {
                margin-bottom: 2rem;
                color: #335a7a;
                line-height: 1.6;
                font-size: 1.1rem;
                font-weight: 400;
            }
            
            .modal-subtitle {
                color: #4b6b88;
                font-size: 0.9rem;
                margin-top: 1rem;
                opacity: 0.8;
            }
            
            .device-icon {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                background: linear-gradient(135deg, #87CEEB, #4682B4);
                color: white;
                padding: 8px 16px;
                border-radius: 25px;
                font-size: 0.9rem;
                font-weight: 500;
                margin: 0 4px;
                box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
            }
            
            @keyframes fadeIn {
                from {
                    opacity: 0;
                }
                to {
                    opacity: 1;
                }
            }
            
            @keyframes slideUp {
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }
            
                         @keyframes bounce {
                 0%, 20%, 50%, 80%, 100% {
                     transform: translateY(0);
                 }
                 40% {
                     transform: translateY(-10px);
                 }
                 60% {
                     transform: translateY(-5px);
                 }
             }
             
             @keyframes sparkle {
                 0%, 100% {
                     opacity: 0.4;
                     transform: scale(1);
                 }
                 50% {
                     opacity: 0.6;
                     transform: scale(1.05);
                 }
             }
            
            @media (max-width: 480px) {
                .modal {
                    width: 95%;
                    padding: 2rem 1.5rem;
                    margin: 1rem;
                }
                
                .modal h2 {
                    font-size: 1.5rem;
                }
                
                .modal p {
                    font-size: 1rem;
                }
                
                .modal-icon {
                    font-size: 3rem;
                }
            }

/* === 主站樣式 === */

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
            letter-spacing: 0.02em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background: #000000;
            color: #FFFFFF;
            min-height: 100vh;
            overflow-x: hidden;
            max-width: 100vw;
            padding-top: 80px; /* 頂部 LOGO 區域，JS 會根據跑馬燈狀態動態調整 */
            padding-bottom: 85px; /* 底部導航列高度 */
            /* 全局禁用雙擊縮放 */
            touch-action: manipulation;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        /* Header：LOGO 圖片填滿整條頂部列 */
        .header {
            background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 30, 63, 0.9) 100%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: white;
            padding: 0;
            display: block;
            box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(34, 211, 238, 0.2);
            border-bottom: 2px solid #a855f7;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 2000;
            height: 80px;
            overflow: hidden;
        }

        /**
         * 讓 <picture> 不額外產生排版盒，LOGO 的 <img> 仍受 .header img 規則控制
         */
        .header picture {
            display: contents;
        }
        
        .header-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .header img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            object-fit: cover;
            object-position: center;
            display: block;
            filter: brightness(1.2);
        }
        
        /* VIP 會員歡迎彈窗樣式 */
        .vip-welcome-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: vipFadeIn 0.4s ease-out;
        }
        
        @keyframes vipFadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        
        .vip-welcome-modal {
            background: linear-gradient(135deg, rgba(10, 0, 21, 0.98) 0%, rgba(26, 0, 51, 0.98) 100%);
            border-radius: 24px;
            padding: 40px 30px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: 
                0 0 60px rgba(139, 92, 246, 0.6),
                0 0 120px rgba(139, 92, 246, 0.4),
                0 20px 80px rgba(0, 0, 0, 0.8);
            border: 2px solid rgba(139, 92, 246, 0.5);
            animation: vipModalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
            position: relative;
            overflow: hidden;
        }
        
        .vip-welcome-modal::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(135deg, #FFD700, #FFA500, #FF1493, #8B5CF6);
            border-radius: 24px;
            z-index: -1;
            opacity: 0.3;
            animation: vipGlowPulse 3s ease-in-out infinite;
        }
        
        @keyframes vipModalIn {
            from {
                transform: scale(0.8) translateY(30px);
                opacity: 0;
            }
            to {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }
        
        @keyframes vipGlowPulse {
            0%, 100% {
                opacity: 0.3;
            }
            50% {
                opacity: 0.5;
            }
        }
        
        .vip-crown {
            font-size: 80px;
            margin-bottom: 20px;
            animation: vipCrownBounce 1s ease-in-out infinite;
            filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
        }
        
        @keyframes vipCrownBounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-15px);
            }
        }
        
        .vip-title {
            font-size: 28px;
            font-weight: bold;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 20px;
            filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
            animation: vipTitleGlow 2s ease-in-out infinite;
        }
        
        @keyframes vipTitleGlow {
            0%, 100% {
                filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
            }
            50% {
                filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
            }
        }
        
        .vip-divider {
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #a78bfa, transparent);
            margin: 20px auto;
            animation: vipDividerGlow 2s ease-in-out infinite;
        }
        
        @keyframes vipDividerGlow {
            0%, 100% {
                box-shadow: 0 0 5px rgba(167, 139, 250, 0.5);
            }
            50% {
                box-shadow: 0 0 15px rgba(167, 139, 250, 0.8);
            }
        }
        
        .vip-message {
            font-size: 20px;
            color: #e0d4ff;
            margin-bottom: 15px;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
            animation: vipMessageFloat 3s ease-in-out infinite;
        }
        
        @keyframes vipMessageFloat {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-5px);
            }
        }
        
        .vip-description {
            font-size: 15px;
            color: #a78bfa;
            line-height: 1.8;
            margin: 20px 0;
            text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
        }
        
        .vip-sparkle {
            margin: 25px 0;
            font-size: 32px;
            animation: vipSparkle 1.5s ease-in-out infinite;
        }
        
        @keyframes vipSparkle {
            0%, 100% {
                opacity: 0.6;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.15);
            }
        }
        
        .vip-confirm-button {
            background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
            border: none;
            color: white;
            font-size: 18px;
            font-weight: 600;
            padding: 16px 48px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 
                0 4px 15px rgba(139, 92, 246, 0.4),
                0 0 30px rgba(139, 92, 246, 0.3);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            margin-top: 10px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .vip-confirm-button:hover {
            background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
            transform: translateY(-2px);
            box-shadow: 
                0 6px 20px rgba(139, 92, 246, 0.5),
                0 0 40px rgba(139, 92, 246, 0.4);
        }
        
        .vip-confirm-button:active {
            transform: translateY(0);
            box-shadow: 
                0 2px 10px rgba(139, 92, 246, 0.4),
                0 0 20px rgba(139, 92, 246, 0.3);
        }
        
        /* 手機端優化 */
        @media (max-width: 480px) {
            .vip-welcome-modal {
                padding: 35px 25px;
                width: 92%;
            }
            
            .vip-crown {
                font-size: 70px;
            }
            
            .vip-title {
                font-size: 24px;
            }
            
            .vip-message {
                font-size: 18px;
            }
            
            .vip-description {
                font-size: 14px;
            }
            
            .vip-sparkle {
                font-size: 28px;
            }
            
            .vip-confirm-button {
                font-size: 16px;
                padding: 14px 40px;
            }
        }
        
        /* 底部固定導航列 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(180deg, #1a0033 0%, #0d001a 100%);
            border-top: 2px solid rgba(255, 0, 255, 0.3);
            box-shadow: 0 -4px 20px rgba(255, 0, 255, 0.2);
            padding: 12px 0 8px 0;
            z-index: 2000;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .bottom-nav-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 600px;
            margin: 0 auto;
            padding: 0 10px;
        }
        
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: rgba(255, 255, 255, 0.6);
            font-size: 11px;
            font-weight: 600;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 12px;
            min-width: 70px;
            position: relative;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .bottom-nav-item:active {
            transform: scale(0.95);
        }
        
        .bottom-nav-item.active {
            color: #ff00ff;
        }
        
        .bottom-nav-item.active .bottom-nav-icon {
            background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
            box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4);
        }
        
        .bottom-nav-icon {
            width: 46px;
            height: 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 4px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .bottom-nav-item:hover .bottom-nav-icon {
            background: rgba(255, 0, 255, 0.2);
            transform: translateY(-3px);
        }
        
        /**
         * 底欄 SVG：勿對根節點使用 `fill: currentColor`，否則子路徑會繼承填充而變成「實心塊」；
         * 與電腦端 `body .bottom-nav-icon svg` 一致採描邊＋`fill: none`。
         */
        .bottom-nav-icon svg {
            width: 28px;
            height: 28px;
            fill: none;
            stroke: currentColor;
            filter: none;
            shape-rendering: geometricPrecision;
            text-rendering: geometricPrecision;
            image-rendering: -webkit-optimize-contrast;
        }

        /** 選取態圖標置於漸層方塊上，描邊改白以利對比（標籤文字仍用 .bottom-nav-item.active 的 color） */
        .bottom-nav-item.active .bottom-nav-icon svg {
            fill: none;
            stroke: #ffffff;
            animation: none;
        }

        /** 「線上客服」三點為實心圓（SVG 上設 fill="currentColor"），選取態改白並取消描邊 */
        .bottom-nav-item.active .bottom-nav-icon svg circle[fill="currentColor"] {
            fill: #ffffff;
            stroke: none;
        }
        
        @keyframes neon-pulse {
            0%, 100% {
                filter: none;
            }
            50% {
                filter: none;
            }
        }
        
        /* 底部導航欄中的購物車徽章 */
        .bottom-nav-item .cart-badge {
            position: absolute;
            top: 2px;
            right: 8px;
            background: linear-gradient(135deg, #ff0066 0%, #ff00ff 100%);
            color: white;
            border-radius: 12px;
            min-width: 18px;
            height: 18px;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 102, 0.6);
            padding: 0 5px;
            border: 2px solid #000000;
            line-height: 1;
            animation: badge-pulse 2s ease-in-out infinite;
        }
        
        @keyframes badge-pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 102, 0.6);
            }
            50% {
                transform: scale(1.1);
                box-shadow: 0 0 15px rgba(255, 0, 255, 1), 0 0 30px rgba(255, 0, 102, 0.8);
            }
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }
        
        @keyframes sparkleGlow {
            0% { 
                box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
            }
            100% { 
                box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
            }
        }
        
        /* FAQ 常見問題樣式 */
        .faq-section {
            width: 100%;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .faq-accordion {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .faq-item {
            background: #0F0F0F;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .faq-item:hover {
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
        }
        
        .faq-question {
            width: 100%;
            background: transparent;
            border: none;
            padding: 16px 20px;
            text-align: left;
            color: #FFFFFF;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            -webkit-tap-highlight-color: transparent;
        }
        
        .faq-question:active {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .faq-icon {
            font-size: 12px;
            transition: transform 0.3s ease;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .faq-icon.open {
            transform: rotate(180deg);
            color: #FFFFFF;
        }
        
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .faq-answer.open {
            max-height: 500px;
        }
        
        .faq-answer-content {
            padding: 0 20px 20px 20px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            line-height: 1.8;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 16px;
        }
        
        /* 四大保證樣式 */
        .guarantee-section {
            width: 100%;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .guarantee-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .guarantee-block {
            background: #0F0F0F;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
        }
        
        .guarantee-block:hover {
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
            transform: translateY(-4px);
        }
        
        .guarantee-icon {
            font-size: 32px;
            margin-bottom: 12px;
        }
        
        .guarantee-title {
            font-size: 16px;
            font-weight: 700;
            color: #FFFFFF;
            margin-bottom: 8px;
        }
        
        .guarantee-desc {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.6;
        }
        
        /* 手機端適配 */
        @media (max-width: 768px) {
            .faq-section {
                margin-top: 30px;
            }
            
            .faq-question {
                padding: 14px 16px;
                font-size: 14px;
            }
            
            .faq-answer-content {
                padding: 0 16px 16px 16px;
                font-size: 13px;
            }
            
            .guarantee-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .guarantee-block {
                padding: 16px;
            }
            
            .guarantee-icon {
                font-size: 28px;
                margin-bottom: 8px;
            }
            
            .guarantee-title {
                font-size: 14px;
                margin-bottom: 6px;
            }
            
            .guarantee-desc {
                font-size: 12px;
            }
        }
        
        /* 底部功能導航 */
        .bottom-features-nav {
            background: transparent;
            padding: 15px 0 25px 0;
            margin-top: 35px;
        }
        
        .bottom-features-container {
            max-width: 450px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            gap: 10px;
        }
        
        .feature-nav-item {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            padding: 10px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #FFFFFF;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .feature-nav-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }
        
        .feature-nav-item:active {
            transform: scale(0.98);
        }
        
        .feature-nav-icon {
            font-size: 20px;
        }
        
        .feature-nav-text {
            font-size: 13px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
        }
        
        @media (max-width: 768px) {
            .bottom-features-nav {
                padding: 12px 0 20px 0;
                margin-top: 25px;
            }
            
            .bottom-features-container {
                max-width: 100%;
                padding: 0 15px;
                gap: 8px;
            }
            
            .feature-nav-item {
                padding: 10px 8px;
                border-radius: 8px;
            }
            
            .feature-nav-icon {
                font-size: 18px;
            }
            
            .feature-nav-text {
                font-size: 12px;
            }
        }

        /* Footer 頁尾樣式 */
        .footer {
            background: #000000;
            border-top: 2px solid rgba(255, 255, 255, 0.3);
            padding: 30px 0;
            margin-top: 0;
            box-shadow: 0 -4px 12px rgba(255, 255, 255, 0.1);
        }
        
        .footer-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
            text-align: center;
        }
        
        .footer-copyright {
            color: #FFFFFF;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .footer-description {
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
            line-height: 1.8;
            padding: 0 10px;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px;
        }
        
        .footer-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 13px;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .footer-link:hover {
            color: #FFFFFF;
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }
        
        .footer-link:active {
            transform: translateY(0);
        }
        
        /* Footer 手機端適配 */
        @media (max-width: 768px) {
            .footer {
                padding: 24px 0;
                margin-top: 40px;
            }
            
            .footer-container {
                padding: 0 15px;
            }
            
            .footer-copyright {
                font-size: 14px;
            }
            
            .footer-description {
                font-size: 12px;
                line-height: 1.7;
            }
            
            .footer-link {
                font-size: 12px;
                padding: 6px 10px;
            }
        }
        
        /* 側邊懸浮聯繫按鈕 */
        .float-contact-btn {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .main-contact-btn {
            width: 44px;
            height: 140px;
            border-radius: 8px 0 0 8px;
            background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-right: none;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
            color: #FFFFFF;
            font-weight: 600;
            font-size: 16px;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 4px;
            padding: 16px 0;
            opacity: 1;
            visibility: visible;
        }
        
        .main-contact-btn:hover {
            background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
            border-color: rgba(255, 255, 255, 0.6);
            box-shadow: -6px 0 24px rgba(255, 255, 255, 0.3);
        }
        
        .main-contact-btn.active {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-50%) scale(0);
        }
        
        
        .contact-options {
            position: absolute;
            right: -100px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 12px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        .contact-options.show {
            opacity: 1;
            visibility: visible;
            right: 0;
        }
        
        .contact-option-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
            opacity: 0;
            transform: translateX(100px);
        }
        
        .contact-options.show .contact-option-btn {
            opacity: 1;
            transform: translateX(0);
        }
        
        .contact-options.show .contact-option-btn:nth-child(1) {
            transition-delay: 0.1s;
        }
        
        .contact-options.show .contact-option-btn:nth-child(2) {
            transition-delay: 0.15s;
        }
        
        .contact-options.show .contact-option-btn:nth-child(3) {
            transition-delay: 0.2s;
        }
        
        .telegram-btn {
            background: #0088cc;
        }
        
        .telegram-btn:hover {
            background: #006ba8;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
        }
        
        .line-btn {
            background: #00C300;
        }
        
        .line-btn:hover {
            background: #00a000;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 195, 0, 0.6);
        }
        
        .contact-close-btn {
            background: #ef4444 !important;
            border: 3px solid rgba(239, 68, 68, 0.5) !important;
        }
        
        .contact-close-btn:hover {
            background: #dc2626 !important;
            transform: scale(1.1) !important;
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important;
        }
        
        .contact-option-btn svg {
            width: 28px;
            height: 28px;
            fill: white;
        }
        
        /* 手機端適配 */
        @media (max-width: 768px) {
            .float-contact-btn {
                right: 0;
                top: 50%;
            }
            
            .main-contact-btn {
                width: 40px;
                height: 120px;
                font-size: 14px;
                letter-spacing: 3px;
                padding: 12px 0;
            }
            
            .contact-option-btn {
                width: 50px;
                height: 50px;
            }
            
            .contact-option-btn svg {
                width: 26px;
                height: 26px;
            }
            
            .contact-options {
                right: -100px;
            }
            
            .contact-options.show {
                right: 0;
            }
        }

        /* 圖片預覽模態框：須高於 body.spec-modal-open 時之 .container(30000)，否則在規格彈窗內點圖已開層卻被挡住 */
        .image-preview-modal {
            display: none;
            position: fixed;
            z-index: 50000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        /* 內層鋪滿視窗，主圖以 cover 填滿（不保留 contain 上下／左右留空） */
        .image-preview-content {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            max-height: 100dvh;
            margin: 0;
            padding: 0;
            text-align: center;
            display: block;
            z-index: 0;
            background: transparent;
        }

        .image-preview-content img#previewImage,
        .image-preview-content img {
            position: absolute;
            inset: 0;
            z-index: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            border-radius: 0;
            box-shadow: none;
            border: none;
        }

        .image-preview-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #BFBFBF 0%, #8a8a8a 100%);
            color: #0F0F0F;
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            font-size: 22px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(191, 191, 191, 0.5);
            transition: all 0.3s ease;
            z-index: 102;
        }

        .image-preview-close:hover {
            background: linear-gradient(135deg, #FFFFFF 0%, #BFBFBF 100%);
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(191, 191, 191, 0.7);
        }

        /* 手機：同樣全畫面鋪滿；關閉鈕避開安全區 */
        @media (max-width: 768px) {
            .image-preview-content {
                max-height: 100dvh;
            }

            .image-preview-close {
                top: max(15px, env(safe-area-inset-top, 0px));
                right: max(15px, env(safe-area-inset-right, 0px));
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .preview-image-info {
                bottom: max(24px, env(safe-area-inset-bottom, 0px));
            }

            .preview-nav-btn.prev {
                left: max(12px, env(safe-area-inset-left, 0px));
            }

            .preview-nav-btn.next {
                right: max(12px, env(safe-area-inset-right, 0px));
            }
        }
        
        /**
         * 商品網格：不在此處寫死欄數（避免桌面端被當成 2 欄）。
         * 手機 2 欄見 @media (max-width:768px)；電腦見 @media (min-width:769px) 與 #productsContainer 前綴規則。
         */
        .products-grid {
            display: grid;
            gap: 12px;
            margin-top: 15px;
            padding: 0 5px;
        }
        
        .product-card {
            background: #0F0F0F;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
            transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            flex-direction: column;
            margin: 0;
            padding: 0;
            position: relative;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.15);
        }
        
        .product-image {
            width: 100%;
            height: 200px;
            background: #f5f5f5;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }
        
        /* contain：完整顯示圖片不裁切（留白由 .product-image 背景色填滿） */
        .product-image img {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            height: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            object-fit: contain !important;
            object-position: center center !important;
            display: block !important;
            border: none !important;
            outline: none !important;
        }

        /**
         * 首頁商品卡主圖：內層媒體 + 桌面 hover 顯示預覽／購物車鈕
         */
        .product-image__media {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: block;
        }

        .product-image__media--placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            line-height: 1;
            background: #1a1a1a;
            color: #666;
        }

        .product-image__overlay {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
        }

        .product-image:hover .product-image__overlay,
        .product-image__overlay:has(.product-image__action:focus-visible) {
            opacity: 1;
            pointer-events: auto;
        }

        /**
         * 桌機：點擊主圖展開雙鈕（與 hover 併用，無 hover 裝置可只靠點擊）
         */
        @media (min-width: 769px) {
            .product-image--actions-expanded .product-image__overlay {
                opacity: 1;
                pointer-events: auto;
            }
        }

        .product-image__action {
            width: 48px;
            height: 48px;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            background: rgba(255, 255, 255, 0.22);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
            transition: background 0.2s, transform 0.15s;
        }

        .product-image__action:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: scale(1.06);
        }

        .product-image__action-icon {
            display: block;
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .product-image__overlay {
                display: none;
            }
            .product-image__media {
                cursor: pointer;
            }
        }

        /* 熱銷標籤樣式 */
        .hot-badge {
            position: absolute;
            top: 0;
            right: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 60px 60px 0;
            border-color: transparent #FF4444 transparent transparent;
            z-index: 10;
        }

        .hot-badge-text {
            position: absolute;
            top: 8px;
            right: -48px;
            color: #FFFFFF;
            font-size: 12px;
            font-weight: 700;
            transform: rotate(45deg);
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            white-space: nowrap;
            letter-spacing: 1px;
        }
        
        .product-info {
            padding: 15px;
            display: flex;
            flex-direction: column;
            height: 216px;
            justify-content: space-between;
            background: #000000;
        }
        
        .product-name {
            font-size: 15px;
            font-weight: bold;
            color: #FFFFFF;
            line-height: 1.4;
            word-wrap: break-word;
            word-break: break-all;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            height: 63px;
            max-height: 63px;
            margin-bottom: 8px;
            text-align: center;
        }

        .product-name-container {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            width: 100%;
        }

        /**
         * 銷量列：桌面版第三行右對齊；預設不佔位，有銷量時由 JS 加 .is-visible
         */
        .product-sales-row {
            display: none;
            width: 100%;
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            min-height: 0;
        }

        .product-sales-row.is-visible {
            display: flex;
        }

        /**
         * 暫時隱藏商品卡「銷量」標籤（之後要顯示時刪除此區塊即可）
         */
        .product-sales-row,
        .product-sales-row.is-visible {
            display: none !important;
        }

        .product-sales {
            /* 暫時隱藏銷量，恢復時改回 display: inline-flex; 並刪除上段 .product-sales-row 隱藏 */
            display: none !important;
            align-items: center;
            justify-content: center;
            min-height: 22px;
            padding: 2px 10px;
            border-radius: 999px;
            background: rgba(56, 189, 248, 0.12);
            color: #0ea5e9;
            border: 1px solid rgba(56, 189, 248, 0.16);
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            align-self: flex-end;
        }
        
        .product-subtitle {
            font-size: 13px;
            color: #0F0F0F;
            line-height: 1.3;
            max-height: 40px;
            overflow: hidden;
            margin: 5px 0;
            background: linear-gradient(135deg, #BFBFBF 0%, #8a8a8a 100%);
            padding: 4px 8px;
            border-radius: 8px;
            font-weight: 600;
            text-align: center;
            box-shadow: 0 2px 8px rgba(191, 191, 191, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            animation: discountGlow 2s ease-in-out infinite alternate;
        }

        .product-subtitle::before {
            content: "💎 ";
            animation: sparkle 1s ease-in-out infinite alternate;
        }

        @keyframes sparkle {
            0% { opacity: 0.7; transform: scale(1) rotate(0deg); }
            100% { opacity: 1; transform: scale(1.1) rotate(10deg); }
        }

        .product-subtitle:empty {
            display: none;
        }

        @keyframes discountGlow {
            0% { box-shadow: 0 2px 8px rgba(191, 191, 191, 0.4); }
            100% { box-shadow: 0 4px 16px rgba(191, 191, 191, 0.7); }
        }
        
        .product-price {
            font-size: 22px;
            font-weight: bold;
            color: #FF3B30;
            height: 30px;
            line-height: 30px;
            text-align: center;
            padding: 5px 0;
        }
        
        .product-price-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .product-original-price {
            font-size: 16px;
            color: #999;
            text-decoration: line-through;
            font-weight: normal;
        }
        
        .product-options {
            margin-bottom: 15px;
        }
        
        .option-select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 5px;
        }
        
        .add-to-cart {
            width: 100%;
            background: #000000;
            color: #FFFFFF;
            border: 2px solid #FFFFFF;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 255, 255, 0);
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin-top: auto;
            position: relative;
        }
        
        .add-to-cart:hover {
            background: #1a1a1a;
            border-color: #BFBFBF;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .add-to-cart.sold-out {
            background: #1a1a1a;
            color: #666666;
            cursor: not-allowed;
            box-shadow: none;
            opacity: 0.6;
            border: 2px solid #333333;
        }

        .add-to-cart.sold-out:hover {
            background: #1a1a1a;
            border-color: #333333;
            transform: none;
            box-shadow: none;
        }
        
        /**
         * 舊版迷你購物車（#cartItems）：主介面已改用 #cartPage，預設隱藏避免桌面端幽靈浮層。
         * 若日後需啟用手機端浮層，請加 class mobile-cart 並於 max-width:768px 覆寫 display。
         */
        .cart {
            display: none;
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(46, 46, 46, 0.95);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(255, 105, 180, 0.2);
            border: 1px solid rgba(191, 191, 191, 0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-width: 200px;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .cart-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 182, 193, 0.2);
        }
        
        .loading {
            text-align: center;
            padding: 50px;
            color: #666;
        }
        
        .error {
            background: #fee;
            color: #c33;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
        }
        

        /* ===== 手機端響應式設計 ===== */
        @media (max-width: 768px) {
            body {
                background: #000000;
                padding-top: 100px; /* 頂部 LOGO 區域 */
                /**
                 * 底部導航列實高常 > 75px；原 75px 小於全站 85px，易遮擋商品卡「立即選購」。
                 * 併入 safe-area 以適配首頁條／劉海機，預留額外捲動餘量。
                 */
                padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
                overflow-y: auto;
                overflow-x: hidden;
            }

            .header {
                padding: 0;
                height: 80px;
            }

            .header-inner {
                display: block;
                position: relative;
                width: 100%;
                height: 100%;
            }

            .header-logo-wrap {
                position: absolute;
                inset: 0;
            }

            .header img {
                position: absolute !important;
                left: 0 !important;
                top: 0 !important;
                width: 100% !important;
                height: 100% !important;
                max-width: none !important;
                max-height: none !important;
                margin: 0 !important;
                object-fit: cover !important;
                object-position: center !important;
                filter: brightness(1.2);
            }
            
            .bottom-nav {
                padding: 8px 0 6px 0;
                /* 圖示列抬離 Home 指示條，避免實際可點擊列高於 75px 卻只留 75px 內距 */
                padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
            }
            
            .bottom-nav-item {
                min-width: 60px;
                padding: 6px 8px;
                font-size: 10px;
            }
            
            .bottom-nav-icon {
                width: 42px;
                height: 42px;
            }
            
            .bottom-nav-icon svg {
                width: 26px;
                height: 26px;
            }
            
            .bottom-nav-item .cart-badge {
                top: 0;
                right: 4px;
                min-width: 16px;
                height: 16px;
                font-size: 9px;
            }

            .container {
                padding: 10px;
                max-width: 100%;
                width: 100%;
                display: block;
                box-sizing: border-box;
                position: relative;
                z-index: 10;
            }

            /**
             * 全屏彈層（#specModal 等）放在 .container 內；此處 z-index:10 形成 stacking context，
             * 子層即使用 z-index:9999 仍無法高於同層兄弟 .bottom-nav(2000)，底欄會攔截觸控。
             * 與 body.cart-page-open 相同做法：彈層期間抬高 .container 並隱藏底欄（僅手機全寬底欄）。
             */
            body.spec-modal-open .container,
            body.product-menu-open .container,
            body.order-query-open .container {
                z-index: 30000;
            }

            body.spec-modal-open .bottom-nav,
            body.product-menu-open .bottom-nav,
            body.order-query-open .bottom-nav {
                display: none !important;
            }

            #categoriesContainer {
                width: 100%;
                margin-bottom: 15px;
                position: relative;
                z-index: 100;
            }
            
            /* 已改為固定網格，移除右側滑動提示遮罩 */
            #categoriesContainer::after {
                display: none;
            }

            #categoriesContainer h3 {
                font-size: 14px !important;
                margin-bottom: 8px !important;
                color: #1D1D1F !important;
                font-weight: 700 !important;
                text-align: center;
                display: none; /* 隱藏標題，節省空間 */
            }

            /* 分類按鈕 - 3x3 網格布局（手機端）*/
            .categories {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
                margin-bottom: 15px;
                padding: 10px 8px;
                position: relative;
                z-index: 100;
            }

            .category-btn {
                background: rgba(0, 0, 0, 0.8);
                border: 2px solid #8b5cf6;
                color: #e0d4ff;
                padding: 10px 6px;
                border-radius: 10px;
                font-size: 14px;
                font-weight: 700;
                text-align: center;
                min-height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 0 10px rgba(139, 92, 246, 0.4), 
                            0 0 20px rgba(139, 92, 246, 0.2),
                            inset 0 0 10px rgba(139, 92, 246, 0.1);
                text-shadow: 0 0 8px rgba(139, 92, 246, 0.8), 
                             0 0 15px rgba(139, 92, 246, 0.5);
                transition: all 0.3s ease;
                -webkit-tap-highlight-color: transparent;
                word-break: break-all;
                line-height: 1.3;
                position: relative;
                overflow: hidden;
                z-index: 100;
                pointer-events: auto;
            }

            .category-btn:active {
                transform: scale(0.95);
            }

            .category-btn.active {
                background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.3) 50%, rgba(139, 92, 246, 0.2) 100%);
                color: #ffffff;
                border-color: #a78bfa;
                box-shadow: 0 0 20px rgba(167, 139, 250, 0.8), 
                            0 0 40px rgba(167, 139, 250, 0.5),
                            0 0 60px rgba(139, 92, 246, 0.3),
                            inset 0 0 20px rgba(167, 139, 250, 0.3);
                text-shadow: 0 0 10px rgba(255, 255, 255, 1), 
                             0 0 20px rgba(167, 139, 250, 1),
                             0 0 30px rgba(139, 92, 246, 0.8);
                transform: translateY(-1px);
                animation: neonPulse 2s ease-in-out infinite alternate;
            }

            .category-btn.active::before {
                content: '';
                position: absolute;
                top: -3px;
                left: -3px;
                right: -3px;
                bottom: -3px;
                background: linear-gradient(
                    45deg,
                    #8b5cf6,
                    #a78bfa,
                    #c4b5fd,
                    #ddd6fe,
                    #c4b5fd,
                    #a78bfa,
                    #8b5cf6
                );
                background-size: 400% 400%;
                border-radius: 12px;
                z-index: -1;
                opacity: 0.8;
                animation: flowingLight 3s linear infinite;
                filter: blur(2px);
            }

            .category-btn:not(.active):hover {
                background: rgba(26, 26, 26, 0.9);
                border-color: #a78bfa;
                transform: translateY(-1px);
                box-shadow: 0 0 15px rgba(167, 139, 250, 0.6), 
                            0 0 30px rgba(167, 139, 250, 0.3),
                            inset 0 0 15px rgba(167, 139, 250, 0.2);
                text-shadow: 0 0 10px rgba(167, 139, 250, 1), 
                             0 0 20px rgba(167, 139, 250, 0.7);
            }

            /* 手機端專用動畫 */
            @keyframes neonPulse {
                0% { 
                    box-shadow: 0 0 20px rgba(167, 139, 250, 0.8), 
                                0 0 40px rgba(167, 139, 250, 0.5),
                                0 0 60px rgba(139, 92, 246, 0.3),
                                inset 0 0 20px rgba(167, 139, 250, 0.3);
                }
                100% { 
                    box-shadow: 0 0 30px rgba(167, 139, 250, 1), 
                                0 0 60px rgba(167, 139, 250, 0.7),
                                0 0 90px rgba(139, 92, 246, 0.5),
                                inset 0 0 30px rgba(167, 139, 250, 0.5);
                }
            }

            @keyframes flowingLight {
                0% { 
                    background-position: 0% 50%;
                    opacity: 0.8;
                }
                25% {
                    opacity: 1;
                }
                50% { 
                    background-position: 100% 50%;
                    opacity: 0.8;
                }
                75% {
                    opacity: 1;
                }
                100% { 
                    background-position: 200% 50%;
                    opacity: 0.8;
                }
            }

            /* 商品區域調整 */
            .products-content {
                width: 100%;
            }

            /* 商品網格 - 手機優化 2列布局 */
            .products-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                padding: 0 5px 10px 5px;
                position: relative;
                z-index: 10;
            }

            #productsContainer {
                width: 100%;
                position: relative;
                z-index: 10;
            }

            .product-card {
                border-radius: 12px;
                box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
                background: #0F0F0F;
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.08);
                transition: all 0.3s ease;
                -webkit-tap-highlight-color: transparent;
                display: flex;
                flex-direction: column;
                width: 100%;
                box-sizing: border-box;
                overflow: hidden;
                margin: 0;
                padding: 0;
                position: relative;
            }

            .product-card:active {
                transform: scale(0.98);
            }

            /* 手機端熱銷標籤調整 */
            .hot-badge {
                border-width: 0 50px 50px 0;
            }

            .hot-badge-text {
                top: 6px;
                right: -40px;
                font-size: 11px;
            }

            .product-image {
                width: 100%;
                height: 180px;
                flex-shrink: 0;
                overflow: hidden;
                background: #0F0F0F;
                position: relative;
                border-radius: 12px 12px 0 0;
                margin: 0;
                padding: 0;
            }

            /**
             * 手機首頁商品主圖：cover 填滿裁切（與桌機 #productsContainer 邏輯一致），避免 contain 上下／左右留白
             */
            #productsContainer .product-image img,
            .product-image img {
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                object-fit: cover !important;
                object-position: center center !important;
                display: block !important;
                border: none !important;
                outline: none !important;
            }

            .product-info {
                flex: 1;
                display: flex;
                flex-direction: column;
                padding: 10px;
                min-height: 124px;
                line-height: normal;
                background: #000000;
            }

            .product-name {
                font-size: 14px;
                font-weight: 600;
                line-height: 1.35;
                color: #FFFFFF;
                word-wrap: break-word;
                word-break: break-all;
                margin-bottom: 6px;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                height: 57px;
                flex-shrink: 0;
                text-align: center;
            }

            .product-name-container {
                gap: 4px;
                width: 100%;
            }

            .product-sales {
                min-height: 20px;
                padding: 2px 8px;
                font-size: 11px;
                align-self: flex-end;
            }

            .product-subtitle {
                display: none !important; /* 隱藏副標題 */
            }

            .product-subtitle:empty {
                display: none;
            }

            .product-subtitle::before {
                content: "💎 ";
                animation: sparkle 1s ease-in-out infinite alternate;
            }

            .product-price-container {
                display: flex;
                flex-direction: column;
                gap: 6px;
                margin-top: auto;
            }

            .product-price {
                font-size: 17px;
                color: #FF3B30;
                font-weight: bold;
                text-align: center;
                padding: 4px 0;
                line-height: 1.3;
            }
            
            .product-price-wrapper {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }
            
            .product-original-price {
                font-size: 14px;
                color: #999;
                text-decoration: line-through;
                font-weight: normal;
            }

                         .option-select {
                 padding: 6px;
                 font-size: 12px;
                 border-radius: 8px;
                 border: 1px solid #E5E5EA;
                 background: rgba(255, 255, 255, 0.8);
                 -webkit-appearance: none;
                 -moz-appearance: none;
                 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='currentColor' 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 8px center;
                 background-size: 16px;
                 padding-right: 30px;
             }

            .add-to-cart {
                background: #000000;
                padding: 9px 8px;
                border-radius: 8px;
                font-size: 13px;
                font-weight: 600;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
                transition: all 0.2s ease;
                -webkit-tap-highlight-color: transparent;
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                color: #FFFFFF;
                border: 2px solid #FFFFFF;
                cursor: pointer;
                width: 100%;
                min-height: 34px;
            }
            
            .add-to-cart:active {
                background: #1a1a1a;
                border-color: #BFBFBF;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.2);
                transform: scale(0.98);
            }

            .add-to-cart.sold-out {
                background: #1a1a1a;
                color: #666666;
                cursor: not-allowed;
                box-shadow: none;
                opacity: 0.6;
                border: 2px solid #333333;
            }

            .add-to-cart.sold-out:active {
                transform: none;
                background: #1a1a1a;
                border-color: #333333;
                box-shadow: none;
            }

            /* 購物車 - 手機端重新設計 */
            .cart {
                position: fixed;
                bottom: 80px;
                right: 15px;
                left: 15px;
                top: auto;
                background: rgba(46, 46, 46, 0.95);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-radius: 16px;
                box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
                border: 0.5px solid rgba(255, 182, 193, 0.3);
                max-height: 200px;
                padding: 12px;
                min-width: auto;
                transform: translateY(120%);
                transition: transform 0.3s ease;
            }

            .cart.show {
                transform: translateY(0);
            }

            .cart h4 {
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 8px;
                color: #1D1D1F;
            }

            .cart-item {
                padding: 6px 0;
                border-bottom: 1px solid rgba(255, 182, 193, 0.2);
            }


            /* 購物車按鈕 */
            .cart-button {
                position: relative;
            }

            .cart-badge {
                position: absolute;
                top: -2px;
                right: -2px;
                background: #FF0000;
                color: white;
                border-radius: 10px;
                min-width: 16px;
                height: 16px;
                font-size: 9px;
                font-weight: 700;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 6px rgba(255, 0, 0, 0.6);
                padding: 0 4px;
                border: 1px solid #000000;
                line-height: 1;
            }


            /* 載入和錯誤狀態 */
            .loading, .error {
                margin: 20px 10px;
                padding: 20px;
                border-radius: 12px;
                background: rgba(240, 248, 255, 0.9);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border: 1px solid rgba(135, 206, 235, 0.2);
            }

            .error {
                background: rgba(191, 191, 191, 0.2);
                border: 1px solid rgba(255, 105, 97, 0.3);
                color: #8B4513;
            }

            /* 隱藏桌面版購物車 */
            .cart:not(.mobile-cart) {
                display: none;
            }
        }

        /* 跑馬燈樣式（預設；girl 主題／檔尾 body .marquee-container 再覆寫為與頂欄同色） */
        .marquee-container {
            background-color: #fff8fc;
            background-image:
                radial-gradient(ellipse 130% 90% at 50% 100%, rgba(252, 191, 214, 0.42) 0%, transparent 55%),
                linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fce4ec 100%);
            color: var(--girl-pink-text, #8d3565);
            padding: 12px 0;
            overflow: hidden;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.88),
                0 4px 18px rgba(233, 30, 99, 0.09);
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-bottom: 1px solid rgba(255, 182, 198, 0.4);
            z-index: 1999;
            min-height: 50px;
        }

        /* 跑馬燈隱藏樣式 */
        .marquee-container.hidden {
            display: none;
        }

        .marquee-text {
            display: block;
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            white-space: nowrap;
            color: var(--girl-pink-text, #8d3565);
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
            letter-spacing: 2px;
            word-spacing: 5px;
            animation: pulse-bounce 2s ease-in-out infinite;
        }

        @keyframes pulse-bounce {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.08);
                opacity: 0.9;
            }
        }

        /* 手機端跑馬燈樣式（與頂欄同色；檔尾 body .marquee-container 再統一） */
        @media (max-width: 768px) {
            .marquee-container {
                background-color: #fff8fc !important;
                background-image:
                    radial-gradient(ellipse 130% 90% at 50% 100%, rgba(252, 191, 214, 0.42) 0%, transparent 55%),
                    linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fce4ec 100%) !important;
                padding: 14px 10px;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border-bottom: 1px solid rgba(255, 182, 198, 0.4) !important;
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.88),
                    0 4px 18px rgba(233, 30, 99, 0.09) !important;
                position: fixed;
                top: 80px;
                z-index: 1999;
                min-height: auto; /* 自適應高度 */
                height: auto; /* 自適應高度 */
            }

            .marquee-text {
                font-size: 15px;
                font-weight: 700;
                color: var(--girl-pink-text, #8d3565) !important;
                text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
                letter-spacing: 1.5px;
                word-spacing: 4px;
                white-space: pre-line; /* 支持 \n 換行 */
                line-height: 1.6;
                text-align: center;
                width: 100%;
                display: block;
            }
        }

        /* 輪播圖片樣式 */
        .carousel-wrapper {
            margin: 15px 10px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            background: transparent;
            position: relative;
            z-index: 2;
        }

        .carousel-container {
            width: 100%;
            height: 400px;
            overflow: hidden;
            position: relative;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            position: relative;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            border-radius: 0;
            background: transparent;
            transition: opacity 0.3s ease;
        }

        .carousel-slide img[data-loading="true"] {
            opacity: 0;
        }

        .carousel-slide .loading-placeholder {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #999;
            font-size: 14px;
            display: none;
        }

        .carousel-slide img[data-loading="true"] + .loading-placeholder {
            display: block;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 2;
        }

        .indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        /* 手機端輪播樣式 */
        @media (max-width: 768px) {
            .carousel-wrapper {
                margin: 10px 5px;
                border-radius: 12px;
                background: transparent;
                position: relative;
                z-index: 2;
            }

            .carousel-container {
                height: 250px;
            }

            .carousel-slide img {
                object-fit: contain;
                background: transparent;
            }

            .indicator {
                width: 6px;
                height: 6px;
            }
        }

        /* iOS風格頂部通知 */
        .ios-notification {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(46, 46, 46, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(191, 191, 191, 0.3);
            border-radius: 16px;
            padding: 12px 20px;
            z-index: 10002;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            min-width: 280px;
            max-width: 90vw;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            text-align: center;
        }

        .ios-notification.success {
            border-color: rgba(191, 191, 191, 0.5);
            box-shadow: 0 8px 32px rgba(191, 191, 191, 0.3);
        }

        .ios-notification.error {
            border-color: rgba(191, 191, 191, 0.5);
            box-shadow: 0 8px 32px rgba(191, 191, 191, 0.3);
        }

        .ios-notification.warning {
            border-color: rgba(191, 191, 191, 0.5);
            box-shadow: 0 8px 32px rgba(191, 191, 191, 0.3);
        }

        .ios-notification.show {
            top: 20px;
        }

        .ios-notification-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .ios-notification-icon {
            font-size: 16px;
            animation: bounce 0.6s ease;
        }

        .ios-notification-text {
            font-size: 14px;
            font-weight: 500;
            color: #FFFFFF;
            line-height: 1.3;
        }

        .ios-notification-subtitle {
            font-size: 12px;
            color: #BFBFBF;
            margin-top: 2px;
        }

        @keyframes bounce {
            0%, 20%, 60%, 100% { transform: translateY(0); }
            40% { transform: translateY(-8px); }
            80% { transform: translateY(-4px); }
        }

        /* 手機端頂部通知適配 */
        @media (max-width: 768px) {
            .ios-notification {
                top: -100px;
                min-width: 260px;
                padding: 10px 16px;
                border-radius: 14px;
            }

            .ios-notification.show {
                top: 15px;
            }

            .ios-notification-text {
                font-size: 13px;
            }

            .ios-notification-subtitle {
                font-size: 11px;
            }
        }

        /* VIP 會員中心樣式 */
        .vip-member-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 10001;
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        
        .vip-member-modal.show {
            display: flex;
        }
        
        .vip-member-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
            border: 2px solid rgba(255, 215, 0, 0.5);
            border-radius: 20px;
            width: 90%;
            max-width: 380px;
            overflow: hidden;
            box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.8);
            animation: slideUpVip 0.4s ease;
            position: relative;
        }
        
        .vip-member-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
            background-size: 400% 400%;
            border-radius: 20px;
            z-index: -1;
            animation: gradientRotate 3s ease infinite;
        }
        
        @keyframes gradientRotate {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        @keyframes slideUpVip {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        .vip-card-header {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 215, 0, 0.3);
        }
        
        .vip-badge {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: #000;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 2px;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
            animation: vipPulse 2s ease-in-out infinite;
        }
        
        @keyframes vipPulse {
            0%, 100% {
                box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
                transform: scale(1.05);
            }
        }
        
        .vip-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            color: #FFD700;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        
        .vip-close-btn:hover {
            background: rgba(255, 215, 0, 0.2);
            transform: rotate(90deg) scale(1.1);
            border-color: #FFD700;
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
        }
        
        .vip-card-body {
            padding: 35px 20px;
            text-align: center;
        }
        
        .vip-avatar-container {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 0 auto 20px;
        }
        
        .vip-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 4px solid #FFD700;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
            object-fit: cover;
        }
        
        .vip-avatar-glow {
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
            animation: glowPulse 2s ease-in-out infinite;
        }
        
        @keyframes glowPulse {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.1); }
        }
        
        .vip-member-name {
            font-size: 22px;
            font-weight: 700;
            color: #FFD700;
            margin-bottom: 8px;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .vip-member-label {
            font-size: 13px;
            color: rgba(255, 215, 0, 0.7);
            letter-spacing: 1px;
        }
        
        .vip-card-actions {
            padding: 0 20px 25px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .vip-action-btn {
            width: 100%;
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: none;
            touch-action: manipulation;
        }
        
        .vip-btn-primary {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: #000;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }
        
        .vip-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
        }
        
        .vip-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #FFD700;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }
        
        .vip-btn-secondary:hover {
            background: rgba(255, 215, 0, 0.1);
            border-color: #FFD700;
            transform: translateY(-2px);
        }
        
        .vip-btn-icon {
            font-size: 18px;
        }
        
        .vip-card-footer {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
            padding: 12px 20px;
            text-align: center;
            font-size: 13px;
            color: rgba(255, 215, 0, 0.8);
            border-top: 1px solid rgba(255, 215, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .vip-sparkle {
            font-size: 12px;
            animation: sparkleRotate 2s ease-in-out infinite;
        }
        
        @keyframes sparkleRotate {
            0%, 100% { transform: rotate(0deg) scale(1); }
            25% { transform: rotate(-10deg) scale(1.1); }
            75% { transform: rotate(10deg) scale(1.1); }
        }

        /* 商品選單彈出界面樣式 */
        .product-menu-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, rgba(224, 242, 254, 0.18) 0%, rgba(186, 230, 253, 0.2) 35%, rgba(8, 47, 73, 0.28) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            display: none;
            align-items: center;
            justify-content: flex-start;
            z-index: 10001;
        }

        .product-menu-modal.show {
            display: flex;
        }

        .product-menu-content {
            background: linear-gradient(180deg, rgba(243, 251, 255, 0.99) 0%, rgba(229, 246, 255, 0.98) 52%, rgba(211, 238, 255, 0.98) 100%);
            width: 85%;
            max-width: 400px;
            height: 100vh;
            display: flex;
            flex-direction: column;
            box-shadow: 4px 0 30px rgba(14, 165, 233, 0.18),
                        10px 0 48px rgba(14, 165, 233, 0.14);
            border-right: 3px solid #38bdf8;
            overflow: hidden;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            position: relative;
        }
        
        
        .product-menu-modal.show .product-menu-content {
            transform: translateX(0);
        }

        .product-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 1px solid rgba(56, 189, 248, 0.26);
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.96) 0%, rgba(14, 165, 233, 0.96) 55%, rgba(2, 132, 199, 0.94) 100%);
            box-shadow: 0 6px 18px rgba(14, 165, 233, 0.18);
        }

        .product-menu-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            text-shadow: 0 1px 3px rgba(8, 47, 73, 0.16);
        }

        .product-menu-close {
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.72);
            font-size: 28px;
            color: #0284c7;
            cursor: pointer;
            padding: 0;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            border-radius: 10px;
            box-shadow: 0 8px 20px rgba(2, 132, 199, 0.16);
        }

        .product-menu-close:hover {
            background: #ffffff;
            border-color: rgba(56, 189, 248, 0.42);
            color: #0369a1;
            box-shadow: 0 10px 24px rgba(2, 132, 199, 0.2);
            transform: scale(1.1);
        }

        .product-menu-body {
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            flex: 1;
            padding: 15px 10px;
            background: linear-gradient(180deg, rgba(245, 252, 255, 0.95) 0%, rgba(230, 247, 255, 0.92) 100%);
        }

        /* 手風琴式分類容器 */
        .product-menu-accordion {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* 一級菜單：分類項 */
        .product-menu-category-item {
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.24);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12);
        }
        
        .product-menu-category-item:hover {
            border-color: rgba(14, 165, 233, 0.34);
            box-shadow: 0 12px 26px rgba(14, 165, 233, 0.16);
        }

        .product-menu-category-header {
            padding: 16px 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #0f3d63;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: space-between;
            user-select: none;
            position: relative;
        }

        .product-menu-category-header:hover {
            background: rgba(186, 230, 253, 0.45);
        }

        .product-menu-category-header.active {
            background: linear-gradient(90deg,
                rgba(186, 230, 253, 0.92) 0%,
                rgba(125, 211, 252, 0.82) 50%,
                rgba(186, 230, 253, 0.92) 100%);
            border-bottom: 1px solid rgba(56, 189, 248, 0.24);
            color: #075985;
        }
        
        .product-menu-category-header.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #38bdf8, #0ea5e9, #0284c7);
            box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
        }

        .product-menu-category-icon {
            font-size: 12px;
            transition: transform 0.3s ease;
            color: #0284c7;
        }

        .product-menu-category-header.active .product-menu-category-icon {
            transform: rotate(90deg);
            color: #0369a1;
        }

        /* 二級菜單：商品列表 */
        .product-menu-products {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: rgba(240, 249, 255, 0.84);
        }

        .product-menu-products.expanded {
            max-height: 800px;
            padding: 10px 8px;
        }

        .product-menu-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #0284c7;
            font-size: 14px;
        }

        .product-menu-product-item {
            padding: 12px 14px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 249, 255, 0.94) 100%);
            border: 1px solid rgba(56, 189, 248, 0.2);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            box-shadow: 0 6px 16px rgba(14, 165, 233, 0.08);
            position: relative;
        }

        .product-menu-product-item:last-child {
            margin-bottom: 0;
        }

        .product-menu-product-item:hover {
            background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(186, 230, 253, 0.88) 100%);
            border-color: rgba(14, 165, 233, 0.34);
            transform: translateX(5px);
            box-shadow: 0 10px 22px rgba(14, 165, 233, 0.16);
        }
        
        .product-menu-product-item:hover::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #38bdf8, #0ea5e9, #0284c7);
            box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
        }
        
        .product-menu-product-item:active {
            transform: translateX(3px) scale(0.98);
        }

        .product-menu-product-name {
            font-size: 13px;
            font-weight: 500;
            color: #0f3d63;
            width: 100%;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
        }

        /* 手機端適配 */
        @media (max-width: 768px) {
            .product-menu-modal {
                justify-content: flex-start;
            }

            .product-menu-content {
                width: 88%;
                max-width: 300px;
                height: 100vh;
                border-radius: 0;
                border-right: 3px solid #38bdf8;
            }

            .product-menu-header {
                padding: 15px 18px;
            }

            .product-menu-header h3 {
                font-size: 17px;
            }

            .product-menu-body {
                padding: 12px 8px;
            }

            .product-menu-accordion {
                gap: 8px;
            }

            .product-menu-category-header {
                padding: 14px 16px;
                font-size: 14px;
            }

            .product-menu-products.expanded {
                padding: 8px 6px;
            }

            .product-menu-product-item {
                padding: 12px 14px;
                min-height: 56px;
            }

            .product-menu-product-name {
                font-size: 13px;
                line-height: 1.4;
            }
        }

        /* 自定義滾動條 */
        .product-menu-categories::-webkit-scrollbar,
        .product-menu-products::-webkit-scrollbar {
            width: 6px;
        }

        .product-menu-categories::-webkit-scrollbar-track,
        .product-menu-products::-webkit-scrollbar-track {
            background: rgba(186, 230, 253, 0.35);
        }

        .product-menu-categories::-webkit-scrollbar-thumb,
        .product-menu-products::-webkit-scrollbar-thumb {
            background: rgba(56, 189, 248, 0.4);
            border-radius: 3px;
        }

        .product-menu-categories::-webkit-scrollbar-thumb:hover,
        .product-menu-products::-webkit-scrollbar-thumb:hover {
            background: rgba(14, 165, 233, 0.58);
        }

        /* 規格選擇彈窗樣式 */
        .spec-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            /* 禁用雙擊縮放和選取 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
        }

        .spec-modal.show {
            display: flex;
        }

        .spec-content {
            background: #000000;
            border-radius: 20px;
            width: 90vw;
            max-width: 500px;
            height: 90vh;
            max-height: 90vh;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            min-height: 0;
            padding: 0;
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.3s ease, transform 0.3s ease;
            position: relative;
            z-index: 1001;
            box-sizing: border-box;
            border: 2px solid #FFFFFF;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            /* 禁用雙擊縮放和選取 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .spec-modal.show .spec-content {
            opacity: 1;
            transform: scale(1);
        }

        /**
         * 規格彈窗內層：手機／預設為縱向堆疊；電腦端於檔末 @media (min-width:769px) 改為左右欄
         */
        .spec-layout {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            min-height: 0;
            width: 100%;
            overflow: visible;
        }

        .spec-layout__media {
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }

        .spec-layout__main {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            min-height: 0;
            overflow: visible;
        }

        .spec-header {
            display: flex;
            flex-direction: column;
            padding: 20px 20px 15px 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.3);
            position: relative;
            flex-shrink: 0;
            background: #000000;
        }

        /* 商品图片轮播区域 */
        .spec-product-images {
            width: 100%;
            margin-bottom: 15px;
            position: relative;
        }

        .spec-images-container {
            width: 100%;
            height: 300px;
            overflow: hidden;
            border-radius: 12px;
            background: transparent;
            position: relative;
            border: 1px solid rgba(191, 191, 191, 0.1);
        }

        /**
         * 主圖右下角：橫式膠囊「🔍 點圖放大」；不攔觸控
         */
        .spec-image-zoom-hint {
            position: absolute;
            z-index: 4;
            right: 12px;
            bottom: 12px;
            top: auto;
            left: auto;
            transform: none;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 0;
            padding: 10px 16px 10px 12px;
            max-width: calc(100% - 24px);
            font-size: 14px;
            line-height: 1.2;
            font-weight: 800;
            color: #ffffff;
            text-shadow: 0 1px 3px rgba(150, 30, 90, 0.45);
            text-align: center;
            white-space: nowrap;
            letter-spacing: 0.04em;
            background: linear-gradient(168deg, #ffe0f0 0%, #ff9dcc 35%, #ff4f98 70%, #ff6eb4 100%);
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.65);
            box-shadow:
                0 6px 24px rgba(255, 70, 140, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            pointer-events: none;
            user-select: none;
            -webkit-user-select: none;
            animation: specImageZoomHintBreathe 2.4s ease-in-out infinite;
        }

        .spec-image-zoom-hint[hidden] {
            display: none !important;
        }

        .spec-image-zoom-hint__emoji {
            display: block;
            flex-shrink: 0;
            font-size: 20px;
            line-height: 1;
            filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
        }

        .spec-image-zoom-hint__text {
            display: block;
            flex-shrink: 0;
        }

        @keyframes specImageZoomHintBreathe {
            0%,
            100% {
                box-shadow:
                    0 6px 22px rgba(255, 80, 140, 0.45),
                    inset 0 1px 0 rgba(255, 255, 255, 0.6);
            }
            50% {
                box-shadow:
                    0 10px 32px rgba(255, 70, 150, 0.62),
                    inset 0 1px 0 rgba(255, 255, 255, 0.65);
            }
        }

        .spec-images-track {
            display: flex;
            transition: transform 0.3s ease;
            height: 100%;
        }

        .spec-image-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .spec-image-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            cursor: pointer;
        }

        /* 图片缩略图容器 */
        .spec-thumbnails-wrapper {
            position: relative;
            margin-top: 10px;
            padding: 0 40px;
        }

        .spec-thumbnails {
            display: flex;
            gap: 8px;
            overflow: hidden;
            padding: 5px 0;
            scroll-behavior: smooth;
        }

        .spec-thumbnails-track {
            display: flex;
            gap: 8px;
            transition: transform 0.3s ease;
        }

        .spec-thumbnail {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid rgba(191, 191, 191, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
            opacity: 0.6;
        }

        .spec-thumbnail:hover {
            opacity: 0.9;
            border-color: rgba(191, 191, 191, 0.4);
        }

        .spec-thumbnail.active {
            border-color: #BFBFBF;
            box-shadow: 0 2px 8px rgba(191, 191, 191, 0.5);
            opacity: 1;
        }

        .spec-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* 缩略图箭头按钮 */
        .thumb-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, rgba(191, 191, 191, 0.9) 0%, rgba(138, 138, 138, 0.9) 100%);
            color: #0F0F0F;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .thumb-nav-btn:hover {
            background: linear-gradient(135deg, #FFFFFF 0%, #BFBFBF 100%);
            transform: translateY(-50%) scale(1.1);
        }

        .thumb-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .thumb-nav-btn.prev {
            left: 5px;
        }

        .thumb-nav-btn.next {
            right: 5px;
        }

        /* 图片预览增强 - 支持左右切换 */
        .preview-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, rgba(191, 191, 191, 0.9) 0%, rgba(138, 138, 138, 0.9) 100%);
            color: #0F0F0F;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10101;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(191, 191, 191, 0.5);
        }

        .preview-nav-btn:hover {
            background: linear-gradient(135deg, #FFFFFF 0%, #BFBFBF 100%);
            transform: translateY(-50%) scale(1.1);
        }

        .preview-nav-btn.prev {
            left: 30px;
        }

        .preview-nav-btn.next {
            right: 30px;
        }

        .preview-image-info {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 10101;
        }

        .spec-product-info {
            flex: 1;
            width: 100%;
            text-align: center;
        }

        .spec-product-name {
            font-size: 18px;
            font-weight: 600;
            color: #FFFFFF;
            margin-bottom: 5px;
            text-align: center;
            line-height: 1.4;
        }

        .spec-product-subtitle {
            font-size: 14px;
            color: #000000;
            margin-bottom: 12px;
            background: #FFFFFF;
            padding: 6px 12px;
            border-radius: 12px;
            font-weight: 600;
            text-align: center;
            box-shadow: 0 3px 12px rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            line-height: 1.4;
            position: relative;
            animation: discountGlow 2s ease-in-out infinite alternate;
        }

        .spec-product-subtitle.promo-title {
            color: #7c2d12;
            background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 48%, #fde68a 100%);
            border: 1px solid rgba(251, 146, 60, 0.32);
            box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18);
            padding: 8px 14px;
            font-weight: 700;
            letter-spacing: 0.3px;
        }

        .spec-product-subtitle:empty {
            display: none;
            margin-bottom: 0;
        }

        .spec-product-subtitle::before {
            content: "💎 ";
            animation: sparkle 1s ease-in-out infinite alternate;
        }

        .price-stock-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 15px 0 0 0;
            padding: 12px;
            background: rgba(46, 46, 46, 0.8);
            border-radius: 12px;
            border: 1px solid rgba(191, 191, 191, 0.2);
            width: 100%;
            box-sizing: border-box;
        }

        .spec-price-box, .spec-stock-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 16px;
            background: rgba(30, 30, 30, 0.9);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(191, 191, 191, 0.2);
            flex: 1;
            min-width: 0;
            transition: all 0.3s ease;
            position: relative;
        }

        .spec-price-box:hover, .spec-stock-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(191, 191, 191, 0.3);
            border-color: rgba(191, 191, 191, 0.4);
        }

        .spec-price-box::before {
            content: "💰";
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 16px;
            opacity: 0.7;
        }

        .spec-stock-box::before {
            content: "📦";
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 16px;
            opacity: 0.7;
        }

        .price-label, .stock-label {
            font-size: 12px;
            font-weight: 500;
            color: #BFBFBF;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .spec-price {
            font-size: 18px;
            font-weight: bold;
            color: #FF3B30;
            text-align: center;
        }

        .spec-stock {
            font-size: 16px;
            font-weight: 600;
            color: #FFFFFF;
            text-align: center;
            transition: all 0.3s ease;
        }

        .spec-stock.low-stock {
            color: #BFBFBF;
            animation: lowStockPulse 2s ease-in-out infinite;
        }

        .spec-stock.out-of-stock {
            color: #8a8a8a;
            animation: outOfStockBlink 1s ease-in-out infinite;
        }

        @keyframes lowStockPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.05); }
        }

        @keyframes outOfStockBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .close-btn {
            background: #FFFFFF;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            color: #000000;
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10;
            transition: all 0.3s ease;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .close-btn:hover {
            background: #E0E0E0;
            color: #000000;
            transform: rotate(90deg) scale(1.1);
        }

        /**
         * 規格彈窗：主圖／縮圖列下方之「商品介紹」
         */
        .spec-product-description {
            width: 100%;
            box-sizing: border-box;
            padding: 0 0 12px 0;
            margin: 0 0 2px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .spec-product-description__label {
            font-family: 'Zen Maru Gothic', 'Noto Sans TC', sans-serif;
            font-size: 12px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.55);
            margin: 0 0 8px 0;
            text-align: center;
            letter-spacing: 0.2em;
        }

        /**
         * 商品介紹：置中、略大字、圓體＋寬鬆行距，貼近 IG 貼文／仙女風
         */
        .spec-product-description__text {
            font-family: 'Zen Maru Gothic', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 16px;
            font-weight: 400;
            line-height: 1.95;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.92);
            text-align: center;
            white-space: pre-wrap;
            word-break: break-word;
            max-width: 28em;
            margin: 0 auto;
        }

        @media (min-width: 769px) {
            .spec-product-description__text {
                font-size: 18px;
                line-height: 2;
            }
        }

        .spec-options {
            flex: 0 0 auto;
            overflow: visible;
            padding: 20px;
        }

        .spec-options h4 {
            font-size: 16px;
            font-weight: 600;
            color: #FFFFFF;
            margin-bottom: 15px;
        }

        .spec-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            width: 100%;
            box-sizing: border-box;
            padding: 10px 6px;
        }

        /**
         * 雙屬性：減少規格區左右 padding，讓籌碼盡量貼齊內容寬度（保 safe-area）
         */
        .spec-options:has(.spec-variant-stack) {
            padding-left: max(6px, env(safe-area-inset-left, 0px));
            padding-right: max(6px, env(safe-area-inset-right, 0px));
            padding-top: 6px;
            padding-bottom: 0;
        }

        .spec-buttons:has(.spec-variant-stack) {
            padding-left: 0;
            padding-right: 0;
        }

        /**
         * 雙屬性：第一列一級（標籤在左、選項橫向），第二列二級在下方同樣橫向
         */
        .spec-variant-stack {
            display: flex;
            flex-direction: column;
            gap: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            padding: 2px 0 8px 0;
        }

        .spec-axis-row {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px 12px;
            width: 100%;
            box-sizing: border-box;
        }

        .spec-axis-row--level1 {
            padding-bottom: 4px;
        }

        .spec-axis-row--level2 {
            flex-wrap: wrap;
            padding-top: 12px;
            margin-top: 4px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            align-items: center;
        }

        .spec-axis-title {
            font-size: 13px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
            margin: 0;
            letter-spacing: 0.02em;
            flex: 0 0 auto;
            min-width: 2.5em;
            max-width: 5.2em;
            line-height: 1.2;
            padding: 2px 0;
            white-space: nowrap;
            align-self: center;
        }

        .spec-axis-chips {
            display: flex;
            flex-direction: row;
            flex: 1 1 0;
            min-width: 0;
            flex-wrap: wrap;
            align-items: center;
            align-content: flex-start;
            justify-content: flex-start;
            gap: 6px 8px;
        }

        /** 一級／二級籌碼：佔滿列寬（已無左側文字欄）、空間不足則斷行或橫向捲 */
        .spec-axis-chips--level1,
        .spec-axis-chips--level2 {
            flex: 1 1 0;
            min-width: 0;
            width: 100%;
            min-height: 44px;
        }

        .spec-btn {
            background: #0F0F0F;
            border: 2px solid rgba(255, 255, 255, 0.4);
            color: #FFFFFF;
            padding: 8px 12px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            min-width: 0;
            box-sizing: border-box;
            overflow: visible;
            text-overflow: ellipsis;
            position: relative;
            margin: 6px 3px;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        /**
         * 雙屬性籌碼：微圓角長方塊；一級略寬、二級略窄，以 min-width＋內距控制，避免死鎖 width 造成瘦高或擠字
         */
        .spec-btn.spec-btn-axis {
            margin: 0;
            font-size: 14px;
            border-radius: 8px;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1.25;
            white-space: nowrap;
            overflow: visible;
            text-overflow: unset;
            max-width: none;
            width: max-content;
            flex-shrink: 0;
        }

        /** 一級（如顏色）：最小舒適寬，長標籤時寬度隨內文延伸 */
        .spec-btn.spec-btn-axis[data-axis="1"] {
            min-width: 2.5em;
            min-height: 40px;
            height: 40px;
            padding: 0 0.6em;
        }

        /** 二級（如尺碼／單一尺寸等）：不設 max-width，避免長字被截斷 */
        .spec-btn.spec-btn-axis[data-axis="2"] {
            min-width: 2.5em;
            min-height: 40px;
            height: 40px;
            padding: 0 0.6em;
        }

        .spec-btn:hover {
            background: #1a1a1a;
            transform: translateY(-1px);
            border-color: #FFFFFF;
        }

        .spec-btn.active {
            background: #FFFFFF;
            color: #000000;
            border-color: #FFFFFF;
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
        }

        .spec-btn.sold-out {
            background: #F5F5F5;
            color: #999;
            border-color: #DDD;
            cursor: not-allowed;
            position: relative;
            text-decoration: line-through;
            opacity: 0.6;
        }

        .spec-btn.sold-out:hover {
            background: #F5F5F5;
            transform: none;
            box-shadow: none;
        }

        .spec-btn.sold-out::after {
            content: "已售完";
            position: absolute;
            top: -6px;
            right: -6px;
            background: #FF6B6B;
            color: white;
            font-size: 10px;
            padding: 2px 4px;
            border-radius: 8px;
            font-weight: 500;
            line-height: 1;
            z-index: 10;
        }

        .quantity-section {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 15px 20px;
            background: rgba(30, 30, 30, 0.7);
            border-radius: 12px;
            width: 100%;
            margin: 0;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        .quantity-label {
            font-size: 16px;
            font-weight: 500;
            color: #FFFFFF;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .quantity-btn {
            background: #FFFFFF;
            border: 2px solid #FFFFFF;
            width: 35px;
            height: 35px;
            border-radius: 17px;
            color: #000000;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .quantity-btn:hover {
            transform: scale(1.1);
            background: #E0E0E0;
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
        }

        .quantity-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .quantity-input {
            width: 60px;
            height: 35px;
            text-align: center;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            color: #FFFFFF;
            background: rgba(0, 0, 0, 0.8);
            /* 禁用雙擊縮放但保留選擇功能（輸入框需要） */
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .quantity-input:focus {
            outline: none;
            border-color: #FFFFFF;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
        }

        .modal-bottom-buttons {
            display: flex;
            gap: 8px;
            padding: 15px 20px 12px 20px;
            width: 100%;
            box-sizing: border-box;
            border-top: 2px solid rgba(255, 255, 255, 0.3);
            flex-shrink: 0;
            background: #000000;
        }

        /**
         * 規格彈窗內：猜你喜歡（橫向捲動，一屏約 2.5 卡露出右側提示可滑）
         */
        .spec-guess-like {
            width: 100%;
            box-sizing: border-box;
            flex-shrink: 0;
            padding: 0 0 20px 0;
            background: #000000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .spec-guess-like[hidden] {
            display: none !important;
        }

        .spec-guess-like__head {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 4px 0 10px 0;
            padding: 0 16px;
        }

        .spec-guess-like__head-line {
            flex: 1;
            min-width: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        }

        .spec-guess-like__title {
            font-size: 14px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.92);
            white-space: nowrap;
            letter-spacing: 0.2em;
        }

        .spec-guess-like__scroller {
            width: 100%;
            box-sizing: border-box;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x;
            scroll-snap-type: x mandatory;
            padding: 0 0 2px 0;
        }

        .spec-guess-like__scroller::-webkit-scrollbar {
            height: 3px;
        }

        .spec-guess-like__scroller::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.25);
            border-radius: 2px;
        }

        .spec-guess-like__track {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 10px;
            width: max-content;
            min-width: 100%;
            box-sizing: border-box;
            padding: 0 10px 6px 10px;
        }

        .spec-guess-like__card {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            min-height: 0;
            max-width: 200px;
            background: #141414;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            padding: 8px;
            box-sizing: border-box;
            cursor: pointer;
            scroll-snap-align: start;
        }

        .spec-guess-like__img {
            position: relative;
            width: 100%;
            aspect-ratio: 3 / 4;
            border-radius: 10px;
            overflow: hidden;
            background: #1e1e1e;
        }

        .spec-guess-like__img--ph {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: #555;
        }

        .spec-guess-like__imgEl {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .spec-guess-like__name {
            font-size: 12px;
            line-height: 1.3;
            font-weight: 600;
            color: #f0f0f0;
            margin: 6px 0 4px 0;
            min-height: calc(1.3em * 2);
            max-height: calc(1.3em * 2);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
        }

        .spec-guess-like__prices {
            font-size: 12px;
            line-height: 1.35;
            min-height: 1.4em;
        }

        .spec-guess-like__now {
            color: #d4a574;
            font-weight: 700;
        }

        .spec-guess-like__strike {
            color: #888;
            text-decoration: line-through;
            margin-right: 6px;
        }

        .spec-guess-like__btn {
            width: 100%;
            margin-top: 6px;
            border: 1px solid rgba(255, 255, 255, 0.22);
            background: #3a3a3a;
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            padding: 7px 6px;
            border-radius: 8px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .add-to-cart-modal {
            flex: 9;
            background: #FFFFFF;
            color: #000000;
            border: 2px solid #FFFFFF;
            padding: 15px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
            position: relative;
            z-index: 1002;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1.4;
            box-sizing: border-box;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .add-to-cart-modal:hover {
            box-shadow: 0 6px 16px rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

        .close-modal-btn {
            flex: 1;
            background: #0F0F0F;
            color: #FFFFFF;
            border: 2px solid rgba(255, 255, 255, 0.4);
            padding: 15px;
            border-radius: 12px;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 1002;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            box-sizing: border-box;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .close-modal-btn:hover {
            background: #1a1a1a;
            color: #FFFFFF;
            border-color: #FFFFFF;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
        }

        .close-modal-btn:active {
            transform: translateY(0);
        }

        /* 手機端觸控反饋 */
        @media (hover: none) and (pointer: coarse) {
            .close-modal-btn:active {
                transform: scale(0.95) !important;
                transition: transform 0.1s !important;
            }
            
            .add-to-cart-modal:active {
                transform: scale(0.98) !important;
                transition: transform 0.1s !important;
            }
        }

        .add-to-cart-modal:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(255, 255, 255, 0.5);
            background: #1a1a1a;
        }

        .add-to-cart-modal:active {
            transform: translateY(0);
        }

        /* 手機端優化 */
        @media (max-width: 768px) {
            .spec-modal {
                align-items: stretch;
                justify-content: stretch;
                padding: 0;
                background: linear-gradient(180deg, rgba(247, 252, 255, 0.995) 0%, rgba(233, 247, 255, 0.995) 42%, rgba(216, 240, 255, 0.995) 100%);
            }

            .spec-content {
                border-radius: 0;
                padding: 0;
                width: 100vw;
                height: 100vh;
                min-height: 100vh;
                max-height: 100vh;
                height: 100dvh;
                min-height: 100dvh;
                max-height: 100dvh;
                max-width: 100vw;
                overflow-x: hidden;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                border: none;
                box-shadow: none;
            }
            
            .spec-header {
                padding: 12px 12px 10px 12px;
                flex-shrink: 0;
                overflow: visible;
            }

            /* 彈窗可整頁捲動後，主圖可較高、較有存在感（舊 160px） */
            .spec-images-container {
                height: 260px;
                height: clamp(200px, 52dvh, 320px);
            }

            .spec-image-zoom-hint {
                right: 8px;
                bottom: 8px;
                top: auto;
                transform: none;
                padding: 6px 12px 6px 8px;
                max-width: calc(100% - 20px);
                font-size: 12px;
                border-radius: 999px;
                gap: 4px;
            }

            .spec-image-zoom-hint__emoji {
                font-size: 16px;
            }

            .spec-thumbnail {
                width: 45px;
                height: 45px;
            }

            .spec-thumbnails-wrapper {
                margin-top: 6px;
                padding: 0 35px;
            }

            .spec-thumbnails-track {
                gap: 6px;
            }

            .thumb-nav-btn {
                width: 28px;
                height: 28px;
                font-size: 14px;
            }

            .preview-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .preview-nav-btn.prev {
                left: 15px;
            }

            .preview-nav-btn.next {
                right: 15px;
            }

            .preview-image-info {
                bottom: 20px;
                font-size: 12px;
                padding: 6px 12px;
            }

            .spec-product-name {
                font-size: 14px;
                text-align: center;
                line-height: 1.3;
            }
            
            .spec-product-images {
                margin-bottom: 8px;
            }
            
            .spec-product-subtitle {
                font-size: 12px;
                padding: 4px 8px;
                margin-bottom: 8px;
            }
            
            .price-stock-container {
                margin-top: 8px;
                padding: 8px;
            }

            .spec-product-description {
                padding: 0 6px 12px 6px;
            }

            .spec-product-description__text {
                font-size: 15px;
                letter-spacing: 0.07em;
                max-width: 100%;
            }
            
            .close-btn {
                top: 8px;
                right: 8px;
                width: 26px;
                height: 26px;
                font-size: 16px;
            }
            
            .spec-options {
                padding: 12px;
                flex: 0 0 auto;
                min-width: 0;
                overflow: visible;
            }

            .spec-options:has(.spec-variant-stack) {
                padding-left: max(2px, env(safe-area-inset-left, 0px));
                padding-right: max(2px, env(safe-area-inset-right, 0px));
                padding-top: 6px;
            }
            
            .quantity-section {
                margin: 0;
                width: 100%;
                padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px)) 12px;
                flex-shrink: 0;
            }
            
            .modal-bottom-buttons {
                padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px;
                flex-shrink: 0;
            }

            /** 有雙屬性 .spec-variant-stack 時改為佔滿寬，避免 4 欄網格只吃到第一欄變成直向窄條 */
            .spec-buttons:has(.spec-variant-stack) {
                display: block;
                width: 100%;
                max-width: 100%;
                padding: 4px 0;
            }

            /** 單列多規格（僅平鋪 .spec-btn）仍用四欄格線 */
            .spec-buttons:not(:has(.spec-variant-stack)) {
                gap: 8px;
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                width: 100%;
                box-sizing: border-box;
                padding: 4px;
                min-height: 0;
                align-content: start;
            }

            .spec-buttons:not(:has(.spec-variant-stack)) .spec-btn {
                padding: 6px 4px;
                font-size: 11px;
                text-align: center;
                min-height: 36px;
                max-height: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                word-break: break-all;
                line-height: 1.2;
                position: relative;
                width: 100%;
                box-sizing: border-box;
                overflow: visible;
                white-space: normal;
                margin: 0;
            }

            /** 雙屬性：籌碼橫向、按鈕夠大、勿強制 100% 寬；選項多時橫向捲動 */
            .spec-variant-stack {
                width: 100%;
                max-width: 100%;
            }

            .spec-axis-chips--level1,
            .spec-axis-chips--level2 {
                flex-wrap: nowrap;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
                min-height: 48px;
            }

            /**
             * 雙屬性籌碼寬高由 [data-axis] 規則控制，此處不設 height: auto 以免撐成瘦高条
             */
            .spec-variant-stack .spec-btn,
            .spec-variant-stack .spec-btn.spec-btn-axis {
                font-size: 14px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin: 0;
            }

            .spec-btn.sold-out::after {
                font-size: 8px;
                padding: 1px 3px;
                top: -4px;
                right: -4px;
                z-index: 10;
            }

            .modal-bottom-buttons {
                gap: 8px;
                margin-top: 0;
                padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px;
                flex-shrink: 0;
            }

            .add-to-cart-modal {
                padding: 10px;
                font-size: 14px;
                background: #000000;
                color: #FFFFFF;
                border: 2px solid #FFFFFF;
                flex: 9;
                border-radius: 8px;
                min-height: 42px;
                height: 42px;
            }
            
            .add-to-cart-modal:active {
                background: #1a1a1a;
                transform: scale(0.98);
            }

            .close-modal-btn {
                padding: 10px;
                font-size: 18px;
                flex: 1;
                border-radius: 8px;
                border-width: 1px;
                min-height: 42px;
                height: 42px;
            }

            .close-modal-btn:hover {
                transform: translateY(-1px);
                background: rgba(255, 255, 255, 0.1);
                box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
            }

            .price-stock-container {
                gap: 8px;
                padding: 6px;
                margin: 6px 0 0 0;
                width: 100%;
                box-sizing: border-box;
            }

            .spec-price-box, .spec-stock-box {
                padding: 5px 8px;
                flex: 1;
                min-width: 0;
            }

            .price-label, .stock-label {
                font-size: 9px;
                margin-bottom: 2px;
            }

            .spec-price {
                font-size: 14px;
            }

            .spec-stock {
                font-size: 12px;
            }

            .spec-price-box::before, .spec-stock-box::before {
                display: none;
            }

            .cart-stats-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 6px;
                margin: 10px 0;
                padding: 10px;
            }

            .cart-stat-item {
                padding: 6px 2px;
                border: 1px solid rgba(139, 92, 246, 0.3);
                border-radius: 6px;
                background: transparent;
            }

            .cart-stat-label {
                font-size: 9px;
                margin-bottom: 3px;
                color: #FFFFFF;
            }

            .cart-stat-value {
                font-size: 12px;
                color: #FF0000;
            }

            .quantity-section {
                margin: 0;
                padding: 10px 12px;
                width: 100%;
                box-sizing: border-box;
                flex-shrink: 0;
            }

            .quantity-controls {
                gap: 10px;
            }

            .quantity-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

            .quantity-input {
                width: 50px;
                height: 32px;
                font-size: 14px;
            }
        }

        /* 購物車頁面：全屏遮罩 + 右側滑入面板 */
        .cart-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10002;
            display: none;
            flex-direction: row;
            align-items: stretch;
            justify-content: flex-end;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.48);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .cart-page.show {
            display: flex;
        }

        /**
         * SweetAlert2 全彈層必須高於 `.cart-page` (10002)，否則從購物車內觸發的 Swal 會被遮在抽屜底下
         */
        .swal2-container {
            z-index: 20050 !important;
        }

        /**
         * 右側抽屜本體：手機滿寬；電腦端見下方 @media (min-width:769px) 加寬
         */
        .cart-page-panel {
            width: 100%;
            max-width: 100%;
            flex: 0 0 auto;
            min-height: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #0a0015 100%);
            box-shadow:
                -4px 0 28px rgba(0, 0, 0, 0.35),
                -8px 0 40px rgba(139, 92, 246, 0.12);
            border-left: 2px solid rgba(139, 92, 246, 0.35);
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        @media (min-width: 769px) {
            .cart-page-panel {
                width: min(92vw, 580px);
                max-width: min(92vw, 580px);
            }
        }

        .cart-page.show .cart-page-panel {
            transform: translateX(0);
        }

        /**
         * 購物車開啟時隱藏底部導覽／電腦端頂欄右側快捷列（關閉後由 JS 移除 class 恢復）
         */
        body.cart-page-open .bottom-nav {
            display: none !important;
        }

        .cart-page-header {
            background: rgba(15, 15, 15, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 20px 15px;
            border-bottom: 2px solid rgba(139, 92, 246, 0.4);
            display: flex;
            align-items: center;
            gap: 15px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 20px rgba(139, 92, 246, 0.3);
        }

        .cart-page-title {
            color: #e0d4ff;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.8),
                         0 0 20px rgba(139, 92, 246, 0.5);
        }

        .cart-close-btn {
            background: rgba(139, 92, 246, 0.2);
            border: 2px solid rgba(139, 92, 246, 0.5);
            width: 36px;
            height: 36px;
            border-radius: 10px;
            color: #e0d4ff;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .cart-close-btn:hover {
            background: rgba(139, 92, 246, 0.4);
            border-color: #a78bfa;
            color: #FFFFFF;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
            transform: scale(1.1) rotate(90deg);
        }

        .cart-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
        }

        .cart-empty {
            text-align: center;
            color: #a78bfa;
            font-size: 16px;
            margin-top: 100px;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
        }

        .cart-empty-icon {
            font-size: 64px;
            filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .cart-product-group {
            background: transparent;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 2px solid rgba(139, 92, 246, 0.3);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 12px;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .cart-product-group:hover {
            background: rgba(139, 92, 246, 0.05);
            transform: translateY(-1px);
            box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
            border-color: rgba(139, 92, 246, 0.5);
        }

        .cart-product-header {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
        }

        .cart-item-image {
            width: 60px;
            height: 60px;
            background: rgba(46, 46, 46, 0.8);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #BFBFBF;
            font-size: 12px;
            flex-shrink: 0;
            overflow: hidden;
            border: 1px solid rgba(191, 191, 191, 0.2);
        }

        .cart-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
        }

        .cart-product-info {
            flex: 1;
            min-width: 0;
        }

        .cart-item-name {
            color: #FFFFFF;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.3;
        }

        .cart-spec-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 182, 193, 0.2);
        }

        .cart-spec-row:last-child {
            border-bottom: none;
            margin-bottom: 8px;
        }

        .cart-item-spec {
            color: #BFBFBF;
            font-size: 13px;
            background: rgba(191, 191, 191, 0.2);
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 500;
            border: 1px solid rgba(255, 105, 180, 0.2);
        }

        .cart-spec-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cart-quantity-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(46, 46, 46, 0.8);
            border-radius: 20px;
            padding: 4px;
            border: 1px solid rgba(191, 191, 191, 0.2);
        }

        .cart-qty-btn {
            background: linear-gradient(135deg, #BFBFBF 0%, #8a8a8a 100%);
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 14px;
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(255, 105, 180, 0.3);
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .cart-qty-btn:hover {
            background: linear-gradient(135deg, #FFFFFF 0%, #BFBFBF 100%);
            transform: scale(1.1);
            box-shadow: 0 3px 8px rgba(255, 105, 180, 0.4);
        }

        .cart-qty-btn:disabled {
            background: rgba(255, 255, 255, 0.2);
            cursor: not-allowed;
            transform: none;
        }

        .cart-qty-display {
            background: rgba(46, 46, 46, 0.9);
            color: #FFFFFF;
            font-weight: 600;
            width: 36px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            font-size: 14px;
            border: 1px solid rgba(191, 191, 191, 0.2);
        }

        .cart-item-delete {
            background: rgba(255, 59, 48, 0.8);
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 14px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .cart-item-delete:hover {
            background: #FF3B30;
            transform: scale(1.1);
        }

        .cart-product-summary {
            background: rgba(30, 30, 30, 0.8);
            border-radius: 8px;
            padding: 10px 12px;
            margin-top: 8px;
            border-top: 1px solid rgba(255, 182, 193, 0.3);
        }

        .cart-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .cart-summary-row:last-child {
            margin-bottom: 0;
        }

        .cart-summary-label {
            color: #FFFFFF;
            font-size: 12px;
        }

        .cart-summary-value {
            color: #BFBFBF;
            font-size: 13px;
            font-weight: 600;
        }

        .cart-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin: 12px 0;
            padding: 12px;
            background: transparent;
            border-radius: 12px;
            border: none;
        }

        .cart-stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 8px 4px;
            transition: all 0.3s ease;
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 8px;
            background: transparent;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
        }

        .cart-stat-item:hover {
            transform: translateY(-2px);
            border-color: rgba(139, 92, 246, 0.5);
            background: rgba(139, 92, 246, 0.05);
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
        }

        .cart-stat-label {
            font-size: 10px;
            color: #FFFFFF;
            margin-bottom: 4px;
            white-space: nowrap;
            font-weight: 500;
        }

        .cart-stat-value {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.2;
            color: #FF0000;
        }

        .cart-stat-original {
            color: #FF0000;
        }

        .cart-stat-discount {
            color: #FF0000;
        }

        .cart-stat-savings {
            color: #FF0000;
        }

        .cart-stat-total {
            color: #FF0000;
        }

        .cart-bottom {
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 2px solid rgba(139, 92, 246, 0.4);
            padding: 20px 15px 30px 15px;
            box-shadow: 0 -2px 20px rgba(139, 92, 246, 0.3);
        }

        .cart-member-line {
            margin-bottom: 12px;
            padding: 12px 14px;
            background: rgba(0, 40, 32, 0.45);
            border-radius: 12px;
            border: 1px solid rgba(0, 196, 120, 0.35);
            box-shadow: 0 0 12px rgba(0, 200, 130, 0.12);
        }

        .cart-member-line__text {
            margin: 0 0 10px 0;
            font-size: 13px;
            line-height: 1.5;
            color: #c8f5e6;
        }

        .cart-member-line__text--ok {
            margin: 0;
            color: #8ef0c2;
        }

        /**
         * 購物車 LINE 登入鈕上方：依後台 member_extra 顯示折扣說明
         */
        .cart-member-line__text--login-hint {
            margin: 0 0 10px 0;
            font-size: 13px;
            line-height: 1.45;
            text-align: center;
            color: #b8f0dd;
            font-weight: 500;
        }

        .cart-member-line__btn {
            width: 100%;
            padding: 10px 14px;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            color: #fff;
            background: linear-gradient(135deg, #06b6d4 0%, #059669 100%);
            box-shadow: 0 2px 12px rgba(5, 150, 105, 0.45);
        }

        .cart-member-line__btn:active {
            transform: scale(0.99);
        }

        /**
         * LINE 登入：品牌綠、左白圖示＋右側「使用 LINE 快速登入」
         */
        .cart-member-line--embed-line-only {
            padding: 8px 0 0 0;
            background: transparent;
            border: none;
            box-shadow: none;
        }

        .cart-member-line--embed-line-only .cart-member-line__btn--line {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
            min-height: 48px;
            padding: 10px 14px;
            border: none;
            border-radius: 10px;
            color: #ffffff;
            /* LINE 官方主色 */
            background: #06C755;
            box-shadow: 0 2px 10px rgba(6, 199, 85, 0.45);
        }

        .cart-member-line__btn-label {
            font-size: 15px;
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: 0.02em;
        }

        .cart-member-line--embed-line-only .cart-member-line__btn--line:hover {
            background: #05b34c;
        }

        .cart-member-line--embed-line-only .cart-member-line__btn--line:active {
            transform: scale(0.99);
        }

        .cart-member-line__line-icon {
            display: block;
            flex-shrink: 0;
            width: 28px;
            height: 28px;
        }

        /**
         * 內嵌於 `.cart-summary` 金額列下方之 LINE 區塊（與總計同卡）
         */
        .cart-member-line--embed {
            margin-top: 12px;
            margin-bottom: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .cart-summary-content .cart-member-line--embed {
            border-top: 1px dashed rgba(139, 92, 246, 0.35);
            padding-top: 12px;
        }

        .cart-summary-content .cart-member-line--embed-line-only {
            border-top: none;
            padding-top: 8px;
        }

        .cart-summary {
            display: flex;
            flex-direction: column;
            margin-bottom: 12px;
            padding: 15px 18px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 12px;
            border: 2px solid rgba(139, 92, 246, 0.4);
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.2),
                        inset 0 0 15px rgba(139, 92, 246, 0.1);
        }

        .cart-summary-content {
            display: flex;
            flex-direction: column;
            gap: 6px;
            width: 100%;
        }

        .cart-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2px 0;
        }

        .cart-summary-label {
            color: #e0d4ff;
            font-size: 14px;
            font-weight: 500;
            text-shadow: 0 0 5px rgba(139, 92, 246, 0.4);
        }

        .cart-summary-original-price {
            color: #999;
            font-size: 14px;
            text-decoration: line-through;
            font-weight: 400;
        }

        .cart-summary-savings {
            color: #a78bfa;
            font-size: 14px;
            font-weight: 600;
            text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
        }

        .cart-summary-final-label {
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
        }

        .cart-summary-total {
            color: #ffffff;
            font-size: 22px;
            font-weight: bold;
            text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                         0 0 25px rgba(167, 139, 250, 1);
        }

        .cart-summary-divider {
            height: 2px;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(139, 92, 246, 0.5), 
                transparent);
            margin: 8px 0;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
        }

        .cart-checkout-btn {
            width: 100%;
            background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
            color: #ffffff;
            border: 2px solid #a78bfa;
            padding: 16px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
                        0 0 40px rgba(139, 92, 246, 0.3);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            position: relative;
            overflow: hidden;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .cart-checkout-btn::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 30%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 70%
            );
            animation: buttonShine 3s linear infinite;
        }
        
        @keyframes buttonShine {
            0% { transform: translate(-100%, -100%) rotate(45deg); }
            100% { transform: translate(100%, 100%) rotate(45deg); }
        }

        .cart-checkout-btn:hover {
            background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
            transform: translateY(-2px);
            box-shadow: 0 0 25px rgba(167, 139, 250, 0.8),
                        0 0 50px rgba(139, 92, 246, 0.5);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }

        .cart-checkout-btn:disabled {
            background: rgba(139, 92, 246, 0.2);
            color: rgba(224, 212, 255, 0.4);
            border-color: rgba(139, 92, 246, 0.3);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            text-shadow: none;
        }

        /**
         * 購物車抽屜底部（金額列＋立即結帳）：手機版縮減內距與字級，降低整塊高度
         */
        @media (max-width: 768px) {
            .cart-bottom {
                padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)) 10px;
                border-top-width: 1px;
            }

            .cart-summary {
                margin-bottom: 6px;
                padding: 8px 10px;
                border-radius: 10px;
                border-width: 1px;
            }

            .cart-summary-content {
                gap: 2px;
            }

            .cart-summary-row {
                padding: 0;
            }

            .cart-summary-label {
                font-size: 12px;
            }

            .cart-summary-original-price,
            .cart-summary-savings {
                font-size: 12px;
            }

            .cart-summary-final-label {
                font-size: 14px;
            }

            .cart-summary-total {
                font-size: 17px;
            }

            .cart-summary-divider {
                height: 1px;
                margin: 4px 0;
            }

            .cart-checkout-btn {
                padding: 10px 12px;
                font-size: 15px;
                border-radius: 10px;
                border-width: 1px;
            }

            .cart-summary-content .cart-member-line--embed {
                margin-top: 8px;
                padding-top: 8px;
            }

            .cart-summary-content .cart-member-line--embed-line-only {
                margin-top: 6px;
                padding-top: 4px;
            }
        }

        /* 廣告彈窗樣式 */
        .ad-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            animation: fadeIn 0.5s ease-out;
        }

        .ad-popup-overlay.show {
            display: flex;
        }

        .ad-popup-modal {
            border-radius: 20px;
            padding: 0;
            max-width: 90vw;
            max-height: 80vh;
            width: 400px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.6s ease-out;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        /* 文字模式樣式 */
        #adPopupTextContainer {
            padding: 20px;
            border-radius: 12px;
            min-height: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #adPopupTextContainer .ad-popup-text {
            width: 100%;
            line-height: 1.8;
            white-space: pre-wrap;
            word-wrap: break-word;
            font-size: 16px;
            text-align: center;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(50px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .ad-popup-header {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px 50px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .ad-popup-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            text-align: center;
            width: 100%;
        }

        /* 右上角關閉按鈕 */
        .ad-popup-close-x {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            color: #333333;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .ad-popup-close-x:hover {
            background: rgba(255, 255, 255, 1);
            transform: rotate(90deg) scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .ad-popup-content {
            padding: 25px;
            color: white;
            text-align: center;
            background: rgba(255, 255, 255, 0.05);
        }

        .ad-popup-content h3 {
            margin: 0 0 15px 0;
            font-size: 20px;
            font-weight: 700;
            color: #FFD700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .ad-popup-text {
            line-height: 1.6;
            font-size: 16px;
            margin-bottom: 20px;
            white-space: pre-line;
            word-wrap: break-word;
        }

        .ad-popup-footer {
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.1);
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: stretch;
        }

        /** 彈窗底部雙按鈕：主按鈕與 Telegram 各佔約 50% */
        .ad-popup-footer .ad-popup-primary-btn,
        .ad-popup-footer .ad-popup-telegram-btn {
            flex: 1 1 50%;
            max-width: none;
            width: auto;
            min-width: 0;
            box-sizing: border-box;
        }

        /** 廣告彈窗內 Telegram 外連（外觀與主按鈕同級） */
        .ad-popup-telegram-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            gap: 8px;
            text-decoration: none;
            text-align: center;
            color: #ffffff;
            background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
            border: none;
            box-shadow: 0 4px 15px rgba(34, 158, 217, 0.35);
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .ad-popup-telegram-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 158, 217, 0.5);
            color: #ffffff;
        }

        .ad-popup-telegram-btn:active {
            transform: translateY(0);
        }

        .ad-popup-line-btn {
            width: 100%;
            max-width: 300px;
            border: none;
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: white;
            /* 禁用雙擊縮放和觸控高亮 */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .ad-popup-line-btn {
            background: linear-gradient(135deg, #00C300 0%, #00B900 100%);
            box-shadow: 0 4px 15px rgba(0, 195, 0, 0.3);
        }

        .ad-popup-line-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 195, 0, 0.5);
            background: linear-gradient(135deg, #00D000 0%, #00C300 100%);
        }

        .ad-popup-line-btn:active {
            transform: translateY(0);
        }

        /** 設定檔驅動的主按鈕（文案／顏色由 showAdPopup 套用，勿與 .ad-popup-line-btn 共用以免主題強制 LINE 漸層） */
        .ad-popup-primary-btn {
            width: 100%;
            max-width: 300px;
            border: none;
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.94);
            color: #333333;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .ad-popup-primary-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }

        .ad-popup-primary-btn:active {
            transform: translateY(0);
        }

        /* 手機端適配 */
        @media (max-width: 768px) {
            .ad-popup-modal {
                width: 95%;
                max-width: 350px;
                margin: 20px;
            }
            
            .ad-popup-close-x {
                top: 10px;
                right: 10px;
                width: 28px;
                height: 28px;
                font-size: 20px;
            }

            .ad-popup-header {
                padding: 18px 45px;
            }

            .ad-popup-title {
                font-size: 16px;
                text-align: center;
            }

            .ad-popup-content {
                padding: 20px 15px;
            }

            .ad-popup-content h3 {
                font-size: 18px;
                margin-bottom: 12px;
            }

            .ad-popup-text {
                font-size: 14px;
                margin-bottom: 15px;
            }

            .ad-popup-footer {
                padding: 12px 15px;
                gap: 10px;
            }

            .ad-popup-line-btn,
            .ad-popup-primary-btn,
            .ad-popup-telegram-btn {
                padding: 12px 16px;
                font-size: 13px;
            }
        }








        /* 結單倒計時和到貨日期（舊版已移除，使用下方重寫樣式） */
        
        /* 橫幅圖片容器 */
        .banner-container {
            width: 100%;
            margin: 0 0 10px;
            overflow: hidden;
            border-radius: 0;
            position: relative;
            z-index: 2;
        }

        /* 橫幅圖片 */
        .banner-image {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 0;
        }

        /* 在手機端移除內邊距和圓角 */
        @media (max-width: 768px) {
            .banner-container {
                padding: 0;
                position: relative;
                z-index: 2;
            }
            
            .banner-image {
                border-radius: 0;
            }
        }


        /* 桌面端樣式 */
        @media (min-width: 769px) {
            /**
             * 頂欄高度與「全寬 + 完整不裁切」在固定高度下無法同時成立（見幾何比例）。
             * 折衷：用 --header-logo-max-h 限制頂欄高度，圖片等比完整顯示、置中；可能兩側留白。
             * 若要再矮／再高，只改 body 上這一個變數即可（padding-top 會跟著變）。
             */
            body {
                --header-logo-max-h: 96px;
                padding-top: var(--header-logo-max-h);
            }

            /**
             * 電腦端頂欄：淺灰白斜向漸層 + 柔和光影（參考紙質／石紋質感），覆寫主題粉紅頂欄
             */
            .header {
                padding: 0;
                height: var(--header-logo-max-h);
                min-height: var(--header-logo-max-h);
                max-height: var(--header-logo-max-h);
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                box-sizing: border-box;
                overflow: hidden;
                color: #1a1a1a;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                border: none !important;
                border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.92),
                    0 4px 14px rgba(0, 0, 0, 0.06) !important;
                background-color: #f7f7f7 !important;
                background-image:
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23a)' opacity='0.35'/%3E%3C/svg%3E"),
                    radial-gradient(ellipse 95% 75% at 12% 100%, rgba(200, 200, 200, 0.42) 0%, transparent 58%),
                    radial-gradient(ellipse 90% 70% at 88% 0%, rgba(255, 255, 255, 0.85) 0%, transparent 52%),
                    linear-gradient(135deg, #fdfdfd 0%, #ececec 38%, #e8e8e8 52%, #f2f2f2 72%, #ffffff 100%) !important;
                background-size: 140px 140px, 100% 100%, 100% 100%, 100% 100% !important;
                background-blend-mode: soft-light, normal, normal, normal !important;
            }

            .header::before {
                content: '';
                position: absolute;
                inset: 0;
                pointer-events: none;
                z-index: 0;
                opacity: 0.45;
                background-image: repeating-linear-gradient(
                    -12deg,
                    transparent,
                    transparent 2px,
                    rgba(255, 255, 255, 0.04) 2px,
                    rgba(255, 255, 255, 0.04) 3px
                );
                mix-blend-mode: overlay;
            }
            
            .header img {
                position: relative !important;
                z-index: 1;
                left: auto !important;
                top: auto !important;
                display: block !important;
                width: auto !important;
                max-width: 100% !important;
                height: auto !important;
                max-height: var(--header-logo-max-h) !important;
                object-fit: contain !important;
                object-position: center center !important;
            }
            
            .header-btn {
                min-width: 60px;
                font-size: 12px;
            }
            
            .header-btn-icon {
                width: 28px;
                height: 28px;
            }
            
            .header-btn-icon svg {
                width: 28px;
                height: 28px;
            }
            
            .mobile-cart {
                display: none;
            }

            /**
             * 桌面版主內容：取消 1200px 上限，讓分類與商品區善用視窗寬度（僅保留適度內邊距）。
             */
            .container {
                display: block;
                max-width: none !important;
                width: 100% !important;
                margin-left: auto !important;
                margin-right: auto !important;
                padding: 20px clamp(14px, 2.5vw, 36px) !important;
                box-sizing: border-box !important;
            }

            .order-deadline-container {
                display: none !important;
            }

            /**
             * 商品網格（桌面）：依數量固定比例——1→100%、2→50%:50%、3→33.33%×3、4→25%×4、≥5→每列 5 欄（各約 20%，多列換行）
             * 使用 #productsContainer 提高優先級，避免被全域／主題樣式蓋回 2 欄。
             */
            #productsContainer .products-grid {
                gap: 20px;
            }

            #productsContainer .products-grid > .product-card {
                min-width: 0;
            }

            #productsContainer .products-grid.products-grid--cols-1 {
                grid-template-columns: 1fr !important;
                justify-items: center;
            }

            #productsContainer .products-grid.products-grid--cols-1 .product-card {
                max-width: min(680px, 100%);
                width: 100%;
            }

            #productsContainer .products-grid.products-grid--cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            #productsContainer .products-grid.products-grid--cols-3 {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            }

            #productsContainer .products-grid.products-grid--cols-4 {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }

            #productsContainer .products-grid.products-grid--cols-5 {
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
            }

            .product-card {
                height: auto;
            }

            /**
             * 電腦端：商品主圖區加高（手機仍用下方 max-width:768px 規則）。
             * 主圖使用 cover 填滿寬高，避免寬欄位下 contain 造成左右淺底留白（視覺貼近手機窄卡）。
             */
            .product-image {
                height: 300px;
                background: #0F0F0F;
            }

            #productsContainer .products-grid.products-grid--cols-1 .product-image {
                height: 380px;
            }

            .product-image img {
                object-fit: cover !important;
            }

            .product-info {
                min-height: auto;
                height: auto !important;
                background: #000000;
            }

            /**
             * 商品名稱固定兩行；銷量獨立第三行右側
             */
            #productsContainer .product-name {
                display: -webkit-box !important;
                -webkit-box-orient: vertical !important;
                -webkit-line-clamp: 2 !important;
                line-clamp: 2 !important;
                overflow: hidden !important;
                height: auto !important;
                max-height: none !important;
                min-height: calc(1.4em * 2);
                margin-bottom: 0 !important;
                word-break: break-word !important;
                text-align: center;
            }

            #productsContainer .product-sales-row {
                margin-top: 4px;
            }
        }

        /* ================================
           訂單查詢彈窗樣式
           ================================ */
        .order-query-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 10003;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .order-query-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .order-query-content {
            background: linear-gradient(135deg, rgba(10, 0, 21, 0.95) 0%, rgba(26, 0, 51, 0.95) 50%, rgba(10, 0, 21, 0.95) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            border: 2px solid rgba(139, 92, 246, 0.5);
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            overflow-x: hidden;
            box-shadow: 0 0 40px rgba(139, 92, 246, 0.5),
                        0 0 80px rgba(139, 92, 246, 0.3),
                        0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.4s ease;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* 有結果時變成不透明 */
        .order-query-content.has-results {
            background: rgba(255, 255, 255, 0.98);
        }

        /* 確保內部內容不會超出圓角 */
        .order-query-content > * {
            position: relative;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* 手機端從頂部滑入動畫 */
        @keyframes slideDownFromTop {
            from { 
                transform: translateY(-100%);
            }
            to { 
                transform: translateY(0);
            }
        }

        /* 手機端滑出動畫 */
        @keyframes slideUpToTop {
            from { 
                transform: translateY(0);
            }
            to { 
                transform: translateY(-100%);
            }
        }

        .order-query-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px 30px;
            border-bottom: 2px solid rgba(139, 92, 246, 0.4);
            position: sticky;
            top: 0;
            background: rgba(15, 15, 15, 0.9);
            z-index: 10;
            border-radius: 24px 24px 0 0;
            box-shadow: 0 2px 20px rgba(139, 92, 246, 0.3);
        }

        .order-query-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #e0d4ff;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.8),
                         0 0 20px rgba(139, 92, 246, 0.5);
        }

        .order-query-close {
            background: rgba(139, 92, 246, 0.2);
            border: 2px solid rgba(139, 92, 246, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 10px;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: #e0d4ff;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
        }

        .order-query-close:hover {
            background: rgba(139, 92, 246, 0.4);
            border-color: #a78bfa;
            color: #FFFFFF;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
            transform: scale(1.1) rotate(90deg);
        }

        .order-query-input-section {
            padding: 30px;
            background: rgba(0, 0, 0, 0.4);
        }

        .order-query-hint {
            color: #666;
            margin-bottom: 15px;
            font-size: 0.95rem;
            text-align: center;
        }

        .order-query-input-container {
            display: flex;
            gap: 12px;
        }

        .order-query-input {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid rgba(139, 92, 246, 0.4);
            border-radius: 12px;
            font-size: 1.1rem;
            font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
            transition: all 0.3s ease;
            background: rgba(0, 0, 0, 0.5);
            color: #e0d4ff;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.2),
                        inset 0 0 10px rgba(139, 92, 246, 0.1);
        }

        .order-query-input:focus {
            outline: none;
            border-color: #a78bfa;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                        inset 0 0 15px rgba(139, 92, 246, 0.15);
            color: #ffffff;
        }
        
        .order-query-input::placeholder {
            color: rgba(224, 212, 255, 0.4);
        }

        .order-query-btn {
            padding: 15px 30px;
            background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
            color: white;
            border: 2px solid #a78bfa;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .order-query-btn:hover {
            background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        }

        .order-query-btn:active {
            transform: translateY(0) scale(0.98);
        }

        .order-query-loading {
            padding: 60px 30px;
            text-align: center;
            color: #666;
        }

        .order-query-loading-spinner {
            font-size: 3rem;
            margin-bottom: 15px;
            animation: spin 2s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .order-query-error {
            padding: 30px;
            text-align: center;
            color: #d32f2f;
            background: #ffebee;
            border-radius: 12px;
            margin: 20px;
        }

        /* 重試按鈕 */
        .order-query-retry-btn {
            padding: 10px 24px;
            background: linear-gradient(135deg, #BFBFBF 0%, #8a8a8a 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .order-query-retry-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
        }

        .order-query-retry-btn:active {
            transform: translateY(0);
        }

        .order-query-results {
            padding: 30px;
            border-radius: 0 0 24px 24px;
        }

        /* 最後一個訂單項目底部圓角 */
        .order-query-list .order-query-item:last-child {
            margin-bottom: 0;
        }

        .order-query-results-header {
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .order-query-count {
            font-size: 1.1rem;
            font-weight: 600;
            color: #e0d4ff;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
        }

        .order-query-list {
            display: grid;
            gap: 20px;
        }

        .order-query-item {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 16px;
            padding: 20px;
            border: 2px solid rgba(139, 92, 246, 0.4);
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
        }

        .order-query-item:hover {
            border-color: #a78bfa;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
            transform: translateY(-2px);
        }

        .order-query-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0;
            transition: all 0.3s ease;
            gap: 10px;
        }

        .order-query-item-header:hover {
            background: rgba(139, 92, 246, 0.1);
        }

        .order-query-item-number {
            font-size: 1.2rem;
            font-weight: 700;
            color: #e0d4ff;
            flex: 1;
            text-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
        }

        .order-query-item-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: #a78bfa;
            text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
        }

        .order-query-item-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 15px;
        }

        .order-query-info-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .order-query-info-icon {
            font-size: 1.2rem;
            filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.6));
        }

        .order-query-info-label {
            font-size: 0.85rem;
            color: #a78bfa;
        }

        .order-query-info-value {
            font-size: 0.95rem;
            color: #e0d4ff;
            font-weight: 500;
            text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
        }

        .order-query-status-badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .order-query-status-shipped {
            background: rgba(139, 92, 246, 0.2);
            color: #e0d4ff;
            border: 1px solid rgba(139, 92, 246, 0.5);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
        }

        .order-query-status-pending {
            background: rgba(139, 92, 246, 0.15);
            color: #a78bfa;
            border: 1px solid rgba(139, 92, 246, 0.4);
            box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
        }

        .order-query-items {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid rgba(139, 92, 246, 0.3);
        }

        .order-query-items-title {
            font-size: 1rem;
            font-weight: 600;
            color: #e0d4ff;
            margin-bottom: 12px;
            text-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
        }

        .order-query-product {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: white;
            border-radius: 12px;
            margin-bottom: 10px;
        }

        /* 商品分組樣式 */
        .order-query-product-group {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(139, 92, 246, 0.3);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
        }

        .order-query-product-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(139, 92, 246, 0.3);
        }

        .order-query-product-image {
            width: 70px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid rgba(139, 92, 246, 0.4);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
        }

        .order-query-product-main-info {
            flex: 1;
        }

        .order-query-product-info {
            flex: 1;
        }

        .order-query-product-name {
            font-weight: 600;
            color: #e0d4ff;
            margin-bottom: 8px;
            font-size: 0.9rem;
            line-height: 1.4;
            text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
        }

        .order-query-option-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .order-query-discount-tag {
            display: inline-block;
            background: linear-gradient(135deg, #BFBFBF 0%, #8a8a8a 100%);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .order-query-product-option {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 4px;
        }

        .order-query-product-quantity {
            font-size: 0.95rem;
            color: #BFBFBF;
            font-weight: 600;
        }

        /* 規格列表樣式 */
        .order-query-options-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .order-query-option-item {
            background: rgba(0, 0, 0, 0.3);
            padding: 12px;
            border-radius: 8px;
            border-left: 3px solid #8b5cf6;
            box-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
        }

        .order-query-option-name {
            font-weight: 500;
            color: #e0d4ff;
            font-size: 0.95rem;
            flex: 1;
            text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
        }

        .order-query-option-details {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.9rem;
            color: #666;
        }

        .order-query-option-quantity {
            color: #666;
        }

        .order-query-option-total {
            font-weight: 600;
            color: #BFBFBF;
        }

        /* 訂單詳情區域 */
        .order-query-details {
            padding-top: 15px;
            border-top: 2px solid #f0f0f0;
            margin-top: 15px;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 物流查詢區域 */
        .order-query-logistics-section {
            margin-top: 15px;
            width: 100%;
        }

        .order-query-logistics-btn {
            padding: 12px 20px;
            background: linear-gradient(135deg, #BFBFBF 0%, #8a8a8a 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .order-query-logistics-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
        }

        .order-query-logistics-btn:active {
            transform: translateY(0);
        }

        .order-query-logistics-status {
            margin-top: 15px;
            padding: 20px;
            background: rgba(46, 46, 46, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 12px;
            border: 2px solid rgba(255, 105, 180, 0.3);
            animation: slideDown 0.3s ease;
        }

        .order-query-logistics-title {
            font-size: 1rem;
            font-weight: 600;
            color: #BFBFBF;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(255, 105, 180, 0.2);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .order-query-timeline {
            position: relative;
            padding-left: 30px;
        }

        .order-query-timeline::before {
            content: '';
            position: absolute;
            left: 8px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: rgba(191, 191, 191, 0.2);
        }

        .order-query-timeline-item {
            position: relative;
            padding: 0 0 20px 20px;
        }

        .order-query-timeline-item:last-child {
            padding-bottom: 0;
        }

        .order-query-timeline-item::before {
            content: '';
            position: absolute;
            left: -26px;
            top: 0;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: white;
            border: 3px solid #FFB6C1;
        }

        .order-query-timeline-item.latest::before {
            background: #BFBFBF;
            box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.2);
            width: 16px;
            height: 16px;
            left: -27px;
        }

        .order-query-timeline-item.latest {
            background: rgba(255, 182, 193, 0.1);
            padding: 10px;
            border-radius: 8px;
            margin-left: -10px;
            padding-left: 30px;
        }

        .order-query-timeline-time {
            font-size: 0.9rem;
            color: #BFBFBF;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .order-query-timeline-item:not(.latest) .order-query-timeline-time {
            color: #999;
            font-weight: 400;
        }

        .order-query-timeline-text {
            color: #333;
            font-weight: 500;
            line-height: 1.5;
        }

        .order-query-empty {
            padding: 60px 30px;
            text-align: center;
        }

        .order-query-empty-icon {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .order-query-empty-text {
            font-size: 1.1rem;
            color: #666;
        }

        /* 響應式設計 */
        @media (max-width: 768px) {
            .order-query-modal {
                padding: 0;
                align-items: flex-start;
            }

            .order-query-modal.show {
                align-items: flex-start;
            }

            .order-query-content {
                max-width: 100%;
                height: auto;
                max-height: 50vh;
                border-radius: 0 0 20px 20px;
                margin: 0;
                /* 使用從頂部滑入的動畫 */
                animation: slideDownFromTop 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            }

            /* 有結果時變成全屏 */
            .order-query-content.has-results {
                height: 100vh;
                max-height: 100vh;
                border-radius: 0;
            }

            .order-query-header {
                padding: 20px;
                border-radius: 0;
            }

            .order-query-title {
                font-size: 1.3rem;
            }

            .order-query-input-section {
                padding: 20px;
            }

            .order-query-input-container {
                flex-direction: column;
            }

            .order-query-results {
                padding: 20px;
                padding-bottom: 30px;
                border-radius: 0;
            }

            .order-query-item-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .order-query-item-info {
                grid-template-columns: 1fr;
            }

            .order-query-empty {
                padding: 40px 20px;
            }

            .order-query-product-image {
                width: 60px;
                height: 60px;
            }
        }

             .category-banner-link {
                 display: block;
                 margin: 0 15px 15px;
                 border-radius: 16px;
                 overflow: hidden;
                 box-shadow: 0 6px 18px rgba(255, 182, 227, 0.18);
             }

             .category-banner-link img {
                 display: block;
                 width: 100%;
                 height: auto;
             }

        :root {
            --sky-bg-1: #f2fbff;
            --sky-bg-2: #d9f1ff;
            --sky-bg-3: #bfe6ff;
            --sky-surface: rgba(255, 255, 255, 0.92);
            --sky-surface-strong: rgba(255, 255, 255, 0.97);
            --sky-primary: #38bdf8;
            --sky-primary-strong: #0ea5e9;
            --sky-primary-deep: #0284c7;
            --sky-border: rgba(56, 189, 248, 0.24);
            --sky-border-strong: rgba(2, 132, 199, 0.35);
            --sky-shadow: rgba(14, 165, 233, 0.18);
            --sky-shadow-strong: rgba(2, 132, 199, 0.24);
            --sky-text: #0f3d63;
            --sky-text-soft: #4b6b88;
        }

        body {
            background: linear-gradient(180deg, var(--sky-bg-1) 0%, var(--sky-bg-2) 42%, var(--sky-bg-3) 100%);
            color: var(--sky-text);
        }

        .header,
        .bottom-nav,
        .footer,
        .marquee-container {
            background: linear-gradient(180deg, rgba(14, 165, 233, 0.96) 0%, rgba(2, 132, 199, 0.93) 100%);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.28);
            box-shadow: 0 10px 30px rgba(14, 165, 233, 0.24);
        }

        .marquee-container {
            background: linear-gradient(90deg, rgba(236, 250, 255, 0.98) 0%, rgba(220, 244, 255, 0.98) 52%, rgba(207, 239, 255, 0.98) 100%);
            border-top: 1px solid rgba(255, 255, 255, 0.7);
            border-bottom: 1px solid rgba(56, 189, 248, 0.24);
            box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12);
        }

        .vip-welcome-overlay,
        .ad-popup-overlay,
        .order-query-modal,
        .image-preview-modal {
            background: rgba(8, 47, 73, 0.38);
        }

        .vip-welcome-modal,
        .order-query-content,
        .cart,
        .faq-item,
        .guarantee-block,
        .feature-nav-item,
        .product-card,
        .cart-product-group,
        .order-query-item,
        .order-query-logistics-status {
            background: linear-gradient(135deg, var(--sky-surface-strong) 0%, rgba(240, 249, 255, 0.96) 48%, rgba(224, 242, 254, 0.94) 100%);
            border-color: var(--sky-border) !important;
            box-shadow: 0 12px 32px var(--sky-shadow);
            color: var(--sky-text);
        }

        .cart-page {
            background: rgba(8, 47, 73, 0.38);
        }

        .cart-page-panel {
            background: linear-gradient(180deg, #eaf8ff 0%, #d8f0ff 50%, #b9e5ff 100%);
        }

        .cart-page-header,
        .order-query-header {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.96) 0%, rgba(2, 132, 199, 0.94) 100%);
            border-color: rgba(255, 255, 255, 0.24);
            box-shadow: 0 8px 24px rgba(14, 165, 233, 0.22);
        }

        .cart-page-title,
        .order-query-title,
        .footer-copyright {
            color: #000000;
            text-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
        }

        .marquee-text {
            color: #0f5c8a !important;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55) !important;
            letter-spacing: 1px;
        }

        .cart-content,
        .order-query-input-section,
        .order-query-results,
        #adPopupTextContainer,
        .product-info {
            background: rgba(255, 255, 255, 0.72);
            color: var(--sky-text);
        }

        .categories,
        .carousel-wrapper {
            background: transparent;
        }

        .carousel-wrapper {
            box-shadow: 0 12px 30px rgba(14, 165, 233, 0.18);
        }

        .category-btn,
        .add-to-cart,
        .vip-confirm-button,
        .order-query-btn,
        .order-query-retry-btn,
        .cart-checkout-btn,
        .ad-popup-line-btn,
        .main-contact-btn {
            background: linear-gradient(135deg, var(--sky-primary) 0%, var(--sky-primary-strong) 55%, var(--sky-primary-deep) 100%);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.38);
            box-shadow: 0 10px 24px var(--sky-shadow-strong);
            text-shadow: none;
        }

        .category-btn {
            color: var(--sky-text);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(224, 242, 254, 0.92) 100%);
            border: 2px solid var(--sky-border-strong);
            box-shadow: 0 6px 20px rgba(14, 165, 233, 0.14);
        }

        .category-btn:hover,
        .feature-nav-item:hover,
        .guarantee-block:hover,
        .faq-item:hover,
        .product-card:hover {
            border-color: var(--sky-border-strong) !important;
            box-shadow: 0 16px 34px rgba(14, 165, 233, 0.2);
        }

        .category-btn.active {
            color: #ffffff;
            background: linear-gradient(135deg, var(--sky-primary) 0%, var(--sky-primary-strong) 55%, var(--sky-primary-deep) 100%);
            border-color: rgba(255, 255, 255, 0.58);
            box-shadow: 0 12px 26px rgba(2, 132, 199, 0.26);
        }

        .category-btn.active::before {
            background: linear-gradient(45deg, #dff6ff, #7dd3fc, #38bdf8, #0ea5e9, #dff6ff);
        }

        .faq-question,
        .guarantee-title,
        .feature-nav-item,
        .feature-nav-text,
        .cart-item-name,
        .cart-summary-label,
        .cart-summary-final-label,
        .cart-summary-value,
        .ad-popup-title,
        .ad-popup-text,
        .order-query-item-number,
        .order-query-product-name,
        .order-query-info-value,
        .order-query-items-title,
        .loading {
            color: var(--sky-text);
        }

        .product-name {
            color: #0f5c8a;
        }

        .product-sales {
            color: #0284c7;
        }

        .faq-icon,
        .guarantee-desc,
        .product-original-price,
        .footer-description,
        .footer-link,
        .loading,
        .order-query-hint,
        .order-query-info-label,
        .order-query-empty-text,
        .cart-empty,
        .cart-item-spec,
        .cart-stat-label {
            color: var(--sky-text-soft);
        }

        .product-image,
        .cart-item-image,
        .option-select,
        .order-query-input,
        .preview-nav-btn {
            background: rgba(255, 255, 255, 0.92);
            border-color: var(--sky-border-strong);
            color: var(--sky-text);
        }

        /** 桌面首頁商品卡主圖：壓過主題淺底，與深色卡面一致 */
        @media (min-width: 769px) {
            #productsContainer .product-image {
                background: #0F0F0F;
            }
        }

        .product-subtitle,
        .cart-stat-item,
        .cart-quantity-controls,
        .order-query-discount-tag,
        .order-query-option-name {
            background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(125, 211, 252, 0.78) 100%);
            color: #075985;
            border-color: rgba(2, 132, 199, 0.18);
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12);
        }

        .product-price,
        .cart-summary-total,
        .cart-stat-total,
        .cart-stat-savings,
        .order-query-item-price,
        .order-query-option-total {
            color: #ef4444;
        }

        .cart-summary-original-price,
        .cart-stat-original {
            color: #64748b;
        }

        .add-to-cart:hover,
        .vip-confirm-button:hover,
        .order-query-btn:hover,
        .order-query-retry-btn:hover,
        .cart-checkout-btn:hover,
        .ad-popup-line-btn:hover,
        .main-contact-btn:hover {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            box-shadow: 0 14px 28px rgba(2, 132, 199, 0.28);
        }

        .cart-close-btn,
        .order-query-close,
        .ad-popup-close-x,
        .image-preview-close,
        .cart-qty-btn {
            background: rgba(255, 255, 255, 0.95);
            color: var(--sky-primary-deep);
            border: 1px solid rgba(255, 255, 255, 0.72);
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.18);
        }

        .cart-close-btn:hover,
        .order-query-close:hover,
        .ad-popup-close-x:hover,
        .image-preview-close:hover,
        .cart-qty-btn:hover {
            background: #ffffff;
            color: var(--sky-primary-deep);
            border-color: rgba(2, 132, 199, 0.22);
            box-shadow: 0 12px 24px rgba(2, 132, 199, 0.24);
        }

        .bottom-nav-item {
            color: rgba(255, 255, 255, 0.78);
        }

        .bottom-nav-icon {
            background: rgba(255, 255, 255, 0.16);
        }

        .bottom-nav-item.active {
            color: #ffffff;
        }

        .bottom-nav-item.active .bottom-nav-icon,
        .bottom-nav-item:hover .bottom-nav-icon {
            background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 55%, #0284c7 100%);
            box-shadow: 0 10px 26px rgba(14, 165, 233, 0.28);
        }

        .bottom-nav-item .cart-badge,
        .cart-badge,
        .hot-badge {
            box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3);
        }

        .bottom-nav-item .cart-badge,
        .cart-badge {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            border-color: #ffffff;
        }

        .hot-badge {
            border-color: transparent #0ea5e9 transparent transparent;
        }

        .footer-link:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.16);
        }

        .footer-description,
        .footer-link {
            color: rgba(255, 255, 255, 0.88);
        }

        .vip-crown {
            filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.26));
        }

        .vip-title {
            background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 14px rgba(14, 165, 233, 0.18));
        }

        .vip-divider {
            background: linear-gradient(90deg, transparent, #38bdf8, transparent);
        }

        .vip-message,
        .vip-description {
            color: var(--sky-text);
            text-shadow: none;
        }

        .cart-item,
        .cart-spec-row,
        .order-query-item,
        .order-query-option-item,
        .order-query-answer-content {
            border-color: rgba(56, 189, 248, 0.16);
        }

        .error {
            background: rgba(255, 255, 255, 0.88);
            color: #9a3412;
            border: 1px solid rgba(251, 146, 60, 0.35);
        }

        .loading {
            background: rgba(255, 255, 255, 0.84);
        }

        .spec-modal {
            background: linear-gradient(180deg, rgba(255, 245, 250, 0.98) 0%, rgba(255, 236, 246, 0.985) 40%, rgba(255, 221, 238, 0.99) 100%);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .spec-content {
            background: linear-gradient(180deg, rgba(255, 252, 254, 0.99) 0%, rgba(255, 244, 250, 0.98) 52%, rgba(255, 231, 243, 0.98) 100%);
            border: 1px solid rgba(255, 105, 180, 0.24);
            box-shadow: 0 18px 42px rgba(255, 105, 180, 0.18);
        }

        .spec-header {
            background: linear-gradient(180deg, rgba(255, 248, 252, 0.98) 0%, rgba(255, 238, 247, 0.96) 100%);
            border-bottom: 1px solid rgba(255, 105, 180, 0.18);
        }

        .spec-product-info {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 244, 250, 0.3) 100%);
            border: 1px solid rgba(255, 105, 180, 0.14);
            border-radius: 18px;
            padding: 12px 14px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
        }

        .spec-images-container {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 250, 0.96) 100%);
            border: 1px solid rgba(255, 105, 180, 0.16);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        .spec-image-slide {
            background: rgba(255, 244, 250, 0.58);
        }

        .spec-thumbnail {
            background: rgba(255, 248, 252, 0.96);
            border-color: rgba(255, 105, 180, 0.18);
            opacity: 0.8;
        }

        .spec-thumbnail:hover,
        .spec-thumbnail.active {
            border-color: rgba(255, 79, 163, 0.42);
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.16);
            opacity: 1;
        }

        .thumb-nav-btn {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 236, 246, 0.94) 100%);
            color: #d04b8d;
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.14);
            border: 1px solid rgba(255, 105, 180, 0.2);
        }

        .thumb-nav-btn:hover {
            background: linear-gradient(135deg, #ffffff 0%, rgba(255, 243, 249, 0.98) 100%);
        }

        .spec-product-name {
            color: #a63d74;
            text-shadow: none;
        }

        .spec-product-subtitle {
            color: #b14f82;
            background: linear-gradient(135deg, rgba(255, 247, 252, 0.98) 0%, rgba(255, 232, 244, 0.92) 100%);
            border: 1px solid rgba(255, 105, 180, 0.16);
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.1);
        }

        .spec-product-subtitle.promo-title {
            color: #a33671;
            background: linear-gradient(135deg, rgba(255, 241, 248, 0.98) 0%, rgba(255, 220, 236, 0.94) 58%, rgba(255, 200, 226, 0.96) 100%);
            border: 1px solid rgba(255, 105, 180, 0.22);
            box-shadow: 0 10px 24px rgba(255, 105, 180, 0.14);
        }

        .price-stock-container {
            background: rgba(255, 245, 250, 0.82);
            border: 1px solid rgba(255, 105, 180, 0.14);
        }

        .spec-price-box,
        .spec-stock-box {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 242, 248, 0.95) 100%);
            border: 1px solid rgba(255, 105, 180, 0.16);
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.08);
        }

        .spec-price-box:hover,
        .spec-stock-box:hover {
            box-shadow: 0 12px 24px rgba(255, 105, 180, 0.12);
            border-color: rgba(255, 79, 163, 0.24);
        }

        .price-label,
        .stock-label {
            color: #b25b88;
        }

        .spec-price {
            color: #ff4fa3;
        }

        .spec-stock {
            color: #a63d74;
        }

        .spec-stock.low-stock {
            color: #e26a9f;
        }

        .spec-stock.out-of-stock {
            color: #b4a0ad;
            font-weight: 700;
        }

        @keyframes specActivePulse {
            0% {
                box-shadow:
                    0 10px 20px rgba(255, 105, 180, 0.16),
                    0 0 0 0 rgba(255, 105, 180, 0.22);
                transform: translateY(0);
            }

            50% {
                box-shadow:
                    0 14px 26px rgba(255, 105, 180, 0.24),
                    0 0 0 4px rgba(255, 105, 180, 0.1);
                transform: translateY(-2px);
            }

            100% {
                box-shadow:
                    0 10px 20px rgba(255, 105, 180, 0.16),
                    0 0 0 0 rgba(255, 105, 180, 0);
                transform: translateY(0);
            }
        }

        .spec-product-description {
            border-bottom-color: rgba(255, 105, 180, 0.18);
        }

        .spec-product-description__label {
            color: #c77b9e;
        }

        .spec-product-description__text {
            color: #8d3d6a;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
        }

        .spec-options {
            background: rgba(255, 244, 250, 0.72);
            border-top: 1px solid rgba(255, 105, 180, 0.12);
        }

        .spec-btn {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 248, 0.94) 100%);
            border: 1px solid rgba(255, 105, 180, 0.22);
            color: #9a4574;
            box-shadow: 0 6px 16px rgba(255, 105, 180, 0.08);
        }

        .spec-btn:hover {
            background: linear-gradient(135deg, rgba(255, 245, 250, 0.98) 0%, rgba(255, 224, 239, 0.9) 100%);
            border-color: rgba(255, 79, 163, 0.3);
        }

        .spec-btn.active {
            background: linear-gradient(135deg, #ff5ca9 0%, #ff7fbe 45%, #ff3f98 100%);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.9);
            font-weight: 700;
            letter-spacing: 0.2px;
            animation: specActivePulse 1.8s ease-in-out infinite;
        }

        .spec-btn.sold-out {
            background: linear-gradient(135deg, rgba(248, 242, 246, 0.96) 0%, rgba(240, 232, 237, 0.94) 100%);
            color: #b39aa7;
            border-color: rgba(214, 192, 202, 0.9);
            border-style: dashed;
            box-shadow: none;
            text-decoration: line-through;
            opacity: 0.82;
            filter: saturate(0.72);
        }

        .spec-btn.sold-out:hover {
            background: linear-gradient(135deg, rgba(248, 242, 246, 0.96) 0%, rgba(240, 232, 237, 0.94) 100%);
            border-color: rgba(214, 192, 202, 0.9);
            transform: none;
            box-shadow: none;
        }

        .spec-btn.sold-out::after {
            background: #c88aa7;
            color: #ffffff;
            box-shadow: 0 6px 14px rgba(200, 138, 167, 0.18);
        }

        .quantity-section,
        .modal-bottom-buttons {
            background: rgba(255, 247, 252, 0.8);
            border-top: 1px solid rgba(255, 105, 180, 0.14);
        }

        .quantity-btn,
        .quantity-input,
        .close-modal-btn {
            background: rgba(255, 255, 255, 0.98);
            color: #c84f8c;
            border: 1px solid rgba(255, 105, 180, 0.22);
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.08);
        }

        .quantity-btn:hover,
        .close-modal-btn:hover {
            background: #ffffff;
            color: #b73d7b;
            border-color: rgba(255, 79, 163, 0.3);
            box-shadow: 0 12px 22px rgba(255, 105, 180, 0.12);
        }

        .quantity-btn:disabled {
            background: rgba(245, 236, 242, 0.92);
            color: #bca7b3;
            border-color: rgba(220, 198, 209, 0.8);
            box-shadow: none;
        }

        .quantity-input {
            color: #9a4574;
        }

        .quantity-input:focus {
            border-color: rgba(255, 79, 163, 0.34);
            box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.12);
        }

        .add-to-cart-modal {
            background: linear-gradient(135deg, #ff69b4 0%, #ff86c5 55%, #ff4fa3 100%);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 0 12px 24px rgba(255, 105, 180, 0.18);
        }

        .add-to-cart-modal:hover {
            background: linear-gradient(135deg, #ff5ba8 0%, #ff4fa3 100%);
            box-shadow: 0 14px 28px rgba(255, 79, 163, 0.22);
        }

        .spec-guess-like {
            background: linear-gradient(180deg, rgba(255, 252, 254, 0.99) 0%, rgba(255, 244, 250, 0.96) 100%) !important;
        }

        .spec-guess-like__head-line {
            background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.28), transparent) !important;
        }

        .spec-guess-like__title {
            color: #a63d74 !important;
        }

        .spec-guess-like__card {
            background: #ffffff;
            border: 1px solid rgba(255, 105, 180, 0.2);
        }

        .spec-guess-like__img {
            background: #fff5f9;
        }

        .spec-guess-like__name {
            color: #8d3d6a;
        }

        .spec-guess-like__now {
            color: #ff4fa3;
        }

        .spec-guess-like__btn {
            background: linear-gradient(180deg, #f3e8ee 0%, #e9dbe4 100%);
            color: #8d3d6a;
            border: 1px solid rgba(255, 105, 180, 0.3);
        }

        body.login-gate-active {
            overflow: auto !important;
            background: linear-gradient(180deg, #fff7fb 0%, #ffe6f2 48%, #ffd8ea 100%) !important;
        }

        body.login-gate-active > *:not(.swal2-container) {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        body.login-gate-active > .swal2-container {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        .cart-bottom {
            background: linear-gradient(180deg, rgba(238, 249, 255, 0.98) 0%, rgba(221, 243, 255, 0.98) 100%);
            border-top: 1px solid rgba(56, 189, 248, 0.22);
            box-shadow: 0 -10px 26px rgba(14, 165, 233, 0.12);
        }

        .cart-summary {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 249, 255, 0.95) 100%);
            border: 1px solid rgba(56, 189, 248, 0.2);
            box-shadow: 0 10px 24px rgba(14, 165, 233, 0.1);
        }

        .cart-summary-row {
            color: #0f3d63;
        }

        .cart-summary-label,
        .cart-summary-final-label {
            color: #0f5c8a;
            text-shadow: none;
        }

        .cart-summary-original-price {
            color: #64748b;
        }

        .cart-summary-savings {
            color: #0284c7;
            text-shadow: none;
        }

        .cart-summary-total {
            color: #0ea5e9;
            text-shadow: none;
        }

        .cart-summary-divider {
            background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.42), transparent);
            box-shadow: none;
        }

        .cart-qty-display {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.94) 100%);
            color: #0284c7;
            border: 1px solid rgba(56, 189, 248, 0.22);
            box-shadow: 0 6px 14px rgba(14, 165, 233, 0.1);
        }

        .cart-checkout-btn {
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
        }

        .cart-checkout-btn:hover {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            box-shadow: 0 14px 28px rgba(2, 132, 199, 0.24);
        }

        :root {
            --girl-pink: rgba(255, 105, 180, 0.4);
            --girl-pink-strong: #ff69b4;
            --girl-pink-deep: #ff4fa3;
            --girl-pink-soft: #fff4fa;
            --girl-pink-surface: rgba(255, 255, 255, 0.9);
            --girl-pink-border: rgba(255, 105, 180, 0.24);
            --girl-pink-shadow: rgba(255, 105, 180, 0.18);
            --girl-pink-text: #8d3565;
            --girl-pink-text-soft: #b25b88;
        }

        body,
        body.login-gate-active {
            background:
                radial-gradient(ellipse 120% 70% at 50% 0%, rgba(252, 191, 214, 0.38) 0%, transparent 52%),
                linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fce4ec 100%) !important;
            color: var(--girl-pink-text) !important;
        }

        .header,
        .deadline-wrapper,
        .banner-container,
        .carousel-wrapper,
        .product-card,
        .product-menu-content,
        .spec-content,
        .cart-page-panel,
        .cart-summary,
        .order-query-content,
        .image-preview-content,
        .vip-member-card,
        .vip-welcome-modal,
        .ios-notification-content {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 244, 250, 0.92) 100%) !important;
            border: 1px solid var(--girl-pink-border) !important;
            box-shadow: 0 16px 40px var(--girl-pink-shadow) !important;
        }

        .container,
        .cart-bottom,
        .modal-bottom-buttons,
        .quantity-section {
            background: transparent !important;
        }

        .category-btn,
        .product-menu-category-header,
        .cart-item,
        .cart-product-group,
        .cart-stat-item,
        .order-query-item,
        .order-query-input,
        .product-menu-category-content,
        .spec-option-item,
        .spec-btn,
        .contact-option-btn,
        .preview-nav-btn,
        .thumb-nav-btn,
        .cart-qty-btn,
        .quantity-btn,
        .quantity-input,
        .close-modal-btn,
        .cart-close-btn,
        .product-menu-close,
        .order-query-btn,
        .order-query-logistics-btn,
        .order-query-retry-btn {
            background: var(--girl-pink-surface) !important;
            border: 1px solid var(--girl-pink-border) !important;
            color: var(--girl-pink-text) !important;
            box-shadow: 0 10px 24px rgba(255, 105, 180, 0.12) !important;
        }

        .category-btn:hover,
        .category-btn.active,
        .product-card:hover,
        .order-query-btn:hover,
        .order-query-logistics-btn:hover,
        .order-query-retry-btn:hover,
        .cart-qty-btn:hover,
        .quantity-btn:hover,
        .close-modal-btn:hover,
        .cart-close-btn:hover,
        .product-menu-close:hover,
        .thumb-nav-btn:hover,
        .preview-nav-btn:hover {
            border-color: rgba(255, 105, 180, 0.42) !important;
            box-shadow: 0 16px 32px rgba(255, 105, 180, 0.18) !important;
            transform: translateY(-1px);
        }

        .category-btn.active,
        .add-to-cart,
        .add-to-cart-modal,
        .cart-checkout-btn,
        .cart-page .cart-member-line__btn:not(.cart-member-line__btn--line),
        .ad-popup-line-btn,
        .vip-btn-primary,
        .line-btn,
        .bottom-nav-item.active .bottom-nav-icon,
        .bottom-nav-item.active .bottom-nav-text {
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.96) 0%, rgba(255, 138, 204, 0.96) 100%) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.72) !important;
            box-shadow: 0 14px 30px rgba(255, 105, 180, 0.24) !important;
        }

        /** 購物車內 LINE 僅圖示按鈕：保留品牌綠，不套用上方粉紅主題鈕 */
        .cart-page .cart-member-line__btn--line,
        .cart-page .cart-member-line__btn--line:hover,
        .cart-page .cart-member-line__btn--line:active {
            background: #06C755 !important;
            color: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 2px 12px rgba(6, 199, 85, 0.4) !important;
        }

        .cart-page .cart-member-line__btn--line:hover {
            background: #05b34c !important;
        }

        .cart-page .cart-member-line__btn-label {
            color: #ffffff !important;
        }

        .cart-page .cart-member-line--embed {
            background: linear-gradient(180deg, rgba(255, 253, 254, 0.98) 0%, rgba(255, 240, 247, 0.96) 100%) !important;
            border: 1px solid var(--girl-pink-border) !important;
            color: var(--girl-pink-text) !important;
        }

        .cart-page .cart-member-line--embed.cart-member-line--embed-line-only {
            background: transparent !important;
            border: none !important;
            padding: 6px 0 0 0 !important;
            box-shadow: none !important;
        }

        .cart-page .cart-member-line__text,
        .cart-page .cart-member-line__text--ok,
        .cart-page .cart-member-line__text--login-hint {
            color: var(--girl-pink-text) !important;
            text-shadow: none !important;
        }

        .category-btn {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 241, 248, 0.94) 100%) !important;
            color: var(--girl-pink-text) !important;
            border: 2px solid rgba(255, 105, 180, 0.22) !important;
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.1) !important;
        }

        .category-btn:hover {
            background: linear-gradient(135deg, rgba(255, 248, 252, 0.99) 0%, rgba(255, 230, 242, 0.95) 100%) !important;
            color: var(--girl-pink-deep) !important;
            border-color: rgba(255, 105, 180, 0.36) !important;
            box-shadow: 0 12px 24px rgba(255, 105, 180, 0.16) !important;
        }

        .category-btn.active {
            background: linear-gradient(135deg, #ff69b4 0%, #ff8ac8 55%, #ff4fa3 100%) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.8) !important;
            box-shadow: 0 14px 28px rgba(255, 105, 180, 0.22) !important;
            text-shadow: none !important;
            animation: sparkleGlow 2s ease-in-out infinite alternate !important;
        }

        .category-btn.active::before {
            background: linear-gradient(45deg, #fff4fa, #ffb7da, #ff69b4, #ff8ac8, #fff4fa) !important;
        }

        .add-to-cart:hover,
        .add-to-cart-modal:hover,
        .cart-checkout-btn:hover,
        .ad-popup-line-btn:hover,
        .vip-btn-primary:hover,
        .line-btn:hover,
        .cart-page .cart-member-line__btn:not(.cart-member-line__btn--line):hover {
            background: linear-gradient(135deg, #ff5cab 0%, #ff8ac8 100%) !important;
            box-shadow: 0 18px 34px rgba(255, 105, 180, 0.28) !important;
        }

        .add-to-cart.sold-out,
        .spec-btn.sold-out,
        .cart-qty-btn:disabled,
        .quantity-btn:disabled {
            background: rgba(255, 235, 244, 0.92) !important;
            color: #d08aac !important;
            border-color: rgba(255, 182, 193, 0.72) !important;
            box-shadow: none !important;
        }

        .spec-btn.active {
            background: linear-gradient(135deg, #ff5ca9 0%, #ff7fbe 45%, #ff3f98 100%) !important;
            color: #ffffff !important;
            border-color: rgba(255, 255, 255, 0.9) !important;
            box-shadow:
                0 12px 24px rgba(255, 105, 180, 0.22),
                0 0 0 3px rgba(255, 105, 180, 0.12) !important;
            font-weight: 700 !important;
            letter-spacing: 0.2px !important;
            animation: specActivePulse 1.8s ease-in-out infinite !important;
        }

        .spec-btn.active:hover {
            background: linear-gradient(135deg, #ff5ca9 0%, #ff7fbe 45%, #ff3f98 100%) !important;
            color: #ffffff !important;
            border-color: rgba(255, 255, 255, 0.9) !important;
        }

        .product-name,
        .spec-product-name,
        .cart-item-name,
        .order-query-title,
        .product-menu-header h3,
        .cart-page-title,
        .vip-member-name,
        .vip-title {
            color: var(--girl-pink-text) !important;
        }

        .product-price,
        .cart-summary-total,
        .cart-stat-total,
        .deadline-highlight,
        .delivery-highlight,
        .order-query-count,
        .bottom-nav-item.active .cart-badge {
            color: var(--girl-pink-deep) !important;
        }

        .product-original-price,
        .cart-summary-label,
        .cart-summary-final-label,
        .cart-stat-label,
        .order-query-hint,
        .deadline-text,
        .marquee-text,
        .product-sales,
        .spec-product-subtitle {
            color: var(--girl-pink-text-soft) !important;
        }

        .order-query-header {
            background: linear-gradient(180deg, rgba(255, 247, 251, 0.98) 0%, rgba(255, 237, 246, 0.96) 100%) !important;
            border-bottom: 1px solid rgba(255, 105, 180, 0.18) !important;
            box-shadow: none !important;
        }

        .order-query-title {
            color: var(--girl-pink-text) !important;
            text-shadow: none !important;
        }

        .order-query-close {
            background: rgba(255, 255, 255, 0.94) !important;
            color: var(--girl-pink-deep) !important;
            border: 1px solid rgba(255, 105, 180, 0.2) !important;
            box-shadow: none !important;
        }

        .order-query-close:hover {
            background: rgba(255, 243, 249, 0.98) !important;
            color: var(--girl-pink-deep) !important;
            border-color: rgba(255, 105, 180, 0.32) !important;
            box-shadow: none !important;
            transform: scale(1.04) !important;
        }

        .order-query-input-section,
        .order-query-results {
            background: rgba(255, 248, 252, 0.74) !important;
            color: var(--girl-pink-text) !important;
        }

        .order-query-count {
            color: var(--girl-pink-deep) !important;
            text-shadow: none !important;
        }

        .order-query-item {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 243, 249, 0.94) 100%) !important;
            border: 1px solid rgba(255, 105, 180, 0.16) !important;
            box-shadow: none !important;
        }

        .order-query-item:hover {
            border-color: rgba(255, 105, 180, 0.24) !important;
            box-shadow: none !important;
            transform: translateY(-1px) !important;
        }

        .order-query-item-header:hover {
            background: rgba(255, 236, 246, 0.4) !important;
        }

        .order-query-item-number,
        .order-query-product-name,
        .order-query-items-title,
        .order-query-info-value,
        .order-query-logistics-title {
            color: var(--girl-pink-text) !important;
            text-shadow: none !important;
        }

        .order-query-item-price,
        .order-query-amount-value,
        .order-query-option-total,
        .order-query-discount-saving {
            color: var(--girl-pink-deep) !important;
            text-shadow: none !important;
        }

        .order-query-info-icon {
            filter: none !important;
        }

        .order-query-info-label,
        .order-query-hint,
        .order-query-empty-text,
        .order-query-discount-line,
        .order-query-discount-original {
            color: var(--girl-pink-text-soft) !important;
            text-shadow: none !important;
        }

        .order-query-status-badge {
            box-shadow: none !important;
        }

        .order-query-status-shipped {
            background: rgba(255, 228, 240, 0.92) !important;
            color: #b63f79 !important;
            border: 1px solid rgba(255, 105, 180, 0.22) !important;
        }

        .order-query-status-pending {
            background: rgba(255, 241, 248, 0.92) !important;
            color: var(--girl-pink-text-soft) !important;
            border: 1px solid rgba(255, 105, 180, 0.16) !important;
        }

        .order-query-items,
        .order-query-details {
            border-top: 1px solid rgba(255, 105, 180, 0.14) !important;
        }

        .order-query-product-group {
            background: rgba(255, 246, 251, 0.9) !important;
            border: 1px solid rgba(255, 105, 180, 0.14) !important;
            box-shadow: none !important;
        }

        .order-query-product-header {
            border-bottom: 1px solid rgba(255, 105, 180, 0.12) !important;
        }

        .order-query-product-image {
            border: 1px solid rgba(255, 105, 180, 0.16) !important;
            box-shadow: none !important;
        }

        .order-query-option-item {
            background: rgba(255, 250, 252, 0.96) !important;
            border-left: 3px solid rgba(255, 105, 180, 0.48) !important;
            box-shadow: none !important;
        }

        .order-query-option-name {
            background: transparent !important;
            color: var(--girl-pink-text) !important;
            border: none !important;
            box-shadow: none !important;
            text-shadow: none !important;
        }

        .order-query-logistics-btn {
            background: linear-gradient(135deg, #ff69b4 0%, #ff8ac8 100%) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.7) !important;
            box-shadow: none !important;
        }

        .order-query-logistics-btn:hover {
            background: linear-gradient(135deg, #ff5cab 0%, #ff7cc2 100%) !important;
            box-shadow: none !important;
        }

        .order-query-logistics-status {
            background: rgba(255, 248, 252, 0.96) !important;
            border: 1px solid rgba(255, 105, 180, 0.16) !important;
            box-shadow: none !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .bottom-nav {
            background: rgba(255, 244, 250, 0.94) !important;
            border-top: 1px solid var(--girl-pink-border) !important;
            box-shadow: 0 -8px 24px rgba(255, 105, 180, 0.12) !important;
        }

        .bottom-nav-item,
        .bottom-nav-icon,
        .bottom-nav-text,
        .product-menu-category-icon,
        .cart-item-delete {
            color: var(--girl-pink-text) !important;
        }

        .bottom-nav-icon svg {
            width: 32px !important;
            height: 32px !important;
        }

        @media (max-width: 768px) {
            .bottom-nav-icon svg {
                width: 30px !important;
                height: 30px !important;
            }
        }

        .bottom-nav-item .cart-badge,
        .indicator.active,
        .product-sales,
        .ios-notification-icon {
            background: linear-gradient(135deg, #ff69b4 0%, #ff8ac8 100%) !important;
            color: #ffffff !important;
        }

        .ios-notification {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 240, 248, 0.94) 100%) !important;
            border: 1px solid rgba(255, 105, 180, 0.22) !important;
            box-shadow: 0 12px 30px rgba(255, 105, 180, 0.18) !important;
        }

        .cart-page-header {
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.96) 0%, rgba(255, 138, 204, 0.94) 100%) !important;
            border-color: rgba(255, 255, 255, 0.28) !important;
            box-shadow: 0 10px 24px rgba(255, 105, 180, 0.2) !important;
        }

        .cart-page-title {
            color: #ffffff !important;
            text-shadow: 0 2px 10px rgba(173, 45, 105, 0.24) !important;
        }

        .cart-close-btn {
            background: rgba(255, 255, 255, 0.96) !important;
            color: var(--girl-pink-deep) !important;
            border: 1px solid rgba(255, 255, 255, 0.78) !important;
            box-shadow: 0 8px 20px rgba(255, 105, 180, 0.14) !important;
        }

        .cart-close-btn:hover {
            background: #ffffff !important;
            color: #ff4fa3 !important;
            border-color: rgba(255, 255, 255, 0.9) !important;
            box-shadow: 0 12px 24px rgba(255, 105, 180, 0.2) !important;
        }

        .cart-quantity-controls {
            background: linear-gradient(135deg, rgba(255, 242, 248, 0.95) 0%, rgba(255, 228, 240, 0.88) 100%) !important;
            color: var(--girl-pink-text) !important;
            border-color: rgba(255, 105, 180, 0.18) !important;
            box-shadow: 0 8px 20px rgba(255, 105, 180, 0.1) !important;
        }

        .cart-qty-btn {
            background: rgba(255, 255, 255, 0.96) !important;
            color: var(--girl-pink-deep) !important;
            border: 1px solid rgba(255, 105, 180, 0.18) !important;
            box-shadow: 0 8px 18px rgba(255, 105, 180, 0.12) !important;
        }

        .cart-qty-btn:hover {
            background: linear-gradient(135deg, rgba(255, 245, 250, 0.98) 0%, rgba(255, 233, 243, 0.94) 100%) !important;
            color: #ff4fa3 !important;
            border-color: rgba(255, 79, 163, 0.3) !important;
            box-shadow: 0 12px 24px rgba(255, 105, 180, 0.18) !important;
        }

        .cart-qty-display {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 241, 248, 0.95) 100%) !important;
            color: var(--girl-pink-deep) !important;
            border: 1px solid rgba(255, 105, 180, 0.2) !important;
            box-shadow: 0 6px 14px rgba(255, 105, 180, 0.1) !important;
        }

        .ios-notification-content {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .ios-notification-text {
            color: var(--girl-pink-text) !important;
        }

        .ios-notification-subtitle {
            color: var(--girl-pink-text-soft) !important;
        }

        .indicator {
            background: rgba(255, 105, 180, 0.2) !important;
        }

        .header img,
        .login-gate-logo {
            filter: drop-shadow(0 12px 24px rgba(255, 105, 180, 0.18)) !important;
        }

        .order-deadline-container,
        .category-banner-link img,
        .carousel-container,
        .banner-image,
        .spec-image-item img,
        .cart-item-image img {
            border-radius: 20px !important;
        }

        .order-deadline-container {
            position: relative !important;
            width: calc(100% - 16px) !important;
            max-width: 420px !important;
            margin: 2px auto 18px !important;
            padding: 18px 14px 16px !important;
            background: transparent !important;
            border: none !important;
            border-radius: 24px !important;
            box-shadow: none !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }

        .order-deadline-container::before {
            content: "" !important;
            position: absolute !important;
            inset: 0 !important;
            background: none !important;
            pointer-events: none !important;
        }

        .order-deadline-container::after {
            content: "✦" !important;
            position: absolute !important;
            top: 14px !important;
            right: 18px !important;
            color: rgba(255, 255, 255, 0.88) !important;
            font-size: 14px !important;
            text-shadow: 0 0 12px rgba(255, 255, 255, 0.6) !important;
            pointer-events: none !important;
        }

        .deadline-wrapper {
            position: relative !important;
            z-index: 1 !important;
            width: 100% !important;
            max-width: 404px !important;
            margin: 0 auto !important;
            display: flex !important;
            justify-content: center !important;
            padding: 12px 12px !important;
            background: transparent !important;
            border: 1px solid rgba(255, 255, 255, 0.72) !important;
            border-radius: 20px !important;
            box-shadow: none !important;
            box-sizing: border-box !important;
        }

        .deadline-content {
            width: 100% !important;
            max-width: 392px !important;
            margin: 0 auto !important;
            display: grid !important;
            justify-items: center !important;
            gap: 14px !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }

        .deadline-content::before {
            content: "♡ 今日結單倒數 ♡" !important;
            display: block !important;
            padding: 0 !important;
            color: #d04b8d !important;
            font-size: 12px !important;
            font-weight: 900 !important;
            letter-spacing: 1px !important;
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) !important;
        }

        .deadline-text {
            display: none !important;
        }

        .deadline-highlight {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 auto !important;
            padding: 6px 0 !important;
            display: grid !important;
            grid-template-columns: repeat(3, 1fr) !important;
            align-items: center !important;
            justify-items: center !important;
            column-gap: 14px !important;
            border-radius: 0 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            box-sizing: border-box !important;
        }

        .countdown-item {
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            min-width: 0 !important;
            position: relative !important;
        }

        .countdown-item::before {
            content: none !important;
        }

        .countdown-hours,
        .countdown-minutes,
        .countdown-seconds {
            width: 56px !important;
            min-width: 56px !important;
            height: 40px !important;
            padding: 0 10px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            position: relative !important;
            z-index: 1 !important;
            color: #ff4fa1 !important;
            background: transparent !important;
            border: 1px solid rgba(255, 255, 255, 0.78) !important;
            border-radius: 12px !important;
            box-shadow: none !important;
            font-size: 26px !important;
            font-weight: 900 !important;
            letter-spacing: 0.4px !important;
            box-sizing: border-box !important;
            line-height: 1 !important;
        }

        .countdown-unit {
            min-width: 14px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            position: relative !important;
            z-index: 1 !important;
            color: #c65f93 !important;
            font-size: 11px !important;
            font-weight: 800 !important;
            white-space: nowrap !important;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64) !important;
        }

        .delivery-highlight {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 auto !important;
            min-height: 40px !important;
            padding: 10px 16px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            border-radius: 999px !important;
            background:
                linear-gradient(135deg, rgba(255, 109, 184, 0.96) 0%, rgba(255, 151, 210, 0.96) 100%) !important;
            border: 1px solid rgba(255, 255, 255, 0.66) !important;
            box-shadow:
                0 8px 16px rgba(255, 105, 180, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
            color: #ffffff !important;
            font-size: 14px !important;
            font-weight: 800 !important;
            letter-spacing: 0.3px !important;
            box-sizing: border-box !important;
        }

        .delivery-highlight::before {
            content: "✦ 預計到貨日 ✦" !important;
            margin-right: 6px !important;
            color: rgba(255, 255, 255, 0.92) !important;
            font-size: 13px !important;
            font-weight: 800 !important;
            white-space: nowrap !important;
            text-shadow: 0 1px 2px rgba(181, 46, 116, 0.18) !important;
        }

        @media (max-width: 768px) {
            .order-deadline-container {
                width: calc(100% - 12px) !important;
                max-width: 400px !important;
                margin: 2px auto 12px !important;
                padding: 16px 10px 14px !important;
                border-radius: 22px !important;
            }

            .deadline-wrapper {
                max-width: 384px !important;
                padding: 11px 10px !important;
                border-radius: 18px !important;
            }

            .deadline-content {
                max-width: 368px !important;
                gap: 12px !important;
            }

            .deadline-content::before {
                font-size: 12px !important;
            }

            .deadline-highlight {
                max-width: 100% !important;
                padding: 4px 0 !important;
                column-gap: 12px !important;
            }

            .countdown-hours,
            .countdown-minutes,
            .countdown-seconds {
                width: 52px !important;
                min-width: 52px !important;
                height: 36px !important;
                font-size: 22px !important;
            }

            .countdown-unit {
                min-width: 13px !important;
                font-size: 11px !important;
            }

            .delivery-highlight {
                max-width: 100% !important;
                min-height: 38px !important;
                padding: 9px 14px !important;
                font-size: 13px !important;
            }

            .delivery-highlight::before {
                font-size: 12px !important;
            }
        }

/* === LINE 登入門鎖（SweetAlert） === */

.login-gate-shell {
                        position: relative;
                        padding: 18px 14px 14px;
                        overflow: hidden;
                    }
                    .login-gate-shell::before,
                    .login-gate-shell::after {
                        content: "";
                        position: absolute;
                        border-radius: 999px;
                        filter: blur(10px);
                        opacity: 0.75;
                        pointer-events: none;
                    }
                    .login-gate-shell::before {
                        width: 140px;
                        height: 140px;
                        top: 10px;
                        left: -30px;
                        background: radial-gradient(circle, rgba(125, 211, 252, 0.85) 0%, rgba(125, 211, 252, 0) 72%);
                        animation: gateFloatOne 6s ease-in-out infinite;
                    }
                    .login-gate-shell::after {
                        width: 170px;
                        height: 170px;
                        right: -40px;
                        bottom: 20px;
                        background: radial-gradient(circle, rgba(192, 132, 252, 0.7) 0%, rgba(192, 132, 252, 0) 72%);
                        animation: gateFloatTwo 7s ease-in-out infinite;
                    }
                    .login-gate-card {
                        position: relative;
                        border-radius: 30px;
                        padding: 26px 22px 24px;
                        background:
                            linear-gradient(180deg, rgba(240, 249, 255, 0.97) 0%, rgba(220, 238, 255, 0.96) 100%);
                        border: 1px solid rgba(255, 255, 255, 0.72);
                        box-shadow:
                            inset 0 1px 0 rgba(255,255,255,0.82),
                            0 22px 48px rgba(46, 77, 160, 0.22);
                        overflow: hidden;
                    }
                    .login-gate-card::before {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background:
                            linear-gradient(130deg, rgba(255,255,255,0.36) 0%, rgba(255,255,255,0.08) 34%, rgba(255,255,255,0) 52%),
                            radial-gradient(circle at 80% 18%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 22%);
                        pointer-events: none;
                    }
                    .login-gate-logo-wrap {
                        position: relative;
                        display: flex;
                        justify-content: center;
                        margin-bottom: 4px;
                    }
                    .login-gate-logo-wrap::before {
                        content: "";
                        position: absolute;
                        width: 170px;
                        height: 170px;
                        border-radius: 999px;
                        background: radial-gradient(circle, rgba(56, 189, 248, 0.24) 0%, rgba(56, 189, 248, 0) 72%);
                        animation: gateGlow 4s ease-in-out infinite;
                    }
                    .login-gate-logo {
                        position: relative;
                        width: 230px;
                        max-width: 74%;
                        height: auto;
                        object-fit: contain;
                        filter: drop-shadow(0 12px 22px rgba(14, 165, 233, 0.18));
                        animation: gateLogoFloat 4.5s ease-in-out infinite;
                    }
                    .login-gate-title {
                        font-size: 20px;
                        color: #2595c6;
                        margin-bottom: 8px;
                        text-align: center;
                        font-weight: 900;
                        letter-spacing: 0.4px;
                        text-shadow: 0 1px 0 rgba(255,255,255,0.6);
                    }
                    .login-gate-desc {
                        font-size: 14px;
                        color: #6b7f95;
                        margin-bottom: 22px;
                        text-align: center;
                        line-height: 1.8;
                    }
                    .login-gate-btn {
                        position: relative;
                        width: 100%;
                        padding: 15px 18px;
                        background: linear-gradient(180deg, #06d755 0%, #06c755 100%);
                        color: #ffffff;
                        border: none;
                        border-radius: 15px;
                        font-size: 15px;
                        font-weight: 900;
                        cursor: pointer;
                        box-shadow: 0 12px 24px rgba(6, 199, 85, 0.24);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 10px;
                        margin-bottom: 22px;
                        overflow: hidden;
                        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
                    }
                    .login-gate-btn::before {
                        content: "";
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        left: -45%;
                        width: 42%;
                        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
                        transform: skewX(-20deg);
                        animation: gateShine 4.2s linear infinite;
                    }
                    .login-gate-btn:hover {
                        transform: translateY(-1px);
                        background: linear-gradient(180deg, #05cf51 0%, #05c250 100%);
                        box-shadow: 0 16px 28px rgba(6, 199, 85, 0.28);
                    }
                    .login-gate-btn-label {
                        position: relative;
                        z-index: 1;
                    }
                    .login-gate-features {
                        display: grid;
                        grid-template-columns: repeat(3, 1fr);
                        gap: 12px;
                        text-align: center;
                    }
                    .login-gate-feature {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        gap: 8px;
                        padding: 10px 8px;
                        border-radius: 16px;
                        background: rgba(255,255,255,0.42);
                        box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
                        animation: gateCardFloat 5s ease-in-out infinite;
                    }
                    .login-gate-feature:nth-child(2) {
                        animation-delay: 0.6s;
                    }
                    .login-gate-feature:nth-child(3) {
                        animation-delay: 1.2s;
                    }
                    .login-gate-feature-icon {
                        font-size: 19px;
                    }
                    .login-gate-feature-text {
                        font-size: 12px;
                        color: #73859a;
                        line-height: 1.4;
                        font-weight: 700;
                    }
                    @keyframes gateFloatOne {
                        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
                        50% { transform: translate3d(14px, -8px, 0) scale(1.06); }
                    }
                    @keyframes gateFloatTwo {
                        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
                        50% { transform: translate3d(-10px, 8px, 0) scale(1.05); }
                    }
                    @keyframes gateGlow {
                        0%, 100% { opacity: 0.72; transform: scale(1); }
                        50% { opacity: 1; transform: scale(1.06); }
                    }
                    @keyframes gateLogoFloat {
                        0%, 100% { transform: translateY(0); }
                        50% { transform: translateY(-5px); }
                    }
                    @keyframes gateShine {
                        0% { left: -45%; }
                        100% { left: 120%; }
                    }
                    @keyframes gateCardFloat {
                        0%, 100% { transform: translateY(0); }
                        50% { transform: translateY(-3px); }
                    }

/* === 庫存驗證 Loading（須高於 .cart-page 10002）=== */
.stock-validation-loading-container.swal2-container {
    z-index: 20050 !important;
}

.stock-validation-loading-popup.swal2-popup {
    border-radius: 14px !important;
    padding: 1.35rem 1.25rem 1.5rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    border: 0.5px solid rgba(0, 0, 0, 0.06) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

/**
 * iOS 風格：大號活動指示器（細弧旋轉）
 */
.ios-stock-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 6px 4px 2px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
}

.ios-stock-loading__spinner-wrap {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-stock-loading__spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2.5px solid rgba(60, 60, 67, 0.14);
    border-top-color: rgba(60, 60, 67, 0.55);
    animation: ios-stock-spin 0.72s linear infinite;
}

@keyframes ios-stock-spin {
    to {
        transform: rotate(360deg);
    }
}

.ios-stock-loading__title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.35px;
    color: #1c1c1e;
    margin: 0;
}

.ios-stock-loading__hint {
    font-size: 13px;
    font-weight: 400;
    color: rgba(60, 60, 67, 0.55);
    margin: -6px 0 0;
}

/* === LINE 登入跳轉 Loading === */

.line-login-loader {
                            position: relative;
                            width: 110px;
                            height: 110px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }

                        .line-login-spinner,
                        .line-login-spinner-inner {
                            position: absolute;
                            border-radius: 999px;
                        }

                        .line-login-spinner {
                            width: 110px;
                            height: 110px;
                            border: 5px solid rgba(56, 189, 248, 0.12);
                            border-top-color: #38bdf8;
                            border-right-color: #0ea5e9;
                            animation: lineSpinOuter 1.2s linear infinite;
                        }

                        .line-login-spinner-inner {
                            width: 74px;
                            height: 74px;
                            border: 4px solid rgba(14, 165, 233, 0.1);
                            border-bottom-color: #7dd3fc;
                            border-left-color: #38bdf8;
                            animation: lineSpinInner 0.9s linear infinite reverse;
                        }

                        .line-login-core {
                            width: 52px;
                            height: 52px;
                            border-radius: 999px;
                            background: linear-gradient(180deg, #06d755 0%, #06c755 100%);
                            color: #ffffff;
                            font-size: 11px;
                            font-weight: 900;
                            letter-spacing: 0.4px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            box-shadow: 0 12px 24px rgba(6, 199, 85, 0.22);
                            z-index: 2;
                        }

                        @keyframes lineSpinOuter {
                            0% { transform: rotate(0deg); }
                            100% { transform: rotate(360deg); }
                        }

                        @keyframes lineSpinInner {
                            0% { transform: rotate(0deg); }
                            100% { transform: rotate(360deg); }
                        }

/* =============================================================================
   電腦端頂欄背景（必須置於檔案末尾）
   sky / girl 主題在後段對 .header 設了 background !important，會蓋掉較早的
   @media (min-width:769px) 規則，故在此用 body .header 再覆寫一次。
   ============================================================================= */
@media (min-width: 769px) {
    body .header {
        display: block !important;
        overflow: visible !important;
        color: #1a1a1a !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: #fff8fc !important;
        background-image:
            radial-gradient(ellipse 130% 90% at 50% 100%, rgba(252, 191, 214, 0.42) 0%, transparent 55%),
            linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fce4ec 100%) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100%, 100% 100% !important;
        background-blend-mode: normal, normal !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 182, 198, 0.4) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 4px 18px rgba(233, 30, 99, 0.09) !important;
    }

    body .header::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        z-index: 0 !important;
        opacity: 0.4 !important;
        mix-blend-mode: normal !important;
        background-image: repeating-linear-gradient(
            -10deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.07) 2px,
            rgba(255, 255, 255, 0.07) 3px
        ) !important;
    }

    /**
     * 電腦端：LOGO 置中；快捷列已移出 .header，以 body .bottom-nav fixed 置於頂欄右側
     */
    body .header-inner {
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: var(--header-logo-max-h, 96px) !important;
        padding: 0 8px 0 12px !important;
        box-sizing: border-box !important;
    }

    body .header-logo-wrap {
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .header-logo-wrap img {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        max-width: min(100%, 520px) !important;
        max-height: var(--header-logo-max-h, 96px) !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
    }

    body .bottom-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: var(--header-logo-max-h, 96px) !important;
        margin: 0 !important;
        padding: 0 12px 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        z-index: 2001 !important;
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body .bottom-nav-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /** 電腦端不顯示「商品分類」快捷（分類請用頁面分類列） */
    body #navCategory {
        display: none !important;
    }

    body .bottom-nav-item {
        flex-direction: column !important;
        min-width: 0 !important;
        padding: 4px 6px !important;
        margin: 0 !important;
        color: var(--girl-pink-text, #8d3565) !important;
    }

    body .bottom-nav-item > span {
        display: none !important;
    }

    body .bottom-nav-icon {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.55) !important;
        border: 1px solid rgba(236, 64, 122, 0.2) !important;
        box-shadow: 0 2px 8px rgba(233, 30, 99, 0.08) !important;
    }

    body .bottom-nav-icon svg {
        width: 28px !important;
        height: 28px !important;
        fill: none !important;
        stroke: currentColor !important;
    }

    /**
     * 電腦端選取態：圖標描邊跟隨字色（如櫻粉主題下為深玫紅），勿沿用底欄小螢幕的白描邊規則。
     */
    body .bottom-nav-item.active .bottom-nav-icon svg {
        fill: none !important;
        stroke: currentColor !important;
    }

    body .bottom-nav-item.active .bottom-nav-icon svg circle[fill="currentColor"] {
        fill: currentColor !important;
        stroke: none !important;
    }

    body .bottom-nav-item.active .bottom-nav-icon {
        background: linear-gradient(135deg, rgba(255, 105, 180, 0.22) 0%, rgba(255, 182, 213, 0.5) 100%) !important;
        border-color: rgba(236, 64, 122, 0.42) !important;
        box-shadow: 0 2px 12px rgba(233, 30, 99, 0.14) !important;
    }

    body .bottom-nav-item .cart-badge {
        top: -4px !important;
        right: -4px !important;
        font-size: 11px !important;
        min-width: 18px !important;
        height: 18px !important;
    }

    /**
     * 電腦端首頁商品分類（#categoriesList）：橫向換行膠囊按鈕；僅此區塊、壓過主題 .category-btn。
     * 不使用 aspect-ratio 方塊；justify-content:center 讓分類少時整排置中，多時各列仍自然換行置中。
     */
    body #categoriesContainer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body #categoriesContainer .categories {
        display: flex !important;
        flex-flow: row wrap !important;
        align-items: center !important;
        align-content: center !important;
        justify-content: center !important;
        gap: 8px 10px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body #categoriesContainer .categories .category-btn {
        box-sizing: border-box !important;
        position: relative !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 8em !important;
        max-width: 22em !important;
        min-height: 40px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 9px 16px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        letter-spacing: 0.03em !important;
        line-height: 1.35 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        overflow: hidden !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        color: #2a2a2a !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
        animation: none !important;
        text-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    body #categoriesContainer .categories .category-btn:hover {
        background: #ffffff !important;
        border-color: rgba(0, 0, 0, 0.14) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-1px) !important;
    }

    body #categoriesContainer .categories .category-btn.active {
        background: linear-gradient(135deg, #fff5f9 0%, #fce4ec 100%) !important;
        color: #ad1457 !important;
        border-color: rgba(236, 64, 122, 0.5) !important;
        box-shadow: 0 4px 14px rgba(233, 30, 99, 0.14) !important;
        animation: none !important;
    }

    body #categoriesContainer .categories .category-btn.active::before,
    body #categoriesContainer .categories .category-btn.active::after {
        display: none !important;
        content: none !important;
    }
}

/* =============================================================================
   跑馬燈：與電腦端頂欄 body .header 同色系（粉白漸層 + 淡粉邊／陰影）
   手機底部導覽 .bottom-nav 同色系僅在 max-width:768px 套用（電腦端為頂欄右側透明列）
   ============================================================================= */
body .marquee-container {
    background-color: #fff8fc !important;
    background-image:
        radial-gradient(ellipse 130% 90% at 50% 100%, rgba(252, 191, 214, 0.42) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fce4ec 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100%, 100% 100% !important;
    background-blend-mode: normal, normal !important;
    border-bottom: 1px solid rgba(255, 182, 198, 0.4) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 4px 18px rgba(233, 30, 99, 0.09) !important;
    color: var(--girl-pink-text, #8d3565) !important;
}

@media (max-width: 768px) {
    body .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 2000 !important;
        background-color: #fff8fc !important;
        background-image:
            radial-gradient(ellipse 130% 90% at 50% 100%, rgba(252, 191, 214, 0.42) 0%, transparent 55%),
            linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fce4ec 100%) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100%, 100% 100% !important;
        background-blend-mode: normal, normal !important;
        border-top: 1px solid rgba(255, 182, 198, 0.4) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 -4px 18px rgba(233, 30, 99, 0.09) !important;
    }
}

body .marquee-text {
    color: var(--girl-pink-text, #8d3565) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* =============================================================================
 * 電腦端（≥769px）：立即選購／規格彈窗 #specModal
 * - 遮罩半透明 + 毛玻璃；加寬彈窗
 * - 左右欄：.spec-layout__media 圖片＋介紹、.spec-layout__main 其餘內容
 * - 捲動：.spec-content 單一垂直捲動，不巢狀限高捲動規格區
 * ============================================================================= */
@media (min-width: 769px) {
    .spec-modal {
        background: rgba(22, 14, 28, 0.36) !important;
        backdrop-filter: saturate(1.08) blur(14px) !important;
        -webkit-backdrop-filter: saturate(1.08) blur(14px) !important;
        padding: clamp(20px, 4vh, 48px) clamp(16px, 2.5vw, 36px) !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-y: auto !important;
    }

    .spec-content {
        width: min(96vw, 1120px) !important;
        max-width: 1120px !important;
        height: auto !important;
        max-height: min(92vh, 1000px) !important;
        min-height: 0 !important;
        border-radius: 22px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .spec-layout {
        flex-direction: row !important;
        align-items: stretch !important;
        flex: 0 0 auto !important;
        gap: clamp(20px, 2.4vw, 36px) !important;
        padding: clamp(16px, 2vh, 28px) clamp(18px, 2.2vw, 36px) !important;
        box-sizing: border-box !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .spec-layout__media {
        flex: 0 0 clamp(300px, 42%, 560px) !important;
        max-width: 560px !important;
        min-width: 260px !important;
        align-self: flex-start !important;
    }

    .spec-layout__main {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .spec-layout__main .spec-header {
        flex-shrink: 0 !important;
    }

    .spec-layout__main .spec-options {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .spec-layout__main .spec-options:has(.spec-variant-stack) {
        padding-left: max(0px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0px, env(safe-area-inset-right, 0px)) !important;
    }

    .spec-layout__main .quantity-section {
        flex-shrink: 0 !important;
    }

    .spec-layout__main .modal-bottom-buttons {
        flex-shrink: 0 !important;
        margin-top: 0 !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(255, 105, 180, 0.2) !important;
        box-shadow: 0 -6px 18px rgba(255, 105, 180, 0.06) !important;
    }

    .spec-product-images {
        margin-bottom: 0 !important;
        width: 100% !important;
    }

    .spec-header {
        padding: 0 0 14px 0 !important;
        border-bottom: 1px solid rgba(255, 105, 180, 0.22) !important;
    }

    .spec-images-container {
        height: min(58vh, 580px) !important;
        max-height: 620px !important;
    }

    .spec-product-info {
        text-align: left !important;
    }

    .spec-product-name {
        text-align: left !important;
    }

    .spec-product-subtitle {
        text-align: left !important;
    }

    .price-stock-container {
        justify-content: flex-start !important;
    }

    /** 電腦端：字略大、高度與手機邏輯一致（方塊比例、勿瘦高条） */
    .spec-variant-stack .spec-btn.spec-btn-axis,
    #specModal .spec-btn.spec-btn-axis {
        font-size: 15px !important;
        border-radius: 8px !important;
        width: max-content !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .spec-variant-stack .spec-btn.spec-btn-axis[data-axis="1"],
    #specModal .spec-btn.spec-btn-axis[data-axis="1"] {
        min-width: 2.5em !important;
        max-width: none !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 0.65em !important;
    }

    .spec-variant-stack .spec-btn.spec-btn-axis[data-axis="2"],
    #specModal .spec-btn.spec-btn-axis[data-axis="2"] {
        min-width: 2.5em !important;
        max-width: none !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 0.65em !important;
    }

    .spec-axis-chips--level1,
    .spec-axis-chips--level2 {
        min-height: 48px !important;
        align-items: center !important;
    }
}

/* 全站字體（置於末尾，避免被主題其他規則蓋掉） */
body,
body.login-gate-active {
    font-family: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: 0.02em;
}