        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 500px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 30px 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }
        
        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 10px;
            font-size: 28px;
        }
        
        .subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
            font-size: 16px;
        }
        
        .section {
            margin-bottom: 30px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
        }
        
        .input-field {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            margin-bottom: 15px;
            transition: border-color 0.3s;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #667eea;
        }
        
        /* 品項選擇 - 購物車模式 */
        .product-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            margin-bottom: 10px;
            transition: all 0.3s;
        }
        
        .product-item:hover {
            border-color: #667eea;
            background: #f8f9ff;
        }
        
        .product-info {
            flex: 1;
        }
        
        .product-name {
            font-weight: 600;
            color: #333;
            font-size: 16px;
        }
        
        .product-price {
            color: #667eea;
            font-weight: 700;
            font-size: 15px;
            margin-top: 5px;
        }
        
        .quantity-control {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .qty-btn {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .qty-btn.minus {
            background: #f0f0f0;
            color: #666;
        }
        
        .qty-btn.minus:hover:not(:disabled) {
            background: #e0e0e0;
        }
        
        .qty-btn.minus:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .qty-btn.plus {
            background: #667eea;
            color: white;
        }
        
        .qty-btn.plus:hover {
            background: #5568d3;
        }
        
        .qty-display {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            min-width: 30px;
            text-align: center;
        }
        
        /* 購物車清單 */
        .cart-section {
            background: #f8f9ff;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
        }
        
        .cart-empty {
            text-align: center;
            color: #999;
            padding: 20px;
            font-size: 14px;
        }
        
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .cart-item:last-child {
            border-bottom: none;
        }
        
        .cart-item-name {
            font-size: 15px;
            color: #333;
        }
        
        .cart-item-qty {
            font-size: 14px;
            color: #666;
            background: #e0e0e0;
            padding: 4px 10px;
            border-radius: 20px;
            margin: 0 10px;
        }
        
        .cart-item-price {
            font-weight: 600;
            color: #667eea;
        }
        
        .cart-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid #667eea;
        }
        
        .cart-total-label {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .cart-total-amount {
            font-size: 22px;
            font-weight: 700;
            color: #667eea;
        }
        
        /* 寄杯卡選項 */
        .gift-cup-option {
            background: #fff3cd;
            border: 2px solid #ffc107;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .gift-cup-option:hover {
            background: #ffe8a1;
        }
        
        .gift-cup-option.selected {
            background: #667eea;
            border-color: #667eea;
            color: white;
        }
        
        .gift-cup-name {
            font-weight: 600;
            font-size: 16px;
        }
        
        .gift-cup-desc {
            font-size: 13px;
            margin-top: 5px;
            opacity: 0.9;
        }
        
        /* 取貨時間 */
        .option-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .option-btn {
            padding: 15px 10px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .option-btn:hover {
            border-color: #667eea;
            background: #f8f9ff;
        }
        
        .option-btn.selected {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .option-btn small {
            display: block;
            margin-top: 5px;
            font-size: 12px;
            opacity: 0.8;
        }
        
        /* 送出按鈕 */
        .submit-btn {
            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 20px;
        }
        
        .submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }
        
        .submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }
        
        .info-box {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 13px;
            color: #856404;
        }
        
        .success-message {
            text-align: center;
            padding: 40px 20px;
        }
        
        .success-icon {
            font-size: 60px;
            margin-bottom: 20px;
        }
        
        .order-id {
            font-size: 20px;
            font-weight: bold;
            color: #667eea;
            margin: 20px 0;
        }
        
        .order-items-summary {
            text-align: left;
            background: #f8f9ff;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .order-item-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .order-item-row:last-child {
            border-bottom: none;
        }
        
        .hidden {
            display: none;
        }
        
        /* 訂購模式切換 */
        .mode-switch {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .mode-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            background: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .mode-btn:hover {
            border-color: #667eea;
        }
        
        .mode-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        /* 加購彈窗 */
        .modal-hidden {
            display: none;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 20px;
            padding: 30px 20px;
            max-width: 90%;
            width: 400px;
            z-index: 10000;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        .modal-header h2 {
            text-align: center;
            color: #667eea;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .modal-body {
            margin-bottom: 20px;
        }

        .modal-footer {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .modal-btn-primary,
        .modal-btn-secondary {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .modal-btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .modal-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

        .modal-btn-secondary {
            background: #f0f0f0;
            color: #666;
        }

        .modal-btn-secondary:hover {
            background: #e0e0e0;
        }

        /* 加購按鈕樣式 */
        .upsell-qty-btn {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .upsell-qty-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .upsell-qty-btn:not(:disabled) {
            background: #667eea;
            color: white;
        }

        .upsell-qty-btn:not(:disabled):hover {
            background: #5568d3;
        }

        .upsell-qty-display {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            min-width: 24px;
            text-align: center;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translate(-50%, -40%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }
